Add FEATURE ramdisk to be able to select the use of INITRAMFS for a sub-target
authorHamish Guthrie <hcg@openwrt.org>
Wed, 18 Mar 2009 15:57:18 +0000 (15:57 +0000)
committerHamish Guthrie <hcg@openwrt.org>
Wed, 18 Mar 2009 15:57:18 +0000 (15:57 +0000)
SVN-Revision: 14939

Config.in
scripts/metadata.pl
target/Config.in
target/linux/ps3/petitboot/target.mk

index e412338921b185b6d4004067ae2aef2df197fea2..4d75896d8dd931d9fc679fc5afa8178651310fec 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -15,7 +15,7 @@ source "target/Config.in"
 menu "Target Images"
        config TARGET_ROOTFS_INITRAMFS
                bool "ramdisk"
-               default n
+               default y if USES_INITRAMFS
                depends LINUX_2_6
                help
                  Embed the rootfs into the kernel (initramfs)
index 3d9d68a654b4fb5b8f3c4c2745ca42dd3d3ea2e2..c341e652617edaf74739891f4f6a7ce42558fa05 100755 (executable)
@@ -163,6 +163,7 @@ sub target_config_features(@) {
                /tgz/ and $ret .= "\tselect USES_TGZ\n";
                /cpiogz/ and $ret .= "\tselect USES_CPIOGZ\n";
                /fpu/ and $ret .= "\tselect HAS_FPU\n";
+               /ramdisk/ and $ret .= "\tselect USES_INITRAMFS\n";
        }
        return $ret;
 }
index 31f7a50b391188119e7ca368c0b3ca86bb2bd976..6506312b37a2a8c4ad8999b681a7c9b397f923aa 100644 (file)
@@ -29,6 +29,9 @@ config USB_SUPPORT
 config BIG_ENDIAN
        bool
 
+config USES_INITRAMFS
+       bool
+
 config USES_SQUASHFS
        bool
 
index a3d84dde0343e5a7f380dc9714ee772655d8c13b..4b53f57b6b3bb6fcbf28279a766dea2227512aeb 100644 (file)
@@ -1,7 +1,7 @@
 BOARDNAME:=Petitboot
-FEATURES:=fpu
+FEATURES:=fpu ramdisk
 
-DEFAULT_PACKAGES+= dnsmasq
+DEFAULT_PACKAGES+= dnsmasq petitboot
 
 define Target/Description
        Build Petitboot bootloader