package/firmware-utils: add package
PATCH 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.
--- 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 | 13 +++++++++++++ 7 files changed, 38 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 4f21663438cb12b419d49b8c1fca172a3771835bf69e65e051fde1bf7ac0f3c9 firmware-utils-a5c65fa1192e174e9e895637aaf93945959aa029-br1.tar.gz
package/firmware-utils/firmware-utils.mk new file +13 -0
@@ -0,0 +1,13 @@ +################################################################################ +# +# firmware-utils +# +################################################################################ + +FIRMWARE_UTILS_VERSION = a5c65fa1192e174e9e895637aaf93945959aa029 +FIRMWARE_UTILS_SITE = git://git.openwrt.org/project/firmware-utils.git +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
Hi Rafał,
Quoted 5 lines · Rafał Miłecki
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.
Thank you for this patch. check-package spews a whole lot of warnings, could
you check and fix those?
Quoted 98 lines
Signed-off-by Rafał Miłecki <[email protected]>--- 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 | 13 +++++++++++++ 7 files changed, 38 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.mkDEVELOPERS +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=summarypackage/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=summarypackage/firmware-utils/firmware-utils.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally calculated +sha256 4f21663438cb12b419d49b8c1fca172a3771835bf69e65e051fde1bf7ac0f3c9 firmware-utils-a5c65fa1192e174e9e895637aaf93945959aa029-br1.tar.gzpackage/firmware-utils/firmware-utils.mk new file +0
-0
package/firmware-utils/firmware-utils.mk line 10
Quoted 10 lines
package/firmware-utils/firmware-utils.mk new file +10
-0@@ -0,0 +1,13 @@ +################################################################################ +# +# firmware-utils +# +################################################################################ + +FIRMWARE_UTILS_VERSION = a5c65fa1192e174e9e895637aaf93945959aa029 +FIRMWARE_UTILS_SITE = git://git.openwrt.org/project/firmware-utils.git +FIRMWARE_UTILS_DEPENDENCIES = libopenssl zlib +HOST_FIRMWARE_UTILS_DEPENDENCIES = host-libopenssl host-zlib
Please add _LICENSE and _LICENSE_FILES. In particular for this package, since licensing is problematic.
Most files are GPL-2.0 or GPL-2.0+. There are a few, however, with no license info at all (e.g. hcsmakeimage). For these we can only assume that there is no license and that redistribution is not allowed (in fact even downloading it is not allowed without license).
We generally don't include much detail about licensing info, but in this case I think we should specify the license for each individual tool - they're all separate binaries so in practice you can redistribute each one under their specific license by just removing the unwanted ones. So we'd end up with something like:
FIRMWARE_UTILS_LICENSE = \ GPL-2.0 (add_header, buffalo-enc, buffalo-tag, buffalo-tftp, ...), \ GPL-2.0+ (addpattern, asustrx, ...), \ GPL-2.0+ OR MIT (lxlfw), \ UNKNOWN (dgfirmware, hcsmakeimage, mkdapimg, mksercommfw, mktitanimg, srec2bin,
trx2edips, wrt400n)
Of course, if you can determine for some of these files that they are indeed
licensed under GPLv2 (e.g. by checking git logs and signoffs, or by asking the original authors), then you can remove the UNKNOWN for them. If so, please explain in the commit message why this was possible.
There are no license files included in the repo. Maybe you can convince
upstream (i.e. yourself :-)) to include the GPLv2 COPYING file? Some of the sources even refer to it, so it really should be there.
Regards,
Arnout
package/firmware-utils/firmware-utils.mk line 13
Quoted 4 lines
package/firmware-utils/firmware-utils.mk new file +3
-0+ +$(eval $(cmake-package)) +$(eval $(host-cmake-package))
_______________________________________________
buildroot mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/buildroot