buildroot 基础用法

准备

1
https://buildroot.org/downloads/buildroot-2025.02.3.tar.gz

配置

defconfig

1
make O=output qemu_arm_vexpress_defconfig
1
make O=output menuconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Bootloaders  --->
[*] U-Boot
(vexpress_ca9x4) Board defconfig
U-Boot binary format --->
[*] u-boot

Target packages --->
# 这个要选中,不然 vim 和 bash 都看不到
[*] Show packages that are also provided by busybox
Development tools --->
# gnu sed,自带的不标准,elixir 会报错
[*] sed

# sh 对标准的支持太差
Shell and utilities --->
[*] bash
Text editors and viewers --->
[*] vim

编译

1
make O=output -j$(nproc)

编译结果在 output/images