mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
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.
14 lines
579 B
Bash
Executable File
14 lines
579 B
Bash
Executable File
#!/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
|