package/bootgen: add bootgen host package
PATCH 1/1 package/bootgen: add bootgen host package
This patch adds Xilinx bootgen as a host package to buildroot. bootgen is a required utility for generating a boot.bin for Xilinx versal products.
In addition, for developers who wish to use secure boot with Xilinx SoC products such as zynq and zynqmp, bootgen has a more complete offering in secure boot features than the u-boot mkimage utility.
https://github.com/Xilinx/bootgen
--- DEVELOPERS | 1 + package/Config.in.host | 1 + package/bootgen/Config.in.host | 10 ++++++++++ package/bootgen/bootgen.mk | 24 ++++++++++++++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 package/bootgen/Config.in.host create mode 100644 package/bootgen/bootgen.mk
DEVELOPERS +1 -0
@@ -2175,6 +2175,7 @@ F: configs/zynq_zc706_defconfig F: configs/zynqmp_zcu102_defconfig F: configs/zynqmp_zcu106_defconfig F: configs/zynqmp_kria_kv260_defconfig +F: package/bootgen N: Nicola Di Lieto <[email protected]> F: package/uacme/
package/Config.in.host +1 -0
@@ -7,6 +7,7 @@ menu "Host utilities" source "package/asn1c/Config.in.host" source "package/babeltrace2/Config.in.host" source "package/bmap-tools/Config.in.host" + source "package/bootgen/Config.in.host" source "package/btrfs-progs/Config.in.host" source "package/cbootimage/Config.in.host" source "package/checkpolicy/Config.in.host"
package/bootgen/Config.in.host new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_PACKAGE_HOST_BOOTGEN + bool "host bootgen" + help + bootgen is a tool to generate a boot.bin firmware + for Xilinx versal, zynqmp and zynq product families. + + Additional secure boot features are supported beyond + what is included with u-boot mkimage. + + https://github.com/Xilinx/bootgen
package/bootgen/bootgen.mk new file +24 -0
@@ -0,0 +1,24 @@ +################################################################################ +# +# bootgen +# +################################################################################ + +BOOTGEN_VERSION = xilinx_v2022.2 +BOOTGEN_SITE = $(call github,Xilinx,bootgen,$(BOOTGEN_VERSION)) +HOST_BOOTGEN_DEPENDENCIES = host-openssl +BOOTGEN_LICENSE = Apache-2.0 +BOOTGEN_LICENSE_FILES = LICENSE + +BOOTGEN_EXTRA_CFLAGS = "LIBS=$(HOST_DIR)/lib/libssl.a $(HOST_DIR)/lib/libcrypto.a -ldl -lpthread" +BOOTGEN_EXTRA_CFLAGS += "INCLUDE_USER=-I$(HOST_DIR)/include/openssl" + +define HOST_BOOTGEN_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) $(BOOTGEN_EXTRA_CFLAGS) -C $(@D) +endef + +define HOST_BOOTGEN_INSTALL_CMDS + $(INSTALL) -m 0755 -D $(@D)/bootgen $(HOST_DIR)/bin/bootgen +endef + +$(eval $(host-generic-package))
Signature · 6 lines
2.17.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 8 lines · Neal Frager via buildroot
This patch adds Xilinx bootgen as a host package to buildroot. bootgen is a required utility for generating a boot.bin for Xilinx versal products.
In addition, for developers who wish to use secure boot with Xilinx SoC products such as zynq and zynqmp, bootgen has a more complete offering in secure boot features than the u-boot mkimage utility.
AFAIU, this should also have a bootgen.hash file
https://nightly.buildroot.org/#adding-packages-hash
Signature · 6 lines
Regards, Eero _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Eero,
Quoted 7 lines · Aaltonen Eero
Quoted 4 lines · Neal Frager via buildroot
This patch adds Xilinx bootgen as a host package to buildroot. bootgen is a required utility for generating a boot.bin for Xilinx versal products.
Quoted 11 lines
Quoted 4 lines
In addition, for developers who wish to use secure boot with Xilinx SoC products such as zynq and zynqmp, bootgen has a more complete offering in secure boot features than the u-boot mkimage utility.
AFAIU, this should also have a bootgen.hash file
https://nightly.buildroot.org/#adding-packages-hashSignature · 2 lines
Regards, Eero
Yes, this is superseded with v2 of the patch which has a hash file. Thank you for your feedback.
Best regards,
Neal Frager
AMD
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot