public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH u-boot 1/2] powerpc/mpc85xx: socrates: Rename u-boot-socrates.bin to u-boot.bin
@ 2022-12-28 20:04 Pali Rohár
  2022-12-28 20:04 ` [PATCH u-boot 2/2] Makefile: Build working u-boot-dtb.bin target also for mpc85xx Pali Rohár
  2023-01-13 23:11 ` [PATCH v2 u-boot 1/3] powerpc/mpc85xx: socrates: Use u-boot.dtb instead of dts/dt.dtb Pali Rohár
  0 siblings, 2 replies; 37+ messages in thread
From: Pali Rohár @ 2022-12-28 20:04 UTC (permalink / raw)
  To: Heiko Schocher, Tom Rini; +Cc: u-boot

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).

So do not build broken u-boot-dtb.bin and u-boot.bin binaries and rename
board specific u-boot-socrates.bin binary to u-boot.bin.

Renaming requires to define a new socrates specific Makefile target for
u-boot.bin (via binman) and also changing output name in socrates binman
config file.

With this change U-Boot build process for socrates board also produces
final U-Boot binary in file u-boot.bin.

Signed-off-by: Pali Rohár <pali@kernel.org>
---
 Makefile                              | 11 +++++++++++
 arch/powerpc/dts/socrates-u-boot.dtsi |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index c977c906b036..117adb1cd8da 100644
--- a/Makefile
+++ b/Makefile
@@ -1201,22 +1201,30 @@ endif
 u-boot.bin: u-boot-fit-dtb.bin FORCE
 	$(call if_changed,copy)
 
+ifneq ($(CONFIG_TARGET_SOCRATES),y)
 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_TARGET_SOCRATES),y)
 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)
+ifneq ($(CONFIG_TARGET_SOCRATES),y)
 u-boot.bin: u-boot-dtb.bin FORCE
 	$(call if_changed,copy)
 endif
+endif
 
 else ifneq ($(CONFIG_MPC85XX_HAVE_RESET_VECTOR)$(CONFIG_OF_SEPARATE),yy)
+ifneq ($(CONFIG_TARGET_SOCRATES),y)
 u-boot.bin: u-boot-nodtb.bin FORCE
 	$(call if_changed,copy)
 endif
+endif
 
 # we call Makefile in arch/arm/mach-imx which
 # has targets which are dependent on targets defined
@@ -1601,6 +1609,9 @@ u-boot.bin: u-boot-nodtb.bin u-boot.dtb u-boot-br.bin FORCE
 OBJCOPYFLAGS_u-boot-br.bin := -O binary -j .bootpg -j .resetvec
 u-boot-br.bin: u-boot FORCE
 	$(call if_changed,objcopy)
+else ifeq ($(CONFIG_TARGET_SOCRATES),y)
+u-boot.bin: u-boot-nodtb.bin dts/dt.dtb FORCE
+	$(call if_changed,binman)
 endif
 
 quiet_cmd_ldr = LD      $@
diff --git a/arch/powerpc/dts/socrates-u-boot.dtsi b/arch/powerpc/dts/socrates-u-boot.dtsi
index 14a7c245dc46..eff413f5b4a2 100644
--- a/arch/powerpc/dts/socrates-u-boot.dtsi
+++ b/arch/powerpc/dts/socrates-u-boot.dtsi
@@ -5,7 +5,7 @@
  */
 / {
 	binman {
-		filename = "u-boot-socrates.bin";
+		filename = "u-boot.bin";
 		pad-byte = <0xff>;
 		// Place dtb one sector before u-boot-nodtb.bin
 		blob {
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2023-01-16  5:37 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-28 20:04 [PATCH u-boot 1/2] powerpc/mpc85xx: socrates: Rename u-boot-socrates.bin to u-boot.bin Pali Rohár
2022-12-28 20:04 ` [PATCH u-boot 2/2] Makefile: Build working u-boot-dtb.bin target also for mpc85xx Pali Rohár
2022-12-29 22:39   ` Simon Glass
2022-12-30 12:48     ` Pali Rohár
2022-12-30 15:21       ` Tom Rini
2022-12-30 15:24         ` Pali Rohár
2022-12-30 15:41           ` Tom Rini
2022-12-30 15:44             ` Pali Rohár
2022-12-30 15:49               ` Simon Glass
2022-12-30 16:06                 ` Tom Rini
2022-12-30 16:06                 ` Pali Rohár
2022-12-30 17:43                   ` Simon Glass
2022-12-30 17:55                     ` Pali Rohár
2022-12-30 18:51                       ` Simon Glass
2022-12-30 19:12                         ` Pali Rohár
2023-01-03 17:02                           ` Simon Glass
2023-01-03 17:05                             ` Pali Rohár
2023-01-07  0:13                               ` Simon Glass
2023-01-11  0:12                                 ` Pali Rohár
2023-01-11 10:08                                   ` Heiko Schocher
2023-01-11 12:52                                     ` Heiko Schocher
2023-01-11 14:01                                       ` Tom Rini
2023-01-11 17:55                                         ` Pali Rohár
2023-01-11 18:02                                           ` Pali Rohár
2023-01-11 18:13                                             ` Pali Rohár
2023-01-12  6:27                                               ` Heiko Schocher
2023-01-12 10:50                                                 ` Heiko Schocher
2023-01-12 17:39                                                   ` Pali Rohár
2023-01-13  5:52                                                     ` Heiko Schocher
2023-01-12  5:27                                         ` Heiko Schocher
2023-01-13 23:11 ` [PATCH v2 u-boot 1/3] powerpc/mpc85xx: socrates: Use u-boot.dtb instead of dts/dt.dtb Pali Rohár
2023-01-13 23:11   ` [PATCH v2 u-boot 2/3] powerpc/mpc85xx: socrates: Rename u-boot-socrates.bin to u-boot.bin Pali Rohár
2023-01-13 23:16     ` Tom Rini
2023-01-14 21:12       ` Pali Rohár
2023-01-14 21:24         ` Tom Rini
2023-01-16  5:37           ` Heiko Schocher
2023-01-13 23:11   ` [PATCH v2 u-boot 3/3] Makefile: Build working u-boot-dtb.bin target also for mpc85xx Pali Rohár

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox