File tree 1 file changed +4
-3
lines changed
platforms/m3/prc_v14/software
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ CXX := $(CROSS_COMPILE)-g++
52
52
LD := $(CROSS_COMPILE ) -ld
53
53
OBJDUMP := $(CROSS_COMPILE ) -objdump
54
54
OBJCOPY := $(CROSS_COMPILE ) -objcopy
55
+ NM := $(CROSS_COMPILE ) -nm
55
56
56
57
# ###############################################################################
57
58
# # You should not need to edit this makefile beyond this point
@@ -109,12 +110,12 @@ $(DIRS):
109
110
% .elf : COBJ=$(patsubst % .c,% .o,$(wildcard $(dir $@ ) * .c) )
110
111
% .elf : SOBJ=$(patsubst % .s,% .o,$(wildcard $(dir $@ ) * .s) )
111
112
% .elf : libs/memmap $(LIBS ) $$(COBJ ) $$(SOBJ )
112
- @if [ -n " $$ (echo $$ (arm-none-eabi-nm $( filter-out $< ,$^) | grep use_gdb))" ]; then \
113
+ @if [ -n " $$ (echo $$ ( $( NM ) $( filter-out $< ,$^) | grep use_gdb))" ]; then \
113
114
$(LD ) $(LDFLAGS ) -T$^ $(GDB ) \
114
- " $$ (echo $$ (arm-none-eabi-gcc -print-libgcc-file-name) | tr -d '\r')" -o $@ ; \
115
+ " $$ (echo $$ ( $( CC ) -print-libgcc-file-name) | tr -d '\r')" -o $@ ; \
115
116
else \
116
117
$(LD ) $(LDFLAGS ) -T$^ \
117
- " $$ (echo $$ (arm-none-eabi-gcc -print-libgcc-file-name) | tr -d '\r')" -o $@ ; \
118
+ " $$ (echo $$ ( $( CC ) -print-libgcc-file-name) | tr -d '\r')" -o $@ ; \
118
119
fi
119
120
$(OBJDUMP ) -Sd $@ > $* .asm
120
121
You can’t perform that action at this time.
0 commit comments