crotchet-freebsd fails to build u-boot (master)
Winston Smith
smith.winston.101 at gmail.com
Fri Apr 18 19:36:35 UTC 2014
Firstly, I'm new here! Im trying to get FreeBSD up and running on the
BBB booting from the eMMC.
I'm using Patrick Kelsey's BBB-multi-install-config.sh script
(https://github.com/pkelsey/crochet-configs/blob/master/BBB-multi-install-config.sh)
with crotchet-freebsd building FreeBSD-11-CURRENT and u-boot master.
CHK include/config/uboot.release
CHK include/generated/version_autogenerated.h
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
HOSTCC tools/dumpimage.o
HOSTCC tools/image-fit.o
In file included from tools/image-fit.c:1:
/usr/home/winston/Work/crochet-freebsd/u-boot-master/tools/../common/image-fit.c:887:3:
warning: implicit declaration of function 'sha256_csum_wd' is invalid
in C99 [-Wimplicit-function-declaration]
sha256_csum_wd((unsigned char *)data, data_len,
^
/usr/home/winston/Work/crochet-freebsd/u-boot-master/tools/../common/image-fit.c:888:35:
error: use of undeclared identifier 'CHUNKSZ_SHA256'
(unsigned char *)value, CHUNKSZ_SHA256);
^
/usr/home/winston/Work/crochet-freebsd/u-boot-master/tools/../common/image-fit.c:889:16:
error: use of undeclared identifier 'SHA256_SUM_LEN'
*value_len = SHA256_SUM_LEN;
^
1 warning and 2 errors generated.
gmake[1]: *** [tools/image-fit.o] Error 1
gmake: *** [tools] Error 2
It looks like it's picking up the sha256.h header from /usr/include
rather than in u-boot-master/include. I believe I'm using Clang for
the u-boot compilation, as I built the xdev tools as follows:
make XDEV=arm XDEV_ARCH=armv6 xdev
I ran a build with u-boot-master and 10-stable xthe other day and I
didn't run into this. I can only assume that the sha256.h is new in
11-current?
Any ideas? Thanks!
-W
More information about the freebsd-arm
mailing list