iw: Its compatible with libnl2 as well use it.
authorStefan Schmidt <stefan@buglabs.net>
Thu, 3 Feb 2011 13:51:01 +0000 (14:51 +0100)
committerStefan Schmidt <stefan@buglabs.net>
Wed, 9 Feb 2011 09:33:26 +0000 (10:33 +0100)
recipes/iw/iw_0.9.20.bb

index 6645e2e..c01f854 100644 (file)
@@ -5,12 +5,16 @@ PRIORITY = "optional"
 LICENSE = "BSD"
 PR = "r1"
 
-DEPENDS = "libnl pkgconfig"
+DEPENDS = "libnl2 pkgconfig"
 
 SRC_URI = " \
        http://wireless.kernel.org/download/iw/${P}.tar.bz2 \
        file://kill-git-version-check.patch \
        "
+# We stage libnl2 header files not directly as they clash with libnl files. Once
+# we only use libnl2 and stage the headers at the normal place we can remove
+# this.
+CFLAGS += "-I${STAGING_INCDIR}/libnl2/ -DCONFIG_LIBNL20"
 
 do_compile() {
        oe_runmake