device-tree: Add OS_LINUX as the DTC flag

Add device tree compiler flag as OS_LINUX for building the
DT for linux.

Bug 3081230

Change-Id: I7b5efc8840988f7afb9bcd2ee7c1c0997d4f8c3a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3089477
Reviewed-on: https://git-master.nvidia.com/r/c/linux/kernel-devicetree/+/3164878
This commit is contained in:
Laxman Dewangan
2024-03-05 07:39:20 +00:00
committed by mobile promotions
parent 19952c8e25
commit 0acb474aaf
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ include $(oottree)/scripts/Makefile.lib
DTC_CPP_FLAGS += $(EXTRA_CPP_FLAGS) DTC_CPP_FLAGS += $(EXTRA_CPP_FLAGS)
DTC_CPP_FLAGS += -DLINUX_VERSION=600 -DTEGRA_HOST1X_DT_VERSION=2 DTC_CPP_FLAGS += -DLINUX_VERSION=600 -DTEGRA_HOST1X_DT_VERSION=2 -DOS_LINUX
ifneq ($(findstring ack_src,$(NV_BUILD_KERNEL_OPTIONS)),) ifneq ($(findstring ack_src,$(NV_BUILD_KERNEL_OPTIONS)),)
ifneq ($(TOP),) ifneq ($(TOP),)

View File

@@ -17,7 +17,7 @@ DTC_FLAGS += -Wno-graph_endpoint
DTC_CPP_FLAGS += $(EXTRA_CPP_FLAGS) DTC_CPP_FLAGS += $(EXTRA_CPP_FLAGS)
DTC_CPP_FLAGS += -DLINUX_VERSION=600 -DTEGRA_HOST1X_DT_VERSION=2 DTC_CPP_FLAGS += -DLINUX_VERSION=600 -DTEGRA_HOST1X_DT_VERSION=2 -DOS_LINUX
ifneq ($(findstring ack_src,$(NV_BUILD_KERNEL_OPTIONS)),) ifneq ($(findstring ack_src,$(NV_BUILD_KERNEL_OPTIONS)),)
ifneq ($(TOP),) ifneq ($(TOP),)