Skip to content

Commit

Permalink
updated buildroot basics
Browse files Browse the repository at this point in the history
  • Loading branch information
cooked committed Jan 7, 2024
1 parent 59b1151 commit 6c5d2ec
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions _posts/2023-12-01-buildroot_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<whatever/path/to/file_defconfig> savedefconfig
```

Expand Down

0 comments on commit 6c5d2ec

Please sign in to comment.