Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v9 01/11] core: split variables definition related to in/out-of-tree build from O itself
Date: Tue, 5 Jul 2016 19:02:49 +0200	[thread overview]
Message-ID: <20160705170248.GH6533@free.fr> (raw)
In-Reply-To: <1461358223-18312-2-git-send-email-s.martin49@gmail.com>

Samuel, All,

On 2016-04-22 22:50 +0200, Samuel Martin spake thusly:
> This change uncorrolates the CONFIG_DIR and NEED_WRAPPER definition from
> the presence of the O variable in the command line.
> 
> Now, the condition used to set these variables is the value of O itself.
> 
> This change is a preparatory work since the O definition will need to
> be moved around when we will make Buildroot run with absolute canonical
> paths for both its root directory and the output location.
> This will be addressed in a follow-up patch.
> 
> Signed-off-by: Samuel Martin <s.martin49@gmail.com>

Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

This can probably go in now, without waiting for the rest of the series.

Regards,
Yann E. MORIN.

> ---
> changes v8->v9:
> - none
> 
> changes v7->v8:
> - new patch
> ---
>  Makefile | 14 +++++++++++---
>  1 file changed, 11 insertions(+), 3 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 0e4beb2..3d86c9b 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -110,10 +110,11 @@ comma := ,
>  empty :=
>  space := $(empty) $(empty)
>  
> +# Set O variable if not already done on the command line;
> +# or avoid confusing packages that can use the O=<dir> syntax for out-of-tree
> +# build by preventing it from being forwarded to sub-make calls.
>  ifneq ("$(origin O)", "command line")
>  O := output
> -CONFIG_DIR := $(TOPDIR)
> -NEED_WRAPPER =
>  else
>  # other packages might also support Linux-style out of tree builds
>  # with the O=<dir> syntax (E.G. BusyBox does). As make automatically
> @@ -126,9 +127,16 @@ MAKEOVERRIDES =
>  # Unfortunately some packages don't look at origin (E.G. uClibc 0.9.31+)
>  # To really make O go away, we have to override it.
>  override O := $(O)
> -CONFIG_DIR := $(O)
>  # we need to pass O= everywhere we call back into the toplevel makefile
>  EXTRAMAKEARGS = O=$(O)
> +endif
> +
> +# Set variables related to in-tree or out-of-tree build.
> +ifeq ($(O),output)
> +CONFIG_DIR := $(TOPDIR)
> +NEED_WRAPPER =
> +else
> +CONFIG_DIR := $(O)
>  NEED_WRAPPER = y
>  endif
>  
> -- 
> 2.8.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  parent reply	other threads:[~2016-07-05 17:02 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-22 20:50 [Buildroot] [PATCH v9 00/11] Relocatable SDK/Build machine leaks: RPATH fixing Samuel Martin
2016-04-22 20:50 ` [Buildroot] [PATCH v9 01/11] core: split variables definition related to in/out-of-tree build from O itself Samuel Martin
2016-06-26 22:27   ` Arnout Vandecappelle
2016-06-27  4:33     ` Samuel Martin
2016-07-05 17:02   ` Yann E. MORIN [this message]
2016-04-22 20:50 ` [Buildroot] [PATCH v9 02/11] core: re-enter make if $(CURDIR) or $(O) are not absolute canonical path Samuel Martin
2016-06-26 23:08   ` Arnout Vandecappelle
2016-04-22 20:50 ` [Buildroot] [PATCH v9 03/11] support/scripts: add fix-rpath script + a bunch of helpers Samuel Martin
2016-07-07  5:23   ` Benjamin Kamath
2016-04-22 20:50 ` [Buildroot] [PATCH v9 04/11] core: sanitize HOST_DIR at the very end of the build Samuel Martin
2016-04-22 20:50 ` [Buildroot] [PATCH v9 05/11] core: add {TARGET, STAGING}_SANITIZE_RPATH_HOOK to TARGET_FINALIZE_HOOKS Samuel Martin
2016-04-22 20:50 ` [Buildroot] [PATCH v9 06/11] package/speex: remove no longer needed hook Samuel Martin
2016-04-22 20:50 ` [Buildroot] [PATCH v9 07/11] support/scripts: update check-host-rpath to use the shell helpers Samuel Martin
2016-04-22 20:50 ` [Buildroot] [PATCH v9 08/11] support/scripts: add check-host-leaks script + all needed helpers Samuel Martin
2016-04-22 20:50 ` [Buildroot] [PATCH v9 09/11] core: add check-leaks-in-{target, host, staging} targets Samuel Martin
2016-04-22 20:50 ` [Buildroot] [PATCH v9 10/11] support/scripts/check-host-leaks: add option to classify leaks Samuel Martin
2016-04-22 21:31   ` Yegor Yefremov
2016-04-22 20:50 ` [Buildroot] [PATCH v9 11/11] docs/manual: document how to debug shell script Samuel Martin
2016-04-22 21:25   ` Yegor Yefremov
2016-06-01  5:26 ` [Buildroot] [PATCH v9 00/11] Relocatable SDK/Build machine leaks: RPATH fixing Samuel Martin
2016-06-08 21:12   ` Samuel Martin
2016-06-16  4:33     ` Samuel Martin

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=20160705170248.GH6533@free.fr \
    --to=yann.morin.1998@free.fr \
    --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