最終更新:2022-10-06 (木) 04:12:41 (351d)
Buildroot/使い方
メモ
- 一般ユーザとして実行
手順
プリセットのロード
構成の作成
- Buildroot/make *config?
Buildroot/make menuconfig curses? Buildroot/make nconfig? ncurses Buildroot/make xconfig Qt Buildroot/make gconfig? GTK
ログを保存したい場合
- teeを使う
make 2>&1 | tee build.log
ビルド
- Buildroot/make
- デフォルトだと並列コンパイルに対応しない。
- ステップ
- download source files (as required);
- configure, build and install the cross-compilation toolchain, or simply import an external toolchain;
- configure, build and install selected target packages;
- build a kernel image, if selected;
- build a bootloader image, if selected;
- create a root filesystem in selected formats.
- 出力先
- output/
その他コマンド
- Display all commands executed by make:
$ make V=1 <target>
- Display the list of boards with a defconfig:
$ make list-defconfigs
- Display all available targets:
$ make help
make clean make distclean Resetting Buildroot for a new target
メモ
- Buildroot does not attempt to detect what parts of the system should be rebuilt when the system configuration is changed through make menuconfig, make xconfig or one of the other configuration tools.