diff --git a/config/build/nrf52/Makefile.nrf52 b/config/build/nrf52/Makefile.nrf52 index ea198f8..c4f82bf 100644 --- a/config/build/nrf52/Makefile.nrf52 +++ b/config/build/nrf52/Makefile.nrf52 @@ -1,3 +1,6 @@ +CPU = cortex-m4 +CROSS_COMPILE ?= arm-none-eabi- + NRF_C_OBJS = $(patsubst $(NRF_PATH)%,$(OBJ_DIR)/%,$(patsubst %.c,%.o,$(NRF_C_SRCS))) NRF_A_SRCS = $(NRF_PATH)modules/nrfx/mdk/gcc_startup_nrf52.S diff --git a/config/build/nrf52/blinky/Makefile.blinky b/config/build/nrf52/blinky/Makefile.blinky index f8a5aed..019c083 100644 --- a/config/build/nrf52/blinky/Makefile.blinky +++ b/config/build/nrf52/blinky/Makefile.blinky @@ -1,6 +1,3 @@ -CPU = cortex-m4 -CROSS_COMPILE ?= arm-none-eabi- - NRF_PATH := nrf5sdk/ INCLUDES += $(NRF_PATH)components/ INCLUDES += $(NRF_PATH)modules/nrfx/mdk/ diff --git a/config/build/nrf52/button/Makefile.button b/config/build/nrf52/button/Makefile.button index aef60c1..e2300ed 100644 --- a/config/build/nrf52/button/Makefile.button +++ b/config/build/nrf52/button/Makefile.button @@ -1,6 +1,3 @@ -CPU = cortex-m4 -CROSS_COMPILE ?= arm-none-eabi- - NRF_PATH := nrf5sdk/ INCLUDES += $(NRF_PATH)components/ INCLUDES += $(NRF_PATH)modules/nrfx/mdk/ diff --git a/config/build/nrf52/spi/Makefile.spi b/config/build/nrf52/spi/Makefile.spi index 8a4c103..35f67f7 100644 --- a/config/build/nrf52/spi/Makefile.spi +++ b/config/build/nrf52/spi/Makefile.spi @@ -1,3 +1,6 @@ +CPU = cortex-m4 +CROSS_COMPILE ?= arm-none-eabi- + NRF_PATH := nrf5sdk/ INCLUDES += $(NRF_PATH)components/ INCLUDES += $(NRF_PATH)modules/nrfx/mdk/