summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2013-06-17 22:57:04 +0000
committerFlorian Fainelli <florian@openwrt.org>2013-06-17 22:57:04 +0000
commit8ae2b1155d0169c82fdc03fd6ea4e7f545407950 (patch)
tree749736e7ab00912e8e7a2a725d21bc16e97d1703 /target
parent9f1899242cbac82b31e9364339545231b9c8aa63 (diff)
downloadmtk-20170518-8ae2b1155d0169c82fdc03fd6ea4e7f545407950.zip
mtk-20170518-8ae2b1155d0169c82fdc03fd6ea4e7f545407950.tar.gz
mtk-20170518-8ae2b1155d0169c82fdc03fd6ea4e7f545407950.tar.bz2
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 <florian@openwrt.org> SVN-Revision: 36954
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/brcm63xx/image/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile
index 7875c54..4928010 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))