Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Suggestion for Makefile to probably import BR2_CONFIG
@ 2018-01-17 22:06 Toan Pham
  2018-01-19 12:49 ` Toan Pham
  2018-01-22 21:45 ` Arnout Vandecappelle
  0 siblings, 2 replies; 13+ messages in thread
From: Toan Pham @ 2018-01-17 22:06 UTC (permalink / raw)
  To: buildroot

Hi,

I would like to make a suggestion on patching the main Makefile line:

BR2_CONFIG = $(CONFIG_DIR)/.config

to

BR2_CONFIG ?= $(CONFIG_DIR)/.config


The main reason for this patch is that it allows the configuration file to
be specified from command argument.  For example, I would be able to build
two different targets (even in parallel) with the following commands:


make BR2_CONFIG=$PWD/myTarget1 O=output.target1

make BR2_CONFIG=$PWD/myTarget2 O=output.target2


Without the above patch, buildroot assumes that the config file is already
saved under output.target{1,2}/.config and would fail if the file does not
exist.  I find that the above patch is very valuable, please comment or
make suggestion!


thank you,

TP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180117/54ca3a3e/attachment.html>

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

end of thread, other threads:[~2018-02-10  0:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-17 22:06 [Buildroot] Suggestion for Makefile to probably import BR2_CONFIG Toan Pham
2018-01-19 12:49 ` Toan Pham
2018-01-22 21:45 ` Arnout Vandecappelle
2018-01-22 23:00   ` Toan Pham
2018-01-23  9:41     ` Arnout Vandecappelle
2018-01-23 18:28       ` Toan Pham
2018-01-26 23:45         ` Toan Pham
2018-01-28 22:30         ` Arnout Vandecappelle
2018-01-29  8:11           ` Thomas Petazzoni
2018-01-29  8:28             ` Peter Korsgaard
2018-01-30 18:12               ` Yann E. MORIN
2018-02-07 22:29                 ` Toan Pham
2018-02-10  0:02   ` Toan Pham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox