brcm63xx: create initramfs HCS images
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / image / Makefile
index 7875c5437de2e9bcf0a2fbabd91aa9d92f1e72e1..492801028041dd6852a5f50b53ceba32362c0fcd 100755 (executable)
@@ -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))