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
+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