move -nostdlib (-nostartfiles) into board.mk
since nrf5x require the use of std startup. Add verbose mode to makefile
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user