Skip to contentSkip to conversation

libnl: Add append recipe to expose private files

PATCH In review Sam Nelson 2 participants 5 messages Jan 30, 2015 – Feb 1, 2015

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH 1/2 libnl: Add append recipe to expose private files

- Private files installed are needed to allow xfrm extension of libnl
- Version 3.2.24 already have this patch

---
This is needed temporarily to patch 3.2.22 as the arago preferred version is 3.2.22
---

---
 .../recipes-support/libnl/libnl_3.2.22.bbappend    |    8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend
meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend new file +8 -0
new file mode 100644
index 0000000..4885c7d
@@ -0,0 +1,8 @@
+PR_append = "-arago0"
+
+do_install_append() {
+#   Install private files to allow libnl extensions
+    install -d ${D}${includedir}/netlink-private
+    cp -r ${S}/include/netlink-private/cache-api.h ${D}${includedir}/netlink-private/
+    cp -r ${S}/include/netlink-private/object-api.h ${D}${includedir}/netlink-private/
+}
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 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
#2 lore raw
In reply to Sam Nelson
Quoted 2 lines · Sam Nelson

- Private files installed are needed to allow xfrm extension of libnl
- Version 3.2.24 already have this patch

Why do you need this, if you have 3.2.24 already?

Quoted 31 lines

---
This is needed temporarily to patch 3.2.22 as the arago preferred version is 3.2.22
---

---
 .../recipes-support/libnl/libnl_3.2.22.bbappend    |    8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend
meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend new file +8 -0
new file mode 100644
index 0000000..4885c7d
@@ -0,0 +1,8 @@
+PR_append = "-arago0"
+
+do_install_append() {
+#   Install private files to allow libnl extensions
+    install -d ${D}${includedir}/netlink-private
+    cp -r ${S}/include/netlink-private/cache-api.h ${D}${includedir}/netlink-private/
+    cp -r ${S}/include/netlink-private/object-api.h ${D}${includedir}/netlink-private/
+}
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#3 lore raw
Quoted 10 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, January 30, 2015 9:54 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH 1/2] libnl: Add append recipe to expose private files

Quoted 6 lines
Quoted 2 lines · Sam Nelson

- Private files installed are needed to allow xfrm extension of libnl
- Version 3.2.24 already have this patch

Why do you need this, if you have 3.2.24 already?

[Sam] This is needed temporarily to patch 3.2.22 as the arago preferred version is currently
3.2.22

Quoted 37 lines
Quoted 5 lines

---
This is needed temporarily to patch 3.2.22 as the arago preferred version is

3.2.22

Quoted 5 lines

---

---
 .../recipes-support/libnl/libnl_3.2.22.bbappend    |    8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-arago-extras/recipes-

support/libnl/libnl_3.2.22.bbappend

Review

Quoted 2 lines
(quoted diff) +0 -0

b/meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend

meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend line 6

Quoted 11 lines

new file mode 100644
index 0000000..4885c7d

meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend new file +6 -0
@@ -0,0 +1,8 @@
+PR_append = "-arago0"
+
+do_install_append() {
+#   Install private files to allow libnl extensions
+    install -d ${D}${includedir}/netlink-private
+    cp -r ${S}/include/netlink-private/cache-api.h ${D}${includedir}/netlink-

private/

meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend line 7

Quoted 1 line
meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend new file +1 -0
+    cp -r ${S}/include/netlink-private/object-api.h ${D}${includedir}/netlink-

private/

Quoted 8 lines
meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend new file +1 -1
+}
--

1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#4 lore raw
Quoted 10 lines · Sam
Quoted 10 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, January 30, 2015 9:54 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH 1/2] libnl: Add append recipe to expose private files

Quoted 8 lines
Quoted 6 lines · Sam Nelson
Quoted 2 lines

- Private files installed are needed to allow xfrm extension of libnl
- Version 3.2.24 already have this patch

Why do you need this, if you have 3.2.24 already?

[Sam] This is needed temporarily to patch 3.2.22 as the arago preferred version is currently
3.2.22

Can you do PREFERRED_VERSION_keystone = "3.2.24"?

Quoted 36 lines
Quoted 36 lines
Quoted 4 lines

---
This is needed temporarily to patch 3.2.22 as the arago preferred version is

3.2.22

Quoted 5 lines

---

---
 .../recipes-support/libnl/libnl_3.2.22.bbappend    |    8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-arago-extras/recipes-

support/libnl/libnl_3.2.22.bbappend

Review

Quoted 2 lines
(quoted diff) +0 -0

b/meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend

meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend line 6

Quoted 11 lines

new file mode 100644
index 0000000..4885c7d

meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend new file +6 -0
@@ -0,0 +1,8 @@
+PR_append = "-arago0"
+
+do_install_append() {
+#   Install private files to allow libnl extensions
+    install -d ${D}${includedir}/netlink-private
+    cp -r ${S}/include/netlink-private/cache-api.h ${D}${includedir}/netlink-

private/

meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend line 7

Quoted 1 line
meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend new file +1 -0
+    cp -r ${S}/include/netlink-private/object-api.h ${D}${includedir}/netlink-

private/

Quoted 8 lines
meta-arago-extras/recipes-support/libnl/libnl_3.2.22.bbappend new file +1 -1
+}
--

1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago