[Buildroot] [PATCH 1/1] allow to pass the number of parallel jobs via command line

Nathan Lynch ntl at pobox.com
Wed Sep 26 19:23:30 UTC 2012


On Wed, 2012-09-26 at 18:57 +0200, Jean-Christophe PLAGNIOL-VILLARD
wrote:
> On 12:42 Wed 26 Sep     , Peter Korsgaard wrote:
> > >>>>> "Jean-Christophe" == Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com> writes:
> > 
> > Hi,
> > 
> >  >> why not just use make BR2_JLEVEL=x ?
> > 
> >  JC> kconfig overwrite and you can not optarg env as
> >  JC> BR2_JLEVEL is a int so need to use PARALLEL_JOBS
> > 
> > Sorry, I don't understand what you are saying here. BR2_JLEVEL works
> > fine:
> > 
> > make BR2_LEVEL=42
> > ...
> > /usr/bin/make -j42 CC="/home/peko/source/buildroot/output/host/usr/bin/arm-linux-gcc" ..
> here does not work
> 
> I try this
> 
> with a value of BR2_JLEVEL at 4
> 
> BR2_JLEVEL=13 make
> 
> ...
> /usr/bin/make -j2 -C /opt/work/buildroot/build/test/toolchain/gcc-4.6.3-initial all-gcc
> 
> I want to pass the JLEVEL via env not make option

Use make -e (--environment-overrides)?  I dunno, things might break
depending on what's in your environment.  But if your use case has this
constraint hopefully you are able to sanitize your environment before
invoking Buildroot.





More information about the buildroot mailing list