Skip to content

Commit e73b3e3

Browse files
kv2019ilgirdwood
authored andcommitted
app: add CONFIG_SOF_OS_LINUX_COMPAT_PRIORITY
Add a new Kconfig option to select strict Linux compatibility mode for SOF build. This is enabled when building with the Linux OS overlay (app/os_linux_overlay.conf). SOF is used in environments, where it is easier to force Linux version upgrade, and in environments (like the typical Linux desktop distribution), where kernel and SOF firwmare are integrated separately, and it is common place for end user to run custom kernels. This option allows to cater for both type of usages. For Intel platforms, we intend to use the strict compability approach also in the future, for the SOF firmware binaries we release via sof-bin. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 000403b commit e73b3e3

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

Kconfig.sof

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ config FAST_GET
4747
counting. Source is src/lib/fast-get.c. The option should be selected
4848
on platforms, where __cold_rodata is supported.
4949

50+
config SOF_OS_LINUX_COMPAT_PRIORITY
51+
bool "Prioritize backwards compatibility for old Linux kernels"
52+
help
53+
Build option to maintain maximal backwards compatibility with old
54+
versions of Linux SOF driver. When this is not set, firmware may
55+
require newer version of host, and/or use features that are not
56+
available in stable Linux kernel trees.
57+
5058
rsource "Kconfig.xtos"
5159

5260
rsource "src/Kconfig"

app/os_linux_overlay.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
# with SOF driver in Linux kernel
44
#
55

6+
# As a general rule, update of SOF firmware shall never
7+
# break existing systems by depending on Linux kernel patches
8+
# that have been upstreamed after commercial availability
9+
# of a product.
10+
CONFIG_SOF_OS_LINUX_COMPAT_PRIORITY=y
11+
612
# SOF Linux driver does not require FW to retain its
713
# state, so context save can be disabled
814
CONFIG_ADSP_IMR_CONTEXT_SAVE=n

0 commit comments

Comments
 (0)