From 0acb474aaf9eac84afde24537b205f37a7f199a9 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Tue, 5 Mar 2024 07:39:20 +0000 Subject: [PATCH] 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 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 --- generic-dts/Makefile | 2 +- legacy-dts/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generic-dts/Makefile b/generic-dts/Makefile index a0639f1..2915a71 100644 --- a/generic-dts/Makefile +++ b/generic-dts/Makefile @@ -13,7 +13,7 @@ include $(oottree)/scripts/Makefile.lib 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 ($(TOP),) diff --git a/legacy-dts/Makefile b/legacy-dts/Makefile index a458475..035f73f 100644 --- a/legacy-dts/Makefile +++ b/legacy-dts/Makefile @@ -17,7 +17,7 @@ DTC_FLAGS += -Wno-graph_endpoint 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 ($(TOP),)