build: Rename makefile CFLAGS-y to CFLAGS and LDFLAGS-y to CFLAGS_klipper.elf
Rename some makefile variables. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -5,7 +5,7 @@ CROSS_PREFIX=avr-
|
||||
|
||||
dirs-y += src/avr lib/pjrc_usb_serial
|
||||
|
||||
CFLAGS-y += -mmcu=$(CONFIG_MCU)
|
||||
CFLAGS += -mmcu=$(CONFIG_MCU)
|
||||
|
||||
# Add avr source files
|
||||
src-y += avr/main.c avr/timer.c avr/gpio.c
|
||||
@@ -14,7 +14,7 @@ src-$(CONFIG_AVR_USBSERIAL) += avr/usbserial.c ../lib/pjrc_usb_serial/usb_serial
|
||||
src-$(CONFIG_AVR_SERIAL) += avr/serial.c
|
||||
|
||||
# Suppress broken "misspelled signal handler" warnings on gcc 4.8.1
|
||||
CFLAGS_klipper.o := $(if $(filter 4.8.1, $(shell $(CC) -dumpversion)), -w)
|
||||
CFLAGS_klipper.o := $(CFLAGS_klipper.o) $(if $(filter 4.8.1, $(shell $(CC) -dumpversion)), -w)
|
||||
|
||||
# Build the additional hex output file
|
||||
target-y += $(OUT)klipper.elf.hex
|
||||
|
||||
@@ -6,13 +6,13 @@ CROSS_PREFIX=arm-none-eabi-
|
||||
dirs-y += src/sam3x8e src/generic
|
||||
dirs-y += lib/cmsis-sam3x8e/source lib/cmsis-sam3x8e/source/gcc
|
||||
|
||||
CFLAGS-y += -mthumb -mcpu=cortex-m3
|
||||
CFLAGS-y += -Ilib/cmsis-sam3x8e/include -Ilib/cmsis-sam3x8e/cmsis-include
|
||||
CFLAGS-y += -D__SAM3X8E__
|
||||
CFLAGS += -mthumb -mcpu=cortex-m3
|
||||
CFLAGS += -Ilib/cmsis-sam3x8e/include -Ilib/cmsis-sam3x8e/cmsis-include
|
||||
CFLAGS += -D__SAM3X8E__
|
||||
|
||||
LDFLAGS-y += -Llib/cmsis-sam3x8e/source/gcc
|
||||
LDFLAGS-y += -T lib/cmsis-sam3x8e/source/gcc/sam3x8e_flash.ld
|
||||
LDFLAGS-y += --specs=nano.specs --specs=nosys.specs
|
||||
CFLAGS_klipper.elf += -Llib/cmsis-sam3x8e/source/gcc
|
||||
CFLAGS_klipper.elf += -T lib/cmsis-sam3x8e/source/gcc/sam3x8e_flash.ld
|
||||
CFLAGS_klipper.elf += --specs=nano.specs --specs=nosys.specs
|
||||
|
||||
# Add source files
|
||||
src-y += sam3x8e/main.c sam3x8e/timer.c sam3x8e/gpio.c
|
||||
|
||||
Reference in New Issue
Block a user