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
This commit is contained in:
parent
1c56854639
commit
960113fcfc
1 changed files with 10 additions and 0 deletions
|
@ -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 $@
|
||||
|
|
Loading…
Reference in a new issue