From patchwork Tue Feb 27 18:12:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Maciej Nowak X-Patchwork-Id: 1905366 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=2PfGY8Gn; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=terefe.re header.i=@terefe.re header.a=rsa-sha256 header.s=default header.b=AVAdZBmA; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Tklyg2MRmz23qP for ; Wed, 28 Feb 2024 05:15:22 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ydZaOvdH9kG7VkBGo8mh/ftV2jT5ZHhdFPUXU29hzm8=; b=2PfGY8Gn+5DXbu Kud1+VX13aiLHP/YmL2Cq6Khn4Z278x4915c1YdEer4kPHoUKThSkKdT0WXf6SF5RzUClMbYKLm31 RFAGuJ+dbfVDFnQzXVcJwRZVqiYFTtMFa67VgLdM1QRt1XWPj8A41gwxMte0uEmW+2sGAPQkfvHLk VAZn5Bt/ZhI2OH9kJEfaOUtBsFR6YzQL//FAWZIikG+nfaVn5XgcFKT/VD34I8fTEGXrGJ6o7Wb20 6vGeWa/aCIHJqeAoKy9YCXDAJSPSv4ro9W9rL90hze7QfU7MjRGkruJXw0vK5yh3Sslq+aql6Pau8 mp5bQEBbVkd12903LigQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rf1wu-00000006NQB-08F8; Tue, 27 Feb 2024 18:13:04 +0000 Received: from terefe.re ([5.255.96.200]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rf1wo-00000006NMY-3P46 for openwrt-devel@lists.openwrt.org; Tue, 27 Feb 2024 18:13:01 +0000 Received: from localhost.localdomain (unknown [212.106.161.100]) by terefe.re (Postfix) with ESMTPSA id EE2DA20194; Tue, 27 Feb 2024 19:12:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=terefe.re; s=default; t=1709057570; bh=cUoYkhDru565kPtG0X4uLS7C9t5+EihR/FdmwFvf4Q4=; h=From:To:Cc:Subject:Date:From; b=AVAdZBmAI5ou1KObw9hD0QIz4lIm+zjVgTY8S92oETfqvGa7eNx7moHIJKOi2n76m FsL6BHPkPM8U1RMz+hQIlmm3r2d5RTokRhVL4RWj6NUU4fWZAZ0Pb3zHr0itWGeWRS t3m+R0D2g0pPm8mZVl4eqFcrvMlKdwS2reG0NvCIGvM36X23Vl+UXJrh3elcrP6IId +NPZwCgSWESiFGdzrNdnDLKtLoZBJ6+lu+JkGQKU/13iwznmU4sz82PLmJg3+BBJSN lopV0nrBwCVi5mm7MBhMAlE03EKmf+r4go1LBNvyvwb5hoU9uz1+zcJLmuSotRPDn1 7vApshxu3KguA== From: Tomasz Maciej Nowak To: openwrt-devel@lists.openwrt.org Cc: Tomasz Maciej Nowak Subject: [PATCH] imagebuilder: include device tree bindings Date: Tue, 27 Feb 2024 19:12:38 +0100 Message-ID: <20240227181238.114931-1-tmn505@terefe.re> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240227_101259_436988_E23995FF X-CRM114-Status: UNSURE ( 8.45 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Tomasz Maciej Nowak Image Builder includes target dts which might reference device tree bindings for various integrated peripherals and trying to build dtb without access to bindings will fail. Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Tomasz Maciej Nowak Image Builder includes target dts which might reference device tree bindings for various integrated peripherals and trying to build dtb without access to bindings will fail. Signed-off-by: Tomasz Maciej Nowak --- target/imagebuilder/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/target/imagebuilder/Makefile b/target/imagebuilder/Makefile index c3b6c9c10c58..fb187c90228c 100644 --- a/target/imagebuilder/Makefile +++ b/target/imagebuilder/Makefile @@ -26,7 +26,7 @@ all: compile $(BIN_DIR)/$(IB_NAME).tar.xz: clean rm -rf $(PKG_BUILD_DIR) - mkdir -p $(IB_KDIR) $(IB_LDIR) $(PKG_BUILD_DIR)/staging_dir/host/lib \ + mkdir -p $(IB_KDIR) $(IB_LDIR)/include $(PKG_BUILD_DIR)/staging_dir/host/lib \ $(PKG_BUILD_DIR)/target/linux $(PKG_BUILD_DIR)/scripts $(IB_DTSDIR) -cp $(TOPDIR)/.config $(PKG_BUILD_DIR)/.config $(SED) 's/^CONFIG_BINARY_FOLDER=.*/# CONFIG_BINARY_FOLDER is not set/' $(PKG_BUILD_DIR)/.config @@ -99,6 +99,9 @@ endif if [ -d $(LINUX_DIR)/arch/$(LINUX_KARCH)/boot/dts ]; then \ $(CP) -L $(LINUX_DIR)/arch/$(LINUX_KARCH)/boot/dts/* $(IB_DTSDIR); \ fi + if [ -d $(LINUX_DIR)/include/dt-bindings ]; then \ + $(CP) -L $(LINUX_DIR)/include/dt-bindings $(IB_LDIR)/include; \ + fi $(SED) 's,^# REVISION:=.*,REVISION:=$(REVISION),g' $(PKG_BUILD_DIR)/include/version.mk $(SED) 's,^# SOURCE_DATE_EPOCH:=.*,SOURCE_DATE_EPOCH:=$(SOURCE_DATE_EPOCH),g' $(PKG_BUILD_DIR)/include/version.mk $(SED) '/LINUX_VERMAGIC:=/ { s,unknown,$(LINUX_VERMAGIC),g }' $(PKG_BUILD_DIR)/include/kernel.mk