aboutsummaryrefslogtreecommitdiff
path: root/release/arm
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2014-12-24 18:51:25 +0000
committerEd Maste <emaste@FreeBSD.org>2014-12-24 18:51:25 +0000
commit04fef9c44612588e4b0d83cf7282d0f9c2bf0302 (patch)
tree6facfa2acdda1a1362ad8d322cc1e8367d32a9a6 /release/arm
parent93201211e94eba30a1171a818ebdfed10cb5838d (diff)
downloadsrc-04fef9c44612588e4b0d83cf7282d0f9c2bf0302.tar.gz
src-04fef9c44612588e4b0d83cf7282d0f9c2bf0302.zip
Build gperf before gcc
The ARM image builds build the in-tree gcc in order to build u-boot and gperf is needed to build gcc, but is no longer installed on archs that use clang. Invoking the make targets as separate steps is done to work around a build failure which is not yet fully understood. Reviewed by: gjb, imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D1317
Notes
Notes: svn path=/head/; revision=276189
Diffstat (limited to 'release/arm')
-rwxr-xr-xrelease/arm/release.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/release/arm/release.sh b/release/arm/release.sh
index 020583fdc25c..dbbdbf53202a 100755
--- a/release/arm/release.sh
+++ b/release/arm/release.sh
@@ -127,6 +127,14 @@ main() {
BATCH=1 FORCE_PKG_REGISTER=1 install clean distclean
done
+ # Certain u-boot versions hardcode the use of a host gcc, and gcc's
+ # build relies on having gperf installed.
+ eval chroot ${CHROOTDIR} make -C /usr/src/gnu/usr.bin/gperf \
+ WITH_GCC=1 ${WORLD_FLAGS} obj
+ eval chroot ${CHROOTDIR} make -C /usr/src/gnu/usr.bin/gperf \
+ WITH_GCC=1 ${WORLD_FLAGS} -j1 depend all
+ eval chroot ${CHROOTDIR} make -C /usr/src/gnu/usr.bin/gperf \
+ WITH_GCC=1 ${WORLD_FLAGS} -j1 install
eval chroot ${CHROOTDIR} make -C /usr/src/gnu/usr.bin/cc \
WITH_GCC=1 ${WORLD_FLAGS} -j1 obj depend all install