Chinaunix首页 | 论坛 | 博客
  • 博客访问: 52592
  • 博文数量: 14
  • 博客积分: 256
  • 博客等级: 入伍新兵
  • 技术积分: 115
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-17 01:02
文章分类

全部博文(14)

文章存档

2017年(1)

2016年(4)

2015年(1)

2012年(6)

2010年(2)

分类: 嵌入式

2012-08-13 09:14:16

Busybox Setting配置

Busybox Settings  --->                                //busybox设置选项

         General Configuration  --->                                //通用设置

                   /*桌面系统全配置,嵌入式系统不需要*/

                   [ ] Enable options for full-blown desktop systems

                   [ ] Provide compatible behavior for rare corner cases (bigger code) (NEW)

                   /*兼容SUSv2以后命令*/

                   [*] Enable obsolete features removed before SUSv3 (NEW)

                   /*如果不适用GCC编译需要选择,用GCC不需要*/

                   [ ] Avoid using GCC-specific code constructs (NEW)

                   --- Enable Linux-specific applets and features

                            /*缓冲区分配政策(适用malloc分配)*/

                            Buffer allocation policy (Allocate with Malloc)  --->

                   /*显示简短的帮助信息,如果不想显示,可以节省7K空间*/

                   [*] Show applet usage messages (NEW)

                   /*显示详细的帮助信息,增加13K*/

                   [*]   Show verbose applet usage messages (NEW)

                   /*运行 —help显示的帮助信息*/

                   [*]   Store applet usage messages in compressed form (NEW)

                   /*支持—install [-s]命令,该选项允许在busybox运行时动态创建链接*/

                   [*] Support --install [-s] to install applet links at runtime (NEW)

/*不使用/usr,当make install时,所有程序安装在/bin/sbin下,而不安装在/usr/bin/usr/sbin*/

                   [ ] Don't use /usr (NEW)

                   /*支持系统语言环境,需要系统支持*/

                   [ ] Enable locale support (system needs locale for this to work) (NEW)

                   /*支持unicode编码*/

                   [*] Support Unicode (NEW)

                   /*选中当LANG变量值为“XXXX.utf8时生效,否则总是生效”*/

                   [ ]   Check $LANG environment variable (NEW)

                   /*典型值63,表示一切输入输出设备*/

                   (63)  Character code to substitute unprintable characters with (NEW)

                   /*不支持拉丁文*/

                   (767) Range of supported Unicode characters (NEW)

                   /*如果不选,0长度的unicode字符编码不显示*/

                   [ ]   Allow zero-width Unicode characters on output (NEW)

                   /*如果不选,大于1长度的unicode字符编码不显示*/

                   [ ]   Allow wide Unicode characters on output (NEW)

                   /**/

                   [ ]   Bidirectional character-aware line input (NEW)

 

                   /**/

                   [ ]   Make it possible to enter sequences of chars which are not Unicode (NEW)

                   /*允许使用GUN的长参数*/

                   [*] Support for --long-options (NEW)

                   /*需要devpts挂载上*/

                   [*] Use the devpts filesystem for Unix98 PTYs (NEW)

                   /*除非你有一个好的原因,否则不要使能*/

                   [ ] Clean up all memory before exiting (usually not needed) (NEW)

                   /*使用 /var/run/utmp追踪哪个用户处于登陆状态,程序在这设置和删除接入点*/

                   [*] Support utmp file (NEW)

                   /*程序将在/var/run/wtmp文件附加新接入点*/

                   [*]   Support wtmp file (NEW)

                   /*支持一些程序写pid文件*/

                   [*] Support writing pidfiles (NEW)

                   /*设置busybox的二进制程序给予root权限*/

                   [*] Support for SUID/SGID handling (NEW)

                   /*通过检查/etc/busybox.conf文件来确定SUID/SGID的状态(笨方法)*/

                   [*]   Runtime SUID/SGID configuration via /etc/busybox.conf (NEW)

                   /*选中避免没有权限的警告*/

                   [*]     Suppress warning message if /etc/busybox.conf is not readable (NEW)

                   /*启用SELinux支持LSPSID指令。还提供了SELinux中的applet编译选项。*/

                   [ ] Support NSA Security Enhanced Linux (NEW)

/*试验性选项,制定busybox运行的程序,及时没有连接到busybox,可能引起一些问题*/

                   [ ] exec prefers applets (NEW)

                   (/proc/self/exe) Path to BusyBox executable (NEW)

         Build Options  --->                                                          //编译选项

                   /*静态编译,不需要动态库,会使编译的文件变大很多*/

                   [ ] Build BusyBox as a static binary (no shared libs) (NEW) 

                   /*几乎没人使用*/

                [ ]   Build BusyBox as a position independent executable (NEW)

                   /*支持无MMU版本*/

                 [ ] Force NOMMU build (NEW)

                   /*建立一个包含素有busybox代码的库libbusybox.so.N.N.N*/

           [ ] Build shared libbusybox (NEW)

                   /*如果想支持2GB的大文件选上,否则不选,选择需要库支持*/

