All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/zynq-boot-bin: drop legacy package
@ 2022-01-11 21:17 Yann E. MORIN
  2022-01-11 22:00 ` Luca Ceresoli
  2022-02-05 21:18 ` Arnout Vandecappelle
  0 siblings, 2 replies; 4+ messages in thread
From: Yann E. MORIN @ 2022-01-11 21:17 UTC (permalink / raw)
  To: buildroot; +Cc: Luca Ceresoli, James Hilliard, Yann E. MORIN, Thomas Petazzoni

Since commit 6dd5a33c485c (zynq_zed: bump U-Boot to xilinx-v2016.2), we
have no in-tree users of zynq-boot-bin.py, as U-Boot has since v2016.01
been able to natively generate Xilinx images.

zynq-boot-bin.py is python2-only and there is zero chance that upstream
will move it to python3. WE could carry a pytohn3-compatible copy, but
that tool is now virtually unused.

6 years have passed now; let it rest in peace at last.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: James Hilliard <james.hilliard1@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Luca Ceresoli <luca@lucaceresoli.net>
---
 Config.in.legacy                         |  7 +++++++
 boot/uboot/Config.in                     | 12 ------------
 boot/uboot/uboot.mk                      | 11 -----------
 package/zynq-boot-bin/zynq-boot-bin.hash |  2 --
 package/zynq-boot-bin/zynq-boot-bin.mk   | 22 ----------------------
 5 files changed, 7 insertions(+), 47 deletions(-)
 delete mode 100644 package/zynq-boot-bin/zynq-boot-bin.hash
 delete mode 100644 package/zynq-boot-bin/zynq-boot-bin.mk

diff --git a/Config.in.legacy b/Config.in.legacy
index b3e8d5a6d8..16d5ac40b3 100644
--- a/Config.in.legacy
+++ b/Config.in.legacy
@@ -146,6 +146,13 @@ endif
 
 comment "Legacy options removed in 2022.02"
 
+config BR2_TARGET_UBOOT_ZYNQ_IMAGE
+	bool "Generate image for Xilinx Zynq"
+	select BR2_LEGACY
+	help
+	  Since 2016.1, U-Boot can natively generate the Zynq boot image,
+	  and so the Xilinx-specific format and tools have been removed.
+
 config BR2_KERNEL_HEADERS_5_14
 	bool "kernel headers version 5.14.x are no longer supported"
 	select BR2_LEGACY
diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
index c630fc6552..1fd4dede92 100644
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -455,18 +455,6 @@ config BR2_TARGET_UBOOT_SPL_NAME
 	  and TPL name is tpl/u-boot-tpl.bin but not always. SPL name is
 	  MLO on OMAP and SPL on i.MX6 for example.
 
-config BR2_TARGET_UBOOT_ZYNQ_IMAGE
-	bool "Generate image for Xilinx Zynq"
-	depends on BR2_arm
-	depends on BR2_TARGET_UBOOT_SPL
-	depends on BR2_TARGET_UBOOT_FORMAT_DTB_IMG
-	help
-	  Generate the BOOT.BIN file from U-Boot's SPL. The image
-	  boots the Xilinx Zynq chip without any FPGA bitstream.
-	  A bitstream can be loaded by the U-Boot. The SPL searchs
-	  for u-boot-dtb.img file so this U-Boot format is required
-	  to be set.
-
 config BR2_TARGET_UBOOT_ZYNQMP
 	bool "Boot on the Xilinx ZynqMP SoCs"
 	depends on BR2_aarch64
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index 574fc7089a..a61d1c8135 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -432,17 +432,6 @@ UBOOT_POST_BUILD_HOOKS += UBOOT_BUILD_OMAP_IFT
 UBOOT_POST_INSTALL_IMAGES_HOOKS += UBOOT_INSTALL_OMAP_IFT_IMAGE
 endif
 
