aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-03-18 14:20:22 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2011-03-24 11:18:18 +0100
commit91e03b2483ff3c9ece4f4b08a2205c6a3a47672f (patch)
treeca123830e377bc30b3b25a1e2fcd834036173619
parent4702231eb0e7e284877c8f9b8fbb72039a5db9fb (diff)
downloadopenembedded-91e03b2483ff3c9ece4f4b08a2205c6a3a47672f.zip
openembedded-91e03b2483ff3c9ece4f4b08a2205c6a3a47672f.tar.gz
openembedded-91e03b2483ff3c9ece4f4b08a2205c6a3a47672f.tar.bz2
libnl: add libnl.inc and use INC_PR
Acked-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--recipes/libnl/libnl.inc9
-rw-r--r--recipes/libnl/libnl_1.1.bb10
-rw-r--r--recipes/libnl/libnl_2.0.bb9
-rw-r--r--recipes/libnl/libnl_git.bb16
4 files changed, 19 insertions, 25 deletions
diff --git a/recipes/libnl/libnl.inc b/recipes/libnl/libnl.inc
new file mode 100644
index 0000000..6f502b1
--- /dev/null
+++ b/recipes/libnl/libnl.inc
@@ -0,0 +1,9 @@
+DESCRIPTION = "libnl is a library for applications dealing with netlink sockets"
+SECTION = "libs/network"
+LICENSE = "LGPL"
+HOMEPAGE = "http://www.infradead.org/~tgr/libnl/"
+
+INC_PR = "r5"
+
+inherit autotools pkgconfig
+
diff --git a/recipes/libnl/libnl_1.1.bb b/recipes/libnl/libnl_1.1.bb
index f1b2a9d..d9f250e 100644
--- a/recipes/libnl/libnl_1.1.bb
+++ b/recipes/libnl/libnl_1.1.bb
@@ -1,11 +1,6 @@
-DESCRIPTION = "libnl is a library for applications dealing with netlink sockets"
-SECTION = "libs/network"
-LICENSE = "LGPL"
-HOMEPAGE = "http://www.infradead.org/~tgr/libnl/"
+require libnl.inc
-PR = "r4"
-
-inherit autotools pkgconfig
+PR = "${INC_PR}.0"
CFLAGS += '-DVLAN_FLAG_REORDER_HDR=1'
@@ -18,6 +13,5 @@ SRC_URI = "\
file://dont-link-libnl-from-sysroot.patch \
"
-
SRC_URI[md5sum] = "ae970ccd9144e132b68664f98e7ceeb1"
SRC_URI[sha256sum] = "35cea4cfb6cd8af0cafa0f34fff81def5a1f193b8b8384299b4b21883e22edc3"
diff --git a/recipes/libnl/libnl_2.0.bb b/recipes/libnl/libnl_2.0.bb
index 8b77d07..d1cbc0b 100644
--- a/recipes/libnl/libnl_2.0.bb
+++ b/recipes/libnl/libnl_2.0.bb
@@ -1,14 +1,9 @@
-DESCRIPTION = "libnl2 is a library for applications dealing with netlink sockets"
-SECTION = "libs/network"
-LICENSE = "LGPL"
-HOMEPAGE = "http://www.infradead.org/~tgr/libnl/"
+require libnl.inc
PE = "1"
-PR = "r2"
+PR = "${INC_PR}.0"
DEPENDS = "flex-native bison-native"
-inherit autotools pkgconfig
-
SRC_URI = "\
http://www.infradead.org/~tgr/libnl/files/libnl-${PV}.tar.gz \
file://fix-pc-file.patch \
diff --git a/recipes/libnl/libnl_git.bb b/recipes/libnl/libnl_git.bb
index b3bb749..9ffb34b 100644
--- a/recipes/libnl/libnl_git.bb
+++ b/recipes/libnl/libnl_git.bb
@@ -1,22 +1,18 @@
-DESCRIPTION = "libnl2 is a library for applications dealing with netlink sockets"
-SECTION = "libs/network"
-LICENSE = "LGPL"
-HOMEPAGE = "http://www.infradead.org/~tgr/libnl/"
-SRCREV = "d378220c96c3c8b6f27dca33e7d8ba03318f9c2d"
-PV = "1.9+gitr${SRCPV}"
+require libnl.inc
+
PE = "1"
-PR = "r3"
+PV = "1.9+gitr${SRCPV}"
+PR = "${INC_PR}.0"
DEPENDS = "flex-native bison-native"
-inherit autotools
-
+S = "${WORKDIR}/git"
+SRCREV = "d378220c96c3c8b6f27dca33e7d8ba03318f9c2d"
SRC_URI = "\
git://git.kernel.org/pub/scm/libs/netlink/libnl.git;protocol=git \
file://fix-pc-file.patch \
file://fix-pktloc-dep-race.patch \
"
-S = "${WORKDIR}/git"
PACKAGES =+ "${PN}-route ${PN}-nf ${PN}-genl ${PN}-cli"
FILES_${PN}-route = "${libdir}/libnl-route.so.*"