aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/image/Makefile
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-01-19 15:36:11 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-01-19 15:36:11 +0000
commit6aebe6a65dfc5a95098cf3ae95c706081a31b799 (patch)
tree28ed3f9842c1a7734d91f677dea0928e331f0069 /target/linux/ramips/image/Makefile
parentf2766239ea9c9be45e6348e9769f8999e1aeac7b (diff)
downloadupstream-6aebe6a65dfc5a95098cf3ae95c706081a31b799.tar.gz
upstream-6aebe6a65dfc5a95098cf3ae95c706081a31b799.tar.bz2
upstream-6aebe6a65dfc5a95098cf3ae95c706081a31b799.zip
ramips: allow to override image name/suffix in GENERIC_{4,8}M macros
Sysupgrade/KRuImage and BuildFirmware/Generic macros are changed as well. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35242
Diffstat (limited to 'target/linux/ramips/image/Makefile')
-rw-r--r--target/linux/ramips/image/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
index d9e562fd04..1c86b9c46f 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -83,7 +83,8 @@ define CatFiles
endef
define Sysupgrade/KRuImage
- $(call CatFiles,$(KDIR)/vmlinux-$(2).uImage,$(3),$(KDIR)/root.$(1),$(4),$(call sysupname,$(1),$(2)))
+ $(eval output_name=$(if $(5),$(call imgname,$(1),$(2))-$(5),$(call sysupname,$(1),$(2))))
+ $(call CatFiles,$(KDIR)/vmlinux-$(2).uImage,$(3),$(KDIR)/root.$(1),$(4),$(output_name))
endef
define mkmtd
@@ -109,7 +110,7 @@ endef
define BuildFirmware/Generic
$(call MkImageLzma,$(2),$(3),$(6))
- $(call Sysupgrade/KRuImage,$(1),$(2),$(4),$(5))
+ $(call Sysupgrade/KRuImage,$(1),$(2),$(4),$(5),$(7))
endef
define BuildFirmware/Generic/initramfs
@@ -119,7 +120,7 @@ endef
mtdlayout_4M=192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),2880k(rootfs),3776k@0x50000(firmware)
define BuildFirmware/GENERIC_4M
- $(call BuildFirmware/Generic,$(1),$(2),$(call mkcmdline,$(3),$(4),$(5)) $(call mkmtd/$(6),$(mtdlayout_4M)),917504,2949120)
+ $(call BuildFirmware/Generic,$(1),$(2),$(call mkcmdline,$(3),$(4),$(5)) $(call mkmtd/$(6),$(mtdlayout_4M)),917504,2949120,$(7),$(8))
endef
define BuildFirmware/GENERIC_4M/initramfs
@@ -130,7 +131,7 @@ mtdlayout_8M=192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),6976k(
kernel_size_8M=917504
rootfs_size_8M=7143424
define BuildFirmware/GENERIC_8M
- $(call BuildFirmware/Generic,$(1),$(2),$(call mkcmdline,$(3),$(4),$(5)) $(call mkmtd/$(6),$(mtdlayout_8M)),$(kernel_size_8M),$(rootfs_size_8M))
+ $(call BuildFirmware/Generic,$(1),$(2),$(call mkcmdline,$(3),$(4),$(5)) $(call mkmtd/$(6),$(mtdlayout_8M)),$(kernel_size_8M),$(rootfs_size_8M),$(7),$(8))
endef
define BuildFirmware/GENERIC_8M/initramfs