package/firmware-utils: add package
PATCH v2 1/1 package/firmware-utils: add package
From: Rafał Miłecki <[email protected]>
This package provides a set of tools originally developed for the OpenWrt project. They allow working with various firmware formats that are required for flashing new images on embedded devices.
---
V2: Update to the latest version e3853149fb18
Fix check-package warnings
Add FIRMWARE_UTILS_LICENSE
--- DEVELOPERS | 3 ++ package/Config.in | 1 + package/Config.in.host | 1 + package/firmware-utils/Config.in | 9 ++++++ package/firmware-utils/Config.in.host | 9 ++++++ package/firmware-utils/firmware-utils.hash | 2 ++ package/firmware-utils/firmware-utils.mk | 35 ++++++++++++++++++++++ 7 files changed, 60 insertions(+) create mode 100644 package/firmware-utils/Config.in create mode 100644 package/firmware-utils/Config.in.host create mode 100644 package/firmware-utils/firmware-utils.hash create mode 100644 package/firmware-utils/firmware-utils.mk
DEVELOPERS +3 -0
@@ -2257,6 +2257,9 @@ N: Rafal Susz <[email protected]> F: board/avnet/s6lx9_microboard/ F: configs/s6lx9_microboard_defconfig +N: Rafał Miłecki <[email protected]> +F: package/firmware-utils/ + N: Rahul Bedarkar <[email protected]> F: package/cxxtest/ F: package/gflags/
package/Config.in +1 -0
@@ -212,6 +212,7 @@ menu "Filesystem and flash utilities" source "package/exfat-utils/Config.in" source "package/exfatprogs/Config.in" source "package/f2fs-tools/Config.in" + source "package/firmware-utils/Config.in" source "package/flashbench/Config.in" source "package/fscryptctl/Config.in" source "package/fuse-overlayfs/Config.in"
package/Config.in.host +1 -0
@@ -28,6 +28,7 @@ menu "Host utilities" source "package/f2fs-tools/Config.in.host" source "package/faketime/Config.in.host" source "package/fatcat/Config.in.host" + source "package/firmware-utils/Config.in.host" source "package/fwup/Config.in.host" source "package/genext2fs/Config.in.host" source "package/genimage/Config.in.host"
package/firmware-utils/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_FIRMWARE_UTILS + bool "firmware-utils" + help + Firmware utils are tools that can be used for managing + platform / device / vendor specific firmware images. Depending + on a specific tool it may be possible to read information, + extract data, modify or build an image from a scratch. + + https://git.openwrt.org/?p=project/firmware-utils.git;a=summary
package/firmware-utils/Config.in.host new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_HOST_FIRMWARE_UTILS + bool "host firmware-utils" + help + Firmware utils are tools that can be used for managing + platform / device / vendor specific firmware images. Depending + on a specific tool it may be possible to read information, + extract data, modify or build an image from a scratch. + + https://git.openwrt.org/?p=project/firmware-utils.git;a=summary
package/firmware-utils/firmware-utils.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 ea04315daf0a1b6c25b0cee78ceb32117dc6740cefd758b1dec77c38259b2cd7 firmware-utils-e3853149fb18dfa55f10c10c9aaf99c329747365-br1.tar.gz
package/firmware-utils/firmware-utils.mk new file +35 -0
@@ -0,0 +1,35 @@ +################################################################################ +# +# firmware-utils +# +################################################################################ + +FIRMWARE_UTILS_VERSION = e3853149fb18dfa55f10c10c9aaf99c329747365 +FIRMWARE_UTILS_SITE = git://git.openwrt.org/project/firmware-utils.git +FIRMWARE_UTILS_LICENSE = \ + BSD-2-Clause (tplink-safeloader), \ + BSD-3-Clause (seama), \ + GPL-2.0 (add_header, bcmalgo, buffalo-enc, buffalo-lib, buffalo-tag, \ + buffalo-tftp, dgfirmware, dns313-header, edimax_fw_header, \ + fix-u-media-header, hcsmakeimage, mkbrncmdline, mkbrnimg, \ + mkbuffaloimg, mkcameofw, mkcasfw, mkdapimg, mkdapimg2, \ + mkdhpimg, mkdniimg, mkhilinkfw, mkmerakifw-old, mkmerakifw, \ + mkplanexfw, mkporayfw, mkrasimage, mkrtn56uimg, mksenaofw, \ + mksercommfw, mktitanimg, mktplinkfw-lib, mktplinkfw, \ + mktplinkfw2, mkwrggimg, mkwrgimg, mkzcfw, mkzynfw, \ + osbridge-crc, pc1crypt, srec2bin, trx2edips, uimage_padhdr, \ + wrt400n, zyimage, zytrx), \ + GPL-2.0+ (addpattern, asustrx, bcm4908asus, bcm4908kernel, dgn3500sum, \ + encode_crc, jcgimage, lzma2eva, makeamitbin, mkchkimg, \ + mkcsysimg, mkdlinkfw-lib, mkdlinkfw, mkedimaximg, mkfwimage, \ + mkfwimage2, mkheader_gemtek, mkmylofw, motorola-bin, \ + nec-enc, oseama, otrx, ptgen, sign_dlink_ru, spw303v, trx, \ + xorimage, zyxbcm), \ + GPL-2.0 OR GPL-3.0 (nand_ecc), \ + GPL-2.0+ OR MIT (lxlfw), \ + UNKNOWN (imagetag, trx2usr) +FIRMWARE_UTILS_DEPENDENCIES = libopenssl zlib +HOST_FIRMWARE_UTILS_DEPENDENCIES = host-libopenssl host-zlib + +$(eval $(cmake-package)) +$(eval $(host-cmake-package))
Signature · 6 lines
2.26.2 _______________________________________________ buildroot mailing list [email protected] http://lists.busybox.net/mailman/listinfo/buildroot
Hello Rafał,
Quoted 7 lines · On Mon, 9 Aug 2021 16:41:44 +0200 Rafał Miłecki <[email protected]> wrote:
From: Rafał Miłecki <[email protected]>
This package provides a set of tools originally developed for the OpenWrt project. They allow working with various firmware formats that are required for flashing new images on embedded devices.
Signed-off-by Rafał Miłecki <[email protected]>
It mostly looks good, and I almost applied, but I do have a few questions/comments.
package/Config.in menu "Filesystem and flash utilities" · line 215
Quoted 9 lines
package/Config.in +1
-0@@ -212,6 +212,7 @@ menu "Filesystem and flash utilities" source "package/exfat-utils/Config.in" source "package/exfatprogs/Config.in" source "package/f2fs-tools/Config.in" + source "package/firmware-utils/Config.in"
Could you explain why a target variant of this package is needed? What are the use cases for having those tools installed on the target?
package/firmware-utils/Config.in line 2
Quoted 8 lines
package/firmware-utils/Config.in new file +2
-0@@ -0,0 +1,9 @@ +config BR2_PACKAGE_FIRMWARE_UTILS + bool "firmware-utils"
You need:
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_ZLIB
also, could you:
(1) Verify that it builds with the basic OpenSSL options, i.e after disabling all openssl sub-options ?
(2) Verify that it builds with libressl ?
package/firmware-utils/Config.in.host line 2
Quoted 8 lines
package/firmware-utils/Config.in.host new file +2
-0@@ -0,0 +1,9 @@ +config BR2_PACKAGE_HOST_FIRMWARE_UTILS + bool "host firmware-utils"
Note: do *not* add any "select" here.
Quoted 28 lines
package/firmware-utils/firmware-utils.mk new file +22
-0@@ -0,0 +1,35 @@ +################################################################################ +# +# firmware-utils +# +################################################################################ + +FIRMWARE_UTILS_VERSION = e3853149fb18dfa55f10c10c9aaf99c329747365 +FIRMWARE_UTILS_SITE = git://git.openwrt.org/project/firmware-utils.git +FIRMWARE_UTILS_LICENSE = \ + BSD-2-Clause (tplink-safeloader), \ + BSD-3-Clause (seama), \ + GPL-2.0 (add_header, bcmalgo, buffalo-enc, buffalo-lib, buffalo-tag, \ + buffalo-tftp, dgfirmware, dns313-header, edimax_fw_header, \ + fix-u-media-header, hcsmakeimage, mkbrncmdline, mkbrnimg, \ + mkbuffaloimg, mkcameofw, mkcasfw, mkdapimg, mkdapimg2, \ + mkdhpimg, mkdniimg, mkhilinkfw, mkmerakifw-old, mkmerakifw, \ + mkplanexfw, mkporayfw, mkrasimage, mkrtn56uimg, mksenaofw, \ + mksercommfw, mktitanimg, mktplinkfw-lib, mktplinkfw, \ + mktplinkfw2, mkwrggimg, mkwrgimg, mkzcfw, mkzynfw, \ + osbridge-crc, pc1crypt, srec2bin, trx2edips, uimage_padhdr, \ + wrt400n, zyimage, zytrx), \ + GPL-2.0+ (addpattern, asustrx, bcm4908asus, bcm4908kernel, dgn3500sum, \
package/firmware-utils/firmware-utils.mk line 31
Quoted 10 lines
package/firmware-utils/firmware-utils.mk new file +9
-0+ encode_crc, jcgimage, lzma2eva, makeamitbin, mkchkimg, \ + mkcsysimg, mkdlinkfw-lib, mkdlinkfw, mkedimaximg, mkfwimage, \ + mkfwimage2, mkheader_gemtek, mkmylofw, motorola-bin, \ + nec-enc, oseama, otrx, ptgen, sign_dlink_ru, spw303v, trx, \ + xorimage, zyxbcm), \ + GPL-2.0 OR GPL-3.0 (nand_ecc), \ + GPL-2.0+ OR MIT (lxlfw), \ + UNKNOWN (imagetag, trx2usr) +FIRMWARE_UTILS_DEPENDENCIES = libopenssl zlib
Use "openssl" instead of "libopenssl".
Quoted 1 line
+HOST_FIRMWARE_UTILS_DEPENDENCIES = host-libopenssl host-zlib
Use "host-openssl" instead of "host-libopenssl".
Thanks a lot!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] http://lists.busybox.net/mailman/listinfo/buildroot