From 1ef95ea51ca95f2ca2b5c199e4ce3d5b0ae5f023 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Thu, 26 Mar 2020 06:26:26 +0100 Subject: [PATCH] Build: Move platform related buid flags to platform Makefile --- config/build/nrf52/Makefile.nrf52 | 3 +++ config/build/nrf52/blinky/Makefile.blinky | 3 --- config/build/nrf52/button/Makefile.button | 3 --- config/build/nrf52/spi/Makefile.spi | 3 +++ 4 files changed, 6 insertions(+), 6 deletions(-) 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/