From 851cf5426a7fffaebff146cb6fae0a698e4c3a55 Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 14 May 2019 14:07:06 +0700 Subject: [PATCH] more makefile clean up --- examples/rules.mk | 1 + hw/bsp/feather_nrf52840_express/board.mk | 3 --- hw/bsp/pca10056/board.mk | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/examples/rules.mk b/examples/rules.mk index df9ffb7e..9d09dfd1 100644 --- a/examples/rules.mk +++ b/examples/rules.mk @@ -22,6 +22,7 @@ INC += $(TOP)/src # CFLAGS += $(addprefix -I,$(INC)) LDFLAGS += $(CFLAGS) -fshort-enums -Wl,-T,$(TOP)/$(LD_FILE) -Wl,-Map=$@.map -Wl,-cref -Wl,-gc-sections -specs=nosys.specs -specs=nano.specs +ASFLAGS += $(CFLAGS) # Assembly files can be name with upper case .S, convert it to .s SRC_S := $(SRC_S:.S=.s) diff --git a/hw/bsp/feather_nrf52840_express/board.mk b/hw/bsp/feather_nrf52840_express/board.mk index 317a4969..7462cf62 100644 --- a/hw/bsp/feather_nrf52840_express/board.mk +++ b/hw/bsp/feather_nrf52840_express/board.mk @@ -35,9 +35,6 @@ INC += \ SRC_S += hw/mcu/nordic/nrfx/mdk/gcc_startup_nrf52840.S ASFLAGS += -D__HEAP_SIZE=0 -ASFLAGS += -DSWI_DISABLE0 -ASFLAGS += -DFLOAT_ABI_HARD -ASFLAGS += -DNRF52840_XXAA # For TinyUSB port source VENDOR = nordic diff --git a/hw/bsp/pca10056/board.mk b/hw/bsp/pca10056/board.mk index 6d7f4c55..baea5fdc 100644 --- a/hw/bsp/pca10056/board.mk +++ b/hw/bsp/pca10056/board.mk @@ -35,9 +35,6 @@ INC += \ SRC_S += hw/mcu/nordic/nrfx/mdk/gcc_startup_nrf52840.S ASFLAGS += -D__HEAP_SIZE=0 -ASFLAGS += -DSWI_DISABLE0 -ASFLAGS += -DFLOAT_ABI_HARD -ASFLAGS += -DNRF52840_XXAA # For TinyUSB port source VENDOR = nordic