[PATCH 09 v2] bootstrap: handy --base switch for bootstrapping subdirs
ralf.corsepius at rtems.org
Fri Feb 3 18:30:04 UTC 2012
On 02/03/2012 07:14 PM, Gedare Bloom wrote:
> On Fri, Feb 3, 2012 at 1:00 PM, Ralf Corsepius<ralf.corsepius at rtems.org> wrote:
>> On 02/03/2012 04:14 PM, Daniel Hellstrom wrote:
>>> Use the "-b/--base DIR" to process only a subdir, for example
>>> $ ./bootstrap --base c/src/lib/libbsp/sparc
>>> will only generate Makefiles for all SPARC BSPs, saves some
>>> time when working with a specific BSP.
>>> Signed-off-by: Daniel Hellstrom<daniel at gaisler.com>
>> I do not consider this change useful, because bootstrap must be run inside
>> of the source tree. Therefore, specifying an arbitrary "basedir" is not
> This change is intended to save time by not running bootstrap in
> subdirectories unnecessarily. I see any time savings for bootstrap as
> being useful; for my systems bootstrap takes as much or more time than
> compiling rtems.
pushd <subdir in source-tree>
> By the way instead of this approach I run bootstrap from the
> subdirectory with the changes directly, e.g.
> cd c/src/lib/libbsp/sparc
Exactly. That's how it is supposed to be used.
> where my bash environment has an environment variable r that points to
> my rtems root directory. However I see the patched bootstrap as also
> being useful in such situations.
I don't. This change is dangerous.
More information about the devel