Split gcc linker-script-extraction line into several
This commit is contained in:
parent
27a1bfcf75
commit
cda4287171
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -41,7 +41,11 @@ $(TARGET).elf: ch32fun.c blink.c | ch32v003.ld ch32fun.h ch32v003hw.h
|
||||||
@$(CC) $(CFLAGS) $(LDFLAGS) $(EXTFLAGS) -o $@ $^
|
@$(CC) $(CFLAGS) $(LDFLAGS) $(EXTFLAGS) -o $@ $^
|
||||||
|
|
||||||
ch32v003.ld: ch32fun.ld
|
ch32v003.ld: ch32fun.ld
|
||||||
@riscv64-linux-gnu-gcc -E -P -x c -DTARGET_MCU=$(TARGET_MCU) -DMCU_PACKAGE= -DTARGET_MCU_LD=0 -DTARGET_MCU_MEMORY_SPLIT= $< > $@
|
@$(CC) -E -P -x c $< > $@ \
|
||||||
|
-DTARGET_MCU=$(TARGET_MCU) \
|
||||||
|
-DMCU_PACKAGE= \
|
||||||
|
-DTARGET_MCU_LD=0 \
|
||||||
|
-DTARGET_MCU_MEMORY_SPLIT=
|
||||||
|
|
||||||
# Rule to use curl to fetch all files beginning with ch32
|
# Rule to use curl to fetch all files beginning with ch32
|
||||||
ch32%:
|
ch32%:
|
||||||
|
|
Loading…
Add table
Reference in a new issue