mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
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:
13
update-buildroot-kernel-configs
Executable file
13
update-buildroot-kernel-configs
Executable 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
|
||||
Reference in New Issue
Block a user