move -nostdlib (-nostartfiles) into board.mk

since nrf5x require the use of std startup. Add verbose mode to makefile
This commit is contained in:
hathach
2019-03-20 01:23:49 +07:00
parent d22dea4976
commit e6612ab82c
5 changed files with 40 additions and 12 deletions
+2 -1
View File
@@ -6,7 +6,8 @@ CFLAGS = \
-mabi=aapcs-linux \
-mcpu=cortex-m0plus \
-msoft-float \
-mfloat-abi=soft
-mfloat-abi=soft \
-nostdlib
# All source paths should be relative to the top level.
LD_FILE = hw/bsp/metro_m0_express/samd21g18a_flash.ld
+2 -1
View File
@@ -5,7 +5,8 @@ CFLAGS = \
-mabi=aapcs-linux \
-mcpu=cortex-m4 \
-mfloat-abi=hard \
-mfpu=fpv4-sp-d16
-mfpu=fpv4-sp-d16 \
-nostdlib
# All source paths should be relative to the top level.
LD_FILE = hw/bsp/metro_m4_express/samd51g19a_flash.ld
+7 -2
View File
@@ -2,8 +2,6 @@ CFLAGS += \
-DCFG_TUSB_MCU=OPT_MCU_NRF5X \
-DNRF52840_XXAA \
-mthumb \
-Wno-error=undef \
-Wno-error=cast-align \
-mabi=aapcs \
-mcpu=cortex-m4 \
-mfloat-abi=hard \
@@ -18,6 +16,9 @@ SRC_C += \
hw/mcu/nordic/nrfx/drivers/src/nrfx_power.c \
hw/mcu/nordic/nrfx/mdk/system_nrf52840.c \
# TODO remove later
SRC_C += src/portable/$(VENDOR)/$(CHIP_FAMILY)/hal_$(CHIP_FAMILY).c
INC += \
-I$(TOP)/hw/cmsis/Include \
-I$(TOP)/hw/mcu/nordic \
@@ -38,3 +39,7 @@ ASFLAGS += -DNRF52840_XXAA
VENDOR = nordic
CHIP_FAMILY = nrf5x
JLINK_DEVICE = nRF52840_xxAA
# flash using jlink
flash: flash-jlink
+2 -1
View File
@@ -6,7 +6,8 @@ CFLAGS = \
-mabi=aapcs-linux \
-mcpu=cortex-m4 \
-mfloat-abi=hard \
-mfpu=fpv4-sp-d16
-mfpu=fpv4-sp-d16 \
-nostdlib
# All source paths should be relative to the top level.
LD_FILE = hw/bsp/stm32f407g_disc1/STM32F407VGTx_FLASH.ld