aboutsummaryrefslogtreecommitdiffstats
path: root/tools/cpio/Makefile
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2021-02-27 19:12:09 +0100
committerDaniel Golle <daniel@makrotopia.org>2021-02-28 00:09:09 +0000
commitad54e32651c9de5079ca1b6e637edb2ebfe59656 (patch)
tree17d1c9aa1c14ccb0b3f0bfebc282677f2b601cd6 /tools/cpio/Makefile
parent2a27f6f90a430342cdbe84806e8b10acff446a2d (diff)
downloadupstream-ad54e32651c9de5079ca1b6e637edb2ebfe59656.tar.gz
upstream-ad54e32651c9de5079ca1b6e637edb2ebfe59656.tar.bz2
upstream-ad54e32651c9de5079ca1b6e637edb2ebfe59656.zip
tools: add cpio
mediatek-mt7622 as well as mediatek-mt7623 require CPIO to create their initramfs images. So build CPIO as part of the host toolchain. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'tools/cpio/Makefile')
-rw-r--r--tools/cpio/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/cpio/Makefile b/tools/cpio/Makefile
new file mode 100644
index 0000000000..2852209847
--- /dev/null
+++ b/tools/cpio/Makefile
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: GPL-2.0-only
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=cpio
+PKG_CPE_ID:=cpe:/a:gnu:cpio
+PKG_VERSION:=2.13
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=@GNU/cpio
+PKG_HASH:=eab5bdc5ae1df285c59f2a4f140a98fc33678a0bf61bdba67d9436ae26b46f6d
+
+include $(INCLUDE_DIR)/host-build.mk
+
+$(eval $(call HostBuild))