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

Pkun serj.kalichev at gmail.com
Fri Dec 10 17:46:21 UTC 2010


2010/12/10 Mike Frysinger <vapier at gentoo.org>

> 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
>


To write ad-hoc iproute2.mk is not general way. Especially the replacing -o2
with the CFLAGS by the sed. You don't need iptables integration but I do. I
don't need IPv6. I don't need ATM but it was switch on in my system by
./configure that use host dirs instead staging. You suggest to hardcode
settings. It's not good.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101210/9aaa0b46/attachment-0002.html>


More information about the buildroot mailing list