diff options
author | Romain Naour <romain.naour@gmail.com> | 2016-02-07 17:56:56 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-02-07 19:04:02 +0100 |
commit | b1063a0136b1915a17c8db7d02c5da7e6c58b96c (patch) | |
tree | fc55d3612f51fec50c0b734a15cad25cbbc11a57 /package/openpowerlink/0002-fix-user-space-stack-enable-shared-build.patch | |
parent | 056c9d28c43c6d665d193635a2f1a03998a852b6 (diff) | |
download | buildroot-b1063a0136b1915a17c8db7d02c5da7e6c58b96c.tar.gz buildroot-b1063a0136b1915a17c8db7d02c5da7e6c58b96c.zip |
package/openpowerlink: bump to v2.2.2
From [1]:
With version 2.0, the source code has been cleanly split into
an application-oriented user library and a time-critical stack
driver. The latter may be moved to a dedicated communication
processor or into a kernel module to deliver enhanced
performance while still keeping the API in user space.
This new version break the API used in the v1.x but
this is a complete rewrite of the Powerlink EPSG DS 301
implementation. The v1.x is deprecated anyway.
The new build system has been split in several CMake projects
which makes it difficult to package with the Buildroot CMake
infra. So add a top level CMakeLists.txt to build each
openpowerlink component without having to package each of them
in a separate Buildroot packages. Also we need to fix the
build system to support the top level CMake build.
[1] http://sourceforge.net/projects/openpowerlink/
Signed-off-by: Romain Naour <romain.naour@gmail.com>
[Thomas:
- rename patches to not contain the [FIX] part in their title.
- rewrap Config.in help text
- rename "openPOWERLINK stack type" to "stack type"
- rename ""openpowerlink demos" to "demos"]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/openpowerlink/0002-fix-user-space-stack-enable-shared-build.patch')
-rw-r--r-- | package/openpowerlink/0002-fix-user-space-stack-enable-shared-build.patch | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/package/openpowerlink/0002-fix-user-space-stack-enable-shared-build.patch b/package/openpowerlink/0002-fix-user-space-stack-enable-shared-build.patch deleted file mode 100644 index 2345594891..0000000000 --- a/package/openpowerlink/0002-fix-user-space-stack-enable-shared-build.patch +++ /dev/null @@ -1,54 +0,0 @@ -From 9c11eef037dc1137ab7a4656e45afde7d1a615c4 Mon Sep 17 00:00:00 2001 -From: Romain Naour <romain.naour@openwide.fr> -Date: Sat, 22 Nov 2014 16:38:01 +0100 -Subject: [PATCH 2/2] [FIX]: user space stack: enable dynamic build - -The build fail if BUILD_SHARED_LIBS is set to ON. - -Depending on BUILD_SHARED_LIBS, link with STATIC or SHARED. - -Signed-off-by: Romain Naour <romain.naour@openwide.fr> ---- - Examples/X86/Generic/powerlink_user_lib/CMakeLists.txt | 12 +++++++++--- - 1 file changed, 9 insertions(+), 3 deletions(-) - -diff --git a/Examples/X86/Generic/powerlink_user_lib/CMakeLists.txt b/Examples/X86/Generic/powerlink_user_lib/CMakeLists.txt -index 40b7756..27360f2 100644 ---- a/Examples/X86/Generic/powerlink_user_lib/CMakeLists.txt -+++ b/Examples/X86/Generic/powerlink_user_lib/CMakeLists.txt -@@ -93,7 +93,13 @@ ENDIF(CFG_STORE_RESTORE) - # - # Set type of library - # --IF (WIN32) -+IF (UNIX) -+ IF (BUILD_SHARED_LIBS) -+ SET(LIB_TYPE "SHARED") -+ ELSE (BUILD_SHARED_LIBS) -+ SET(LIB_TYPE "STATIC") -+ ENDIF(BUILD_SHARED_LIBS) -+ELSEIF (WIN32) - IF(CFG_X86_WINDOWS_DLL) - SET(LIB_TYPE "SHARED") - ELSE(CFG_X86_WINDOWS_DLL) -@@ -313,7 +319,7 @@ ENDIF () - # Define library source code - # - IF (UNIX) -- ADD_LIBRARY(powerlink ${LIB_SOURCES} ${LIB_SOURCES_KERNEL} ${LIB_SOURCES_USER} ${LIB_HEADERS} ${LIB_HEADERS_KERNEL} ${LIB_HEADERS_USER} ${LIB_OBJDICT}) -+ ADD_LIBRARY(powerlink ${LIB_TYPE} ${LIB_SOURCES} ${LIB_SOURCES_KERNEL} ${LIB_SOURCES_USER} ${LIB_HEADERS} ${LIB_HEADERS_KERNEL} ${LIB_HEADERS_USER} ${LIB_OBJDICT}) - - SET_PROPERTY(TARGET powerlink - PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG;DEF_DEBUG_LVL=${CFG_DEBUG_LVL}) -@@ -330,7 +336,7 @@ ENDIF () - # Installation - # - IF (UNIX) -- INSTALL(TARGETS powerlink ARCHIVE DESTINATION lib) -+ INSTALL(TARGETS powerlink ARCHIVE DESTINATION lib LIBRARY DESTINATION lib COMPONENT library) - ELSEIF (WIN32) - IF (CFG_X86_WINDOWS_DLL) - INSTALL(TARGETS openPOWERLINK RUNTIME DESTINATION bin) --- -1.9.3 - |