最終更新:2014-12-26 (金) 16:46:37 (3406d)
BusyBox
Top / BusyBox
組み込みLinuxのスイスアーミーナイフ
コマンドの集合体で、“busybox”という1つの実行ファイルで「ls」「cat」「vi」「httpd」といったさまざまなコマンドの機能を使うことができる
メリット
- ファイルサイズを削減できる
- コンパイル作業が簡単
メモ
- 通常、バージョンアップデート後数週間以内にリリースされるマイナーリリース(1.x.1)を安定版としている
コマンド
アプレット
- コマンドの機能に相当するもの
libbb?
- アプレット間で共通して使う関数を定義
コンパイル
$ make menuconfig $ make
make help
- Cleaning
- make clean - delete temporary files created by build
- make distclean? - delete all non-source files (including .config)
- make doc-clean? - delete all generated documentation
- Build
- Configuration
- make allnoconfig? - disable all symbols in .config
- make allyesconfig? - enable all symbols in .config (see defconfig)
- make config - text based configurator (of last resort)
- make defconfig - set .config to largest generic configuration
- make menuconfig - interactive curses-based configurator
- make oldconfig - resolve any unresolved symbols in .config
- make hosttools? - build sed for the host.
- Installation
- make install - install busybox into CONFIG_PREFIX
- make uninstall
- Development
- make baseline? - create busybox_old for bloatcheck.
- make bloatcheck? - show size difference between old and new versions
- make check? - run the test suite for all applets
- make checkhelp? - check for missing help-entries in Config.in
- make randconfig? - generate a random configuration
- make release? - create a distribution tarball
- make sizes? - show size of all enabled busybox symbols
- make objsizes? - show size of each .o object built
- make bigdata? - show data objects, biggest first
- make stksizes? - show stack users, biggest first
Android
参考
- @IT/MONOist/組み込み開発/いますぐ使える! BusyBox活用術?
- http://sourceforge.jp/magazine/14/12/27/070100