diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-08-14 15:10:42 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-08-14 15:10:42 +0000 |
commit | 7b5ff07e20ca5dd0036202f7722dd173e8e8af9f (patch) | |
tree | ea8342ed14a7f13c3a7aa1c92258131b99ebabb9 | |
parent | e5353907858012935d4fa3f99b0f807e6e93f136 (diff) | |
download | master-187ad058-7b5ff07e20ca5dd0036202f7722dd173e8e8af9f.tar.gz master-187ad058-7b5ff07e20ca5dd0036202f7722dd173e8e8af9f.tar.bz2 master-187ad058-7b5ff07e20ca5dd0036202f7722dd173e8e8af9f.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46600 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | include/image.mk | 10 |
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 $@ |