mirror of
https://github.com/andreili/katapult.git
synced 2025-08-23 19:34:06 +02:00
build: fix build on newer versions of gcc
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
3e23332eb1
commit
49e93194a4
@ -72,5 +72,8 @@ SECTIONS
|
||||
// that isn't needed so no need to include them in the binary.
|
||||
*(.init)
|
||||
*(.fini)
|
||||
// Don't include exception tables
|
||||
*(.ARM.extab)
|
||||
*(.ARM.exidx)
|
||||
}
|
||||
}
|
||||
|
@ -74,5 +74,8 @@ SECTIONS
|
||||
// that isn't needed so no need to include them in the binary.
|
||||
*(.init)
|
||||
*(.fini)
|
||||
// Don't include exception tables
|
||||
*(.ARM.extab)
|
||||
*(.ARM.exidx)
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ dirs-y += src/lpc176x src/generic lib/lpc176x/device
|
||||
CFLAGS += -mthumb -mcpu=cortex-m3 -Ilib/lpc176x/device -Ilib/cmsis-core
|
||||
CFLAGS += -Wno-nonnull
|
||||
|
||||
CFLAGS_katapult.elf += --specs=nano.specs --specs=nosys.specs
|
||||
CFLAGS_katapult.elf += -nostdlib -lgcc -lc_nano
|
||||
CFLAGS_katapult.elf += -T $(OUT)src/generic/armcm_link.ld
|
||||
$(OUT)katapult.elf: $(OUT)src/generic/armcm_link.ld
|
||||
|
||||
@ -26,6 +26,6 @@ BUILDBINARY_FLAGS = -l
|
||||
|
||||
# Deployer build
|
||||
deployer-y += generic/armcm_boot.c generic/armcm_reset.c $(mcu-y)
|
||||
CFLAGS_deployer.elf += --specs=nano.specs --specs=nosys.specs
|
||||
CFLAGS_deployer.elf += -nostdlib -lgcc -lc_nano
|
||||
CFLAGS_deployer.elf += -T $(OUT)src/generic/armcm_deployer.ld
|
||||
$(OUT)deployer.elf: $(OUT)src/generic/armcm_deployer.ld
|
||||
|
@ -8,7 +8,7 @@ dirs-y += src/rp2040 src/generic lib/rp2040/elf2uf2 lib/fast-hash lib/can2040 li
|
||||
CFLAGS += -mcpu=cortex-m0plus -mthumb -Ilib/cmsis-core
|
||||
CFLAGS += -Ilib/rp2040 -Ilib/rp2040/cmsis_include -Ilib/fast-hash -Ilib/can2040 -Ilib/rp2040/pico/flash/ -Ilib/rp2040/pico/bootrom/
|
||||
|
||||
CFLAGS_katapult.elf += --specs=nano.specs --specs=nosys.specs
|
||||
CFLAGS_katapult.elf += -nostdlib -lgcc -lc_nano
|
||||
CFLAGS_katapult.elf += -T $(OUT)src/rp2040/rp2040_link.ld
|
||||
|
||||
# Add source files
|
||||
@ -62,6 +62,6 @@ flash: $(OUT)katapult.uf2 lib/rp2040_flash/rp2040_flash
|
||||
|
||||
# Deployer build
|
||||
deployer-y += generic/armcm_boot.c generic/armcm_reset.c $(mcu-y)
|
||||
CFLAGS_deployer.elf += --specs=nano.specs --specs=nosys.specs
|
||||
CFLAGS_deployer.elf += -nostdlib -lgcc -lc_nano
|
||||
CFLAGS_deployer.elf += -T $(OUT)src/generic/armcm_deployer.ld
|
||||
$(OUT)deployer.elf: $(OUT)src/generic/armcm_deployer.ld
|
||||
|
@ -63,5 +63,8 @@ SECTIONS
|
||||
// that isn't needed so no need to include them in the binary.
|
||||
*(.init)
|
||||
*(.fini)
|
||||
// Don't include exception tables
|
||||
*(.ARM.extab)
|
||||
*(.ARM.exidx)
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ CFLAGS-$(CONFIG_MACH_STM32G0) += -mcpu=cortex-m0plus -Ilib/stm32g0/include
|
||||
CFLAGS-$(CONFIG_MACH_STM32H7) += -mcpu=cortex-m7 -Ilib/stm32h7/include
|
||||
CFLAGS += $(CFLAGS-y) -D$(MCU_UPPER) -mthumb -Ilib/cmsis-core -Ilib/fast-hash
|
||||
|
||||
CFLAGS_katapult.elf += --specs=nano.specs --specs=nosys.specs
|
||||
CFLAGS_katapult.elf += -nostdlib -lgcc -lc_nano
|
||||
CFLAGS_katapult.elf += -T $(OUT)src/generic/armcm_link.ld
|
||||
$(OUT)katapult.elf: $(OUT)src/generic/armcm_link.ld
|
||||
|
||||
@ -67,6 +67,6 @@ src-$(CONFIG_CANSERIAL) += $(canbus-src-y) generic/canbus.c stm32/chipid.c
|
||||
|
||||
# Deployer build
|
||||
deployer-y += generic/armcm_boot.c generic/armcm_reset.c $(mcu-y)
|
||||
CFLAGS_deployer.elf += --specs=nano.specs --specs=nosys.specs
|
||||
CFLAGS_deployer.elf += -nostdlib -lgcc -lc_nano
|
||||
CFLAGS_deployer.elf += -T $(OUT)src/generic/armcm_deployer.ld
|
||||
$(OUT)deployer.elf: $(OUT)src/generic/armcm_deployer.ld
|
||||
|
Loading…
x
Reference in New Issue
Block a user