Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add iptables as build dependency since it needs xtables header Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
- Loading branch information
1 parent
8d2cc28
commit 1d75df6
Showing
13 changed files
with
216 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -41,7 +41,7 @@ WFLAGS += -Wmissing-declarations -Wold-s | ||
@@ -42,7 +42,7 @@ WFLAGS += -Wmissing-declarations -Wold-s | ||
CFLAGS := $(WFLAGS) $(CCOPTS) -I../include $(DEFINES) $(CFLAGS) | ||
YACCFLAGS = -d -t -v | ||
|
||
-SUBDIRS=lib ip tc bridge misc netem genl tipc man | ||
+SUBDIRS=lib ip tc bridge misc genl tipc man | ||
-SUBDIRS=lib ip tc bridge misc netem genl tipc devlink man | ||
+SUBDIRS=lib ip tc bridge misc genl tipc devlink man | ||
|
||
LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a | ||
LDLIBS += $(LIBNETLINK) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
package/network/utils/iproute2/patches/100-allow_pfifo_fast.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
package/network/utils/iproute2/patches/999-01-configure-cross.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From 85b0589b4843c03e8e6fd9416d71ea449a73c5c0 Mon Sep 17 00:00:00 2001 | ||
From: Koen Kooi <koen@dominion.thruhere.net> | ||
Date: Thu, 3 Nov 2011 10:46:16 +0100 | ||
Subject: [PATCH] make configure cross compile safe | ||
|
||
According to Kevin Tian: | ||
Upstream-Status: Pending | ||
|
||
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
Signed-off-by: Shane Wang <shane.wang@intel.com> | ||
|
||
--- a/configure | ||
+++ b/configure | ||
@@ -2,6 +2,7 @@ | ||
# This is not an autoconf generated configure | ||
# | ||
INCLUDE=${1:-"$PWD/include"} | ||
+SYSROOT=$1 | ||
|
||
# Make a temp directory in build tree. | ||
TMPDIR=$(mktemp -d config.XXXXXX) | ||
@@ -184,7 +185,7 @@ check_ipt_lib_dir() | ||
return | ||
fi | ||
|
||
- for dir in /lib /usr/lib /usr/local/lib | ||
+ for dir in $SYSROOT/lib $SYSROOT/usr/lib $SYSROOT/usr/local/lib | ||
do | ||
for file in $dir/{xtables,iptables}/lib*t_*so ; do | ||
if [ -f $file ]; then |
69 changes: 69 additions & 0 deletions
69
package/network/utils/iproute2/patches/999-02-musl-fix-headers.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
Subject: [PATCH] Avoid in6_addr redefinition | ||
|
||
Due to both <netinet/in.h> and <linux/in6.h> being included, the | ||
in6_addr is being redefined: once from the C library headers and once | ||
from the kernel headers. This causes some build failures with for | ||
example the musl C library. | ||
|
||
In order to fix this, use just the C library header <netinet/in.h>. | ||
Original patch taken from | ||
http://git.alpinelinux.org/cgit/aports/tree/main/iproute2/musl-fixes.patch. | ||
|
||
(Refreshed the patch for 4.6 release) | ||
|
||
Upstream-Status: Pending | ||
|
||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | ||
Signed-off-by: Maxin B. John <maxin.john@intel.com> | ||
---- | ||
--- a/include/libiptc/ipt_kernel_headers.h | ||
+++ b/include/libiptc/ipt_kernel_headers.h | ||
@@ -6,7 +6,6 @@ | ||
#include <limits.h> | ||
|
||
#include <netinet/ip.h> | ||
-#include <netinet/in.h> | ||
#include <netinet/ip_icmp.h> | ||
#include <netinet/tcp.h> | ||
#include <netinet/udp.h> | ||
--- a/include/linux/netfilter.h | ||
+++ b/include/linux/netfilter.h | ||
@@ -4,8 +4,6 @@ | ||
#include <linux/types.h> | ||
|
||
#include <linux/sysctl.h> | ||
-#include <linux/in.h> | ||
-#include <linux/in6.h> | ||
|
||
/* Responses from hook functions. */ | ||
#define NF_DROP 0 | ||
--- a/include/linux/netfilter_ipv4/ip_tables.h | ||
+++ b/include/linux/netfilter_ipv4/ip_tables.h | ||
@@ -17,7 +17,6 @@ | ||
|
||
#include <linux/types.h> | ||
|
||
-#include <linux/if.h> | ||
#include <linux/netfilter_ipv4.h> | ||
|
||
#include <linux/netfilter/x_tables.h> | ||
--- a/include/linux/xfrm.h | ||
+++ b/include/linux/xfrm.h | ||
@@ -1,7 +1,6 @@ | ||
#ifndef _LINUX_XFRM_H | ||
#define _LINUX_XFRM_H | ||
|
||
-#include <linux/in6.h> | ||
#include <linux/types.h> | ||
|
||
/* All of the structures in this file may not change size as they are | ||
--- a/include/utils.h | ||
+++ b/include/utils.h | ||
@@ -1,6 +1,7 @@ | ||
#ifndef __UTILS_H__ | ||
#define __UTILS_H__ 1 | ||
|
||
+#include <sys/param.h> /* MAXPATHLEN */ | ||
#include <sys/types.h> | ||
#include <asm/types.h> | ||
#include <resolv.h> |
Oops, something went wrong.