aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-05-06 14:05:29 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-05-07 13:52:54 +0000
commitdbf35fa107c9dc1944638daffdbba080d6018c20 (patch)
tree79d52592e980d700f5f836c961a02e8712dd5192 /tools
parent350f4ffc211908fed1507b105460d0ce8400ea65 (diff)
tools: update create-buildroot-image.sh script
Use a newer Buildroot release. Use an appropriate arm instruction set for arm32. Reduce the syslogd logging level. Closes #5986. Closes #5452.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/create-buildroot-image.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/tools/create-buildroot-image.sh b/tools/create-buildroot-image.sh
index 0bf0fd386..e406ffa56 100755
--- a/tools/create-buildroot-image.sh
+++ b/tools/create-buildroot-image.sh
@@ -40,7 +40,7 @@ case "$TARGETARCH" in
esac
git fetch origin
-git checkout 2022.08.2
+git checkout 2025.02.1
make "${DEFCONFIG}"
@@ -121,15 +121,15 @@ BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
BR2_LINUX_KERNEL_IMAGEGZ=y
BR2_LINUX_KERNEL_GZIP=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.235"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/aarch64-efi/post-image.sh ./post_image_script.sh support/scripts/genimage.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="-c ./custom-genimage-efi.cfg"
EOF
;;
arm)
cat >>.config <<EOF
-BR2_cortex_a57=y
# BR2_LINUX_KERNEL is not set
+BR2_cortex_a15_a7=y
BR2_TARGET_ROOTFS_EXT2_4=y
EOF
;;
@@ -155,6 +155,15 @@ EOF
;;
esac
+# Set syslogd level to "critical", otherwise we may get too many unrelated logs (see #5452).
+sed -i 's/SYSLOGD_ARGS=""$/SYSLOGD_ARGS="-l 2"/' package/busybox/S01syslogd
+
+# dhcpd version 10.1.0 fails to start in the presence of CONFIG_SECCOMP.
+sed -i 's/DHCPCD_VERSION = 10.1.0$/DHCPCD_VERSION = 10.2.0/' package/dhcpcd/dhcpcd.mk
+if ! grep -q "dhcpcd-10.2.0.tar.xz" package/dhcpcd/dhcpcd.hash; then
+ echo "sha256 7916fed1560835b5b9d70d27604c3858e501c5a177eef027f96eb7ab0f711399 dhcpcd-10.2.0.tar.xz" >> package/dhcpcd/dhcpcd.hash
+fi
+
# This script modifies the target root filesystem
# before it's packed into the final image.
# This part is common for all architectures.