[*] Build with Large File Support (for accessing files > 2 GB) (NEW)

/*交叉编译器路径,例:arm-linux-*/

()  Cross Compiler prefix (NEW)

/*用于指定交叉编译时的/usr/libusr/include路径,本地留空*/

()  Path to sysroot (NEW)

/*传给编译器的CFLAGS*/

()  Additional CFLAGS (NEW)

 

/*传给连接器的LDFLAGS*/

()  Additional LDFLAGS (NEW)

/*通过-l传给连接器的LDLIB*/

()  Additional LDLIBS (NEW)

         Debugging Options  --->                                     //调试选项

                   [ ] Build BusyBox with extra Debugging symbols (NEW)           //开发时调试用

                 [ ] Abort compilation on any warning (NEW)                               //GCC增加-Werror选项

Additional debugging library (None)  --->                                  //调试用的库

         (X) None

        ( ) Dmalloc

        ( ) Electric-fence

         Installation Options ("make install" behavior)  --->                           //安装选项

                   What kind of applet links to install (as soft-links)  --->             //链接类型,一般选软链接

                            (X) as soft-links

( ) as hard-links

( ) as script wrappers

( ) not installed

                   /*make install时生成文件的位置。默认当前目录下的_install*/

(./_install) BusyBox installation prefix (NEW)                    

         Busybox Library Tuning  --->                              //库微调

                   /*使能systemd控制busybox的守护进程,能减少代码*/

                   [*] Enable systemd support (NEW)

                   /*支持killkillallRTMINRTMAX信号名称,占250字节*/

[*] Support RTMIN[+n] and RTMAX[-n] signal names (NEW)

/*最小密码长度*/

(6) Minimum password length (NEW)

/*运行MD5SUM算法的速度*/

(1)     MD5: Trade bytes for speed (0:fast, 3:slow) (NEW)

/*使上层执行速度快20%或减少20%CPU消耗,但代码稍大*/

[*] Faster /proc scanning code (+100 bytes) (NEW)

/*启用/etc/networks中网络名称,很少使用*/

[ ] Support for /etc/networks (NEW)

/*允许通过一些命令确定窗口大小,要使用*/

[*] Use termios to manipulate the screen (NEW)

/*命令行模式,主要用于shell*/

[*] Command line editing (NEW)

/*命令行在堆栈缓冲区的大小*/

(1024) Maximum length of input (NEW)

/*启用VI风格的命令行*/

[ ]   vi-style line editing commands (NEW)

/*制定命令历史记录,0为禁止*/

(255) History size (NEW)

/*保存shell模式下的历史*/

[*]   History saving (NEW)

/*言如其义*/

[ ]     Save history on shell exit, not after every command (NEW)

/*启用历史搜索,增加0.5K代码*/

[*]     Reverse history search (NEW)

/*使用TAB补全,很好用*/

[*]   Tab completion (NEW)

/*使能用户名补全*/

[ ]     Username completion (NEW)

/*允许使用转移字符提示*/

[*]   Fancy shell prompts (NEW)

/*使能显示光标位置,关闭可节省代码空间*/

[ ]   Query cursor position from terminal (NEW)

/*使用此选项,当使用CP命令复制符号链接时将符号链接复制成普通文件*/

[*] Non-POSIX, but safer, copying to special nodes (NEW)

/*使能一些CP错误信息,增加60字节*/

[ ] Give more precise messages when copy fails (cp, mv etc) (NEW)

/*一些命令使用的缓冲区大小*/

(4) Copy buffer size, in kilobytes (NEW)

/**/

[*] Skip rootfs in mount table (NEW)

/*使用clock_gettime(CLOCK_MONOTONIC) 系统调用,一些命令会用到准确时间,不使用可能引发错误*/

[ ] Use clock_gettime(CLOCK_MONOTONIC) syscall (NEW)

/*使用名称显示错误而不是十六进制数,不选择节省1400字节空间*/

[*] Use ioctl names rather than hex values in error messages (NEW)

/*支持在网络中打印infiniband地址*/

[*] Support infiniband HW (NEW)

阅读(3793) | 评论(1) | 转发(2) |
给主人留下些什么吧!~~

mr_free2012-09-20 15:03:23

评论热议
请登录后评论。

登录 注册