target/linux/goldfish中有:
FEATURES:=broken
(這個參數在make menuconfig 中 [*] Advanced configuration options (for developers) --->[ *] Show broken platforms / packages)
或者其他的如:
FEATURES:=jffs2 squashfs
scripts/metadata.pl中有 關於FEATURES的定義:
1 利用這個perl腳本可以把下面的如jffs2,broken這些轉化為BROKEN,USES_JFFS2這些實際的CONFIG_參數。
2 同時注意區別depends BROKEN 和 select USES_JFFS2,這也就是為什麼FEATURES:=broken的效果和FEATURES:=jffs2不一樣的原因!
- sub target_config_features(@) {
- my $ret;
-
- while ($_ = shift @_) {
- /broken/ and $ret .= "\tdepends BROKEN\n";
- /audio/ and $ret .= "\tselect AUDIO_SUPPORT\n";
- /display/ and $ret .= "\tselect DISPLAY_SUPPORT\n";
- /gpio/ and $ret .= "\tselect GPIO_SUPPORT\n";
- /pci/ and $ret .= "\tselect PCI_SUPPORT\n";
- /pcie/ and $ret .= "\tselect PCIE_SUPPORT\n";
- /usb/ and $ret .= "\tselect USB_SUPPORT\n";
- /pcmcia/ and $ret .= "\tselect PCMCIA_SUPPORT\n";
- /squashfs/ and $ret .= "\tselect USES_SQUASHFS\n";
- /jffs2/ and $ret .= "\tselect USES_JFFS2\n";
- /ext2/ and $ret .= "\tselect USES_EXT2\n";
- /targz/ and $ret .= "\tselect USES_TARGZ\n";
- /cpiogz/ and $ret .= "\tselect USES_CPIOGZ\n";
- /ubifs/ and $ret .= "\tselect USES_UBIFS\n";
- /fpu/ and $ret .= "\tselect HAS_FPU\n";
- /ramdisk/ and $ret .= "\tselect USES_INITRAMFS\n";
- /powerpc64/ and $ret .= "\tselect powerpc64\n";
- /nommu/ and $ret .= "\tselect NOMMU\n";
- }
- return $ret;
- }