File tree 9 files changed +36
-40
lines changed
samples/subsys/ipc/openamp
9 files changed +36
-40
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ source "ext/lib/crypto/Kconfig"
14
14
15
15
source "ext/lib/encoding/Kconfig"
16
16
17
+ source "ext/lib/ipc/open-amp/Kconfig"
18
+
17
19
source "ext/lib/mgmt/Kconfig"
18
20
19
21
source "ext/debug/Kconfig"
Original file line number Diff line number Diff line change 1
1
add_subdirectory (crypto)
2
2
add_subdirectory (encoding )
3
+ add_subdirectory (ipc)
3
4
add_subdirectory (mgmt)
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2018 Linaro Limited
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+ #
5
+
6
+ if (CONFIG_OPENAMP)
7
+ set (WITH_ZEPHYR 1)
8
+ set (WITH_ZEPHYR_LIB 1)
9
+ set (WITH_LIBMETAL_FIND OFF CACHE BOOL "" FORCE)
10
+ set (LIBMETAL_INCLUDE_DIR ${ZEPHYR_BINARY_DIR} /ext /hal/libmetal/lib/include )
11
+ set (LIBMETAL_LIB ${ZEPHYR_BINARY_DIR} /ext /hal/libmetal/lib)
12
+ endif (CONFIG_OPENAMP)
13
+
14
+ add_subdirectory_ifdef(CONFIG_OPENAMP open-amp)
15
+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (c) 2018 Linaro Limited
3
+ #
4
+ # SPDX-License-Identifier: Apache-2.0
5
+ #
6
+
7
+ config OPENAMP
8
+ bool
9
+ prompt "OpenAMP Support"
10
+ select LIBMETAL
11
+ default n
12
+ help
13
+ This option enables the OpenAMP IPC library
Original file line number Diff line number Diff line change @@ -10,17 +10,12 @@ project(NONE)
10
10
enable_language (C ASM)
11
11
12
12
# Location of external dependencies:
13
- set (ZEPHYR_KERNEL_LIBRARY "${CMAKE_CURRENT_BINARY_DIR} /zephyr/kernel/libkernel.a" )
14
13
set (PLATFORM_DIR "${CMAKE_CURRENT_SOURCE_DIR} /platform" )
15
14
16
- target_include_directories (app PRIVATE $ENV{ZEPHYR_BASE} /drivers)
17
-
18
15
target_sources (app PRIVATE src/main_master.c ${PLATFORM_DIR} /platform.c
19
16
${PLATFORM_DIR} /platform_ops.c ${PLATFORM_DIR} /resource_table.c)
20
17
21
- include ($ENV{ZEPHYR_BASE} /ext /lib/ipc/open-amp.cmake)
22
-
23
- add_dependencies (app open-amp)
18
+ include (ExternalProject)
24
19
25
20
ExternalProject_Add(
26
21
openamp_remote
@@ -29,9 +24,4 @@ ExternalProject_Add(
29
24
)
30
25
add_dependencies (core_m0_inc_target openamp_remote)
31
26
32
- target_include_directories (app PRIVATE ${OPENAMP_INCLUDE_DIR} ${PLATFORM_DIR} )
33
-
34
- target_link_libraries (app
35
- ${OPENAMP_LIBRARY}
36
- ${ZEPHYR_KERNEL_LIBRARY} )
37
-
27
+ target_include_directories (app PRIVATE ${PLATFORM_DIR} )
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ CONFIG_SLAVE_IMAGE_MCUX="${ZEPHYR_BINARY_DIR}/../openamp_remote-prefix/src/opena
6
6
CONFIG_TIMESLICE_SIZE=1
7
7
CONFIG_MAIN_STACK_SIZE=2048
8
8
CONFIG_HEAP_MEM_POOL_SIZE=4096
9
- CONFIG_LIBMETAL =y
9
+ CONFIG_OPENAMP =y
Original file line number Diff line number Diff line change 4
4
#
5
5
set (BOARD lpcxpresso54114_m0)
6
6
7
- set (ZEPHYR_KERNEL_LIBRARY "${CMAKE_CURRENT_BINARY_DIR} /zephyr/kernel/libkernel.a" )
8
7
set (PLATFORM_DIR "${CMAKE_CURRENT_SOURCE_DIR} /../platform" )
9
8
10
9
include ($ENV{ZEPHYR_BASE} /cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
11
10
project (NONE)
12
11
13
12
target_sources (app PRIVATE src/main_remote.c ${PLATFORM_DIR} /platform.c ${PLATFORM_DIR} /resource_table.c ${PLATFORM_DIR} /platform_ops.c)
14
13
15
- include ($ENV{ZEPHYR_BASE} /ext /lib/ipc/open-amp.cmake)
16
-
17
- target_include_directories (app PRIVATE ${OPENAMP_INCLUDE_DIR} ${PLATFORM_DIR} )
18
-
19
- add_dependencies (app open-amp)
20
-
21
- target_link_libraries (app
22
- ${OPENAMP_LIBRARY}
23
- ${ZEPHYR_KERNEL_LIBRARY} )
24
-
14
+ target_include_directories (app PRIVATE ${PLATFORM_DIR} )
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ CONFIG_IPM=y
4
4
CONFIG_IPM_MCUX=y
5
5
CONFIG_PLATFORM_SPECIFIC_INIT=n
6
6
CONFIG_HEAP_MEM_POOL_SIZE=4096
7
- CONFIG_LIBMETAL =y
7
+ CONFIG_OPENAMP =y
You can’t perform that action at this time.
0 commit comments