All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] toolchain: introduce HOST_DIR option
@ 2011-02-02 13:05 Gustavo Zacarias
  2011-02-02 13:05 ` [Buildroot] [PATCH 2/2] documentation: update buildroot internal toolchain usage Gustavo Zacarias
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Gustavo Zacarias @ 2011-02-02 13:05 UTC (permalink / raw)
  To: buildroot

Allow the user to define HOST_DIR in the config menu.

This way when building an internal toolchain a separate (maybe shared)
output directory may be defined and the toolchain can be used by
multiple users and/or projects.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 Config.in |   10 ++++++++++
 Makefile  |    4 ++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/Config.in b/Config.in
index df0c7ce..af44b89 100644
--- a/Config.in
+++ b/Config.in
@@ -72,6 +72,16 @@ config BR2_DL_DIR
 
 	  The default is $(TOPDIR)/dl
 
+config BR2_HOST_DIR
+	string "Host dir"
+	default "$(BASE_DIR)/host"
+	help
+	  Directory to store all the binary files that are built for the host.
+	  This includes the cross compilation toolchain when building the
+	  internal buildroot toolchain.
+
+	  The default is $(BASE_DIR)/host
+
 menu "Mirrors and Download locations"
 
 config BR2_PRIMARY_SITE
diff --git a/Makefile b/Makefile
index 3ecc597..7bd49f4 100644
--- a/Makefile
+++ b/Makefile
@@ -274,8 +274,8 @@ TAR_OPTIONS=$(call qstrip,$(BR2_TAR_OPTIONS)) -xf
 
 GNU_TARGET_SUFFIX:=-$(call qstrip,$(BR2_GNU_TARGET_SUFFIX))
 
-# packages compiled for the host goes here
-HOST_DIR:=$(BASE_DIR)/host
+# packages compiled for the host go here
+HOST_DIR:=$(call qstrip,$(BR2_HOST_DIR))
 
 # stamp (dependency) files go here
 STAMP_DIR:=$(BASE_DIR)/stamps
-- 
1.7.3.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH 2/2] documentation: update buildroot internal toolchain usage
  2011-02-02 13:05 [Buildroot] [PATCH 1/2] toolchain: introduce HOST_DIR option Gustavo Zacarias
@ 2011-02-02 13:05 ` Gustavo Zacarias
  2011-02-02 19:12   ` Thomas Petazzoni
  2011-02-02 21:47   ` Peter Korsgaard
  2011-02-02 19:12 ` [Buildroot] [PATCH 1/2] toolchain: introduce HOST_DIR option Thomas Petazzoni
  2011-02-02 21:47 ` Peter Korsgaard
  2 siblings, 2 replies; 6+ messages in thread
From: Gustavo Zacarias @ 2011-02-02 13:05 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 docs/buildroot.html |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/buildroot.html b/docs/buildroot.html
index 36297e0..b755922 100644
--- a/docs/buildroot.html
+++ b/docs/buildroot.html
@@ -618,8 +618,8 @@ $(ZLIB_DIR)/libz.a: $(ZLIB_DIR)/.configured
     use the toolchain that was generated by Buildroot.</p>
 
     <p>The toolchain generated by Buildroot is located by default in
-    <code>output/staging/</code>. The simplest way to use it is to add
-    <code>output/staging/usr/bin/</code> to your PATH environment variable and
+    <code>output/host/</code>. The simplest way to use it is to add
+    <code>output/host/usr/bin/</code> to your PATH environment variable and
     then to use <code>ARCH-linux-gcc</code>, <code>ARCH-linux-objdump</code>,
     <code>ARCH-linux-ld</code>, etc.</p>
 
@@ -628,8 +628,8 @@ $(ZLIB_DIR)/libz.a: $(ZLIB_DIR)/.configured
     is called to tell where the libraries and header files are.</p>
 
     <p>It is also possible to generate the Buildroot toolchain in a
-    directory other than <code>output/staging</code> by using the <code>
-    Build options -&gt; Toolchain and header file location</code> options.
+    directory other than <code>output/host</code> by using the <code>
+    Build options -&gt; Host dir</code> option.
     This could be useful if the toolchain must be shared with other users.</p>
 
     <h2 id="ccache-support">Using <code>ccache</code> in Buildroot</h2>
-- 
1.7.3.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH 1/2] toolchain: introduce HOST_DIR option
  2011-02-02 13:05 [Buildroot] [PATCH 1/2] toolchain: introduce HOST_DIR option Gustavo Zacarias
  2011-02-02 13:05 ` [Buildroot] [PATCH 2/2] documentation: update buildroot internal toolchain usage Gustavo Zacarias
@ 2011-02-02 19:12 ` Thomas Petazzoni
  2011-02-02 21:47 ` Peter Korsgaard
  2 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2011-02-02 19:12 UTC (permalink / raw)
  To: buildroot

On Wed,  2 Feb 2011 10:05:56 -0300
Gustavo Zacarias <gustavo@zacarias.com.ar> wrote:

> Allow the user to define HOST_DIR in the config menu.
> 
> This way when building an internal toolchain a separate (maybe shared)
> output directory may be defined and the toolchain can be used by
> multiple users and/or projects.
> 
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH 2/2] documentation: update buildroot internal toolchain usage
  2011-02-02 13:05 ` [Buildroot] [PATCH 2/2] documentation: update buildroot internal toolchain usage Gustavo Zacarias
@ 2011-02-02 19:12   ` Thomas Petazzoni
  2011-02-02 21:47   ` Peter Korsgaard
  1 sibling, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2011-02-02 19:12 UTC (permalink / raw)
  To: buildroot

On Wed,  2 Feb 2011 10:05:57 -0300
Gustavo Zacarias <gustavo@zacarias.com.ar> wrote:

> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH 1/2] toolchain: introduce HOST_DIR option
  2011-02-02 13:05 [Buildroot] [PATCH 1/2] toolchain: introduce HOST_DIR option Gustavo Zacarias
  2011-02-02 13:05 ` [Buildroot] [PATCH 2/2] documentation: update buildroot internal toolchain usage Gustavo Zacarias
  2011-02-02 19:12 ` [Buildroot] [PATCH 1/2] toolchain: introduce HOST_DIR option Thomas Petazzoni
@ 2011-02-02 21:47 ` Peter Korsgaard
  2 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2011-02-02 21:47 UTC (permalink / raw)
  To: buildroot

>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 Gustavo> Allow the user to define HOST_DIR in the config menu.
 Gustavo> This way when building an internal toolchain a separate (maybe shared)
 Gustavo> output directory may be defined and the toolchain can be used by
 Gustavo> multiple users and/or projects.

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH 2/2] documentation: update buildroot internal toolchain usage
  2011-02-02 13:05 ` [Buildroot] [PATCH 2/2] documentation: update buildroot internal toolchain usage Gustavo Zacarias
  2011-02-02 19:12   ` Thomas Petazzoni
@ 2011-02-02 21:47   ` Peter Korsgaard
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2011-02-02 21:47 UTC (permalink / raw)
  To: buildroot

>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 Gustavo> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-02-02 21:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-02 13:05 [Buildroot] [PATCH 1/2] toolchain: introduce HOST_DIR option Gustavo Zacarias
2011-02-02 13:05 ` [Buildroot] [PATCH 2/2] documentation: update buildroot internal toolchain usage Gustavo Zacarias
2011-02-02 19:12   ` Thomas Petazzoni
2011-02-02 21:47   ` Peter Korsgaard
2011-02-02 19:12 ` [Buildroot] [PATCH 1/2] toolchain: introduce HOST_DIR option Thomas Petazzoni
2011-02-02 21:47 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.