aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2015-08-14 15:10:42 +0000
committerJonas Gorski <jogo@openwrt.org>2015-08-14 15:10:42 +0000
commit960113fcfcc1c56d89c1df957ecf8d07ddecae08 (patch)
treeea734ba36f048a5c17700e84d51ffb78c338e12b /include
parent1c568546399bd5f1acebe03967143a6c378cd49b (diff)
downloadupstream-960113fcfcc1c56d89c1df957ecf8d07ddecae08.tar.gz
upstream-960113fcfcc1c56d89c1df957ecf8d07ddecae08.tar.bz2
upstream-960113fcfcc1c56d89c1df957ecf8d07ddecae08.zip
image.mk: add a fit recipe
Add a recipe to build a fit wrapped kernel (and optional dtb). Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46600
Diffstat (limited to 'include')
-rw-r--r--include/image.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/image.mk b/include/image.mk
index 5722231044..56c60d6087 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -308,6 +308,16 @@ define Build/netgear-chk
mv $@.new $@
endef
+define Build/fit
+ $(TOPDIR)/scripts/mkits.sh \
+ -D $(DEVICE_NAME) -o $@.its -k $@ \
+ $(if $(word 2,$(1)),-d $(word 2,$(1))) -C $(word 1,$(1)) \
+ -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
+ -A $(ARCH) -v $(LINUX_VERSION)
+ PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new
+ @mv $@.new $@
+endef
+
define Build/lzma
$(STAGING_DIR_HOST)/bin/lzma e $@ -lc1 -lp2 -pb2 $(1) $@.new
@mv $@.new $@