Buildroot相关

buildroot 重新编译 package :

For packages relying on Buildroot packages infrastructures (see this section ??? for details), the following stamp files are relevant:

1. output/build/packagename-version/.stamp_configured. If removed, Buildroot will trigger the recompilation of the package from the configuration step (execution of ./configure).
2. output/build/packagename-version/.stamp_built. If removed, Buildroot will trigger the recompilation of the package from the compilation step (execution of make).

自定义软件包:

  1. package目录下新建自定义软件包的文件夹xxx
  2. package/Config.in中添加指向新增自定义软件包的目录选项
  3. 在文件夹中添加对应的Config.inxxx.mk文件,具体内容可参考其他包:—可以展开

  4. 最后添加对应的自定义软件包目录
    通过make menuconfig选中自定义APP
    通过Target packages -> Private package进入,选中xxx
    然后make savedefconfig
    可以make xxx单独编译

buildroot 添加外部编译链:

  1. Toolchain->Toolchain type (External toolchain)->External toolchain
  2. Toolchain origin (Pre-installed toolchain)->Pre-installed toolchain
  3. Toolchain path

编译

通过make xxx_defconfig来选择一个defconfig(./configs),
然后配置
make ARCH=arm menuconfig
Target options配置根据芯片手册来配置
toolchain设置,这里不使用buildroot编译出来的gcc, 使用外部官方的编译链来编译文件系统
Kernel Headers

1
2
make <pkg>-dirclean         - Remove <pkg> build directory
具体可见 make --help

相关命令

1
2
3
4
make savedefconfig
make spon_rk3399_arm_defconfig
make menuconfig
make