update-buildroot-kernel-configs 579 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. set -eux
  3. root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
  4. getvar="${root_dir}/getvar"
  5. for arch in x86_64 arm aarch64; do
  6. linux_arch="$("${getvar}" --arch "$arch" linux_arch)"
  7. linux_buildroot_build_dir="$("${getvar}" --arch "$arch" linux_buildroot_build_dir)"
  8. linux_config_dir="$("${getvar}" --arch "$arch" linux_config_dir)"
  9. "${root_dir}/build-buildroot" --baseline --build-linux --no-all -- linux-configure
  10. cd "$linux_build_dir"
  11. make ARCH="$linux_arch" savedefconfig
  12. cp defconfig "${linux_config_dir}/buildroot-${arch}"
  13. done