br2-external: move the Buildroot external tree into br2-external/

The Buildroot external tree and the workspace build orchestration share
the repository root, so BR2_EXTERNAL covers scripts/, sdk/ and the
Makefile as well. Move Config.in, external.{desc,mk}, board/, configs/,
linux/, package/, patches/ and the overlays into br2-external/, and
point the Makefile, the build scripts and package-state.py at it. Make
lint reject references from br2-external/ back into the workspace, and
document the layout in README.md.

Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
64 files changed
tree: fd5ea485d762df63162bdc41c8d104b4e374c82c
  1. br2-external/
  2. scripts/
  3. sdk/
  4. .dockerignore
  5. .editorconfig
  6. .gitattributes
  7. .gitignore
  8. buildroot.patch
  9. Dockerfile
  10. LICENSE
  11. Makefile
  12. README.md
README.md

linux-tpmdd test suite

bootc container host for linux-tpmdd kernel testing. Builds a live ISO/image and an OCI bootc image (rootfs-oci-latest-<arch>-linux.oci-image.tar).

Project layout

  • br2-external/ — self-contained Buildroot definitions, board assets, packages, patches, kernel configs, and rootfs overlays.
  • sdk/ — SDK toolchain defconfigs.
  • scripts/, Makefile, buildroot.patch — workspace build orchestration.

Buildroot prepares and validates the rootfs. Workspace scripts then produce the image manifest, live rootfs, and boot media, in that order.

Building

Host

make build BOARD=tpmdd_amd64
make build BOARD=tpmdd_arm64

After changing Buildroot package options, run make clean before rebuilding both targets. Incremental builds do not rebuild reverse dependencies and may otherwise combine incompatible binaries and libraries.

Artifacts under build/<BOARD>/images/:

  • tpmdd_amd64.iso — live test and offline installation media (UEFI)
  • tpmdd_arm64.img — live test media for Raspberry Pi
  • rootfs-oci-latest-<arch>-linux.oci-image.tar — OCI bootc container (containers.bootc=1)
  • image.manifest — imgref/digest metadata
  • ssh_config — generated SSH client config

OCI container

CONTAINER=docker ./scripts/container-build.sh

Builds every board defconfig; Buildroot downloads/ccache stay in tpmdd-cache. Export TPMDD_VERSION and/or TPMDD_TARGET_IMGREF to override the image version and target image reference. Unset variables retain their build defaults.

Running

Build first with make build BOARD=<BOARD>. make burn only writes an existing image and requires DEVICE:

make burn BOARD=tpmdd_amd64 DEVICE=/dev/sdX
make burn BOARD=tpmdd_arm64 DEVICE=/dev/sdX

Open a root SSH session with the generated client configuration:

make ssh BOARD=tpmdd_amd64