From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH V3] meta-oe: recipes-devtools: add libubox recipe
Date: Thu, 1 Oct 2015 16:23:37 +0200 [thread overview]
Message-ID: <20151001142337.GB2403@jama> (raw)
In-Reply-To: <1443708517-27056-1-git-send-email-adrian.ratiu@ni.com>
[-- Attachment #1: Type: text/plain, Size: 3901 bytes --]
On Thu, Oct 01, 2015 at 05:08:37PM +0300, Ioan-Adrian Ratiu wrote:
> libubox contains C utility functions used by OpenWrt projects
>
> Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
> ---
> .../libubox/libubox/0001-version-libraries.patch | 28 ++++++++++++++++++++
> meta-oe/recipes-devtools/libubox/libubox_git.bb | 30 ++++++++++++++++++++++
> 2 files changed, 58 insertions(+)
> create mode 100644 meta-oe/recipes-devtools/libubox/libubox/0001-version-libraries.patch
> create mode 100644 meta-oe/recipes-devtools/libubox/libubox_git.bb
>
> 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 0000000..02117fa
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/libubox/libubox/0001-version-libraries.patch
> @@ -0,0 +1,28 @@
> +diff --git a/CMakeLists.txt b/CMakeLists.txt
> +index 57804cf..1aa7f27 100644
> +--- a/CMakeLists.txt
> ++++ b/CMakeLists.txt
> +@@ -18,6 +18,7 @@ ENDIF()
> + 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)
> +
> + ADD_LIBRARY(ubox SHARED ${SOURCES})
> ++SET_TARGET_PROPERTIES(ubox PROPERTIES VERSION 1.0.1 SOVERSION 1)
> + ADD_LIBRARY(ubox-static STATIC ${SOURCES})
> + SET_TARGET_PROPERTIES(ubox-static PROPERTIES OUTPUT_NAME ubox)
> +
> +@@ -46,6 +47,7 @@ find_library(json NAMES json-c)
> + IF(EXISTS ${json})
> + ADD_LIBRARY(blobmsg_json SHARED blobmsg_json.c)
> + TARGET_LINK_LIBRARIES(blobmsg_json ubox ${json})
> ++ SET_TARGET_PROPERTIES(blobmsg_json PROPERTIES VERSION 1.0.1 SOVERSION 1)
> +
> + ADD_LIBRARY(blobmsg_json-static STATIC blobmsg_json.c)
> + SET_TARGET_PROPERTIES(blobmsg_json-static
> +@@ -55,6 +57,7 @@ IF(EXISTS ${json})
> + TARGET_LINK_LIBRARIES(jshn blobmsg_json ${json})
> +
> + ADD_LIBRARY(json_script SHARED json_script.c)
> ++ SET_TARGET_PROPERTIES(json_script PROPERTIES VERSION 1.0.1 SOVERSION 1)
> + TARGET_LINK_LIBRARIES(json_script ubox)
> +
> + INSTALL(TARGETS blobmsg_json blobmsg_json-static jshn json_script
> diff --git a/meta-oe/recipes-devtools/libubox/libubox_git.bb b/meta-oe/recipes-devtools/libubox/libubox_git.bb
> new file mode 100644
> index 0000000..d16bbcf
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/libubox/libubox_git.bb
> @@ -0,0 +1,30 @@
> +DESCRIPTION = "C utility functions for OpenWrt"
> +SECTION = "libs"
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM = "\
> + file://avl.c;endline=39;md5=00810155fed3d604816ec5814523d60a \
> + file://avl-cmp.c;endline=15;md5=1603e6094b432a5f3f320877a06f41b5 \
> + file://base64.c;endline=61;md5=51fdff010d45b0086ac0a6e035693dc0 \
> + file://blobmsg.c;endline=15;md5=7ed64c1570e8c9b46c4fc6fbd16c489e \
> + file://list.h;endline=28;md5=2d5f5475fbd0f08741354c5a99c2e983 \
> + file://md5.h;endline=39;md5=048bf9f68963c207a0c2b3a94c9d2aaa \
> + file://md5.c;endline=51;md5=0a448eea0bcbc89e3c7e6608f2d119a0 \
> + file://usock.h;endline=18;md5=f0dfdc8de858e66d66d74036611bba14 \
> +"
> +
> +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
This isn't needed, it's included in default FILESPATHS.
> +
> +SRC_URI = "\
> + git://git.openwrt.org/project/libubox.git \
> + file://0001-version-libraries.patch \
> +"
> +
> +SRCREV = "136a5196266d03d537f822c4e67d2fde2ed59505"
> +
> +S = "${WORKDIR}/git"
> +
> +inherit cmake
> +
> +DEPENDS = "json-c"
> +
> +EXTRA_OECMAKE = "-DBUILD_EXAMPLES=OFF -DBUILD_LUA=OFF"
> --
> 2.1.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
next prev parent reply other threads:[~2015-10-01 14:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 8:48 [meta-oe][PATCH] meta-oe: recipes-devtools: add libubox recipe Ioan-Adrian Ratiu
2015-09-30 11:15 ` [meta-oe][PATCH V2] " Ioan-Adrian Ratiu
2015-09-30 15:24 ` Khem Raj
2015-10-01 9:18 ` Ioan-Adrian Ratiu
2015-10-01 11:21 ` Martin Jansa
2015-10-01 13:10 ` Ioan-Adrian Ratiu
2015-10-01 13:16 ` Khem Raj
2015-10-01 13:16 ` Ioan-Adrian Ratiu
2015-10-01 14:08 ` [meta-oe][PATCH V3] " Ioan-Adrian Ratiu
2015-10-01 14:23 ` Martin Jansa [this message]
2015-10-01 14:31 ` [meta-oe][PATCH V4] " Ioan-Adrian Ratiu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151001142337.GB2403@jama \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.