diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-connectivity/iproute2/iproute2-3.0.0/configure-cross.patch (renamed from meta/recipes-connectivity/iproute2/iproute2-2.6.38/configure-cross.patch) | 57 | ||||
-rw-r--r-- | meta/recipes-connectivity/iproute2/iproute2.inc | 7 | ||||
-rw-r--r-- | meta/recipes-connectivity/iproute2/iproute2_2.6.38.bb | 9 | ||||
-rw-r--r-- | meta/recipes-connectivity/iproute2/iproute2_3.0.0.bb | 8 |
4 files changed, 51 insertions, 30 deletions
diff --git a/meta/recipes-connectivity/iproute2/iproute2-2.6.38/configure-cross.patch b/meta/recipes-connectivity/iproute2/iproute2-3.0.0/configure-cross.patch index e26e8effd6..92c12be83e 100644 --- a/meta/recipes-connectivity/iproute2/iproute2-2.6.38/configure-cross.patch +++ b/meta/recipes-connectivity/iproute2/iproute2-3.0.0/configure-cross.patch | |||
@@ -1,31 +1,38 @@ | |||
1 | From 85b0589b4843c03e8e6fd9416d71ea449a73c5c0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Thu, 3 Nov 2011 10:46:16 +0100 | ||
4 | Subject: [PATCH] make configure cross compile safe | ||
5 | |||
6 | According to Kevin Tian: | ||
1 | Upstream-Status: Pending | 7 | Upstream-Status: Pending |
2 | 8 | ||
3 | # borrow from OE, to handle cross compile mess | 9 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> |
4 | # | 10 | --- |
5 | # ktian1, 06/28/2010 | 11 | configure | 13 +++++++------ |
6 | Index: iproute2-2.6.34/configure | 12 | 1 files changed, 7 insertions(+), 6 deletions(-) |
7 | =================================================================== | 13 | |
8 | --- iproute2-2.6.34.orig/configure | 14 | diff --git a/configure b/configure |
9 | +++ iproute2-2.6.34/configure | 15 | index f5c3d40..bcc1948 100755 |
10 | @@ -4,7 +4,7 @@ | 16 | --- a/configure |
17 | +++ b/configure | ||
18 | @@ -2,6 +2,7 @@ | ||
19 | # This is not an autconf generated configure | ||
20 | # | ||
11 | INCLUDE=${1:-"$PWD/include"} | 21 | INCLUDE=${1:-"$PWD/include"} |
12 | |||
13 | TABLES= | ||
14 | - | ||
15 | +SYSROOT=$1 | 22 | +SYSROOT=$1 |
23 | |||
16 | check_atm() | 24 | check_atm() |
17 | { | 25 | { |
18 | cat >/tmp/atmtest.c <<EOF | 26 | @@ -13,7 +14,7 @@ int main(int argc, char **argv) { |
19 | @@ -15,7 +15,7 @@ int main(int argc, char **argv) { | ||
20 | return 0; | 27 | return 0; |
21 | } | 28 | } |
22 | EOF | 29 | EOF |
23 | -gcc -I$INCLUDE -o /tmp/atmtest /tmp/atmtest.c -latm >/dev/null 2>&1 | 30 | -gcc -I$INCLUDE -o /tmp/atmtest /tmp/atmtest.c -latm >/dev/null 2>&1 |
24 | +$CC -I$INCLUDE -o /tmp/atmtest /tmp/atmtest.c -latm >/dev/null 2>&1 | 31 | +$CC -I$INCLUDE -o /tmp/atmtest /tmp/atmtest.c -latm >/dev/null 2>&1 |
25 | if [ $? -eq 0 ] | 32 | if [ $? -eq 0 ] |
26 | then | 33 | then |
27 | echo "TC_CONFIG_ATM:=y" >>Config | 34 | echo "TC_CONFIG_ATM:=y" >>Config |
28 | @@ -49,7 +49,7 @@ int main(int argc, char **argv) | 35 | @@ -47,7 +48,7 @@ int main(int argc, char **argv) |
29 | 36 | ||
30 | EOF | 37 | EOF |
31 | 38 | ||
@@ -34,7 +41,7 @@ Index: iproute2-2.6.34/configure | |||
34 | then | 41 | then |
35 | echo "TC_CONFIG_XT:=y" >>Config | 42 | echo "TC_CONFIG_XT:=y" >>Config |
36 | echo "using xtables" | 43 | echo "using xtables" |
37 | @@ -86,7 +86,7 @@ int main(int argc, char **argv) { | 44 | @@ -84,7 +85,7 @@ int main(int argc, char **argv) { |
38 | } | 45 | } |
39 | 46 | ||
40 | EOF | 47 | EOF |
@@ -43,7 +50,7 @@ Index: iproute2-2.6.34/configure | |||
43 | 50 | ||
44 | if [ $? -eq 0 ] | 51 | if [ $? -eq 0 ] |
45 | then | 52 | then |
46 | @@ -126,7 +126,7 @@ int main(int argc, char **argv) { | 53 | @@ -124,7 +125,7 @@ int main(int argc, char **argv) { |
47 | } | 54 | } |
48 | 55 | ||
49 | EOF | 56 | EOF |
@@ -52,12 +59,24 @@ Index: iproute2-2.6.34/configure | |||
52 | 59 | ||
53 | if [ $? -eq 0 ] | 60 | if [ $? -eq 0 ] |
54 | then | 61 | then |
55 | @@ -150,7 +150,7 @@ check_ipt() | 62 | @@ -145,7 +146,7 @@ check_ipt() |
56 | check_ipt_lib_dir() | 63 | check_ipt_lib_dir() |
57 | { | 64 | { |
58 | IPT_LIB_DIR="" | 65 | IPT_LIB_DIR="" |
59 | - for dir in /lib /usr/lib /usr/local/lib | 66 | - for dir in /lib /usr/lib /usr/local/lib |
60 | + for dir in $SYSROOT/lib $SYSROOT/usr/lib $SYSROOT/usr/local/lib | 67 | + for dir in $SYSROOT/lib $SYSROOT/usr/lib $SYSROOT/usr/local/lib |
61 | do | 68 | do |
62 | for file in $dir/$TABLES/lib*t_*so ; do | 69 | for file in $dir/{xtables,iptables}/lib*t_*so ; do |
63 | if [ -f $file ]; then | 70 | if [ -f $file ]; then |
71 | @@ -168,7 +169,7 @@ int main(int argc, char **argv) | ||
72 | return 0; | ||
73 | } | ||
74 | EOF | ||
75 | -gcc -I$INCLUDE -o /tmp/setnstest /tmp/setnstest.c >/dev/null 2>&1 | ||
76 | +$CC -I$INCLUDE -o /tmp/setnstest /tmp/setnstest.c >/dev/null 2>&1 | ||
77 | if [ $? -eq 0 ] | ||
78 | then | ||
79 | echo "IP_CONFIG_SETNS:=y" >>Config | ||
80 | -- | ||
81 | 1.7.2.5 | ||
82 | |||
diff --git a/meta/recipes-connectivity/iproute2/iproute2.inc b/meta/recipes-connectivity/iproute2/iproute2.inc index 0f27a01465..6fc30a05e1 100644 --- a/meta/recipes-connectivity/iproute2/iproute2.inc +++ b/meta/recipes-connectivity/iproute2/iproute2.inc | |||
@@ -23,8 +23,11 @@ do_install () { | |||
23 | rm ${D}/share -rf || true | 23 | rm ${D}/share -rf || true |
24 | } | 24 | } |
25 | 25 | ||
26 | FILES_${PN} += "/usr/lib/tc/*" | 26 | # There are only .so files in iproute2 |
27 | FILES_${PN}-dbg += "/usr/lib/tc/.debug" | 27 | INSANE_SKIP_${PN} = "dev-so" |
28 | |||
29 | FILES_${PN} += "${base_libdir}/tc/*" | ||
30 | FILES_${PN}-dbg += "${base_libdir}/tc/.debug" | ||
28 | 31 | ||
29 | ALTERNATIVE_NAME = "ip" | 32 | ALTERNATIVE_NAME = "ip" |
30 | ALTERNATIVE_PATH = "${base_sbindir}/ip.iproute2" | 33 | ALTERNATIVE_PATH = "${base_sbindir}/ip.iproute2" |
diff --git a/meta/recipes-connectivity/iproute2/iproute2_2.6.38.bb b/meta/recipes-connectivity/iproute2/iproute2_2.6.38.bb deleted file mode 100644 index 7abc41fc14..0000000000 --- a/meta/recipes-connectivity/iproute2/iproute2_2.6.38.bb +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | require iproute2.inc | ||
2 | |||
3 | PR = "r0" | ||
4 | |||
5 | SRC_URI = "http://developer.osdl.org/dev/iproute2/download/${BPN}-${PV}.tar.bz2 \ | ||
6 | file://configure-cross.patch" | ||
7 | |||
8 | SRC_URI[md5sum] = "a243bfea837e71824b7ca26c3bb45fa8" | ||
9 | SRC_URI[sha256sum] = "47629a4f547f21d94d8e823a87dd8e13042cadecefea2e2dc433e4134fa9aec4" | ||
diff --git a/meta/recipes-connectivity/iproute2/iproute2_3.0.0.bb b/meta/recipes-connectivity/iproute2/iproute2_3.0.0.bb new file mode 100644 index 0000000000..8d1db85bc5 --- /dev/null +++ b/meta/recipes-connectivity/iproute2/iproute2_3.0.0.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require iproute2.inc | ||
2 | |||
3 | #v3.0.0 tag | ||
4 | SRCREV = "ce691fb5ce78b2c75243c60a757a3990ae09681c" | ||
5 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git \ | ||
6 | file://configure-cross.patch" | ||
7 | S = "${WORKDIR}/git" | ||
8 | |||