Refer to https://buildroot.org/downloads/manual/manual.html
Tips
> How to clean only target in buildroot (for example, you removed some packages)
When a package is removed from the configuration, Buildroot does not do anything special. It does not remove the files installed by this package from the target root filesystem or from the toolchain sysroot. A full rebuild is needed to get rid of this package. However, generally you don’t necessarily need this package to be removed right now: you can wait for the next lunch break to restart the build from scratch.
Buildroot tracks build progress with .stamp_xxx in each package build dir. target install is actually the last stage for each package. So removing the .stamp_target_installed file from each package build dir would cause it to reinstall to target
rm -rf output/target
find output/ -name ".stamp_target_installed" |xargs rm -rf
1. AllWinner T3/Buildroot
lake@localhost:~/aw_t3/aw_t3_grid_3.10-v1.0$ ls -l
total 36
drwxr-xr-x 8 lake sudo 4096 Nov 1 23:14 brandy
-rwxr-xr-x 1 lake sudo 134 Nov 1 23:16 build.sh
drwxr-xr-x 18 lake sudo 4096 Dec 14 22:20 buildroot-201611
-rwxr-xr-x 1 lake sudo 1010 Nov 1 23:16 comp_qtLib-590_only.sh
drwxr-xr-x 3 lake sudo 4096 Nov 1 23:16 doc
drwxr-xr-x 29 lake sudo 4096 Dec 17 01:03 linux-3.10
-rw-r--r-- 1 lake sudo 141 Dec 17 00:12 misc_config
drwxr-xr-x 3 lake sudo 4096 Dec 17 00:12 out
drwxr-xr-x 8 lake sudo 4096 Dec 14 22:22 tools
lake@localhost:~/aw_t3/aw_t3_grid_3.10-v1.0$
lake@localhost:~/aw_t3/aw_t3_grid_3.10-v1.0$ make help -C buildroot-201611/
make: Entering directory '/home/lake/aw_t3/aw_t3_grid_3.10-v1.0/buildroot-201611'
Cleaning:
clean - delete all files created by build
distclean - delete all non-source files (including .config)
Build:
all - make world
toolchain - build toolchain
Configuration:
menuconfig - interactive curses-based configurator
nconfig - interactive ncurses-based configurator
xconfig - interactive Qt-based configurator
gconfig - interactive GTK-based configurator
oldconfig - resolve any unresolved symbols in .config
silentoldconfig - Same as oldconfig, but quietly, additionally update deps
olddefconfig - Same as silentoldconfig but sets new symbols to their default value
randconfig - New config with random answer to all options
defconfig - New config with default answer to all options
BR2_DEFCONFIG, if set, is used as input
savedefconfig - Save current config to BR2_DEFCONFIG (minimal config)
allyesconfig - New config where all options are accepted with yes
allnoconfig - New config where all options are answered with no
randpackageconfig - New config with random answer to package options
allyespackageconfig - New config where pkg options are accepted with yes
allnopackageconfig - New config where package options are answered with no
Package-specific:
<pkg> - Build and install <pkg> and all its dependencies
<pkg>-source - Only download the source files for <pkg>
<pkg>-extract - Extract <pkg> sources
<pkg>-patch - Apply patches to <pkg>
<pkg>-depends - Build <pkg>'s dependencies
<pkg>-configure - Build <pkg> up to the configure step
<pkg>-build - Build <pkg> up to the build step
<pkg>-show-depends - List packages on which <pkg> depends
<pkg>-show-rdepends - List packages which have <pkg> as a dependency
<pkg>-graph-depends - Generate a graph of <pkg>'s dependencies
<pkg>-graph-rdepends - Generate a graph of <pkg>'s reverse dependencies
<pkg>-dirclean - Remove <pkg> build directory
<pkg>-reconfigure - Restart the build from the configure step
<pkg>-rebuild - Restart the build from the build step
Example
make qt5base-dirclean
make qt5base-rebuild
make qt5base-reconfigure
make qt5base
buildroot$ make sdl2-dirclean V=1
rm -Rf buildroot/output/build/sdl2-2.0.16
buildroot/buildroot$ make sdl2-rebuild V=1
busybox:
busybox-menuconfig - Run BusyBox menuconfig
Documentation:
manual - build manual in all formats
manual-html - build manual in HTML
manual-split-html - build manual in split HTML
manual-pdf - build manual in PDF
manual-text - build manual in text
manual-epub - build manual in ePub
graph-build - generate graphs of the build times
graph-depends - generate graph of the dependency tree
graph-size - generate stats of the filesystem size
list-defconfigs - list all defconfigs (pre-configured minimal systems)
Miscellaneous:
source - download all sources needed for offline-build
source-check - check selected packages for valid download URLs
external-deps - list external packages used
legal-info - generate info about license compliance
make V=0|1 - 0 => quiet build (default), 1 => verbose build
make O=dir - Locate all output files in "dir", including .config
For further details, see README, generate the Buildroot manual, or consult
it on-line at http://buildroot.org/docs.html
make: Leaving directory '/home/lake/aw_t3/aw_t3_grid_3.10-v1.0/buildroot-201611'
lake@localhost:~/aw_t3/aw_t3_grid_3.10-v1.0$
#### Example
lake@localhost:~/aw_t3/aw_t3_grid_3.10-v1.0$ make graph-size -C buildroot-201611/
make: Entering directory '/home/lake/aw_t3/aw_t3_grid_3.10-v1.0/buildroot-201611'
You need python-matplotlib to generate the size graph
Makefile:765: recipe for target 'graph-size' failed
make: *** [graph-size] Error 1
make: Leaving directory '/home/lake/aw_t3/aw_t3_grid_3.10-v1.0/buildroot-201611'
lake@localhost:~/aw_t3/aw_t3_grid_3.10-v1.0$ make list-defconfigs -C buildroot-201611/
make: Entering directory '/home/lake/aw_t3/aw_t3_grid_3.10-v1.0/buildroot-201611'
Built-in configs:
sun8i_defconfig - Build for sun8i
sun8iw11p1_defconfig - Build for sun8iw11p1
sun8iw11p1_hf_defconfig - Build for sun8iw11p1_hf
sun8iw11p1_kunos_defconfig - Build for sun8iw11p1_kunos
sun8iw17p1_defconfig - Build for sun8iw17p1
make: Leaving directory '/home/lake/aw_t3/aw_t3_grid_3.10-v1.0/buildroot-201611'
2. Rockchip RK3399 Buildroot /2018.02-rc3
[lhu3@zch127bld08 rk-linux-git-2021]$
[lhu3@zch127bld08 rk-linux-git-2021]$
[lhu3@zch127bld08 rk-linux-git-2021]$ make list-defconfigs -C buildroot
make: Entering directory `/data/sdb/lhu3/source/rk-linux-git/rk-linux-git-2021/buildroot'
Built-in configs:
acmesystems_aria_g25_128mb_defconfig - Build for acmesystems_aria_g25_128mb
acmesystems_aria_g25_256mb_defconfig - Build for acmesystems_aria_g25_256mb
acmesystems_arietta_g25_128mb_defconfig - Build for acmesystems_arietta_g25_128mb
acmesystems_arietta_g25_256mb_defconfig - Build for acmesystems_arietta_g25_256mb
...............
firefly_rk3288_defconfig - Build for firefly_rk3288
firefly_rk3288_demo_defconfig - Build for firefly_rk3288_demo
freescale_imx28evk_defconfig - Build for freescale_imx28evk
freescale_imx31_3stack_defconfig - Build for freescale_imx31_3stack
.............
qemu_aarch64_virt_defconfig - Build for qemu_aarch64_virt
qemu_arm_versatile_defconfig - Build for qemu_arm_versatile
qemu_arm_versatile_nommu_defconfig - Build for qemu_arm_versatile_nommu
qemu_arm_vexpress_defconfig - Build for qemu_arm_vexpress
...........
rockchip_px30_32_defconfig - Build for rockchip_px30_32
rockchip_px30_64_defconfig - Build for rockchip_px30_64
rockchip_px30_recovery_defconfig - Build for rockchip_px30_recovery
rockchip_px3se_defconfig - Build for rockchip_px3se
rockchip_px3se_recovery_defconfig - Build for rockchip_px3se_recovery
rockchip_rk1808_defconfig - Build for rockchip_rk1808
rockchip_rk1808_recovery_defconfig - Build for rockchip_rk1808_recovery
rockchip_rk3036_defconfig - Build for rockchip_rk3036
rockchip_rk3036_recovery_defconfig - Build for rockchip_rk3036_recovery
rockchip_rk3229_defconfig - Build for rockchip_rk3229
rockchip_rk3229_recovery_defconfig - Build for rockchip_rk3229_recovery
rockchip_rk3288_defconfig - Build for rockchip_rk3288
rockchip_rk3288_recovery_defconfig - Build for rockchip_rk3288_recovery
rockchip_rk3308_32_debug_defconfig - Build for rockchip_rk3308_32_debug
rockchip_rk3308_32_dueros_defconfig - Build for rockchip_rk3308_32_dueros
rockchip_rk3308_32_mini_release_defconfig - Build for rockchip_rk3308_32_mini_release
rockchip_rk3308_32_release_defconfig - Build for rockchip_rk3308_32_release
rockchip_rk3308_64_dueros_defconfig - Build for rockchip_rk3308_64_dueros
rockchip_rk3308_arch_arm64_defconfig - Build for rockchip_rk3308_arch_arm64
rockchip_rk3308_mini_release_defconfig - Build for rockchip_rk3308_mini_release
rockchip_rk3308_pcba_defconfig - Build for rockchip_rk3308_pcba
rockchip_rk3308_recovery_defconfig - Build for rockchip_rk3308_recovery
rockchip_rk3308_release_defconfig - Build for rockchip_rk3308_release
rockchip_rk3308_robot_defconfig - Build for rockchip_rk3308_robot
rockchip_rk3326_32_defconfig - Build for rockchip_rk3326_32
rockchip_rk3326_64_defconfig - Build for rockchip_rk3326_64
rockchip_rk3326_recovery_defconfig - Build for rockchip_rk3326_recovery
rockchip_rk3326_robot_defconfig - Build for rockchip_rk3326_robot
rockchip_rk3328_defconfig - Build for rockchip_rk3328
rockchip_rk3328_recovery_defconfig - Build for rockchip_rk3328_recovery
rockchip_rk3399_defconfig - Build for rockchip_rk3399
rockchip_rk3399pro_npu_defconfig - Build for rockchip_rk3399pro_npu
rockchip_rk3399_recovery_defconfig - Build for rockchip_rk3399_recovery
make: Leaving directory `/data/sdb/lhu3/source/rk-linux-git/rk-linux-git-2021/buildroot'
[lhu3@zch127bld08 rk-linux-git-2021]$
Change default config of buildroot/Rockchip (Refer to Buildroot for RK3399/zh - FriendlyARM WiKi)
make rockchip_rk3399_defconfig make menuconfig make savedefconfig diff .defconfig configs/rockchip_rk3399_defconfig cp .defconfig configs/rockchip_rk3399_defconfig