OpenWrt中的FEATURES:=broken jffs2
OpenWrt中的FEATURES:=broken jffs2
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;
- }
评论暂时关闭