Skip to content

Commit

Permalink
Kconfig: make COMPILER_WORKAROUND_CACHE_ATTR depend on xtensa
Browse files Browse the repository at this point in the history
`CONFIG_COMPILER_WORKAROUND_CACHE_ATTR` is only applicable to
xtensa-based platforms. As such, add dependency on `CONFIG_XTENSA`.

Additionally, `CONFIG_IMX` should be selected by all imx platforms.
Since not all imx platforms are xtensa-based, make sure
`COMPILER_WORKAROUND_CACHE_ATTR` is selected only for those platforms.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
  • Loading branch information
LaurentiuM1234 authored and dbaluta committed Aug 20, 2024
1 parent 0e5ba1f commit aa42205
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Kconfig.sof
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ config XT_INTERRUPT_LEVEL_5
config COMPILER_WORKAROUND_CACHE_ATTR
bool
default n
depends on XTENSA
help
Select this to activate use of functions instead of macros
to decide whether an address is cacheable or not.
Expand Down
2 changes: 1 addition & 1 deletion src/platform/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ config HOST
config IMX
bool
default n
select COMPILER_WORKAROUND_CACHE_ATTR
select COMPILER_WORKAROUND_CACHE_ATTR if XTENSA
help
This has to be selected for every i.MX NXP platform.
It enables NXP platforms-specific features.
Expand Down

0 comments on commit aa42205

Please sign in to comment.