kbuild: out-of-tree build issues
PATCH 1/1 kbuild: out-of-tree build issues
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
Signature · 5 lines
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_
PATCH 1/1 kbuild: out-of-tree build issues
Hi Wolfgang,
Quoted 36 lines
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
Quoted 3 lines
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.)
Quoted 3 lines
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