From acdb0ac35c4b527b4e827809160c7478b1162817 Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Wed, 16 Oct 2013 10:29:50 +0000 Subject: build: move mkits.sh script to more common place Signed-off-by: Luka Perkov SVN-Revision: 38430 --- include/image.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/image.mk b/include/image.mk index 8f895a3..729929f 100644 --- a/include/image.mk +++ b/include/image.mk @@ -87,6 +87,13 @@ define Image/BuildKernel/MkuImageARM -n 'ARM OpenWrt Linux-$(LINUX_VERSION)' -d $(2) $(3) endef +define Image/BuildKernel/MkFIT + $(TOPDIR)/scripts/mkits.sh \ + -D $(1) -o $(KDIR)/fit-$(1).its -k $(2) -d $(3) -C $(4) -a $(5) -e $(6) \ + -A $(ARCH) -v $(LINUX_VERSION) + PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $(KDIR)/fit-$(1).its $(KDIR)/fit-$(1)$(7).itb +endef + define Image/mkfs/jffs2/sub # FIXME: removing this line will cause strange behaviour in the foreach loop below $(STAGING_DIR_HOST)/bin/mkfs.jffs2 $(3) --pad -e $(patsubst %k,%KiB,$(1)) -o $(KDIR)/root.jffs2-$(2) -d $(TARGET_DIR) -v 2>&1 1>/dev/null | awk '/^.+$$$$/' -- cgit v1.1