summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2013-01-14 17:49:26 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-16 11:57:32 +0000
commit130628666633be58b37f531c6d2a8edadb2e6dfa (patch)
tree6a5cab77c69a8238959aefb7fb7c7bb0fc5e7a22 /meta
parent94cd6a15e2d12fc5ee9d9956c9191e788791962f (diff)
downloadpoky-130628666633be58b37f531c6d2a8edadb2e6dfa.tar.gz
iproute2: upgrade to v3.7.0
configure-cross patch is now simplified. sysroot is now properly set. (From OE-Core rev: 9c9c55635ef34fc0f4d5acd8434c8f64ccd5bf87) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-connectivity/iproute2/iproute2-3.5.1/configure-cross.patch77
-rw-r--r--meta/recipes-connectivity/iproute2/iproute2/configure-cross.patch32
-rw-r--r--meta/recipes-connectivity/iproute2/iproute2_3.7.0.bb (renamed from meta/recipes-connectivity/iproute2/iproute2_3.5.1.bb)6
3 files changed, 35 insertions, 80 deletions
diff --git a/meta/recipes-connectivity/iproute2/iproute2-3.5.1/configure-cross.patch b/meta/recipes-connectivity/iproute2/iproute2-3.5.1/configure-cross.patch
deleted file mode 100644
index 42f591a885..0000000000
--- a/meta/recipes-connectivity/iproute2/iproute2-3.5.1/configure-cross.patch
+++ /dev/null
@@ -1,77 +0,0 @@
1From 85b0589b4843c03e8e6fd9416d71ea449a73c5c0 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Thu, 3 Nov 2011 10:46:16 +0100
4Subject: [PATCH] make configure cross compile safe
5
6According to Kevin Tian:
7Upstream-Status: Pending
8
9Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
10Signed-off-by: Shane Wang <shane.wang@intel.com>
11
12Index: iproute2-3.4.0/configure
13===================================================================
14--- iproute2-3.4.0.orig/configure
15+++ iproute2-3.4.0/configure
16@@ -2,6 +2,7 @@
17 # This is not an autconf generated configure
18 #
19 INCLUDE=${1:-"$PWD/include"}
20+SYSROOT=$1
21
22 # Make a temp directory in build tree.
23 TMPDIR=$(mktemp -d config.XXXXXX)
24@@ -17,7 +18,7 @@ int main(int argc, char **argv) {
25 return 0;
26 }
27 EOF
28-gcc -I$INCLUDE -o $TMPDIR/atmtest $TMPDIR/atmtest.c -latm >/dev/null 2>&1
29+$CC -I$INCLUDE -o $TMPDIR/atmtest $TMPDIR/atmtest.c -latm >/dev/null 2>&1
30 if [ $? -eq 0 ]
31 then
32 echo "TC_CONFIG_ATM:=y" >>Config
33@@ -51,7 +52,7 @@ int main(int argc, char **argv)
34
35 EOF
36
37-if gcc -I$INCLUDE $IPTC -o $TMPDIR/ipttest $TMPDIR/ipttest.c $IPTL $(pkg-config xtables --cflags --libs) -ldl >/dev/null 2>&1
38+if $CC -I$INCLUDE $IPTC -o $TMPDIR/ipttest $TMPDIR/ipttest.c $IPTL $(pkg-config xtables --cflags --libs) -ldl >/dev/null 2>&1
39 then
40 echo "TC_CONFIG_XT:=y" >>Config
41 echo "using xtables"
42@@ -88,7 +89,7 @@ int main(int argc, char **argv) {
43 }
44
45 EOF
46-gcc -I$INCLUDE $IPTC -o $TMPDIR/ipttest $TMPDIR/ipttest.c $IPTL -ldl >/dev/null 2>&1
47+$CC -I$INCLUDE $IPTC -o $TMPDIR/ipttest $TMPDIR/ipttest.c $IPTL -ldl >/dev/null 2>&1
48
49 if [ $? -eq 0 ]
50 then
51@@ -128,7 +129,7 @@ int main(int argc, char **argv) {
52 }
53
54 EOF
55-gcc -I$INCLUDE $IPTC -o $TMPDIR/ipttest $TMPDIR/ipttest.c $IPTL -ldl >/dev/null 2>&1
56+$CC -I$INCLUDE $IPTC -o $TMPDIR/ipttest $TMPDIR/ipttest.c $IPTL -ldl >/dev/null 2>&1
57
58 if [ $? -eq 0 ]
59 then
60@@ -149,7 +150,7 @@ check_ipt()
61 check_ipt_lib_dir()
62 {
63 IPT_LIB_DIR=""
64- for dir in /lib /usr/lib /usr/local/lib
65+ for dir in $SYSROOT/lib $SYSROOT/usr/lib $SYSROOT/usr/local/lib
66 do
67 for file in $dir/{xtables,iptables}/lib*t_*so ; do
68 if [ -f $file ]; then
69@@ -172,7 +173,7 @@ int main(int argc, char **argv)
70 return 0;
71 }
72 EOF
73-gcc -I$INCLUDE -o $TMPDIR/setnstest $TMPDIR/setnstest.c >/dev/null 2>&1
74+$CC -I$INCLUDE -o $TMPDIR/setnstest $TMPDIR/setnstest.c >/dev/null 2>&1
75 if [ $? -eq 0 ]
76 then
77 echo "IP_CONFIG_SETNS:=y" >>Config
diff --git a/meta/recipes-connectivity/iproute2/iproute2/configure-cross.patch b/meta/recipes-connectivity/iproute2/iproute2/configure-cross.patch
new file mode 100644
index 0000000000..10606f3926
--- /dev/null
+++ b/meta/recipes-connectivity/iproute2/iproute2/configure-cross.patch
@@ -0,0 +1,32 @@
1From 85b0589b4843c03e8e6fd9416d71ea449a73c5c0 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Thu, 3 Nov 2011 10:46:16 +0100
4Subject: [PATCH] make configure cross compile safe
5
6According to Kevin Tian:
7Upstream-Status: Pending
8
9Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
10Signed-off-by: Shane Wang <shane.wang@intel.com>
11
12Index: iproute2-3.7.0/configure
13===================================================================
14--- iproute2-3.7.0.orig/configure
15+++ iproute2-3.7.0/configure
16@@ -2,6 +2,7 @@
17 # This is not an autconf generated configure
18 #
19 INCLUDE=${1:-"$PWD/include"}
20+SYSROOT=$1
21 : ${PKG_CONFIG:=pkg-config}
22 : ${CC=gcc}
23 echo "PKG_CONFIG:=${PKG_CONFIG}" >>Config
24@@ -158,7 +159,7 @@ check_ipt_lib_dir()
25 return
26 fi
27
28- for dir in /lib /usr/lib /usr/local/lib
29+ for dir in $SYSROOT/lib $SYSROOT/usr/lib $SYSROOT/usr/local/lib
30 do
31 for file in $dir/{xtables,iptables}/lib*t_*so ; do
32 if [ -f $file ]; then
diff --git a/meta/recipes-connectivity/iproute2/iproute2_3.5.1.bb b/meta/recipes-connectivity/iproute2/iproute2_3.7.0.bb
index 3d402cffcd..1863acbfb5 100644
--- a/meta/recipes-connectivity/iproute2/iproute2_3.5.1.bb
+++ b/meta/recipes-connectivity/iproute2/iproute2_3.7.0.bb
@@ -1,12 +1,12 @@
1require iproute2.inc 1require iproute2.inc
2 2
3PR = "r2" 3PR = "r0"
4 4
5SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BPN}-${PV}.tar.xz \ 5SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BPN}-${PV}.tar.xz \
6 file://configure-cross.patch" 6 file://configure-cross.patch"
7 7
8SRC_URI[md5sum] = "d4425b44edd5eacd6099e672e4baacbf" 8SRC_URI[md5sum] = "b07241b267036de9a79ca5b69acf8593"
9SRC_URI[sha256sum] = "36f2674e5436289f3ccfb0a58707aca9dcfa295d06afc36d2117674508f5ef72" 9SRC_URI[sha256sum] = "6b0e76d7adb8b9b65f70571f75d72db7c2548eff7813cace9e267065c3c0cb34"
10 10
11# CFLAGS are computed in Makefile and reference CCOPTS 11# CFLAGS are computed in Makefile and reference CCOPTS
12# 12#