Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Apr 2014 15:36:32 -0400
From:      Winston Smith <smith.winston.101@gmail.com>
To:        freebsd-arm@freebsd.org
Subject:   crotchet-freebsd fails to build u-boot (master)
Message-ID:  <CADH-AwHGYEWJc17PVCvtUtXBb7_sRVLdRoXe0f2jd42R9P8xqw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADH-AwHGYEWJc17PVCvtUtXBb7_sRVLdRoXe0f2jd42R9P8xqw>