-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples: legacy_apps: build success demos
- Remove version control information - Add cmake infra to find open_amp library - fix open_amp and libmetal library linking Signed-off-by: Tanmay Shah <[email protected]>
- Loading branch information
Showing
12 changed files
with
107 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,35 @@ | ||
# openamp-system-reference | ||
End-to-end system reference material showcasing all the different aspects of OpenAMP, on multiple vendor platforms. | ||
|
||
# Build legacy_apps | ||
|
||
Legacy apps are moved from open_amp library repository. | ||
|
||
## Build libmetal | ||
``` | ||
$ mkdir -p build-libmetal | ||
$ cd build-libmetal | ||
$ cmake <libmetal_source> -DCMAKE_INSTALL_PREFIX=<libmetal install dir> | ||
$ make VERBOSE=1 install | ||
``` | ||
|
||
## Build open_amp | ||
``` | ||
$ mkdir -p build-openamp | ||
$ cd build-openamp | ||
$ cmake <openamp_source> -DCMAKE_INCLUDE_PATH=<libmetal_built_include_dir> \ | ||
-DCMAKE_LIBRARY_PATH=<libmetal_built_lib_dir> \ | ||
-DCMAKE_INSTALL_PREFIX=<open_amp install dir> | ||
$ make VERBOSE=1 install | ||
``` | ||
## Build legacy Apps | ||
``` | ||
$ mkdir -p build-openamp-demos | ||
$ cd build-openamp-demos | ||
$ cmake <openamp_system_reference/examples/legacy_apps> \ | ||
-DCMAKE_INCLUDE_PATH=<libmetal_built_include_dir> <openamp_built_include_dir> \ | ||
-DCMAKE_LIBRARY_PATH=<libmetal_built_lib_dir> <openamp_built_lib_dir> \ | ||
-DCMAKE_INSTALL_PREFIX=<open_amp_demos install dir> | ||
$ make VERBOSE=1 install | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Finidopen_amp | ||
# -------- | ||
# | ||
# Find open_amp | ||
# | ||
# Find the native open_amp includes and library this module defines | ||
# | ||
# :: | ||
# | ||
# OPENAMP_INCLUDE_DIR, where to find metal/sysfs.h, etc. | ||
|
||
# FIX ME, CMAKE_FIND_ROOT_PATH doesn't work | ||
# even use the following | ||
# set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH) | ||
# set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH) | ||
# set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH) | ||
find_path(OPENAMP_INCLUDE_DIR NAMES openamp/ PATHS ${CMAKE_FIND_ROOT_PATH}) | ||
find_library(OPENAMP_LIB NAMES open_amp PATHS ${CMAKE_FIND_ROOT_PATH}) | ||
get_filename_component(OPENAMP_LIB_DIR ${OPENAMP_LIB} DIRECTORY) | ||
|
||
# handle the QUIETLY and REQUIRED arguments and set HUGETLBFS_FOUND to TRUE if | ||
# all listed variables are TRUE | ||
include (FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS (open_amp DEFAULT_MSG OPENAMP_LIB OPENAMP_INCLUDE_DIR) | ||
|
||
if (OPENAMP_FOUND) | ||
set (OPENAMP_LIBS ${OPENAMP_LIB}) | ||
endif (OPENAMP_FOUND) | ||
|
||
mark_as_advanced (OPENAMP_LIB OPENAMP_INCLUDE_DIR OPENAMP_LIB_DIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters