package/meson-tools: new package
authorDagg Stompler <daggs@gmx.com>
Fri, 17 Jul 2020 16:46:40 +0000 (19:46 +0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 29 Aug 2020 22:10:38 +0000 (00:10 +0200)
Add meson-tools for handling of amlogic boards boot firmware
signature.

Signed-off-by: Dagg Stompler <daggs@gmx.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in.host
package/meson-tools/Config.in.host [new file with mode: 0644]
package/meson-tools/meson-tools.hash [new file with mode: 0644]
package/meson-tools/meson-tools.mk [new file with mode: 0644]

index e717ccc9377a51e741d7aa19fa3be7133e854567..b86e5f8169c1ed2fb8592bedb7eef26cc8d3d37d 100644 (file)
@@ -634,6 +634,9 @@ N:  Cyril Bur <cyrilbur@gmail.com>
 F:     arch/Config.in.powerpc
 F:     package/kvm-unit-tests
 
+N:     Dagg Stompler <daggs@gmx.com>
+F:     package/meson-tools/
+
 N:     Daniel J. Leach <dleach@belcan.com>
 F:     package/dacapo/
 
index fb29622ccb8189a82b86350d768e96c944e87426..ec64d2feb3bb93cd0c5c4625093a323e8d7bedcc 100644 (file)
@@ -42,6 +42,7 @@ menu "Host utilities"
        source "package/lpc3250loader/Config.in.host"
        source "package/lttng-babeltrace/Config.in.host"
        source "package/mender-artifact/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"
diff --git a/package/meson-tools/Config.in.host b/package/meson-tools/Config.in.host
new file mode 100644 (file)
index 0000000..677b206
--- /dev/null
@@ -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
diff --git a/package/meson-tools/meson-tools.hash b/package/meson-tools/meson-tools.hash
new file mode 100644 (file)
index 0000000..7b2c0d2
--- /dev/null
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  10d707b2f741df03ff5000f2a82c6f577036ce1cd34d9278b22b92cb616b6fce  meson-tools-0a02e2d34413f4bf9b15946352bc8c8ee13a5843.tar.gz
+sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
diff --git a/package/meson-tools/meson-tools.mk b/package/meson-tools/meson-tools.mk
new file mode 100644 (file)
index 0000000..037faf3
--- /dev/null
@@ -0,0 +1,26 @@
+################################################################################
+#
+# meson-tools
+#
+################################################################################
+
+HOST_MESON_TOOLS_VERSION = 0a02e2d34413f4bf9b15946352bc8c8ee13a5843
+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
+HOST_MESON_TOOLS_DEPENDENCIES = host-openssl
+
+HOST_MESON_TOOLS_PROGS = amlbootsig unamlbootsig amlinfo
+
+define HOST_MESON_TOOLS_BUILD_CMDS
+       $(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_CONFIGURE_OPTS) \
+               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))