summaryrefslogtreecommitdiff
path: root/package/kernel2minor
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2017-03-08 05:33:31 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-03-17 04:00:53 +0100
commit23a2a79c9d5e3b26f5be9ba641b20b365b6b2899 (patch)
treeceea1bbc7426649776ac7e12db12118db56ac2a1 /package/kernel2minor
parentef4507fb81acf8b3b7b71292d0ab8f38f1dd1abf (diff)
Introduce kernel2minor package
This is used to generate a yaffs2 filesystem image containing just the kernel binary as required by Mikrotik's rb532 board. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'package/kernel2minor')
-rw-r--r--package/kernel2minor/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/package/kernel2minor/Makefile b/package/kernel2minor/Makefile
new file mode 100644
index 000000000..e7ace1d61
--- /dev/null
+++ b/package/kernel2minor/Makefile
@@ -0,0 +1,38 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= kernel2minor
+PKG_VERSION:= 2cacb4dec6673a60a972a3a7f7629464a26a8492
+PKG_RELEASE:= 1
+PKG_GIT:= hash
+PKG_DESCR:= kernel to Mikrotik NOR
+PKG_SECTION:= sys/fs
+PKG_URL:= https://github.com/adron-s/kernel2minor
+PKG_SITES:= https://github.com/adron-s/kernel2minor.git
+
+include $(ADK_TOPDIR)/mk/host.mk
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call HOST_template,KERNEL2MINOR,kernel2minor,$(PKG_VERSION)-$(PKG_RELEASE)))
+$(eval $(call PKG_template,KERNEL2MINOR,kernel2minor,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+HOST_STYLE:= auto
+HOST_CONFIG_STYLE:= manual
+HOST_INSTALL_STYLE:= manual
+
+kernel2minor-hostinstall:
+ $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/sbin
+ $(INSTALL_BIN) $(WRKBUILD)/kernel2minor $(STAGING_HOST_DIR)/usr/sbin
+
+CONFIG_STYLE:= manual
+INSTALL_STYLE:= manual
+
+kernel2minor-install:
+ $(INSTALL_DIR) $(IDIR_KERNEL2MINOR)/usr/sbin
+ $(INSTALL_BIN) $(WRKBUILD)/kernel2minor \
+ $(IDIR_KERNEL2MINOR)/usr/sbin
+
+include ${ADK_TOPDIR}/mk/host-bottom.mk
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk