mirror of
git://nv-tegra.nvidia.com/linux/kernel-devicetree.git
synced 2025-12-22 17:26:42 +03:00
script: Add support for DTC_FLAG
Add support to provide the DTC_FLAG for DTC compilation from makefile and create folder for temporary/ intermediate DT build file creation. This will help to build the DT available in hardware/nvidia. Bug 3787936 Change-Id: I79ca3f2532fd317ff004bc7290185d4878028fff Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2773804 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
@@ -223,6 +223,7 @@ DTC_INCLUDE += $(srctree)/scripts/dtc/include-prefixes
|
||||
|
||||
dtc_cpp_flags = -Wp,-MMD,$(depfile).pre.tmp -nostdinc \
|
||||
$(addprefix -I,$(DTC_INCLUDE)) \
|
||||
$(DTC_CPP_FLAGS) \
|
||||
-undef -D__DTS__
|
||||
|
||||
ifeq ($(CONFIG_LTO_CLANG),y)
|
||||
@@ -348,7 +349,8 @@ $(obj)/%.dtb.S: $(obj)/%.dtb FORCE
|
||||
$(call if_changed,dt_S_dtb)
|
||||
|
||||
quiet_cmd_dtc = DTC $@
|
||||
cmd_dtc = $(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
|
||||
cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
|
||||
$(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
|
||||
$(DTC) -o $@ -b 0 \
|
||||
$(addprefix -i,$(dir $<) $(DTC_INCLUDE)) $(DTC_FLAGS) \
|
||||
-d $(depfile).dtc.tmp $(dtc-tmp) ; \
|
||||
|
||||
Reference in New Issue
Block a user