From d1c4965dc7da7bda7222482e3c96ceed8a861a2c Mon Sep 17 00:00:00 2001 From: Eric Holland Date: Tue, 7 Jun 2016 10:11:54 -0700 Subject: [PATCH] [nordic] move vendor code to external --- .../platform/nrf51}/include/platform/nrf518xx.h | 0 .../nrf51}/include/platform/nrf518xx_bitfields.h | 0 .../platform/nrf51}/include/platform/system_nrf51.h | 0 external/platform/nrf51/rules.mk | 12 ++++++++++++ .../platform/nrf51}/system_nrf51.c | 0 platform/nrf51xxx/rules.mk | 2 +- 6 files changed, 13 insertions(+), 1 deletion(-) rename {platform/nrf51xxx => external/platform/nrf51}/include/platform/nrf518xx.h (100%) rename {platform/nrf51xxx => external/platform/nrf51}/include/platform/nrf518xx_bitfields.h (100%) rename {platform/nrf51xxx => external/platform/nrf51}/include/platform/system_nrf51.h (100%) create mode 100644 external/platform/nrf51/rules.mk rename {platform/nrf51xxx => external/platform/nrf51}/system_nrf51.c (100%) diff --git a/platform/nrf51xxx/include/platform/nrf518xx.h b/external/platform/nrf51/include/platform/nrf518xx.h similarity index 100% rename from platform/nrf51xxx/include/platform/nrf518xx.h rename to external/platform/nrf51/include/platform/nrf518xx.h diff --git a/platform/nrf51xxx/include/platform/nrf518xx_bitfields.h b/external/platform/nrf51/include/platform/nrf518xx_bitfields.h similarity index 100% rename from platform/nrf51xxx/include/platform/nrf518xx_bitfields.h rename to external/platform/nrf51/include/platform/nrf518xx_bitfields.h diff --git a/platform/nrf51xxx/include/platform/system_nrf51.h b/external/platform/nrf51/include/platform/system_nrf51.h similarity index 100% rename from platform/nrf51xxx/include/platform/system_nrf51.h rename to external/platform/nrf51/include/platform/system_nrf51.h diff --git a/external/platform/nrf51/rules.mk b/external/platform/nrf51/rules.mk new file mode 100644 index 00000000..0079801d --- /dev/null +++ b/external/platform/nrf51/rules.mk @@ -0,0 +1,12 @@ +LOCAL_DIR := $(GET_LOCAL_DIR) + +MODULE := $(LOCAL_DIR) + +GLOBAL_INCLUDES += $(LOCAL_DIR) + +MODULE_SRCS += \ + $(LOCAL_DIR)/system_nrf51.c \ + + +include make/module.mk + diff --git a/platform/nrf51xxx/system_nrf51.c b/external/platform/nrf51/system_nrf51.c similarity index 100% rename from platform/nrf51xxx/system_nrf51.c rename to external/platform/nrf51/system_nrf51.c diff --git a/platform/nrf51xxx/rules.mk b/platform/nrf51xxx/rules.mk index 46d3f917..9722bb02 100644 --- a/platform/nrf51xxx/rules.mk +++ b/platform/nrf51xxx/rules.mk @@ -47,13 +47,13 @@ MODULE_SRCS += \ $(LOCAL_DIR)/vectab.c \ $(LOCAL_DIR)/gpio.c \ $(LOCAL_DIR)/timer.c \ - $(LOCAL_DIR)/system_nrf51.c LINKER_SCRIPT += \ $(BUILDDIR)/system-twosegment.ld MODULE_DEPS += \ + platform/nrf51 \ lib/cbuf include make/module.mk