Skip to content

Commit 81772a7

Browse files
committed
cleanups
1 parent 7f91452 commit 81772a7

File tree

5 files changed

+19
-11
lines changed

5 files changed

+19
-11
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ rundsp
99
*.elf
1010
*.asm
1111
*.dsp
12+
*.dis
13+
*.nm
1214
Module.symvers
1315
.tmp_versions
1416
armdsp.mod.c
@@ -17,3 +19,4 @@ armdsp.mod.c
1719
.armdsp.ko.cmd
1820
armhost
1921
regdefs
22+
regs-omap-l138.h

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ ARMCC = $(CROSS_COMPILE)gcc -g -Wall
2020

2121
# for compiling dsp programs =====================================
2222
CL6X = cl6x
23-
CL6X_FLAGS = --abi=eabi \
24-
--symdebug:none
23+
CL6X_FLAGS = --abi=eabi
2524

2625
.SUFFIXES: .obj .asm
2726

@@ -52,7 +51,7 @@ armhost: armhost.c armdsp.h
5251
$(ARMCC) -o armhost armhost.c
5352

5453
regdefs: regdefs.c
55-
gcc -g -Wall -o regdefs regdefs.c
54+
cc -g -Wall -o regdefs regdefs.c
5655

5756
regs-omap-l138.h: regdefs regs.conf
5857
./regdefs
@@ -83,7 +82,8 @@ test: all
8382

8483
clean:
8584
rm -f *.o *.ko *.obj *.elf *.mod.c *~ .*~ ? *.dis *.nm
86-
rm -f rundsp armhost dsptest.dsp dsptest.elf
85+
rm -f dsptest.asm
86+
rm -f rundsp armhost dsptest.dsp dsptest.elf regdefs
8787
rm -f Module.symvers modules.order
8888
rm -f regs-omap-l138.h
8989
rm -rf .tmp_versions .*.cmd

Makefile.armdsp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ ARMDSP_DIR=/usr/local/armdsp
33
ARMCC = arm-none-linux-gnueabi-gcc -g -Wall -I$(ARMDSP_DIR)/include
44
CL6X = cl6x
55

6-
# it's safe to use --mem_model here if you want other than the default
7-
CL6X_FLAGS = --abi=eabi \
8-
--symdebug:none \
9-
-I$(ARMDSP_DIR)/include
6+
# it's safe to add --mem_model here if you want other than the default
7+
CL6X_FLAGS = --abi=eabi -I$(ARMDSP_DIR)/include
108

119
.SUFFIXES: .obj .asm
1210

TODO

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
TODO
2+
3+
think about write buffer issues for dsptrg.c

armdsp-link

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ elfname=`basename $outname .dsp`.elf
1515
adir=/usr/local/armdsp
1616

1717
cl6x --abi=eabi \
18-
--symdebug:none \
19-
--mem_model:const=far \
20-
--mem_model:data=far \
2118
-z ${adir}/dsp/armdsp-link.cmd \
2219
--output_file ${elfname} \
2320
${adir}/dsp/vecs.obj \
@@ -29,6 +26,13 @@ then
2926
exit $ret
3027
fi
3128

29+
x=`nm6x ${elfname} | grep '^80000000 . vector_table$'`
30+
if [ -z "$x" ]
31+
then
32+
echo "armdsp-link: vector_table not allocated properly"
33+
exit 1
34+
fi
35+
3236
hex6x -q -m --order=M --romwidth=32 -o=${outname} ${elfname}
3337
ret=$?
3438
if [ $ret != 0 ]

0 commit comments

Comments
 (0)