Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 01/22] package: derive HOST_FOO_DEPENDENCIES from FOO_DEPENDENCIES
Date: Mon,  3 Oct 2011 23:20:37 +0200	[thread overview]
Message-ID: <1317676858-3407-2-git-send-email-arnout@mind.be> (raw)
In-Reply-To: <1317676858-3407-1-git-send-email-arnout@mind.be>

From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
Unfortunately, duplication is needed for autotools because it updates
FOO_DEPENDENCIES.
---
 package/Makefile.autotools.in |   10 ++++++++++
 package/Makefile.package.in   |    7 ++++++-
 2 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in
index 3f523dc..a1d4fa5 100644
--- a/package/Makefile.autotools.in
+++ b/package/Makefile.autotools.in
@@ -200,6 +200,16 @@ define AUTORECONF_HOOK
 	fi
 endef
 
+# This must be repeated from GENTARGETS_INNER, otherwise we get an empty
+# _DEPENDENCIES if _AUTORECONF is YES.  Also filter the result of _AUTORECONF
+# away from the non-host rule
+ifndef $(2)_DEPENDENCIES
+ ifdef $(3)_DEPENDENCIES
+  $(2)_DEPENDENCIES = $(filter-out host-automake host-autoconf host-libtool,\
+    $(patsubst host-host-%,host-%,$(addprefix host-,$($(3)_DEPENDENCIES))))
+ endif
+endif
+
 ifeq ($$($(2)_AUTORECONF),YES)
 $(2)_PRE_CONFIGURE_HOOKS += AUTORECONF_HOOK
 $(2)_DEPENDENCIES += host-automake host-autoconf host-libtool
diff --git a/package/Makefile.package.in b/package/Makefile.package.in
index b5ef57b..91dda1a 100644
--- a/package/Makefile.package.in
+++ b/package/Makefile.package.in
@@ -478,7 +478,12 @@ $(2)_OVERRIDE_SRCDIR = $($(2)_SITE)
 endif
 endif
 
-$(2)_DEPENDENCIES		?=
+ifndef $(2)_DEPENDENCIES
+ ifdef $(3)_DEPENDENCIES
+  $(2)_DEPENDENCIES = $(patsubst host-host-%,host-%,$(addprefix host-,$($(3)_DEPENDENCIES)))
+ endif
+endif
+
 $(2)_INSTALL_STAGING		?= NO
 $(2)_INSTALL_IMAGES		?= NO
 $(2)_INSTALL_TARGET		?= YES
-- 
1.7.6.3

  reply	other threads:[~2011-10-03 21:20 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-01 15:00 [Buildroot] [RFC] Request for comments on branch for-2011.11/host-tools Thomas Petazzoni
2011-10-01 15:00 ` [Buildroot] [PATCH 1/6] Add basic config infrastructure for host utilities Thomas Petazzoni
2011-10-02 20:20   ` Luca Ceresoli
2011-10-01 15:00 ` [Buildroot] [PATCH 2/6] uboot-tools: expose host package in menuconfig Thomas Petazzoni
2011-10-01 15:00 ` [Buildroot] [PATCH 3/6] libftdi: add host variant Thomas Petazzoni
2011-10-01 15:00 ` [Buildroot] [PATCH 4/6] libusb-compat: " Thomas Petazzoni
2011-10-02 20:29   ` Luca Ceresoli
2011-10-03 19:33     ` Arnout Vandecappelle
2011-10-03 21:20       ` [Buildroot] Derive HOST_FOO_DEPENDENCIES automatically Arnout Vandecappelle
2011-10-03 21:20         ` Arnout Vandecappelle [this message]
2011-10-03 21:20         ` [Buildroot] [PATCH 02/22] atk: removed redundant HOST_FOO_DEPENDENCIES Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 03/22] cramfs: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 04/22] fontconfig: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 05/22] libpng: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 06/22] libxml-parser-perl: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 07/22] mpc: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 08/22] mpfr: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 09/22] squashfs3: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 10/22] libxcb: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 11/22] xapp_bdftopcf: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 12/22] xapp_mkfontdir: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 13/22] xapp_mkfontscale: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 14/22] xapp_xkbcomp: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 15/22] xfont_encodings: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 16/22] xfont_font-util: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 17/22] xlib_libX11: removed redundant HOST_FOO_DEPENDENCIES and incorrect target dependency Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 18/22] xlib_libXau: removed redundant HOST_FOO_DEPENDENCIES Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 19/22] xlib_libXdmcp: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 20/22] xlib_libXfont: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 21/22] xlib_libfontenc: " Arnout Vandecappelle
2011-10-03 21:20         ` [Buildroot] [PATCH 22/22] xlib_libxkbfile: " Arnout Vandecappelle
2011-10-03 21:35         ` [Buildroot] Derive HOST_FOO_DEPENDENCIES automatically Arnout Vandecappelle
2011-10-04  5:34           ` Thomas Petazzoni
2011-10-04 16:15             ` Arnout Vandecappelle
2011-12-29 17:07         ` Thomas Petazzoni
2011-10-01 15:00 ` [Buildroot] [PATCH 5/6] libusb: add host variant Thomas Petazzoni
2011-10-01 15:00 ` [Buildroot] [PATCH 6/6] openocd: add as host utility Thomas Petazzoni
2011-10-02 20:19 ` [Buildroot] [RFC] Request for comments on branch for-2011.11/host-tools Luca Ceresoli
2011-10-03  7:07 ` Thomas De Schampheleire
2011-12-06 11:58 ` Luca Ceresoli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1317676858-3407-2-git-send-email-arnout@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox