我是靠谱客的博主 苹果秀发,这篇文章主要介绍编译并使用busybox时ps不支持复杂的选项,现在分享给大家,希望可以做个参考。

问题: 在使用busybox制作rootfs时, 发现busybox–>ps指令不支持复杂的选项, 在menuconfig界面上也只显示了-l -w两个选项。

处理: 启用DESKTOP配置, 路径:
Busybox Settings -->[*] Enable options for full-blown desktop systems
开启之后原来的 -l -w两个选项会被覆盖,使用默认的配置即可。打开帮助,可以查看DESKTOP选项的解释, 大致意思就是启用DESKTOP之后,busybox将会使用更高级和更完整的指令集,而非精简的指令,缺点是生成的busybox会更大,资源紧张的嵌入式系统须慎用。考虑到这一点, 也可以直接下载ps的源码编译。

CONFIG_DESKTOP:                                                                                                                             │  
  │                                                                                                                                             │  
  │ Enable options and features which are not essential.                                                                                        │  
  │ Select this if you plan to use busybox on full-blown desktop machine                                                                        │  
  │ with common Linux distro, which needs higher level of command-line                                                                          │  
  │ compatibility.                                                                                                                              │  
  │                                                                                                                                             │  
  │ If you are preparing your build to be used on an embedded box                                                                               │  
  │ where you have tighter control over the entire set of userspace                                                                             │  
  │ tools, you can unselect this option for smaller code size.                                                                                  │  
  │                                                                                                                                             │  
  │ Symbol: DESKTOP [=y]                                                                                                                        │  
  │ Prompt: Enable options for full-blown desktop systems                                                                                       │  
  │   Defined at Config.in:14                                                                                                                   │  
  │   Location:                                                                                                                                 │  
  │     -> Busybox Settings

procps-ng链接:https://sourceforge.net/projects/procps-ng/files/Production

最后

以上就是苹果秀发最近收集整理的关于编译并使用busybox时ps不支持复杂的选项的全部内容,更多相关编译并使用busybox时ps不支持复杂内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(113)

评论列表共有 0 条评论

立即
投稿
返回
顶部