From: Dagg Stompler <daggs@gmx.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/4] meson-tools: new Package
Date: Sat, 9 Dec 2017 09:52:16 +0200 [thread overview]
Message-ID: <20171209075219.23240-1-daggs@gmx.com> (raw)
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
diff --git a/package/Config.in.host b/package/Config.in.host
index 48b6f8c7a8..b064c94fc2 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -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"
diff --git a/package/meson-tools/Config.in.host b/package/meson-tools/Config.in.host
new file mode 100644
index 0000000000..d90be61aeb
--- /dev/null
+++ b/package/meson-tools/Config.in.host
@@ -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
index 0000000000..b5f844ab58
--- /dev/null
+++ b/package/meson-tools/meson-tools.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 5a956f5a6ff8c45fc79d649982287c4548a1df4f0ef9e5aa6584493d552a54a3 meson-tools-5e01cbadc6f6f21ad88a63492a83182fc4b19d37.tar.gz
diff --git a/package/meson-tools/meson-tools.mk b/package/meson-tools/meson-tools.mk
new file mode 100644
index 0000000000..6b8cc06582
--- /dev/null
+++ b/package/meson-tools/meson-tools.mk
@@ -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))
--
2.15.1
next reply other threads:[~2017-12-09 7:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-09 7:52 Dagg Stompler [this message]
2017-12-09 7:52 ` [Buildroot] [PATCH v2 2/4] odroidc2-ATF: new Package Dagg Stompler
2017-12-09 7:52 ` [Buildroot] [PATCH v2 3/4] odroidc2: prepare post-image.sh for multi config support Dagg Stompler
2017-12-09 7:52 ` [Buildroot] [PATCH v2 4/4] odroidc2: add support for mainline kernel and u-boot Dagg Stompler
2017-12-09 11:42 ` daggs
2017-12-09 12:59 ` Sergey Matyukevich
2017-12-09 14:16 ` daggs
2017-12-09 16:34 ` Sergey Matyukevich
2017-12-10 7:54 ` daggs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171209075219.23240-1-daggs@gmx.com \
--to=daggs@gmx.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox