@@ -27,6 +27,7 @@ menu "Host utilities"
source "package/jsmin/Config.in.host"
source "package/lpc3250loader/Config.in.host"
source "package/lttng-babeltrace/Config.in.host"
+ source "package/meson-tools/Config.in.host"
source "package/mfgtools/Config.in.host"
source "package/mkpasswd/Config.in.host"
source "package/mtd/Config.in.host"
new file mode 100644
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_HOST_MESON_TOOLS
+ bool "host meson-tools"
+ help
+ meson-tools is a collection of tools for use with
+ the Amlogic Meson family of ARM based SoCs.
+ it allows management of signatures which are required
+ for booting amlogic based boards with u-boot.
+
+ https://github.com/afaerber/meson-tools
new file mode 100644
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 5a956f5a6ff8c45fc79d649982287c4548a1df4f0ef9e5aa6584493d552a54a3 meson-tools-5e01cbadc6f6f21ad88a63492a83182fc4b19d37.tar.gz
new file mode 100644
@@ -0,0 +1,24 @@
+################################################################################
+#
+# meson-tools
+#
+################################################################################
+
+HOST_MESON_TOOLS_VERSION = 5e01cbadc6f6f21ad88a63492a83182fc4b19d37
+HOST_MESON_TOOLS_SITE = $(call github,afaerber,meson-tools,$(HOST_MESON_TOOLS_VERSION))
+HOST_MESON_TOOLS_LICENSE = GPL-2.0+
+HOST_MESON_TOOLS_LICENSE_FILES = COPYING README.md
+HOST_MESON_TOOLS_DEPENDENCIES = host-openssl
+
+HOST_MESON_TOOLS_PROGS = amlbootsig unamlbootsig amlinfo
+
+define HOST_MESON_TOOLS_BUILD_CMDS
+ $(MAKE) -C $(@D) CC="$(HOSTCC)" CFLAGS="$(HOST_CFLAGS)" LDFLAGS="$(HOST_LDFLAGS) -lssl -lcrypto"
+endef
+
+define HOST_MESON_TOOLS_INSTALL_CMDS
+ $(foreach f,$(HOST_MESON_TOOLS_PROGS),
+ $(INSTALL) -D -m 0755 $(@D)/$(f) $(HOST_DIR)/bin/$(f))
+endef
+
+$(eval $(host-generic-package))
all amlogic's meson based soc require a signed firmware to boot, this package provides a binary to do so. Signed-off-by: Dagg Stompler <daggs@gmx.com> --- Changes v1 -> v2: - drop hunk which was sent by mistake (Brauch) - drop cross compile patch as it isn't needed (Brauch) - refractor bins installation cmd (Thomas) - refractor build cmd (Thomas) - handle general mail patch rejects (Thomas) package/Config.in.host | 1 + package/meson-tools/Config.in.host | 9 +++++++++ package/meson-tools/meson-tools.hash | 2 ++ package/meson-tools/meson-tools.mk | 24 ++++++++++++++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 package/meson-tools/Config.in.host create mode 100644 package/meson-tools/meson-tools.hash create mode 100644 package/meson-tools/meson-tools.mk