From 196c48ee5e82afb848c55a65b6d044d150e8d7ea Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 9 Nov 2023 13:46:46 +0100 Subject: [PATCH] Use kernel local version for HAOS compiled Linux kernel (#2912) * Use kernel local version for HAOS compiled Linux kernel Use the local version config option to add "haos" to the system's Linux kernel version to indicate the kernel is built specifically for Home Assistant OS. This makes sure to overwrite any other local version (e.g. provided by Raspberry Pi kernel's defconfig) and makes it easier to verify something is running on HAOS since the string will be visible in any Container using `uname -a`. * Add dash in front --- buildroot-external/board/raspberrypi/kernel.config | 1 + buildroot-external/kernel/hassos.config | 1 + 2 files changed, 2 insertions(+) diff --git a/buildroot-external/board/raspberrypi/kernel.config b/buildroot-external/board/raspberrypi/kernel.config index bcc47a26b..6097aaee4 100644 --- a/buildroot-external/board/raspberrypi/kernel.config +++ b/buildroot-external/board/raspberrypi/kernel.config @@ -1,6 +1,7 @@ # CONFIG_AUTOFS4_FS is not set # CONFIG_AUTOFS_FS is not set # CONFIG_PGTABLE_MAPPING is not set +CONFIG_LOCALVERSION="-haos-raspi" CONFIG_NVME_CORE=y CONFIG_BLK_DEV_NVME=y diff --git a/buildroot-external/kernel/hassos.config b/buildroot-external/kernel/hassos.config index ae6f84f0e..1e0875d82 100644 --- a/buildroot-external/kernel/hassos.config +++ b/buildroot-external/kernel/hassos.config @@ -1,3 +1,4 @@ +CONFIG_LOCALVERSION="-haos" CONFIG_KERNEL_LZ4=y CONFIG_CMDLINE="" CONFIG_PANIC_TIMEOUT=5