[PATCH v3] MAKEALL: make it generic

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Fri Oct 1 12:48:11 EDT 2010


On 09:16 Fri 01 Oct     , Sascha Hauer wrote:
> On Fri, Oct 01, 2010 at 05:19:12AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > it's allow you to compile specific defconfig or ARCH or all
> > as
> > 
> > CROSS_COMPILE=arm-linux- ARCH=arm ./MAKEALL at91sam9263ek_defconfig
> > CROSS_COMPILE=arm-linux- ARCH=arm ./MAKEALL
> > 
> > The cross-compiler can be specify via
> >     CROSS_COMPILE               default
> >     CROSS_COMPILE_<arch>        arch default
> >     CROSS_COMPILE_<target>      deconfig specifc
> > 
> > it will be evaluated in the invert order
> > 
> > or via config
> > 
> > you can specify it via env CONFIG or option -c (overwrite env)
> > 
> > CONFIG=./MAKEALL.cfg ARCH=arm ./MAKEALL at91sam9263ek_defconfig
> > CONFIG=./MAKEALL.cfg ARCH=arm ./MAKEALL
> > 
> > and for all
> > 
> > CONFIG=./MAKEALL.cfg ./MAKEALL
> > 
> > you can specify via env or option
> > env       option
> > ARCH      -a      arch
> > CONFIG    -c      config
> > JOBS      -j      jobs
> > BUILDDIR  -O      build dir
> > LOGDIR    -l      log dir
> > 
> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> > ---
> > v3:
> > add getopts supports
> > 
> > add usage support
> > 
> > Best Rebards,
> > J.
> >  MAKEALL |  286 ++++++++++++++++++++++++++++++++++++++++++++++++++-------------
> >  1 files changed, 227 insertions(+), 59 deletions(-)
> > 
> > diff --git a/MAKEALL b/MAKEALL
> > index dd0f66b..d42be6e 100755
> > --- a/MAKEALL
> > +++ b/MAKEALL
> > @@ -1,89 +1,257 @@
> > -#!/bin/bash
> > +#!/bin/sh
> 
> With /bin/sh here ./MAKEALL -c MAKEALL.cfg does not work. I have to
> explicitely call ./MAKEALL -c ./MAKEALL.cfg. Can we keep /bin/bash here
> or has anybody a better idea?

I found the them issue and how to fix it

Best Regards,
J.



More information about the barebox mailing list