-ifeq ($(BR2_TARGET_UBOOT_ZYNQ_IMAGE),y)
-define UBOOT_GENERATE_ZYNQ_IMAGE
-	$(HOST_DIR)/bin/python2 \
-		$(HOST_DIR)/bin/zynq-boot-bin.py \
-		-u $(@D)/$(firstword $(call qstrip,$(BR2_TARGET_UBOOT_SPL_NAME))) \
-		-o $(BINARIES_DIR)/BOOT.BIN
-endef
-UBOOT_DEPENDENCIES += host-zynq-boot-bin
-UBOOT_POST_INSTALL_IMAGES_HOOKS += UBOOT_GENERATE_ZYNQ_IMAGE
-endif
-
 ifeq ($(BR2_TARGET_UBOOT_ALTERA_SOCFPGA_IMAGE_CRC),y)
 ifeq ($(BR2_TARGET_UBOOT_SPL),y)
 UBOOT_CRC_ALTERA_SOCFPGA_INPUT_IMAGES = $(call qstrip,$(BR2_TARGET_UBOOT_SPL_NAME))
diff --git a/package/zynq-boot-bin/zynq-boot-bin.hash b/package/zynq-boot-bin/zynq-boot-bin.hash
deleted file mode 100644
index 0bc23de197..0000000000
--- a/package/zynq-boot-bin/zynq-boot-bin.hash
+++ /dev/null
@@ -1,2 +0,0 @@
-# From https://raw.githubusercontent.com/Xilinx/u-boot-xlnx
-sha1	940331ee02b0007099effa61e382fe7ea4174054	zynq-boot-bin.py
diff --git a/package/zynq-boot-bin/zynq-boot-bin.mk b/package/zynq-boot-bin/zynq-boot-bin.mk
deleted file mode 100644
index deba5f4096..0000000000
--- a/package/zynq-boot-bin/zynq-boot-bin.mk
+++ /dev/null
@@ -1,22 +0,0 @@
-################################################################################
-#
-# zynq-boot-bin
-#
-################################################################################
-
-ZYNQ_BOOT_BIN_VERSION = 2015.1
-ZYNQ_BOOT_BIN_SOURCE = zynq-boot-bin.py
-ZYNQ_BOOT_BIN_SITE = https://raw.githubusercontent.com/Xilinx/u-boot-xlnx/xilinx-v$(ZYNQ_BOOT_BIN_VERSION)/tools
-ZYNQ_BOOT_BIN_LICENSE = GPL-3.0+
-
-HOST_ZYNQ_BOOT_BIN_DEPENDENCIES = host-python
-
-define HOST_ZYNQ_BOOT_BIN_EXTRACT_CMDS
-	cp $(HOST_ZYNQ_BOOT_BIN_DL_DIR)/$(ZYNQ_BOOT_BIN_SOURCE) $(@D)
-endef
-
-define HOST_ZYNQ_BOOT_BIN_INSTALL_CMDS
-	$(INSTALL) -D -m 0755 $(@D)/$(ZYNQ_BOOT_BIN_SOURCE) $(HOST_DIR)/bin/$(ZYNQ_BOOT_BIN_SOURCE)
-endef
-
-$(eval $(host-generic-package))
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH] package/zynq-boot-bin: drop legacy package
  2022-01-11 21:17 [Buildroot] [PATCH] package/zynq-boot-bin: drop legacy package Yann E. MORIN
