Download (BID) Specification - Operating Systems Group
Transcript
B.3 Statements B.3.8 B tristate /prompt/ CONFIGURATION LANGUAGE /symbol/ This verb displays /prompt/ to the user, accepts a value from the user, and assigns that value to /symbol/. Legal values are ”n”, ”m”, or ”y”. The value ”m” stands for ”module”; it indicates that /symbol/ should be built as a kernel module. The value ”m” is legal only if the symbol CONFIG MODULES currently has the value ”y”. The tristate verb does not have a default value. Configure: implemented Menuconfig: implemented Xconfig: implemented mconfig: implemented Example: # fs/Config.in tristate ’NFS filesystem support’ CONFIG_NFS_FS B.3.9 define bool /symbol/ /word/ This verb the value of /word/ to /symbol/. Legal values are ”n” or ”y”. For compatibility reasons, the value of ”m” is also legal, because it will be a while before define tristate is implemented everywhere. Configure: implemented Menuconfig: implemented Xconfig: implemented mconfig: implemented Example: # arch/alpha/config.in if [ "$CONFIG_ALPHA_GENERIC" = "y" ] then define_bool CONFIG_PCI y define_bool CONFIG_ALPHA_NEED_ROUNDING_EMULATION y fi B.3.10 define hex /symbol/ /word/ This verb assigns the value of /word/ to /symbol/. Any hexadecimal number is a legal value. Configure: implemented Menuconfig: implemented Xconfig: implemented mconfig: implemented Example: # Not from the corpus bool ’Specify custom serial port’ CONFIG_SERIAL_PORT_CUSTOM if [ "$CONFIG_SERIAL_PORT_CUSTOM" = "y" ]; then hex ’Serial port number’ CONFIG_SERIAL_PORT else define_hex CONFIG_SERIAL_PORT 0x3F8 fi 46