Skip to contentSkip to conversation

arago-prefs: Update PREFERRED_VERSION of libnl for keystone

PATCH New Sam Nelson 1 participant 2 messages Feb 1, 2015

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH v2 1/2 arago-prefs: Update PREFERRED_VERSION of libnl for keystone

- Updating libnl version to 3.2.24 for keystone platform

---
 .../conf/distro/include/arago-prefs.inc            |    1 +
 1 file changed, 1 insertion(+)
meta-arago-distro/conf/distro/include/arago-prefs.inc +1 -0
index 3421a7d..5092b25 100644
@@ -107,6 +107,7 @@ PREFERRED_VERSION_readline-native = "5.2"
 PREFERRED_VERSION_readline-nativesdk = "5.2"
 
 PREFERRED_VERSION_libnl = "3.2.22"
+PREFERRED_VERSION_libnl_keystone = "3.2.24"
 PREFERRED_VERSION_crda = "1.1.3"
 PREFERRED_VERSION_obex = "0.34"
 PREFERRED_VERSION_bash = "3.2.48"
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH v2 2/2 libnl-xfrm: Add recipe for libnl-xfrm

- Provides libnl extension for XFRM support

---
 .../recipes-support/libnl-xfrm/libnl-xfrm_git.bb   |   40 ++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 meta-arago-extras/recipes-support/libnl-xfrm/libnl-xfrm_git.bb
meta-arago-extras/recipes-support/libnl-xfrm/libnl-xfrm_git.bb new file +40 -0
new file mode 100644
index 0000000..74733f0
@@ -0,0 +1,40 @@
+DESCRIPTION = "Libnl extension for XFRM support"
+PROVIDES = "libnl-xfrm"
+SECTION = "net"
+LICENSE = "BSD-3-Clause"
+
+COMPATIBLE_MACHINE = "keystone"
+
+LIC_FILES_CHKSUM = "file://include/xfrm_pvt.h;beginline=1;endline=33;md5=fe068af290f274f2a86a867bbd7cc61c"
+
+DEPENDS = "libnl"
+
+BRANCH="hawking_dev"
+# The following commit correspond to DEV.LIBNL-XFRM.03.01.00.00A
+SRCREV = "2a5ee7c4f41398c07c593e81af7b71c7720e6de8"
+SRC_URI = "git://arago-project.org/git/projects/libnl-xfrm.git;protocol=git;branch=${BRANCH}"
+
+S = "${WORKDIR}/git"
+
+LIBNL_XFRM_LIB = "lib/libnl-xfrm.a"
+
+CFLAGS += "-I${STAGING_INCDIR} -I${STAGING_INCDIR}/libnl3 -fPIC -DPIC "
+
+do_compile() {
+	mkdir -p ${S}/lib
+	make clean
+	make all
+}
+
+do_install_append() {
+	install -d ${D}${libdir}/
+	install -d ${D}${includedir}/
+	install -d ${D}${includedir}/libnl3/netlink/
+	install -d ${D}${includedir}/libnl3/netlink/xfrm/
+	install -c -m 755 ${S}/${LIBNL_XFRM_LIB} ${D}${libdir}/
+	install -c -m 755 ${S}/include/netlink/xfrm/*.h ${D}${includedir}/libnl3/netlink/xfrm/
+	install -c -m 755 ${S}/lib/libnl-xfrm.so ${D}${libdir}/libnl-xfrm.so.1.0.0
+	cd ${D}${libdir}/
+	ln -s libnl-xfrm.so.1.0.0 libnl-xfrm.so.1
+	ln -s libnl-xfrm.so.1.0.0 libnl-xfrm.so
+}
Signature · 1 line
1.7.9.5