From: florian Date: Mon, 17 Jun 2013 22:57:04 +0000 (+0000) Subject: brcm63xx: create initramfs HCS images X-Git-Tag: fast2504n-3.10.28-merged~2337 X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=547679733959d49e25ab2b059a25455e84329d1e;p=openwrt.git brcm63xx: create initramfs HCS images Cable Modem devices cannot load an ELF file directly so we need to provide them with a HCS image even when targetting initramfs. Signed-off-by: Florian Fainelli git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36954 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index 7875c5437d..4928010280 100755 --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -157,6 +157,11 @@ define Image/Prepare $(call prepare_generic_squashfs,$(KDIR)/fs_mark) endef +define Image/Build/Initramfs + # Netgear CVG834G + $(call Image/Build/HCS,initramfs,cvg834g,a020,0001,0022,$(KDIR)/vmlinux) +endef + define Image/Build dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync # Various routers @@ -289,6 +294,9 @@ define Image/Build # Netgear CVG834G $(call Image/Build/HCS,$(1),cvg834g,a020,0001,0022,$(KDIR)/vmlinux) endif + ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y) + $(call Image/Build/Initramfs) + endif endef $(eval $(call BuildImage))