[Buildroot] [PATCH 2/2] iproute2: Fix auto configuration to work in cross environment.

Mike Frysinger vapier at gentoo.org
Fri Dec 10 16:50:40 UTC 2010


On Fri, Dec 10, 2010 at 8:45 AM, Serj Kalichev wrote:
> The iproute2's configure script was fixed to work with cross
> toolchain. Now it can use tools from cross toolchain but not
> from the host. So it can automatically generate right Config
> file. The checks for the IPv6 support and Berkeley DB
> availability were added to the configure script. The
> Berkeley DB support is needed to build (or not) arpd.

this is way more work than necessary.  the iproute2 configure script
does all of two things:
 - detect atm support
 - detect iptables version

instead of trying to clean up the bundled configure script which is a
pile of crap, simply have the iproute2.mk file do:
echo TC_CONFIG_ATM:=y > Config
echo TC_CONFIG_XT:=$(BR2_IPTABLES) >> Config

after all, we already know that the version of iptables in BR is the
latest and so dont need any of the hacky iptables detection.

here is a simple patch i wrote for Gentoo that allows you to disable
iptables support completely:
http://sources.gentoo.org/sys-apps/iproute2/files/iproute2-2.6.35-no-iptables.patch
-mike


More information about the buildroot mailing list