[U-Boot] [PATCH] kbuild: out-of-tree build issues

Wolfgang Denk wd at denx.de
Mon Mar 24 08:52:41 CET 2014


Dear Masahiro,

I notice an issues with out of tree builds in current top of tree
code: "make O=${SOMEDIR} distclean" leaves files around:

	-> rm -fr ${SOMEDIR}
	-> mkdir -p ${SOMEDIR}
	-> make -s O=${SOMEDIR} TQM5200S_config
	Configuring for TQM5200S - Board: TQM5200, Options:
	TQM5200_B,TQM5200S
	-> make -s -j8 O=${SOMEDIR}
	-> find ${SOMEDIR} -type f | wc -l
	858
	-> make O=${SOMEDIR} distclean
	  CLEAN   u-boot.lds include/autoconf.mk include/autoconf.mk.dep
	  CLEAN   u-boot.map u-boot.bin u-boot.srec u-boot System.map
	  CLEAN   include/config include/generated
	  CLEAN   include/config.h include/config.mk
	-> find ${SOMEDIR} -type f
	/work/wd/tmp/examples/standalone/interrupt.bin
	/work/wd/tmp/examples/standalone/interrupt
	/work/wd/tmp/examples/standalone/sched
	/work/wd/tmp/examples/standalone/interrupt.srec
	/work/wd/tmp/examples/standalone/sched.srec
	/work/wd/tmp/examples/standalone/hello_world.srec
	/work/wd/tmp/examples/standalone/hello_world.bin
	/work/wd/tmp/examples/standalone/hello_world
	/work/wd/tmp/examples/standalone/sched.bin
	/work/wd/tmp/scripts/basic/fixdep
	/work/wd/tmp/tools/envcrc
	/work/wd/tmp/tools/proftool
	/work/wd/tmp/tools/mkenvimage
	/work/wd/tmp/tools/mkimage
	/work/wd/tmp/tools/dumpimage
	/work/wd/tmp/tools/img2srec
	/work/wd/tmp/tools/gen_eth_addr
	/work/wd/tmp/Makefile

   I think after a "make O=${SOMEDIR} distclean" the directory
   ${SOMEDIR} should be really empty (or actually get removed
   completely).




Another nice feature that got lost when converting to kbuild is that
we used to be able to run just "make <name>" as a shortcut for "make
<name_config> ; make all" - this does not work any more.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Wisdom is one of the few things that looks bigger the further away it
is.                               - Terry Pratchett, _Witches Abroad_


More information about the U-Boot mailing list