[oe] [PATCH 05/12] libnl: add libnl.inc and use INC_PR

Martin Jansa martin.jansa at gmail.com
Fri Mar 18 14:00:22 UTC 2011


Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 recipes/libnl/libnl.inc    |    9 +++++++++
 recipes/libnl/libnl_1.1.bb |   10 ++--------
 recipes/libnl/libnl_2.0.bb |    9 ++-------
 recipes/libnl/libnl_git.bb |   16 ++++++----------
 4 files changed, 19 insertions(+), 25 deletions(-)
 create mode 100644 recipes/libnl/libnl.inc

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 6614478..3038487 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 e645892..8ce4a6e 100644
--- a/recipes/libnl/libnl_git.bb
+++ b/recipes/libnl/libnl_git.bb
@@ -1,21 +1,17 @@
-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 \
 "
-S = "${WORKDIR}/git"
 
 PACKAGES =+ "${PN}-route ${PN}-nf ${PN}-genl ${PN}-cli"
 FILES_${PN}-route = "${libdir}/libnl-route.so.*"
-- 
1.7.4.1





More information about the Openembedded-devel mailing list