diff options
author | Sergey Sergeev <adron@yapic.net> | 2016-06-28 14:55:12 +0300 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-07-05 22:59:14 +0200 |
commit | 17ee6bb8f344dd1db027186de272badb6ba2020b (patch) | |
tree | 9ab204a41ad2ed904684052035c00b1864e06c45 /tools/kernel2minor/Makefile | |
parent | a3e7d5e7ae25ffb6fbae30fa6dc65fbc73d1297f (diff) | |
download | upstream-17ee6bb8f344dd1db027186de272badb6ba2020b.tar.gz upstream-17ee6bb8f344dd1db027186de272badb6ba2020b.tar.bz2 upstream-17ee6bb8f344dd1db027186de272badb6ba2020b.zip |
tools: add kernel2minor utility for Mikrotik devices
This patch adds support of Mikrotik yaffs2 filesystem image for kernel file
and tools/kernel2minor package.
We neede this to boot kernel through RouterBoot on new Mikrotik NOR flash devices.
Signed-off-by: Sergey Sergeev <adron@yapic.net>
Diffstat (limited to 'tools/kernel2minor/Makefile')
-rw-r--r-- | tools/kernel2minor/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/kernel2minor/Makefile b/tools/kernel2minor/Makefile new file mode 100644 index 0000000000..0db99599a6 --- /dev/null +++ b/tools/kernel2minor/Makefile @@ -0,0 +1,31 @@ +# +# Copyright (C) 2016 adron@yapic.net +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=kernel2minor +PKG_VERSION:=0.22 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=https://github.com/adron-s/kernel2minor.git +PKG_SOURCE_PROTO:=git +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_VERSION:=0587740de3e398dbe89d965334c492609cb9739d + +HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/host-build.mk + +define Host/Install + $(INSTALL_BIN) $(HOST_BUILD_DIR)/kernel2minor $(STAGING_DIR_HOST)/bin/ +endef + +define Host/Clean + rm -f $(STAGING_DIR_HOST)/bin/kernel2minor +endef + +$(eval $(call HostBuild)) |