@ 2022-01-11 22:00 ` Luca Ceresoli
  2022-01-11 22:10   ` James Hilliard
  2022-02-05 21:18 ` Arnout Vandecappelle
  1 sibling, 1 reply; 4+ messages in thread
From: Luca Ceresoli @ 2022-01-11 22:00 UTC (permalink / raw)
  To: Yann E. MORIN, buildroot; +Cc: James Hilliard, Thomas Petazzoni

Hi Yann,

On 11/01/22 22:17, Yann E. MORIN wrote:
> Since commit 6dd5a33c485c (zynq_zed: bump U-Boot to xilinx-v2016.2), we
> have no in-tree users of zynq-boot-bin.py, as U-Boot has since v2016.01
> been able to natively generate Xilinx images.
> 
> zynq-boot-bin.py is python2-only and there is zero chance that upstream
> will move it to python3. WE could carry a pytohn3-compatible copy, but

s/pytohn3/python3/

> that tool is now virtually unused.
> 
> 6 years have passed now; let it rest in peace at last.
> 
> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> Cc: James Hilliard <james.hilliard1@gmail.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
> Cc: Luca Ceresoli <luca@lucaceresoli.net>
> ---
>  Config.in.legacy                         |  7 +++++++
>  boot/uboot/Config.in                     | 12 ------------
>  boot/uboot/uboot.mk                      | 11 -----------
>  package/zynq-boot-bin/zynq-boot-bin.hash |  2 --
>  package/zynq-boot-bin/zynq-boot-bin.mk   | 22 ----------------------
>  5 files changed, 7 insertions(+), 47 deletions(-)
>  delete mode 100644 package/zynq-boot-bin/zynq-boot-bin.hash
>  delete mode 100644 package/zynq-boot-bin/zynq-boot-bin.mk
> 
> diff --git a/Config.in.legacy b/Config.in.legacy
> index b3e8d5a6d8..16d5ac40b3 100644
> --- a/Config.in.legacy
> +++ b/Config.in.legacy
> @@ -146,6 +146,13 @@ endif
>  
>  comment "Legacy options removed in 2022.02"
>  
> +config BR2_TARGET_UBOOT_ZYNQ_IMAGE
> +	bool "Generate image for Xilinx Zynq"
> +	select BR2_LEGACY
> +	help
> +	  Since 2016.1, U-Boot can natively generate the Zynq boot image,
> +	  and so the Xilinx-specific format and tools have been removed.

As said in the discussion after James' patch, I would add something like:

  Should you still need zynq-boot-bin.py you can download it at <URL>
  and call it from a post-build script. You will need to install python2
  on your host to run it.

-- 
Luca
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH] package/zynq-boot-bin: drop legacy package
  2022-01-11 22:00 ` Luca Ceresoli
@ 2022-01-11 22:10   ` James Hilliard
  0 siblings, 0 replies; 4+ messages in thread
From: James Hilliard @ 2022-01-11 22:10 UTC (permalink / raw)
  To: Luca Ceresoli; +Cc: Yann E. MORIN, Thomas Petazzoni, buildroot

On Tue, Jan 11, 2022 at 3:00 PM Luca Ceresoli <luca@lucaceresoli.net> wrote:
>
> Hi Yann,
>
> On 11/01/22 22:17, Yann E. MORIN wrote:
> > Since commit 6dd5a33c485c (zynq_zed: bump U-Boot to xilinx-v2016.2), we
> > have no in-tree users of zynq-boot-bin.py, as U-Boot has since v2016.01
> > been able to natively generate Xilinx images.
> >
> > zynq-boot-bin.py is python2-only and there is zero chance that upstream
> > will move it to python3. WE could carry a pytohn3-compatible copy, but
>
> s/pytohn3/python3/
>
> > that tool is now virtually unused.
> >
> > 6 years have passed now; let it rest in peace at last.
> >
> > Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> > Cc: James Hilliard <james.hilliard1@gmail.com>
> > Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> > Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
> > Cc: Luca Ceresoli <luca@lucaceresoli.net>
> > ---
> >  Config.in.legacy                         |  7 +++++++
> >  boot/uboot/Config.in                     | 12 ------------
> >  boot/uboot/uboot.mk                      | 11 -----------
> >  package/zynq-boot-bin/zynq-boot-bin.hash |  2 --
> >  package/zynq-boot-bin/zynq-boot-bin.mk   | 22 ----------------------
> >  5 files changed, 7 insertions(+), 47 deletions(-)
> >  delete mode 100644 package/zynq-boot-bin/zynq-boot-bin.hash
> >  delete mode 100644 package/zynq-boot-bin/zynq-boot-bin.mk
> >
> > diff --git a/Config.in.legacy b/Config.in.legacy
> > index b3e8d5a6d8..16d5ac40b3 100644
> > --- a/Config.in.legacy
> > +++ b/Config.in.legacy
> > @@ -146,6 +146,13 @@ endif
> >
> >  comment "Legacy options removed in 2022.02"
> >
> > +config BR2_TARGET_UBOOT_ZYNQ_IMAGE
> > +     bool "Generate image for Xilinx Zynq"
> > +     select BR2_LEGACY
> > +     help
> > +       Since 2016.1, U-Boot can natively generate the Zynq boot image,
> > +       and so the Xilinx-specific format and tools have been removed.
>
> As said in the discussion after James' patch, I would add something like:
>
>   Should you still need zynq-boot-bin.py you can download it at <URL>
>   and call it from a post-build script. You will need to install python2
>   on your host to run it.

I uploaded the python3 version here if anyone needs it:
https://gist.githubusercontent.com/jameshilliard/e09235dfc6f96c11418a134e6ebf7890/raw/135b7480c405ae8a77a9db615e495f9a9f2d3242/zynq-boot-bin.py

>
> --
> Luca
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH] package/zynq-boot-bin: drop legacy package
  2022-01-11 21:17 [Buildroot] [PATCH] package/zynq-boot-bin: drop legacy package Yann E. MORIN
  2022-01-11 22:00 ` Luca Ceresoli
