From: Masahiro Yamada Date: Mon, 24 Mar 2014 17:40:58 +0900 Subject: [U-Boot] [PATCH] kbuild: out-of-tree build issues In-Reply-To: <20140324075241.4D33F38042D@gemini.denx.de> References: <20140324075241.4D33F38042D@gemini.denx.de> Message-ID: <20140324174058.B371.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 " as a shortcut for "make > ; make all" - this does not work any more. Or you can "make _config all". Can you live with it? I am not sure "make " works along with Kconfig. If it is mandatory, we need to do something with it. Best Regards Masahiro Yamada