Skip to content

Commit 9f87334

Browse files
committed
PRCv17: makefile cleanup
1 parent 8524746 commit 9f87334

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

platforms/m3/prc_v14/software/Makefile

+4-3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ CXX := $(CROSS_COMPILE)-g++
5252
LD := $(CROSS_COMPILE)-ld
5353
OBJDUMP := $(CROSS_COMPILE)-objdump
5454
OBJCOPY := $(CROSS_COMPILE)-objcopy
55+
NM := $(CROSS_COMPILE)-nm
5556

5657
################################################################################
5758
## You should not need to edit this makefile beyond this point
@@ -109,12 +110,12 @@ $(DIRS):
109110
%.elf: COBJ=$(patsubst %.c,%.o,$(wildcard $(dir $@)*.c))
110111
%.elf: SOBJ=$(patsubst %.s,%.o,$(wildcard $(dir $@)*.s))
111112
%.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 \
113114
$(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 $@ ;\
115116
else \
116117
$(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 $@ ;\
118119
fi
119120
$(OBJDUMP) -Sd $@ > $*.asm
120121

0 commit comments

Comments
 (0)