[U-Boot] [PATCH 1/2] kbuild: Fix a false error of generic board support

Masahiro Yamada yamada.m at jp.panasonic.com
Thu Dec 18 11:42:34 CET 2014


Hi Matthew, Tom,



On Tue, 16 Dec 2014 18:56:46 -0500
Tom Rini <trini at ti.com> wrote:

> On Tue, Dec 16, 2014 at 02:56:44PM -0600, mgerlach wrote:
> 
> > Hello Masahiro Yamada,
> > 
> > Even the with this patch, we encountered a false error of generic board
> > support.  The problem was very interrmittent for us, but we were able 
> > to debug the problem to performing builds on EXT3 file systems which
> > have a time stamp resolution of one second.  To reproduce the problem,
> > touch ./include/config/auto.conf and .config on a configured uboot tree on
> > an EXT3 file system.
> > 
> > The patch below fixes the problem for us.  
> 
> This makes an odd race condition problem I run into when doing massively
> paralell builds worse :(  With MAKEALL no ARM boards build (ARCH wasn't
> set in time so it tried arch//Makefile for something) and buildman was
> also broken in a bunch of places.
> 

Me too.

Although I do not know why, Methew's patch makes it worse.
Without MAKEALL or buildman, I hit the same error every time.


$ LANG=C make -j8 CROSS_COMPILE=arm-linux-gnueabi-  ph1_ld4_defconfig all
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
#
# configuration written to spl/.config
#
./Makefile:511: arch//Makefile: No such file or directory
make[1]: *** No rule to make target `arch//Makefile'.  Stop.
make: *** [__build_one_by_one] Error 2


Best Regards
Masahiro Yamada



More information about the U-Boot mailing list