File tree Expand file tree Collapse file tree 7 files changed +37
-0
lines changed
Expand file tree Collapse file tree 7 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: BSD-3-Clause
2+ # Copyright(c) 2023 Meta
3+
4+ menu "Compatibility"
5+
6+ config SOF_COMPAT_INCLUDES
7+ bool "Use legacy include path"
8+ default n
9+ help
10+ Use legacy Zephyr include paths.
11+
12+ endmenu
13+
14+ source "Kconfig"
Original file line number Diff line number Diff line change @@ -56,3 +56,6 @@ CONFIG_SCHED_CPU_MASK_PIN_ONLY=y
5656CONFIG_SYS_CLOCK_TICKS_PER_SEC=15000
5757CONFIG_DAI=y
5858CONFIG_HEAP_MEM_POOL_SIZE=2048
59+
60+ # To be able to use Zephyr legacy include paths
61+ CONFIG_SOF_COMPAT_INCLUDES=y
Original file line number Diff line number Diff line change 3838#include <zephyr/logging/log_ctrl.h>
3939#include <user/abi_dbg.h>
4040#include <sof_versions.h>
41+ #ifdef CONFIG_SOF_COMPAT_INCLUDES
4142#include <version.h>
43+ #else
44+ #include <zephyr/version.h>
45+ #endif
4246#endif
4347#include <sof/lib/ams.h>
4448
Original file line number Diff line number Diff line change 2929#include <sof_versions.h>
3030
3131#ifdef __ZEPHYR__
32+ #ifdef CONFIG_SOF_COMPAT_INCLUDES
3233#include <version.h>
34+ #else
35+ #include <zephyr/version.h>
36+ #endif
3337#endif
3438
3539#include <errno.h>
Original file line number Diff line number Diff line change 2323#include <zephyr/init.h>
2424#include <zephyr/kernel.h>
2525#include <zephyr/pm/policy.h>
26+ #ifdef CONFIG_SOF_COMPAT_INCLUDES
2627#include <version.h>
28+ #else
29+ #include <zephyr/version.h>
30+ #endif
2731#include <zephyr/sys/__assert.h>
2832#include <zephyr/cache.h>
2933
Original file line number Diff line number Diff line change 1717#include <rtos/alloc.h>
1818
1919/* Zephyr includes */
20+ #ifdef CONFIG_SOF_COMPAT_INCLUDES
2021#include <version.h>
22+ #else
23+ #include <zephyr/version.h>
24+ #endif
2125#include <zephyr/kernel.h>
2226#include <zephyr/device.h>
2327#include <zephyr/drivers/mm/mm_drv_intel_adsp_mtl_tlb.h>
Original file line number Diff line number Diff line change 2929#include <zephyr/kernel_structs.h>
3030#include <zephyr/kernel.h>
3131#include <zephyr/pm/policy.h>
32+ #ifdef CONFIG_SOF_COMPAT_INCLUDES
3233#include <version.h>
34+ #else
35+ #include <zephyr/version.h>
36+ #endif
3337#include <zephyr/sys/__assert.h>
3438#include <zephyr/logging/log_ctrl.h>
3539#include <zephyr/logging/log.h>
You can’t perform that action at this time.
0 commit comments