[Buildroot] *Tons* of BR warnings like "package/Makefile.autotools.in:179: warning: overriding commands for target `/home/bjornfor/raid/forks/buildroot/output'"

Peter Korsgaard jacmet at uclibc.org
Fri Dec 11 13:59:43 UTC 2009


>>>>> "Bjørn" == Bjørn Forsman <bjorn.forsman at gmail.com> writes:

 Bjørn> i386 build fails:
 Bjørn> ----
 Bjørn> $ make i386_defconfig && make
 Bjørn> ...snip lots of warnings...
 Bjørn> package/mtd/mtd-utils/mtd.mk:98: warning: overriding commands for
 Bjørn> target `/home/bjornfor/dev/buildroot/output'
 Bjørn> package/mtd/mtd-utils/mtd.mk:65: warning: ignoring old commands for
 Bjørn> target `/home/bjornfor/dev/buildroot/output'
 Bjørn> package/mtd/mtd-utils/mtd.mk:97: target
 Bjørn> `/home/bjornfor/dev/buildroot/output' given more than once in the same
 Bjørn> rule.

To me it sounds as if somehow a space has sneaked into the definition of
BUILD_DIR - E.G. that line has a long list of BUILD_DIR/mtd_orig/<blah>.

Could you add something like this to mtd.mk and run make test:

diff --git a/package/mtd/mtd-utils/mtd.mk b/package/mtd/mtd-utils/mtd.mk
index a686661..3049f8e 100644
--- a/package/mtd/mtd-utils/mtd.mk
+++ b/package/mtd/mtd-utils/mtd.mk
@@ -20,6 +20,9 @@ MTD_NAME:=mtd-utils-$(MTD_VERSION)
 MKFS_JFFS2 := $(MTD_HOST_DIR)/mkfs.jffs2
 SUMTOOL := $(MTD_HOST_DIR)/sumtool
 
+test:
+       echo "MTD_DIR='$(MTD_DIR)'"
+

Here it gives:

echo "MTD_DIR='/home/peko/source/buildroot/output/build/mtd_orig'"
MTD_DIR='/home/peko/source/buildroot/output/build/mtd_orig'

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list