open-amp: Fix compilation with cache enabled
In d540cf8877
I tried to optionally enable the cache management
functions in Open-AMP introducing a new CONFIG_OPENAMP_WITH_DCACHE
symbol.
This is not working. Introduce a proper fix to have this actually
working correctly as intended.
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
parent
129291f1e4
commit
0bd95509f6
4 changed files with 6 additions and 12 deletions
|
@ -6,7 +6,3 @@
|
||||||
|
|
||||||
zephyr_include_directories_ifdef(CONFIG_OPENAMP_RSC_TABLE .)
|
zephyr_include_directories_ifdef(CONFIG_OPENAMP_RSC_TABLE .)
|
||||||
zephyr_sources_ifdef(CONFIG_OPENAMP_RSC_TABLE resource_table.c)
|
zephyr_sources_ifdef(CONFIG_OPENAMP_RSC_TABLE resource_table.c)
|
||||||
|
|
||||||
zephyr_compile_definitions_ifdef(CONFIG_OPENAMP_WITH_DCACHE
|
|
||||||
WITH_DCACHE_VRINGS
|
|
||||||
WITH_DCACHE_BUFFERS)
|
|
||||||
|
|
|
@ -18,10 +18,3 @@ config OPENAMP_RSC_TABLE_NUM_RPMSG_BUFF
|
||||||
help
|
help
|
||||||
This option specifies the number of buffer used in a Vring for
|
This option specifies the number of buffer used in a Vring for
|
||||||
interprocessor communication
|
interprocessor communication
|
||||||
|
|
||||||
config OPENAMP_WITH_DCACHE
|
|
||||||
bool "Build OpenAMP with vrings cache operations enabled"
|
|
||||||
default y
|
|
||||||
depends on CACHE_MANAGEMENT
|
|
||||||
help
|
|
||||||
Build OpenAMP with vrings cache operations enabled.
|
|
||||||
|
|
|
@ -28,4 +28,9 @@ config OPENAMP_SLAVE
|
||||||
help
|
help
|
||||||
This option enables support for OpenAMP VirtIO Slave
|
This option enables support for OpenAMP VirtIO Slave
|
||||||
|
|
||||||
|
config OPENAMP_WITH_DCACHE
|
||||||
|
bool "Build OpenAMP with vrings cache operations enabled"
|
||||||
|
depends on CACHE_MANAGEMENT
|
||||||
|
help
|
||||||
|
Build OpenAMP with vrings cache operations enabled.
|
||||||
endif # OPENAMP
|
endif # OPENAMP
|
||||||
|
|
2
west.yml
2
west.yml
|
@ -200,7 +200,7 @@ manifest:
|
||||||
revision: bad9877e997b2c2a78dd74eec8978181f4655d14
|
revision: bad9877e997b2c2a78dd74eec8978181f4655d14
|
||||||
path: modules/bsim_hw_models/nrf_hw_models
|
path: modules/bsim_hw_models/nrf_hw_models
|
||||||
- name: open-amp
|
- name: open-amp
|
||||||
revision: aedcc262f93bbb1b0c2f58026911575729b7465c
|
revision: 233fb29c52ffa7733ba132a2b5987a8201ba8ec6
|
||||||
path: modules/lib/open-amp
|
path: modules/lib/open-amp
|
||||||
- name: openthread
|
- name: openthread
|
||||||
revision: 7bdcf8a5d49838ce6e3e227e2780e4f12c461330
|
revision: 7bdcf8a5d49838ce6e3e227e2780e4f12c461330
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue