Skip to content

Commit

Permalink
zephyr: namespace the generated version.h
Browse files Browse the repository at this point in the history
Zephyr's build time generated `version.h` is now in the
`zephyr` to provide proper namespace, update the includes of
this module accordingly.

Signed-off-by: Yong Cong Sin <[email protected]>
  • Loading branch information
ycsin committed Nov 9, 2023
1 parent 49377e8 commit c74f38d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions app/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ CONFIG_SCHED_CPU_MASK_PIN_ONLY=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=15000
CONFIG_DAI=y
CONFIG_HEAP_MEM_POOL_SIZE=2048

# To be able to use Zephyr legacy include paths
CONFIG_COMPAT_INCLUDES=y
2 changes: 1 addition & 1 deletion src/init/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include <zephyr/logging/log_ctrl.h>
#include <user/abi_dbg.h>
#include <sof_versions.h>
#include <version.h>
#include <zephyr/version.h>
#endif
#include <sof/lib/ams.h>

Expand Down
2 changes: 1 addition & 1 deletion src/trace/dma-trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <sof_versions.h>

#ifdef __ZEPHYR__
#include <version.h>
#include <zephyr/version.h>
#endif

#include <errno.h>
Expand Down
2 changes: 1 addition & 1 deletion zephyr/lib/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/pm/policy.h>
#include <version.h>
#include <zephyr/version.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/cache.h>

Expand Down
6 changes: 5 additions & 1 deletion zephyr/lib/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@
#include <rtos/alloc.h>

/* Zephyr includes */
#include <version.h>
#include <zephyr/version.h>
#ifdef CONFIG_COMPAT_INCLUDES
#include <kernel.h>
#else
#include <zephyr/kernel.h>
#endif
#include <zephyr/device.h>
#include <zephyr/drivers/mm/mm_drv_intel_adsp_mtl_tlb.h>

Expand Down
2 changes: 1 addition & 1 deletion zephyr/wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <zephyr/kernel_structs.h>
#include <zephyr/kernel.h>
#include <zephyr/pm/policy.h>
#include <version.h>
#include <zephyr/version.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log_ctrl.h>
#include <zephyr/logging/log.h>
Expand Down

0 comments on commit c74f38d

Please sign in to comment.