File tree 10 files changed +33
-21
lines changed
samples/subsys/ipc/openamp
10 files changed +33
-21
lines changed Original file line number Diff line number Diff line change 1
1
add_subdirectory (atmel)
2
2
add_subdirectory (cmsis)
3
+ add_subdirectory_if_kconfig(libmetal)
3
4
add_subdirectory (nordic)
4
5
add_subdirectory (nxp)
5
6
add_subdirectory_if_kconfig(qmsi)
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ source "ext/hal/altera/Kconfig"
16
16
17
17
source "ext/hal/cmsis/Kconfig"
18
18
19
+ source "ext/hal/libmetal/Kconfig"
20
+
19
21
source "ext/hal/nordic/Kconfig"
20
22
21
23
source "ext/hal/nxp/mcux/Kconfig"
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
+ set (WITH_ZEPHYR 1)
8
+ set (WITH_ZEPHYR_LIB 1)
9
+ set (WITH_DOC OFF CACHE BOOL "" FORCE)
10
+ set (WITH_DEFAULT_LOGGER OFF CACHE BOOL "" FORCE)
11
+
12
+ add_subdirectory (libmetal)
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 LIBMETAL
8
+ bool
9
+ prompt "libmetal Support"
10
+ default n
11
+ help
12
+ This option enables the libmetal HAL abstraction layer
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
include (ExternalProject)
2
2
3
- include ($ENV{ZEPHYR_BASE} /ext /hal/libmetal/libmetal.cmake)
4
-
5
3
ExternalProject_Add(
6
4
open-amp
7
5
SOURCE_DIR $ENV{ZEPHYR_BASE} /ext /lib/ipc/open-amp/
8
- DEPENDS libmetal
6
+ DEPENDS metal
9
7
INSTALL_COMMAND "" # This particular build system has no install command
10
- CMAKE_ARGS -DWITH_ZEPHYR=ON -DWITH_PROXY=OFF -DBOARD=${BOARD} -DLIBMETAL_INCLUDE_DIR=${LIBMETAL_INCLUDE_DIR} -DLIBMETAL_LIB=${LIBMETAL_LIBRARY}
8
+ CMAKE_ARGS -DWITH_ZEPHYR=ON -DWITH_PROXY=OFF -DBOARD=${BOARD} -DLIBMETAL_INCLUDE_DIR=${ZEPHYR_BINARY_DIR} / ext /hal/libmetal/libmetal/lib/ include -DLIBMETAL_LIB=${ZEPHYR_BINARY_DIR} / ext /hal/libmetal/libmetal/lib
11
9
)
12
10
13
11
ExternalProject_Get_property(open-amp SOURCE_DIR)
Original file line number Diff line number Diff line change @@ -29,11 +29,9 @@ ExternalProject_Add(
29
29
)
30
30
add_dependencies (core_m0_inc_target openamp_remote)
31
31
32
- target_include_directories (app PRIVATE ${LIBMETAL_INCLUDE_DIR}
33
- ${OPENAMP_INCLUDE_DIR} ${PLATFORM_DIR} )
32
+ target_include_directories (app PRIVATE ${OPENAMP_INCLUDE_DIR} ${PLATFORM_DIR} )
34
33
35
34
target_link_libraries (app
36
35
${OPENAMP_LIBRARY}
37
- ${LIBMETAL_LIBRARY}
38
36
${ZEPHYR_KERNEL_LIBRARY} )
39
37
Original file line number Diff line number Diff line change @@ -6,3 +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
Original file line number Diff line number Diff line change @@ -14,12 +14,11 @@ target_sources(app PRIVATE src/main_remote.c ${PLATFORM_DIR}/platform.c ${PLATFO
14
14
15
15
include ($ENV{ZEPHYR_BASE} /ext /lib/ipc/open-amp.cmake)
16
16
17
- target_include_directories (app PRIVATE ${LIBMETAL_INCLUDE_DIR} ${ OPENAMP_INCLUDE_DIR} ${PLATFORM_DIR} )
17
+ target_include_directories (app PRIVATE ${OPENAMP_INCLUDE_DIR} ${PLATFORM_DIR} )
18
18
19
19
add_dependencies (app open-amp)
20
20
21
21
target_link_libraries (app
22
22
${OPENAMP_LIBRARY}
23
- ${LIBMETAL_LIBRARY}
24
23
${ZEPHYR_KERNEL_LIBRARY} )
25
24
Original file line number Diff line number Diff line change @@ -4,3 +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
You can’t perform that action at this time.
0 commit comments