Split gcc linker-script-extraction line into several

This commit is contained in:
Imbus 2025-02-09 16:06:40 +01:00
parent 27a1bfcf75
commit cda4287171

View file

@ -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%: