From 7c27d8ab3a89f4c377d71320527d8afa9f12cea6 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 22 Apr 2016 13:15:19 -0400 Subject: [PATCH] soc: arm: add Makefiles one level up It was not possible to add directories under an SoC family because of the direct call to Makefile in the SoC series from the architecture level. While we have SoC still using the old structure, add a conditional to still support old structure and allow Makefiles directly under an SoC family directory. This is useful for adding drivers and BSP files common to one family. Change-Id: I85dc8341523b41949de91d78675153ce0baa5aac Signed-off-by: Anas Nashif --- arch/arm/Kbuild | 5 +++++ arch/arm/soc/nxp_kinetis/Kbuild | 2 ++ arch/arm/soc/st_stm32/Kbuild | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 arch/arm/soc/nxp_kinetis/Kbuild create mode 100644 arch/arm/soc/st_stm32/Kbuild diff --git a/arch/arm/Kbuild b/arch/arm/Kbuild index 07c5074c6ad..ff43af48b5c 100644 --- a/arch/arm/Kbuild +++ b/arch/arm/Kbuild @@ -2,5 +2,10 @@ subdir-ccflags-y +=-I$(srctree)/include/drivers subdir-ccflags-y +=-I$(srctree)/drivers subdir-asflags-y := ${subdir-ccflags-y} +ifneq ($(SOC_FAMILY),) +obj-y += soc/$(SOC_FAMILY)/ +else obj-y += soc/$(SOC_PATH)/ +endif + obj-y += core/ diff --git a/arch/arm/soc/nxp_kinetis/Kbuild b/arch/arm/soc/nxp_kinetis/Kbuild new file mode 100644 index 00000000000..f3eed19aafd --- /dev/null +++ b/arch/arm/soc/nxp_kinetis/Kbuild @@ -0,0 +1,2 @@ + +obj-y += $(SOC_SERIES)/ diff --git a/arch/arm/soc/st_stm32/Kbuild b/arch/arm/soc/st_stm32/Kbuild new file mode 100644 index 00000000000..f3eed19aafd --- /dev/null +++ b/arch/arm/soc/st_stm32/Kbuild @@ -0,0 +1,2 @@ + +obj-y += $(SOC_SERIES)/