mirror of
https://github.com/Evolution-X-Devices/kernel_oneplus_sm8550-devicetrees
synced 2026-02-01 09:49:52 +00:00
Removes CONFIG_BUILD_ARM64_DT_OVERLAY check from makefile as it is deprecated. We will not throw a compilation error, in order to allow easy branching for new targets that don't have their files ready yet. Instead we throw a warning saying which target/file is missing and that camera-devicetree will not be enabled in the build log. CRs-Fixed: 2932495 Change-Id: I8fb56fe84e3f94f63f414892733f89afc701acfe Signed-off-by: Karthik Jayakumar <kjayakum@quicinc.com>
19 lines
796 B
Makefile
19 lines
796 B
Makefile
# Use current $(MSM_ARCH) to set config/ makefile path
|
|
CAMERA_TARGET_MKFILE_PATH := $(CAMERA_DEVICETREE_ROOT)/config/$(MSM_ARCH).mk
|
|
# Check to see if current target makefile exists
|
|
CAMERA_TARGET_EXISTS := $(or $(and $(wildcard $(CAMERA_TARGET_MKFILE_PATH)),y),n)
|
|
|
|
# Since Kernel SI can support multiple ARCH's this allows only the current selected target ARCH
|
|
# to compile.
|
|
ifeq ($(CAMERA_TARGET_EXISTS), y)
|
|
include $(CAMERA_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
|