File tree Expand file tree Collapse file tree 5 files changed +19
-11
lines changed
Expand file tree Collapse file tree 5 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 99* .elf
1010* .asm
1111* .dsp
12+ * .dis
13+ * .nm
1214Module.symvers
1315.tmp_versions
1416armdsp.mod.c
@@ -17,3 +19,4 @@ armdsp.mod.c
1719.armdsp.ko.cmd
1820armhost
1921regdefs
22+ regs-omap-l138.h
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ ARMCC = $(CROSS_COMPILE)gcc -g -Wall
2020
2121# for compiling dsp programs =====================================
2222CL6X = 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
5453regdefs : regdefs.c
55- gcc -g -Wall -o regdefs regdefs.c
54+ cc -g -Wall -o regdefs regdefs.c
5655
5756regs-omap-l138.h : regdefs regs.conf
5857 ./regdefs
@@ -83,7 +82,8 @@ test: all
8382
8483clean :
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
Original file line number Diff line number Diff line change @@ -3,10 +3,8 @@ ARMDSP_DIR=/usr/local/armdsp
33ARMCC = arm-none-linux-gnueabi-gcc -g -Wall -I$(ARMDSP_DIR ) /include
44CL6X = 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
Original file line number Diff line number Diff line change 1+ TODO
2+
3+ think about write buffer issues for dsptrg.c
Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ elfname=`basename $outname .dsp`.elf
1515adir=/usr/local/armdsp
1616
1717cl6x --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 \
2926 exit $ret
3027fi
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+
3236hex6x -q -m --order=M --romwidth=32 -o=${outname} ${elfname}
3337ret=$?
3438if [ $ret != 0 ]
You can’t perform that action at this time.
0 commit comments