diff mbox series

[OpenWrt-Devel,1/5] tools: add meson-tools

Message ID 20181019173707.22951-2-stijn@linux-ipv6.be
State Changes Requested
Delegated to: John Crispin
Headers show
Series mesongx: new target for AmLogic S9 SoCs | expand

Commit Message

Stijn Tintel Oct. 19, 2018, 5:37 p.m. UTC
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
---
 tools/Makefile             |  1 +
 tools/meson-tools/Makefile | 31 +++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 tools/meson-tools/Makefile
diff mbox series

Patch

diff --git a/tools/Makefile b/tools/Makefile
index 9a354f6c70..0adc13acbf 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -38,6 +38,7 @@  tools-$(BUILD_B43_TOOLS) += b43-tools
 tools-$(BUILD_ISL) += isl
 tools-$(CONFIG_USE_SPARSE) += sparse
 tools-$(CONFIG_TARGET_apm821xx) += genext2fs
+tools-$(CONFIG_TARGET_mesongx) += meson-tools
 
 # builddir dependencies
 $(curdir)/bison/compile := $(curdir)/flex/compile
diff --git a/tools/meson-tools/Makefile b/tools/meson-tools/Makefile
new file mode 100644
index 0000000000..ee7d499e8a
--- /dev/null
+++ b/tools/meson-tools/Makefile
@@ -0,0 +1,31 @@ 
+#
+# Copyright (C) 2017 Stijn Tintel <stijn@linux-ipv6.be>
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=meson-tools
+PKG_VERSION:=0.1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_HASH:=f1bd619368075186b742af84a02a83f60ffba2e6da67433abbe6e6d5c77373cb
+PKG_SOURCE_URL:=https://github.com/afaerber/meson-tools/archive/v$(PKG_VERSION)
+
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=COPYING
+
+include $(INCLUDE_DIR)/host-build.mk
+include $(INCLUDE_DIR)/kernel.mk
+
+define Host/Install
+	$(INSTALL_BIN) $(HOST_BUILD_DIR)/amlbootsig $(STAGING_DIR_HOST)/bin/
+endef
+
+define Host/Clean
+	rm -f $(STAGING_DIR_HOST)/bin/amlbootsig
+endef
+
+$(eval $(call HostBuild))