Build the Linux kernel independently from Buildroot

This will allow for other types of root filesystems that don't rely on Buildroot
to be added and used in the future.

Propagate --verbose on all build scripts to see full GCC commands.

build-all: allow for neat subsets

also 9p share rootfs_overlay. TODO document.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-09-28 08:31:38 +01:00
parent e8cd0caa9e
commit bc73cebff1
27 changed files with 942 additions and 214 deletions

13
update-buildroot-kernel-configs Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -eux
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
getvar="${root_dir}/getvar"
for arch in x86_64 arm aarch64; do
linux_arch="$("${getvar}" --arch "$arch" linux_arch)"
linux_buildroot_build_dir="$("${getvar}" --arch "$arch" linux_buildroot_build_dir)"
linux_config_dir="$("${getvar}" --arch "$arch" linux_config_dir)"
"${root_dir}/build-buildroot" --baseline --build-linux --no-all -- linux-configure
cd "$linux_build_dir"
make ARCH="$linux_arch" savedefconfig
cp defconfig "${linux_config_dir}/buildroot-${arch}"
done