busybox-1.11.3: undefined reference __cpu_to_be16 fixed for busybox-static
authorSteffen Sledz <sledz@dresearch.de>
Thu, 29 Oct 2009 12:01:06 +0000 (13:01 +0100)
committerSteffen Sledz <sledz@dresearch.de>
Tue, 3 Nov 2009 07:18:52 +0000 (08:18 +0100)
A patch fixing this problem inside the linux kernel was not accepted.
For details see:
- http://lkml.org/lkml/2009/6/18/223
- http://patchwork.kernel.org/patch/31164/

Signed-off-by: Steffen Sledz <sledz@dresearch.de>
recipes/busybox/busybox-1.11.3/iptunnel.patch [new file with mode: 0644]
recipes/busybox/busybox.inc
recipes/busybox/busybox_1.11.3.bb

diff --git a/recipes/busybox/busybox-1.11.3/iptunnel.patch b/recipes/busybox/busybox-1.11.3/iptunnel.patch
new file mode 100644 (file)
index 0000000..18734fc
--- /dev/null
@@ -0,0 +1,11 @@
+diff -Nurd busybox-1.11.3.orig//networking/libiproute/iptunnel.c busybox-1.11.3/networking/libiproute/iptunnel.c
+--- busybox-1.11.3.orig//networking/libiproute/iptunnel.c      2009-10-29 12:49:58.000000000 +0100
++++ busybox-1.11.3/networking/libiproute/iptunnel.c    2009-10-29 12:50:33.000000000 +0100
+@@ -21,6 +21,7 @@
+ #ifndef __constant_htons
+ #define __constant_htons htons
+ #endif
++#include <asm/byteorder.h>
+ #include <linux/if_tunnel.h>
+ #include "ip_common.h"  /* #include "libbb.h" is inside */
index 0ff65a4..753b402 100644 (file)
@@ -11,7 +11,7 @@ LICENSE = "GPL"
 SECTION = "base"
 PRIORITY = "required"
 
-INC_PR = "r22"
+INC_PR = "r23"
 
 SRC_URI = "\
   http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
index 293608b..0ec753f 100644 (file)
@@ -7,6 +7,7 @@ SRC_URI = "\
   file://udhcpscript.patch;patch=1 \
   file://B921600.patch;patch=1 \
   file://fdisk_lineedit_segfault.patch;patch=1 \
+  file://iptunnel.patch;patch=1 \
   file://busybox-appletlib-dependency.patch;patch=1 \
   file://busybox-cron \
   file://busybox-httpd \