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不一样的原因!

  1. sub target_config_features(@) {  
  2.     my $ret;  
  3.   
  4.     while ($_ = shift @_) {  
  5.         /broken/ and $ret .= "\tdepends BROKEN\n";  
  6.         /audio/ and $ret .= "\tselect AUDIO_SUPPORT\n";  
  7.         /display/ and $ret .= "\tselect DISPLAY_SUPPORT\n";  
  8.         /gpio/ and $ret .= "\tselect GPIO_SUPPORT\n";  
  9.         /pci/ and $ret .= "\tselect PCI_SUPPORT\n";  
  10.         /pcie/ and $ret .= "\tselect PCIE_SUPPORT\n";  
  11.         /usb/ and $ret .= "\tselect USB_SUPPORT\n";  
  12.         /pcmcia/ and $ret .= "\tselect PCMCIA_SUPPORT\n";  
  13.         /squashfs/ and $ret .= "\tselect USES_SQUASHFS\n";  
  14.         /jffs2/ and $ret .= "\tselect USES_JFFS2\n";  
  15.         /ext2/ and $ret .= "\tselect USES_EXT2\n";  
  16.         /targz/ and $ret .= "\tselect USES_TARGZ\n";  
  17.         /cpiogz/ and $ret .= "\tselect USES_CPIOGZ\n";  
  18.         /ubifs/ and $ret .= "\tselect USES_UBIFS\n";  
  19.         /fpu/ and $ret .= "\tselect HAS_FPU\n";  
  20.         /ramdisk/ and $ret .= "\tselect USES_INITRAMFS\n";  
  21.         /powerpc64/ and $ret .= "\tselect powerpc64\n";  
  22.         /nommu/ and $ret .= "\tselect NOMMU\n";  
  23.     }  
  24.     return $ret;  
  25. }  

相关内容