Commit 7c27d8ab authored by Anas Nashif's avatar Anas Nashif Committed by Anas Nashif
Browse files

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: default avatarAnas Nashif <anas.nashif@intel.com>
parent ef26bf78
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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/
+2 −0
Original line number Diff line number Diff line

obj-y += $(SOC_SERIES)/
+2 −0
Original line number Diff line number Diff line

obj-y += $(SOC_SERIES)/