aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-10-23 22:16:09 +0000
committerLuka Perkov <luka@openwrt.org>2013-10-23 22:16:09 +0000
commit7938d1645165192abaaf4e4cdbe0bbb880ec3a9c (patch)
tree4ceb6d01735571c0ceb41f47bf1a5f84550ad7c0 /include
parent86aff32701a745cb8f795117f1c47ccb33258862 (diff)
downloadupstream-7938d1645165192abaaf4e4cdbe0bbb880ec3a9c.tar.gz
upstream-7938d1645165192abaaf4e4cdbe0bbb880ec3a9c.tar.bz2
upstream-7938d1645165192abaaf4e4cdbe0bbb880ec3a9c.zip
build: make MkuImage more generic
Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38516
Diffstat (limited to 'include')
-rw-r--r--include/image.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/image.mk b/include/image.mk
index c7da0600c3..71822de980 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -67,6 +67,10 @@ define add_jffs2_mark
echo -ne '\xde\xad\xc0\xde' >> $(1)
endef
+define toupper
+ $(shell echo $(1) | tr '[:lower:]' '[:upper:]')
+endef
+
# pad to 4k, 8k, 64k, 128k 256k and add jffs2 end-of-filesystem mark
define prepare_generic_squashfs
$(STAGING_DIR_HOST)/bin/padjffs2 $(1) 4 8 64 128 256
@@ -82,9 +86,9 @@ else
endef
endif
-define Image/BuildKernel/MkuImageARM
- mkimage -A arm -O linux -T kernel -a $(1) -C none -e $(1) \
- -n 'ARM OpenWrt Linux-$(LINUX_VERSION)' -d $(2) $(3)
+define Image/BuildKernel/MkuImage
+ mkimage -A $(ARCH) -O linux -T kernel -C $(1) -a $(2) -e $(3) \
+ -n '$(call toupper,$(ARCH)) OpenWrt Linux-$(LINUX_VERSION)' -d $(4) $(5)
endef
define Image/BuildKernel/MkFIT