Skip to content

Commit 7079c2c

Browse files
committed
Update OpenAmp Middleware to MP1 Cube version 1.6.0
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent a486fb5 commit 7079c2c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1927
-372
lines changed

system/Middlewares/OpenAMP/libmetal/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ if (POLICY CMP0077)
77
cmake_policy(SET CMP0077 NEW)
88
endif()
99

10+
set (LIBMETAL_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
11+
1012
list (APPEND CMAKE_MODULE_PATH
1113
"${CMAKE_CURRENT_SOURCE_DIR}/cmake"
1214
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules"
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
# libmetal Maintainers
22

3-
libmetal project is maintained by the OpenAMP open source community.
3+
The libmetal project is maintained by the OpenAMP open source community.
44
Everyone is encouraged to submit issues and changes to improve libmetal.
55

66
The intention of this file is to provide a set of names that developers can
77
consult when they have a question about OpenAMP and to provide a a set of
88
names to be CC'd when submitting a patch.
99

1010
## Project Administration
11-
Ed Mooring <ed.mooring@linaro.org>
11+
Ed Mooring <ed.mooring@gmail.com>
1212
Arnaud Pouliquen <arnaud.pouliquen@st.com>
1313

1414
### All patches CC here
1515
openamp-rp@lists.openampproject.org
16-
17-
## Machines
18-
### Xilinx Platform - Zynq-7000
19-
Ed Mooring <ed.mooring@linaro.org>
20-
21-
### Xilinx Platform - Zynq UltraScale+ MPSoC
22-
Ed Mooring <ed.mooring@linaro.org>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
VERSION_MAJOR = 1
2-
VERSION_MINOR = 0
2+
VERSION_MINOR = 1
33
VERSION_PATCH = 0

system/Middlewares/OpenAMP/libmetal/cmake/options.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
file(READ ${CMAKE_SOURCE_DIR}/VERSION ver)
1+
file(READ ${LIBMETAL_ROOT_DIR}/VERSION ver)
22

33
string(REGEX MATCH "VERSION_MAJOR = ([0-9]*)" _ ${ver})
44
set(PROJECT_VERSION_MAJOR ${CMAKE_MATCH_1})

system/Middlewares/OpenAMP/libmetal/cmake/syscheck.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ if (WITH_ZEPHYR)
77
if (NOT WITH_ZEPHYR_LIB)
88
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
99
endif()
10-
if (CONFIG_CPU_CORTEX_M)
11-
set (MACHINE "cortexm" CACHE STRING "")
12-
endif (CONFIG_CPU_CORTEX_M)
10+
if (CONFIG_ARM)
11+
set (MACHINE "arm" CACHE STRING "")
12+
endif(CONFIG_ARM)
13+
1314
endif (WITH_ZEPHYR)

system/Middlewares/OpenAMP/libmetal/lib/alloc.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ static inline void *metal_allocate_memory(unsigned int size);
3636
*/
3737
static inline void metal_free_memory(void *ptr);
3838

39-
#include <metal/system/@PROJECT_SYSTEM@/alloc.h>
40-
4139
/** @} */
4240

4341
#ifdef __cplusplus
4442
}
4543
#endif
4644

45+
#include <metal/system/@PROJECT_SYSTEM@/alloc.h>
46+
47+
4748
#endif /* __METAL_ALLOC__H__ */

system/Middlewares/OpenAMP/libmetal/lib/condition.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ static inline int metal_condition_broadcast(struct metal_condition *cv);
6363
*/
6464
int metal_condition_wait(struct metal_condition *cv, metal_mutex_t *m);
6565

66-
#include <metal/system/@PROJECT_SYSTEM@/condition.h>
67-
6866
/** @} */
6967

7068
#ifdef __cplusplus
7169
}
7270
#endif
7371

72+
#include <metal/system/@PROJECT_SYSTEM@/condition.h>
73+
7474
#endif /* __METAL_CONDITION__H__ */

system/Middlewares/OpenAMP/libmetal/lib/dma.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
#ifndef __METAL_DMA__H__
1313
#define __METAL_DMA__H__
1414

15+
#include <stdint.h>
16+
#include <metal/sys.h>
17+
1518
#ifdef __cplusplus
1619
extern "C" {
1720
#endif
@@ -20,9 +23,6 @@ extern "C" {
2023
* @{
2124
*/
2225

23-
#include <stdint.h>
24-
#include <metal/sys.h>
25-
2626
#define METAL_DMA_DEV_R 1 /**< DMA direction, device read */
2727
#define METAL_DMA_DEV_W 2 /**< DMA direction, device write */
2828
#define METAL_DMA_DEV_WR 3 /**< DMA direction, device read/write */

system/Middlewares/OpenAMP/libmetal/lib/include/metal/alloc.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ static inline void *metal_allocate_memory(unsigned int size);
3636
*/
3737
static inline void metal_free_memory(void *ptr);
3838

39-
#ifdef METAL_FREERTOS
40-
#include <metal/system/freertos/alloc.h>
41-
#else
42-
#include <metal/system/generic/alloc.h>
43-
#endif
44-
4539
/** @} */
4640

4741
#ifdef __cplusplus
4842
}
4943
#endif
5044

45+
#ifdef METAL_FREERTOS
46+
#include <metal/system/freertos/alloc.h>
47+
#else
48+
#include <metal/system/generic/alloc.h>
49+
#endif
50+
5151
#endif /* __METAL_ALLOC__H__ */

system/Middlewares/OpenAMP/libmetal/lib/include/metal/condition.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@ static inline int metal_condition_broadcast(struct metal_condition *cv);
6363
*/
6464
int metal_condition_wait(struct metal_condition *cv, metal_mutex_t *m);
6565

66-
#ifdef METAL_FREERTOS
67-
#include <metal/system/freertos/condition.h>
68-
#else
69-
#include <metal/system/generic/condition.h>
70-
#endif
71-
7266
/** @} */
7367

7468
#ifdef __cplusplus
7569
}
7670
#endif
7771

72+
#ifdef METAL_FREERTOS
73+
#include <metal/system/freertos/condition.h>
74+
#else
75+
#include <metal/system/generic/condition.h>
76+
#endif
77+
7878
#endif /* __METAL_CONDITION__H__ */

0 commit comments

Comments
 (0)