diff options
author | hcg <hcg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-03-18 15:57:18 +0000 |
---|---|---|
committer | hcg <hcg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-03-18 15:57:18 +0000 |
commit | 5cd973bdee8ff6c747e37a22ba7baf701f5e64fa (patch) | |
tree | 71f9b95b71bfc4cfaa2bb0c858327a2655d4c2ba | |
parent | c1fef4b90b24910417ab90db58bde7d2f7c3f6ea (diff) |
Add FEATURE ramdisk to be able to select the use of INITRAMFS for a sub-target
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14939 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | Config.in | 2 | ||||
-rwxr-xr-x | scripts/metadata.pl | 1 | ||||
-rw-r--r-- | target/Config.in | 3 | ||||
-rw-r--r-- | target/linux/ps3/petitboot/target.mk | 4 |
4 files changed, 7 insertions, 3 deletions
@@ -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) diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 3d9d68a65..c341e6526 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -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; } diff --git a/target/Config.in b/target/Config.in index 31f7a50b3..6506312b3 100644 --- a/target/Config.in +++ b/target/Config.in @@ -29,6 +29,9 @@ config USB_SUPPORT config BIG_ENDIAN bool +config USES_INITRAMFS + bool + config USES_SQUASHFS bool diff --git a/target/linux/ps3/petitboot/target.mk b/target/linux/ps3/petitboot/target.mk index a3d84dde0..4b53f57b6 100644 --- a/target/linux/ps3/petitboot/target.mk +++ b/target/linux/ps3/petitboot/target.mk @@ -1,7 +1,7 @@ BOARDNAME:=Petitboot -FEATURES:=fpu +FEATURES:=fpu ramdisk -DEFAULT_PACKAGES+= dnsmasq +DEFAULT_PACKAGES+= dnsmasq petitboot define Target/Description Build Petitboot bootloader |