[Buildroot] [PATCH] iproute2 depends on iptables and both packages need AR set to TARGET_AR

Pkun serj.kalichev at gmail.com
Fri Dec 10 09:06:30 UTC 2010


2010/12/10 <heiko at zuerker.org>

> From: root <root at build-pc2.home.zuerker.org>
>
>
> Signed-off-by: Heiko Zuerker <smiley73 at users.sourceforge.net>
> ---
>  package/iproute2/Config.in   |    5 ++++-
>  package/iproute2/iproute2.mk |    3 ++-
>  package/iptables/iptables.mk |    2 ++
>  3 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/package/iproute2/Config.in b/package/iproute2/Config.in
> index 2412d8e..6d86c7c 100644
> --- a/package/iproute2/Config.in
> +++ b/package/iproute2/Config.in
> @@ -1,6 +1,6 @@
>  config BR2_PACKAGE_IPROUTE2
>        bool "iproute2"
> -       depends on BR2_INET_IPV6
> +       depends on BR2_INET_IPV6 && BR2_PACKAGE_IPTABLES
>        help
>          Kernel routing and traffic control utilities.  Provides things
>          like ip and tc.
> @@ -9,3 +9,6 @@ config BR2_PACKAGE_IPROUTE2
>
>  comment "iproute2 requires a toolchain with IPv6 support"
>        depends on !BR2_INET_IPV6
> +
> +comment "iproute2 requires iptables"
> +       depends on !BR2_PACKAGE_IPTABLES
> diff --git a/package/iproute2/iproute2.mk b/package/iproute2/iproute2.mk
> index 0f99894..b1e136f 100644
> --- a/package/iproute2/iproute2.mk
> +++ b/package/iproute2/iproute2.mk
> @@ -8,6 +8,7 @@ IPROUTE2_VERSION = 2.6.35
>  IPROUTE2_SOURCE = iproute2-$(IPROUTE2_VERSION).tar.bz2
>  IPROUTE2_SITE =
> http://devresources.linuxfoundation.org/dev/iproute2/download
>  IPROUTE2_TARGET_SBINS = ctstat genl ifstat ip lnstat nstat routef routel
> rtacct rtmon rtpr rtstat ss tc
> +IPROUTE2_DEPENDENCIES = iptables
>
>  define IPROUTE2_CONFIGURE_CMDS
>        # Use kernel headers
> @@ -20,7 +21,7 @@ define IPROUTE2_CONFIGURE_CMDS
>  endef
>
>  define IPROUTE2_BUILD_CMDS
> -       $(MAKE) CC="$(TARGET_CC)" -C $(@D)
> +       $(MAKE) CC="$(TARGET_CC)" AR="$(TARGET_AR)" -C $(@D)
>  endef
>
>  define IPROUTE2_INSTALL_TARGET_CMDS
> diff --git a/package/iptables/iptables.mk b/package/iptables/iptables.mk
> index 1ec2c85..9c3c577 100644
> --- a/package/iptables/iptables.mk
> +++ b/package/iptables/iptables.mk
> @@ -7,6 +7,8 @@ IPTABLES_VERSION = 1.4.10
>  IPTABLES_SOURCE = iptables-$(IPTABLES_VERSION).tar.bz2
>  IPTABLES_SITE = http://ftp.netfilter.org/pub/iptables
>  IPTABLES_DEPENDENCIES = host-pkg-config
> +IPTABLES_INSTALL_STAGING = yes
> +IPTABLES_MAKE_OPT = AR=$(TARGET_AR)
>
>  IPTABLES_CONF_OPT = --libexecdir=/usr/lib
> --with-kernel=$(LINUX_HEADERS_DIR)
>  ifneq ($(BR2_INET_IPV6),y)
> --
> 1.7.3.2
>
>

Do you have a real problems with AR in iptables? I don't find $(AR) in the
unpacked iptables source. And don't see any ar while iptables building
process.

I think it's not good to set hard dependence on iptables to the iproute2
package. Because iproute2 can be built without iptables. So the iptables is
optional for iproute2.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101210/1c06b67a/attachment.html>


More information about the buildroot mailing list