From 75363cdd582400a24e6645ce2a8ef3b2ef0b179b Mon Sep 17 00:00:00 2001 From: Paritosh Dixit Date: Tue, 12 Dec 2023 15:17:37 +0000 Subject: [PATCH] device-tree: generic: Fix issue in use of objtree Fix issue in building the DTBs when KERNEL_OUTPUT and KERNEL_HEADERS are specified as different directories in the OOT modules' Makefile. In that case, srctree is set to KERNEL_HEADERS and objtree is set to KERNEL_OUTPUT, and device-tree Makefile should be able to handle the case when srctree and objtree are specified as different directories. Bug 4295120 Change-Id: I164288e957f791d8e8072926743d0a80e23da9cb Signed-off-by: Paritosh Dixit Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3033099 Reviewed-by: svc-sw-mobile-l4t Reviewed-by: svcacv Reviewed-by: Jonathan Hunter Reviewed-by: Brad Griffis GVS: Gerrit_Virtual_Submit --- device-tree/platform/generic-dts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device-tree/platform/generic-dts/Makefile b/device-tree/platform/generic-dts/Makefile index f8e07c4a..a0639f1b 100644 --- a/device-tree/platform/generic-dts/Makefile +++ b/device-tree/platform/generic-dts/Makefile @@ -1,7 +1,7 @@ # SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: GPL-2.0-only -objtree = $(srctree) +objtree ?= $(srctree) # Redefine the fixdep command cmd_and_fixdep = \