@ 2022-02-05 21:18 ` Arnout Vandecappelle
  1 sibling, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2022-02-05 21:18 UTC (permalink / raw)
  To: Yann E. MORIN, buildroot; +Cc: Luca Ceresoli, James Hilliard, Thomas Petazzoni



On 11/01/2022 22:17, Yann E. MORIN wrote:
> Since commit 6dd5a33c485c (zynq_zed: bump U-Boot to xilinx-v2016.2), we
> have no in-tree users of zynq-boot-bin.py, as U-Boot has since v2016.01
> been able to natively generate Xilinx images.
> 
> zynq-boot-bin.py is python2-only and there is zero chance that upstream
> will move it to python3. WE could carry a pytohn3-compatible copy, but
> that tool is now virtually unused.
> 
> 6 years have passed now; let it rest in peace at last.
> 
> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> Cc: James Hilliard <james.hilliard1@gmail.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
> Cc: Luca Ceresoli <luca@lucaceresoli.net>

  Applied to master, with an extension of the help text as suggested by Luca and 
pointing to the URL provided by James.

  Thanks!

  Regards,
  Arnout

> ---
>   Config.in.legacy                         |  7 +++++++
>   boot/uboot/Config.in                     | 12 ------------
>   boot/uboot/uboot.mk                      | 11 -----------
>   package/zynq-boot-bin/zynq-boot-bin.hash |  2 --
>   package/zynq-boot-bin/zynq-boot-bin.mk   | 22 ----------------------
>   5 files changed, 7 insertions(+), 47 deletions(-)
>   delete mode 100644 package/zynq-boot-bin/zynq-boot-bin.hash
>   delete mode 100644 package/zynq-boot-bin/zynq-boot-bin.mk
> 
> diff --git a/Config.in.legacy b/Config.in.legacy
> index b3e8d5a6d8..16d5ac40b3 100644
> --- a/Config.in.legacy
> +++ b/Config.in.legacy
> @@ -146,6 +146,13 @@ endif
>   
>   comment "Legacy options removed in 2022.02"
>   
> +config BR2_TARGET_UBOOT_ZYNQ_IMAGE
> +	bool "Generate image for Xilinx Zynq"
> +	select BR2_LEGACY
> +	help
> +	  Since 2016.1, U-Boot can natively generate the Zynq boot image,
> +	  and so the Xilinx-specific format and tools have been removed.
> +
>   config BR2_KERNEL_HEADERS_5_14
>   	bool "kernel headers version 5.14.x are no longer supported"
>   	select BR2_LEGACY
> diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
> index c630fc6552..1fd4dede92 100644
> --- a/boot/uboot/Config.in
> +++ b/boot/uboot/Config.in
> @@ -455,18 +455,6 @@ config BR2_TARGET_UBOOT_SPL_NAME
>   	  and TPL name is tpl/u-boot-tpl.bin but not always. SPL name is
>   	  MLO on OMAP and SPL on i.MX6 for example.
>   
> -config BR2_TARGET_UBOOT_ZYNQ_IMAGE
> -	bool "Generate image for Xilinx Zynq"
> -	depends on BR2_arm
> -	depends on BR2_TARGET_UBOOT_SPL
> -	depends on BR2_TARGET_UBOOT_FORMAT_DTB_IMG
> -	help
> -	  Generate the BOOT.BIN file from U-Boot's SPL. The image
> -	  boots the Xilinx Zynq chip without any FPGA bitstream.
> -	  A bitstream can be loaded by the U-Boot. The SPL searchs
> -	  for u-boot-dtb.img file so this U-Boot format is required
> -	  to be set.
> -
>   config BR2_TARGET_UBOOT_ZYNQMP
>   	bool "Boot on the Xilinx ZynqMP SoCs"
>   	depends on BR2_aarch64
> diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
> index 574fc7089a..a61d1c8135 100644
> --- a/boot/uboot/uboot.mk
> +++ b/boot/uboot/uboot.mk
> @@ -432,17 +432,6 @@ UBOOT_POST_BUILD_HOOKS += UBOOT_BUILD_OMAP_IFT
>   UBOOT_POST_INSTALL_IMAGES_HOOKS += UBOOT_INSTALL_OMAP_IFT_IMAGE
>   endif
>   
> -ifeq ($(BR2_TARGET_UBOOT_ZYNQ_IMAGE),y)
> -define UBOOT_GENERATE_ZYNQ_IMAGE
> -	$(HOST_DIR)/bin/python2 \
> -		$(HOST_DIR)/bin/zynq-boot-bin.py \
> -		-u $(@D)/$(firstword $(call qstrip,$(BR2_TARGET_UBOOT_SPL_NAME))) \
> -		-o $(BINARIES_DIR)/BOOT.BIN
> -endef
> -UBOOT_DEPENDENCIES += host-zynq-boot-bin
> -UBOOT_POST_INSTALL_IMAGES_HOOKS += UBOOT_GENERATE_ZYNQ_IMAGE
> -endif
> -
>   ifeq ($(BR2_TARGET_UBOOT_ALTERA_SOCFPGA_IMAGE_CRC),y)
>   ifeq ($(BR2_TARGET_UBOOT_SPL),y)
>   UBOOT_CRC_ALTERA_SOCFPGA_INPUT_IMAGES = $(call qstrip,$(BR2_TARGET_UBOOT_SPL_NAME))
> diff --git a/package/zynq-boot-bin/zynq-boot-bin.hash b/package/zynq-boot-bin/zynq-boot-bin.hash
> deleted file mode 100644
> index 0bc23de197..0000000000
> --- a/package/zynq-boot-bin/zynq-boot-bin.hash
> +++ /dev/null
> @@ -1,2 +0,0 @@
> -# From https://raw.githubusercontent.com/Xilinx/u-boot-xlnx
> -sha1	940331ee02b0007099effa61e382fe7ea4174054	zynq-boot-bin.py
> diff --git a/package/zynq-boot-bin/zynq-boot-bin.mk b/package/zynq-boot-bin/zynq-boot-bin.mk
> deleted file mode 100644
> index deba5f4096..0000000000
> --- a/package/zynq-boot-bin/zynq-boot-bin.mk
> +++ /dev/null
> @@ -1,22 +0,0 @@
> -################################################################################
> -#
> -# zynq-boot-bin
> -#
> -################################################################################
> -
> -ZYNQ_BOOT_BIN_VERSION = 2015.1
> -ZYNQ_BOOT_BIN_SOURCE = zynq-boot-bin.py
> -ZYNQ_BOOT_BIN_SITE = https://raw.githubusercontent.com/Xilinx/u-boot-xlnx/xilinx-v$(ZYNQ_BOOT_BIN_VERSION)/tools
> -ZYNQ_BOOT_BIN_LICENSE = GPL-3.0+
> -
> -HOST_ZYNQ_BOOT_BIN_DEPENDENCIES = host-python
> -
> -define HOST_ZYNQ_BOOT_BIN_EXTRACT_CMDS
> -	cp $(HOST_ZYNQ_BOOT_BIN_DL_DIR)/$(ZYNQ_BOOT_BIN_SOURCE) $(@D)
> -endef
> -
> -define HOST_ZYNQ_BOOT_BIN_INSTALL_CMDS
> -	$(INSTALL) -D -m 0755 $(@D)/$(ZYNQ_BOOT_BIN_SOURCE) $(HOST_DIR)/bin/$(ZYNQ_BOOT_BIN_SOURCE)
> -endef
> -
> -$(eval $(host-generic-package))
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-02-05 21:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 21:17 [Buildroot] [PATCH] package/zynq-boot-bin: drop legacy package Yann E. MORIN
2022-01-11 22:00 ` Luca Ceresoli
2022-01-11 22:10   ` James Hilliard
2022-02-05 21:18 ` Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.