armcm_link: Rename armcm_boot.lds.S to armcm_link.lds.S
Rename the linker script so the build does not have any conflicts with the armcm_boot.d dependency file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
ff7be3e026
commit
caeb610bb9
|
@ -19,8 +19,8 @@ CFLAGS-$(CONFIG_MACH_SAM4E) += -Ilib/sam4e/include
|
||||||
CFLAGS += $(CFLAGS-y) -D__$(MCU)__ -mthumb -Ilib/cmsis-core
|
CFLAGS += $(CFLAGS-y) -D__$(MCU)__ -mthumb -Ilib/cmsis-core
|
||||||
|
|
||||||
CFLAGS_klipper.elf += --specs=nano.specs --specs=nosys.specs
|
CFLAGS_klipper.elf += --specs=nano.specs --specs=nosys.specs
|
||||||
CFLAGS_klipper.elf += -T $(OUT)src/generic/armcm_boot.ld
|
CFLAGS_klipper.elf += -T $(OUT)src/generic/armcm_link.ld
|
||||||
$(OUT)klipper.elf: $(OUT)src/generic/armcm_boot.ld
|
$(OUT)klipper.elf: $(OUT)src/generic/armcm_link.ld
|
||||||
|
|
||||||
# Add source files
|
# Add source files
|
||||||
src-y += atsam/main.c atsam/gpio.c atsam/i2c.c atsam/spi.c atsam/hard_pwm.c
|
src-y += atsam/main.c atsam/gpio.c atsam/i2c.c atsam/spi.c atsam/hard_pwm.c
|
||||||
|
|
|
@ -15,8 +15,8 @@ CFLAGS-$(CONFIG_MACH_SAMD51) += -mfpu=fpv4-sp-d16 -mfloat-abi=hard
|
||||||
CFLAGS += $(CFLAGS-y) -D__$(MCU)__ -mthumb -Ilib/cmsis-core
|
CFLAGS += $(CFLAGS-y) -D__$(MCU)__ -mthumb -Ilib/cmsis-core
|
||||||
|
|
||||||
CFLAGS_klipper.elf += --specs=nano.specs --specs=nosys.specs
|
CFLAGS_klipper.elf += --specs=nano.specs --specs=nosys.specs
|
||||||
CFLAGS_klipper.elf += -T $(OUT)src/generic/armcm_boot.ld
|
CFLAGS_klipper.elf += -T $(OUT)src/generic/armcm_link.ld
|
||||||
$(OUT)klipper.elf: $(OUT)src/generic/armcm_boot.ld
|
$(OUT)klipper.elf: $(OUT)src/generic/armcm_link.ld
|
||||||
|
|
||||||
# Add source files
|
# Add source files
|
||||||
src-y += atsamd/main.c atsamd/gpio.c
|
src-y += atsamd/main.c atsamd/gpio.c
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include "armcm_boot.h" // DECL_ARMCM_IRQ
|
#include "armcm_boot.h" // DECL_ARMCM_IRQ
|
||||||
#include "board/internal.h" // SystemInit
|
#include "board/internal.h" // SystemInit
|
||||||
|
|
||||||
// Symbols created by armcm_boot.lds.S linker script
|
// Symbols created by armcm_link.lds.S linker script
|
||||||
extern uint32_t _data_start, _data_end, _data_flash;
|
extern uint32_t _data_start, _data_end, _data_flash;
|
||||||
extern uint32_t _bss_start, _bss_end, _stack_start;
|
extern uint32_t _bss_start, _bss_end, _stack_start;
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,8 @@ dirs-y += src/lpc176x src/generic lib/lpc176x/device
|
||||||
CFLAGS += -mthumb -mcpu=cortex-m3 -Ilib/lpc176x/device -Ilib/cmsis-core
|
CFLAGS += -mthumb -mcpu=cortex-m3 -Ilib/lpc176x/device -Ilib/cmsis-core
|
||||||
|
|
||||||
CFLAGS_klipper.elf += --specs=nano.specs --specs=nosys.specs
|
CFLAGS_klipper.elf += --specs=nano.specs --specs=nosys.specs
|
||||||
CFLAGS_klipper.elf += -T $(OUT)src/generic/armcm_boot.ld
|
CFLAGS_klipper.elf += -T $(OUT)src/generic/armcm_link.ld
|
||||||
$(OUT)klipper.elf: $(OUT)src/generic/armcm_boot.ld
|
$(OUT)klipper.elf: $(OUT)src/generic/armcm_link.ld
|
||||||
|
|
||||||
# Add source files
|
# Add source files
|
||||||
src-y += lpc176x/main.c lpc176x/gpio.c
|
src-y += lpc176x/main.c lpc176x/gpio.c
|
||||||
|
|
|
@ -16,8 +16,8 @@ CFLAGS-$(CONFIG_MACH_STM32F4) += -mfpu=fpv4-sp-d16 -mfloat-abi=hard
|
||||||
CFLAGS += $(CFLAGS-y) -D$(MCU_UPPER) -mthumb -Ilib/cmsis-core
|
CFLAGS += $(CFLAGS-y) -D$(MCU_UPPER) -mthumb -Ilib/cmsis-core
|
||||||
|
|
||||||
CFLAGS_klipper.elf += --specs=nano.specs --specs=nosys.specs
|
CFLAGS_klipper.elf += --specs=nano.specs --specs=nosys.specs
|
||||||
CFLAGS_klipper.elf += -T $(OUT)src/generic/armcm_boot.ld
|
CFLAGS_klipper.elf += -T $(OUT)src/generic/armcm_link.ld
|
||||||
$(OUT)klipper.elf: $(OUT)src/generic/armcm_boot.ld
|
$(OUT)klipper.elf: $(OUT)src/generic/armcm_link.ld
|
||||||
|
|
||||||
# Add source files
|
# Add source files
|
||||||
src-y += stm32/main.c stm32/watchdog.c stm32/gpio.c generic/armcm_boot.c
|
src-y += stm32/main.c stm32/watchdog.c stm32/gpio.c generic/armcm_boot.c
|
||||||
|
|
Loading…
Reference in New Issue