[U-Boot] kfreebsd build failure - fw_env.c:43:27: error: mtd/mtd-user.h: No such file or directory

Loïc Minier lool at dooz.org
Mon Feb 7 22:09:00 CET 2011


        Hey

 "make tools-all" fails under Debian kfreebsd-amd64 and -i386 due to the
 lack of MTD headers:
make[2]: Entering directory `/build/buildd-u-boot_2010.12-2-kfreebsd-i386-yWW1BA/u-boot-2010.12/tools/env'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /build/buildd-u-boot_2010.12-2-kfreebsd-i386-yWW1BA/u-boot-2010.12/include -idirafter /build/buildd-u-boot_2010.12-2-kfreebsd-i386-yWW1BA/u-boot-2010.12/include2 -idirafter /build/buildd-u-boot_2010.12-2-kfreebsd-i386-yWW1BA/u-boot-2010.12/include -DUSE_HOSTCC  -o fw_printenv crc32.c  fw_env.c  fw_env_main.c
fw_env.c:43:27: error: mtd/mtd-user.h: No such file or directory
[...]
 https://buildd.debian.org/fetch.cgi?pkg=u-boot&arch=kfreebsd-i386&ver=2010.12-2&stamp=1295512921&file=log&as=raw

 I didn't find any MTD header in the kfreebsd package.

 Would someone know whether this is supposed to build under freebsd?

 If not, does it make sense to ifdef out the MTD uses in fw_env.c?  (I
 think it's also possible to interact with real files containing the
 environment.)

 If not, I guess this should be removed from tools-all is mtd/mtd-user.h
 isn't found; is there any recommendation in doing this?

   Cheers,
-- 
Loïc Minier


More information about the U-Boot mailing list