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
This commit is contained in:
Stefan Agner 2023-11-09 13:46:46 +01:00 committed by GitHub
parent 5e80f74b7a
commit 196c48ee5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -1,3 +1,4 @@
CONFIG_LOCALVERSION="-haos"
CONFIG_KERNEL_LZ4=y
CONFIG_CMDLINE=""
CONFIG_PANIC_TIMEOUT=5