diff --git a/_posts/2023-12-01-buildroot_basics.md b/_posts/2023-12-01-buildroot_basics.md index d4029fc..1218eaa 100644 --- a/_posts/2023-12-01-buildroot_basics.md +++ b/_posts/2023-12-01-buildroot_basics.md @@ -55,19 +55,34 @@ touch external.desc touch Config.in touch external.mk ``` +Let Buildroot know about the ext folder setting the BR2_EXTERNAL variable: -See [9.2. Keeping customizations outside of Buildroot](https://buildroot.org/downloads/manual/manual.html#outside-br-custom). +```bash +make BR2_EXTERNAL=/path/to/ext/folder menuconfig # exit without saving +``` + +**Note!** If building **out-of-tree** run the above commands from the Buildroot output folder. +{: .notice--success} **Note!** A relative path is interpreted relative to the main Buildroot source directory, not to the Buildroot output directory. {: .notice--info} +See [9.2. Keeping customizations outside of Buildroot](https://buildroot.org/downloads/manual/manual.html#outside-br-custom). + + ## Work with config ``` bash # list configurations make list-defconfigs -# save configurations (specifying the path make sure to override whatever path is defined in the current .config) +# load one of the available configurations (then edit it) +make rpi4_defconfig +make menuconfig + +# save at the location specified in .config +make savedefconfig +# or save overriding the location make BR2_DEFCONFIG= savedefconfig ```