Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BB045C54E94 for ; Tue, 24 Jan 2023 17:07:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9903E856C4; Tue, 24 Jan 2023 18:07:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1674580057; bh=qAbJAogyaCWYbxIM522cszA7SjQc8Tm8AOCu0S0w00Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=xQZj/ETbRhEGOFCrG8TbVbyIbnc2rn5tNdwcbKkbuH1LBCUT8USxEIpyFCQUpycd1 hECkSwsGVvi3R25a2P5ks74ekDRUJtDb18VV2T+4hhHgUFyLWbSTsGsD4QNx2ZEWH5 X4FKjaOG7K3VbGM2Q9FenR8JZ1umUgbG23ussVcP9cMBI+bcc/QMxVrbgjclPexo2m CGpD/DQB4lGVsCk4+Ar95F9LVPdiaRDKVa4vtAUXrIrQkLcrBvW4lT5flIqfgWe4OG DF+ixZ/MpdS/uz9goxyYfzAeLT+8/FQMqok6lzJhCeMfaiTsssxcTDSo/T2QkOGXpn Vk2wH1Ajyt4MQ== Received: from mail-internal.denx.de (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: noc@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 6C41085662; Tue, 24 Jan 2023 18:07:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1674580038; bh=qAbJAogyaCWYbxIM522cszA7SjQc8Tm8AOCu0S0w00Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EMMtQpiybhhgHCHr543JQsa2H7uKrUwZhuIlEDNpahvNtYD/pwDum4UfQzvKbYY9I 3A7sUm8Y+MxkKKmrFIgzmbAxZArM/zvzPeeJvWYCeOcQT87Rbhx36AOWBnncIk28ek G7wYb7soLBgiUcu3kq5GTKYQZgBWWBxXMtismp6jAu952HxF2wvYaHmiD7Car/v++s 1JbbZxyvQhFMzmjzwZatuiwVPquwGKhqwwJ9Hkp236PJEwuD8brNK4csoyeyxz2DYB bRpPnoVeS36jlbdE+CwrdCVmPBSVGZh3EPB7wLnOv3Q0tTGioY3lZS/+7it81CydH2 sA0oN/kcKEVOQ== Received: from pollux.denx.de (pollux [192.168.1.1]) by mail-internal.denx.de (Postfix) with ESMTPS id A48E618038A; Tue, 24 Jan 2023 18:07:04 +0100 (CET) Received: by pollux.denx.de (Postfix, from userid 515) id 9D49A1A009F; Tue, 24 Jan 2023 18:07:04 +0100 (CET) From: Heiko Schocher To: U-Boot Mailing List Cc: pali@kernel.org, Heiko Schocher , Heinrich Schuchardt , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Quentin Schulz , Simon Glass Subject: [PATCH v1 02/12] powerpc/mpc85xx: socrates: rework build process Date: Tue, 24 Jan 2023 18:06:50 +0100 Message-Id: <20230124170700.3889830-3-hs@denx.de> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20230124170700.3889830-1-hs@denx.de> References: <20230124170700.3889830-1-hs@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean U-Boot build process for socrates board produces final U-Boot binary in file u-boot-socrates.bin (by binman) And as a bonus it produces two unusable broken binaries u-boot-dtb.bin and u-boot.bin (by Makefile). Clean this up, so final U-Boot binary is in u-boot-dtb.bin Signed-off-by: Pali Rohár Signed-off-by: Heiko Schocher --- Makefile | 11 +++++++---- arch/powerpc/dts/socrates-u-boot.dtsi | 4 ++-- arch/powerpc/dts/u-boot.dtsi | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index eb354c045c..3472b59920 100644 --- a/Makefile +++ b/Makefile @@ -1190,19 +1190,22 @@ endif u-boot.bin: u-boot-fit-dtb.bin FORCE $(call if_changed,copy) +ifneq ($(CONFIG_MPC85XX_HAVE_RESET_VECTOR)$(CONFIG_OF_SEPARATE),yy) u-boot-dtb.bin: u-boot-nodtb.bin dts/dt.dtb FORCE $(call if_changed,cat) +endif else ifeq ($(CONFIG_OF_SEPARATE).$(CONFIG_OF_OMIT_DTB),y.) + +ifneq ($(CONFIG_MPC85XX_HAVE_RESET_VECTOR)$(CONFIG_OF_SEPARATE),yy) u-boot-dtb.bin: u-boot-nodtb.bin dts/dt.dtb FORCE $(call if_changed,cat) +endif -ifneq ($(CONFIG_MPC85XX_HAVE_RESET_VECTOR)$(CONFIG_OF_SEPARATE),yy) u-boot.bin: u-boot-dtb.bin FORCE $(call if_changed,copy) -endif -else ifneq ($(CONFIG_MPC85XX_HAVE_RESET_VECTOR)$(CONFIG_OF_SEPARATE),yy) +else u-boot.bin: u-boot-nodtb.bin FORCE $(call if_changed,copy) endif @@ -1580,7 +1583,7 @@ u-boot-with-nand-spl.sfp: u-boot-spl-padx4.sfp u-boot.img FORCE endif ifeq ($(CONFIG_MPC85XX_HAVE_RESET_VECTOR)$(CONFIG_OF_SEPARATE),yy) -u-boot.bin: u-boot-nodtb.bin u-boot.dtb u-boot-br.bin FORCE +u-boot-dtb.bin: u-boot-nodtb.bin u-boot.dtb u-boot-br.bin FORCE $(call if_changed,binman) OBJCOPYFLAGS_u-boot-br.bin := -O binary -j .bootpg -j .resetvec diff --git a/arch/powerpc/dts/socrates-u-boot.dtsi b/arch/powerpc/dts/socrates-u-boot.dtsi index 14a7c245dc..f6af611b51 100644 --- a/arch/powerpc/dts/socrates-u-boot.dtsi +++ b/arch/powerpc/dts/socrates-u-boot.dtsi @@ -5,11 +5,11 @@ */ / { binman { - filename = "u-boot-socrates.bin"; + filename = "u-boot-dtb.bin"; pad-byte = <0xff>; // Place dtb one sector before u-boot-nodtb.bin blob { - filename = "dts/dt.dtb"; + filename = "u-boot.dtb"; }; u-boot-nodtb { filename = "u-boot-nodtb.bin"; diff --git a/arch/powerpc/dts/u-boot.dtsi b/arch/powerpc/dts/u-boot.dtsi index 6b7375cff2..c39ab6f0ca 100644 --- a/arch/powerpc/dts/u-boot.dtsi +++ b/arch/powerpc/dts/u-boot.dtsi @@ -9,7 +9,7 @@ / { binman { - filename = "u-boot.bin"; + filename = "u-boot-dtb.bin"; skip-at-start = ; sort-by-offset; pad-byte = <0xff>; -- 2.37.3