[PATCH 09 v2] bootstrap: handy --base switch for bootstrapping subdirs

Gedare Bloom gedare at rtems.org
Fri Feb 3 18:15:35 UTC 2012


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
> useful.
>
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.

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
$r/bootstrap

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. It might also make sense to add some
error checking to ensure the base directory contains a configure.ac
file and to print some error if it does not, since bootstrap will not
work in a directory that lacks the configure.ac file.
> Ralf
>
> _______________________________________________
> rtems-devel mailing list
> rtems-devel at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-devel




More information about the devel mailing list