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 <anas.nashif@intel.com>
This commit is contained in:
parent
ef26bf7848
commit
7c27d8ab3a
3 changed files with 9 additions and 0 deletions
|
@ -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/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue