Selaa lähdekoodia

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>
Phil Sutter 7 vuotta sitten
vanhempi
commit
23a2a79c9d
1 muutettua tiedostoa jossa 38 lisäystä ja 0 poistoa
  1. 38 0
      package/kernel2minor/Makefile

+ 38 - 0
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