Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,15 @@ The same `KEEP_SRC` variants work here too.

### Assembling disk images

Once you have bootloader outputs in `prebuilt/u-boot/` and kernel outputs in `prebuilt/linux/`, run:
Once you have bootloader outputs in `prebuilt/u-boot/` and kernel outputs in `prebuilt/linux-mainline/` and `prebuilt/linux-bsp/`, run:

```bash
./build-images.sh
```

This produces compressed images for each board whose bootloader is present. The kernel and root filesystem are shared; only the bootloader partition differs per board. Output files: `out/debian-<sector-size>-<board>-<timestamp>.img.gz` with a matching `.bmap` file, for both 512-byte and 4096-byte sector variants. When run inside the container, images go to `out/images/` instead (the container sets `IMG_OUT=/artifacts/images`).

Don't run the mainline and BSP kernel scripts in parallel against the same output directory — both write to the same `prebuilt/linux/` path and the final packaging step will fail. Run one, then the other (or set separate `LINUX_OUT` paths).
The mainline and BSP kernel scripts now default to separate output directories (`prebuilt/linux-mainline` and `prebuilt/linux-bsp`), so they can safely be run in parallel. If you need a custom path, set `LINUX_OUT` in the environment.

### Writing the image to SD/eMMC

Expand Down
2 changes: 1 addition & 1 deletion build-kernel-bsp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
: "${VENDOR_DTS:=vendor-dts}"
: "${PATCHES_DIR:=patches/bsp}"
: "${KEEP_SRC:=no}"
: "${LINUX_OUT:=prebuilt/linux}"
: "${LINUX_OUT:=prebuilt/linux-bsp}"
: "${CROSS_COMPILE:=aarch64-linux-gnu-}"
: "${CONFIGS:=configs/linux-bsp}"

Expand Down
2 changes: 1 addition & 1 deletion build-kernel-mainline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
: "${LINUX_DIR:=src/linux}"
: "${VENDOR_DTS:=vendor-dts}"
: "${KEEP_SRC:=no}"
: "${LINUX_OUT:=prebuilt/linux}"
: "${LINUX_OUT:=prebuilt/linux-mainline}"
: "${CROSS_COMPILE:=aarch64-linux-gnu-}"
: "${BASE_CONFIG:=configs/minconfig-mainline}"
: "${CONFIGS:=configs/linux}"
Expand Down