ramips: build initramfs image for DIR-{3,6}00 boards
authorGabor Juhos <juhosg@openwrt.org>
Sun, 11 Mar 2012 16:39:31 +0000 (16:39 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 11 Mar 2012 16:39:31 +0000 (16:39 +0000)
SVN-Revision: 30882

target/linux/ramips/image/Makefile

index 90bbff95b34b9a56d977b8f93c0c0e74bf1aa4b5..97f4a9a42d4f082497a5e6f60710f62c45cc2c6d 100644 (file)
@@ -164,6 +164,10 @@ define BuildFirmware/DIR300B1
                -o $(call imgname,$(1),$(2))-factory.bin
 endef
 
+define BuildFirmware/DIR300B1/initramfs
+       $(call BuildFirmware/Generic/initramfs,$(1),$(2),board=$(3) $(call mkmtd/phys,$(mtdlayout_dir300b1)),$(mtd_dir300b1_kernel_part_size),$(mtd_dir300b1_rootfs_part_size))
+endef
+
 define BuildFirmware/Edimax
        if [ -e "$(call sysupname,$(1),$(2))" ]; then \
                mkedimaximg -i $(call sysupname,$(1),$(2)) \