diff options
author | Ioan-Adrian Ratiu <adrian.ratiu@ni.com> | 2015-10-01 17:31:36 +0300 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-10-13 12:28:14 +0200 |
commit | 8dacaa70ba0f4b17a48278801e6c90eb71bb7010 (patch) | |
tree | ae23a364378a49e368c6a70aded07ae276ba71ae /meta-oe/recipes-devtools/libubox/libubox/0001-version-libraries.patch | |
parent | dcba860726c64e9bfa7ed06d8bf141a562a97070 (diff) | |
download | meta-openembedded-8dacaa70ba0f4b17a48278801e6c90eb71bb7010.tar.gz |
meta-oe: recipes-devtools: add libubox recipe
libubox contains C utility functions used by OpenWrt projects
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/libubox/libubox/0001-version-libraries.patch')
-rw-r--r-- | meta-oe/recipes-devtools/libubox/libubox/0001-version-libraries.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/libubox/libubox/0001-version-libraries.patch b/meta-oe/recipes-devtools/libubox/libubox/0001-version-libraries.patch new file mode 100644 index 000000000..02117fa8d --- /dev/null +++ b/meta-oe/recipes-devtools/libubox/libubox/0001-version-libraries.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
2 | index 57804cf..1aa7f27 100644 | ||
3 | --- a/CMakeLists.txt | ||
4 | +++ b/CMakeLists.txt | ||
5 | @@ -18,6 +18,7 @@ ENDIF() | ||
6 | SET(SOURCES avl.c avl-cmp.c blob.c blobmsg.c uloop.c usock.c ustream.c ustream-fd.c vlist.c utils.c safe_list.c runqueue.c md5.c kvlist.c ulog.c base64.c) | ||
7 | |||
8 | ADD_LIBRARY(ubox SHARED ${SOURCES}) | ||
9 | +SET_TARGET_PROPERTIES(ubox PROPERTIES VERSION 1.0.1 SOVERSION 1) | ||
10 | ADD_LIBRARY(ubox-static STATIC ${SOURCES}) | ||
11 | SET_TARGET_PROPERTIES(ubox-static PROPERTIES OUTPUT_NAME ubox) | ||
12 | |||
13 | @@ -46,6 +47,7 @@ find_library(json NAMES json-c) | ||
14 | IF(EXISTS ${json}) | ||
15 | ADD_LIBRARY(blobmsg_json SHARED blobmsg_json.c) | ||
16 | TARGET_LINK_LIBRARIES(blobmsg_json ubox ${json}) | ||
17 | + SET_TARGET_PROPERTIES(blobmsg_json PROPERTIES VERSION 1.0.1 SOVERSION 1) | ||
18 | |||
19 | ADD_LIBRARY(blobmsg_json-static STATIC blobmsg_json.c) | ||
20 | SET_TARGET_PROPERTIES(blobmsg_json-static | ||
21 | @@ -55,6 +57,7 @@ IF(EXISTS ${json}) | ||
22 | TARGET_LINK_LIBRARIES(jshn blobmsg_json ${json}) | ||
23 | |||
24 | ADD_LIBRARY(json_script SHARED json_script.c) | ||
25 | + SET_TARGET_PROPERTIES(json_script PROPERTIES VERSION 1.0.1 SOVERSION 1) | ||
26 | TARGET_LINK_LIBRARIES(json_script ubox) | ||
27 | |||
28 | INSTALL(TARGETS blobmsg_json blobmsg_json-static jshn json_script | ||