From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 11 Feb 2022 08:23:47 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nIQHT-00Ccc3-Ru for lore@lore.pengutronix.de; Fri, 11 Feb 2022 08:23:47 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nIQHS-0000nL-Sl; Fri, 11 Feb 2022 08:23:46 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIQHN-0000n0-2f; Fri, 11 Feb 2022 08:23:41 +0100 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nIQHL-00FsHn-Pu; Fri, 11 Feb 2022 08:23:39 +0100 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nIQHJ-005kzV-QY; Fri, 11 Feb 2022 08:23:37 +0100 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Fri, 11 Feb 2022 08:23:26 +0100 Message-Id: <20220211072327.1372222-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220211072143.GA1873@pengutronix.de> References: <20220211072143.GA1873@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH] ptxd_make_dtb: fix dtc selection X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Michael Olbrich , rich_ogrady@grayhill.com, flix.ptxdist@benfm.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false The dtc is located in the build dir not the source dir of the kernel. Signed-off-by: Michael Olbrich --- rules/post/ptxd_make_world_dtbo.make | 3 ++- scripts/lib/ptxd_make_world_dtb.sh | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/rules/post/ptxd_make_world_dtbo.make b/rules/post/ptxd_make_world_dtbo.make index 61babc653660..e484f35c59b5 100644 --- a/rules/post/ptxd_make_world_dtbo.make +++ b/rules/post/ptxd_make_world_dtbo.make @@ -11,7 +11,8 @@ world/dtbo/env = \ pkg_dtso_path="$($(1)_DTSO_PATH)" \ pkg_dtso="$($(1)_DTSO)" \ pkg_dtbo_dir="$($(1)_DTBO_DIR)" \ - pkg_kernel_src="$($(1)_KERNEL_DIR)" \ + pkg_kernel_dir="$($(1)_KERNEL_DIR)" \ + pkg_kernel_build_dir="$($(1)_KERNEL_DIR)" \ pkg_arch="$(GENERIC_KERNEL_ARCH)" world/dtbo = \ diff --git a/scripts/lib/ptxd_make_world_dtb.sh b/scripts/lib/ptxd_make_world_dtb.sh index f78d2f885114..f2eee99e4a95 100644 --- a/scripts/lib/ptxd_make_world_dtb.sh +++ b/scripts/lib/ptxd_make_world_dtb.sh @@ -12,9 +12,10 @@ ptxd_make_dtb() { dts="${dtb_source}" dtb="${dtb_target}" - dtb_kernel_dir="${pkg_kernel_src:-${pkg_dir}}" + dtb_kernel_dir="${pkg_kernel_dir:-${pkg_dir}}" + dtb_kernel_build_dir="${pkg_kernel_build_dir:-${pkg_build_dir}}" - dtc="${dtb_kernel_dir}/scripts/dtc/dtc" + dtc="${dtb_kernel_build_dir}/scripts/dtc/dtc" if [ ! -x "${dtc}" ]; then dtc=dtc fi -- 2.30.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de