Signed-off-by: Ram Nagesh <quic_ramnages@quicinc.com> Change-Id: Ia7dc3119a366e42166e2a5e7cce988a471704dff
19 lines
784 B
Makefile
19 lines
784 B
Makefile
# Use current $(MSM_ARCH) to set config/ makefile path
|
|
SYNX_TARGET_MKFILE_PATH := $(SYNX_DEVICETREE_ROOT)/config/$(MSM_ARCH).mk
|
|
# Check to see if current target makefile exists
|
|
SYNX_TARGET_EXISTS := $(or $(and $(wildcard $(SYNX_TARGET_MKFILE_PATH)),y),n)
|
|
|
|
# Since Kernel SI can support multiple ARCH's this allows only the current selected target ARCH
|
|
# to compile.
|
|
ifeq ($(SYNX_TARGET_EXISTS), y)
|
|
include $(SYNX_TARGET_MKFILE_PATH)
|
|
else
|
|
# Print a warning but do not throw an error to allow bring-up of new targets!
|
|
$(warning [$(MODNAME)] $(MSM_ARCH) is not a valid target, make sure config\ folder contains a makefile named $(MSM_ARCH).mk)
|
|
$(warning [$(MODNAME)] driver is NOT being enabled!)
|
|
endif
|
|
|
|
always-y := $(dtbo-y) $(dtb-y)
|
|
subdir-y := $(dts-dirs)
|
|
clean-files := *.dtb *.dtbo
|