[U-Boot] [PATCH] kbuild: out-of-tree build issues
Masahiro Yamada
yamada.m at jp.panasonic.com
Mon Mar 24 09:40:58 CET 2014
Hi Wolfgang,
> 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).
It seems there are some bugs here.
I will fix it in a few days.
(Sorry, I am not feeling well today.
I've got to go home soon and take a rest.)
> 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.
Or you can "make <name>_config all".
Can you live with it?
I am not sure "make <name>" works along with Kconfig.
If it is mandatory, we need to do something with it.
Best Regards
Masahiro Yamada
More information about the U-Boot
mailing list