Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/8] meson-tools: New Package
@ 2017-12-03 12:56 Dagg Stompler
  2017-12-03 12:56 ` [Buildroot] [PATCH 2/8] odroidc2: add boot.cmd for mainline uboot Dagg Stompler
                   ` (8 more replies)
  0 siblings, 9 replies; 24+ messages in thread
From: Dagg Stompler @ 2017-12-03 12:56 UTC (permalink / raw)
  To: buildroot

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>
---
 package/Config.in.host                             |  2 +-
 .../meson-tools/0001-support_crosscompile.patch    | 12 +++++++++
 package/meson-tools/Config.in.host                 |  9 +++++++
 package/meson-tools/meson-tools.hash               |  2 ++
 package/meson-tools/meson-tools.mk                 | 31 ++++++++++++++++++++++
 5 files changed, 55 insertions(+), 1 deletion(-)
 create mode 100644 package/meson-tools/0001-support_crosscompile.patch
 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..78d085d44d 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -20,13 +20,13 @@ menu "Host utilities"
 	source "package/genpart/Config.in.host"
 	source "package/go/Config.in.host"
 	source "package/go-bootstrap/Config.in.host"
-	source "package/google-breakpad/Config.in.host"
 	source "package/gptfdisk/Config.in.host"
 	source "package/imx-usb-loader/Config.in.host"
 	source "package/jq/Config.in.host"
 	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/0001-support_crosscompile.patch b/package/meson-tools/0001-support_crosscompile.patch
new file mode 100644
index 0000000000..ef937f78ab
--- /dev/null
+++ b/package/meson-tools/0001-support_crosscompile.patch
@@ -0,0 +1,12 @@
+--- a/Makefile	2017-07-22 15:51:00.000000000 +0300
++++ b/Makefile	2017-07-22 15:51:26.000000000 +0300
+@@ -1,7 +1,7 @@
+ all: amlbootsig unamlbootsig amlinfo
+ 
+-CFLAGS = -g
+-LDFLAGS = -lcrypto
++override CFLAGS += -g
++override LDFLAGS += -lssl -lcrypto
+ 
+ amlbootsig.o unamlbootsig.o amlinfo.o: meson.h fip.h
+ 
diff --git a/package/meson-tools/Config.in.host b/package/meson-tools/Config.in.host
new file mode 100644
index 0000000000..d97a14ac41
--- /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 managment 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..19f5bf543b
--- /dev/null
+++ b/package/meson-tools/meson-tools.mk
@@ -0,0 +1,31 @@
+################################################################################
+#
+# 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_MAKE_OPTS = CC="$(HOSTCC)" \
+        CFLAGS="$(HOST_CFLAGS)" \
+        LDFLAGS="$(HOST_LDFLAGS)"
+
+define HOST_MESON_TOOLS_BUILD_CMDS
+        $(MAKE) -C $(@D) $(HOST_MESON_TOOLS_MAKE_OPTS)
+endef
+
+define HOST_MESON_TOOLS_INSTALL_BIN
+	$(INSTALL) -m 0755 $(@D)/$(1) $(HOST_DIR)/bin
+endef
+
+define HOST_MESON_TOOLS_INSTALL_CMDS
+	$(call HOST_MESON_TOOLS_INSTALL_BIN,amlbootsig)
+	$(call HOST_MESON_TOOLS_INSTALL_BIN,unamlbootsig)
+	$(call HOST_MESON_TOOLS_INSTALL_BIN,amlinfo)
+endef
+
+$(eval $(host-generic-package))
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2017-12-03 19:38 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-03 12:56 [Buildroot] [PATCH 1/8] meson-tools: New Package Dagg Stompler
2017-12-03 12:56 ` [Buildroot] [PATCH 2/8] odroidc2: add boot.cmd for mainline uboot Dagg Stompler
2017-12-03 12:56 ` [Buildroot] [PATCH 3/8] odroidc2: add post build script Dagg Stompler
2017-12-03 13:27   ` Thomas Petazzoni
2017-12-03 15:59     ` daggs
2017-12-03 12:56 ` [Buildroot] [PATCH 4/8] odroidc2: add mainline kernel config Dagg Stompler
2017-12-03 13:28   ` Thomas Petazzoni
2017-12-03 15:55     ` daggs
2017-12-03 17:19       ` Arnout Vandecappelle
2017-12-03 18:57         ` daggs
2017-12-03 12:56 ` [Buildroot] [PATCH 5/8] odroidc2: add mainline genimage Dagg Stompler
2017-12-03 12:56 ` [Buildroot] [PATCH 6/8] odoridc2: add mainline post image script Dagg Stompler
2017-12-03 13:31   ` Thomas Petazzoni
2017-12-03 15:54     ` daggs
2017-12-03 16:44       ` Thomas Petazzoni
2017-12-03 18:56         ` daggs
2017-12-03 12:56 ` [Buildroot] [PATCH 7/8] odoridc2: add defconfig for mainline image Dagg Stompler
2017-12-03 13:26   ` Thomas Petazzoni
2017-12-03 16:01     ` daggs
2017-12-03 12:56 ` [Buildroot] [PATCH 8/8] odroidc2: update readme file Dagg Stompler
2017-12-03 13:23 ` [Buildroot] [PATCH 1/8] meson-tools: New Package Thomas Petazzoni
2017-12-03 16:03   ` daggs
2017-12-03 19:06 ` Baruch Siach
2017-12-03 19:38   ` daggs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox