aboutsummaryrefslogtreecommitdiff
path: root/release/release.sh
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2016-08-09 22:48:46 +0000
committerGlen Barber <gjb@FreeBSD.org>2016-08-09 22:48:46 +0000
commit256bf4121c2621996e624c9d2c9dbaf9f020a247 (patch)
treeb1e5cecc0aac68267b43c58320c088e37fc63425 /release/release.sh
parent2a7f2aec968c46f34dc6c10a122d7995873c038d (diff)
downloadsrc-256bf4121c2621996e624c9d2c9dbaf9f020a247.tar.gz
src-256bf4121c2621996e624c9d2c9dbaf9f020a247.zip
Pass overrides to make(1) when building ports for arm/armv6
targets, similar to what is done for the run-autotools-fixup override for non-arm targets. MFC after: 3 days Tested on: 12-CURRENT building 10-STABLE Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=303897
Diffstat (limited to 'release/release.sh')
-rwxr-xr-xrelease/release.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/release/release.sh b/release/release.sh
index 07485c952ac8..821623990f95 100755
--- a/release/release.sh
+++ b/release/release.sh
@@ -287,9 +287,15 @@ extra_chroot_setup() {
fi
if [ ! -z "${EMBEDDEDPORTS}" ]; then
+ _OSVERSION=$(chroot ${CHROOTDIR} /usr/bin/uname -U)
+ REVISION=$(chroot ${CHROOTDIR} make -C /usr/src/release -V REVISION)
+ BRANCH=$(chroot ${CHROOTDIR} make -C /usr/src/release -V BRANCH)
+ PBUILD_FLAGS="OSVERSION=${_OSVERSION} BATCH=yes"
+ PBUILD_FLAGS="${PBUILD_FLAGS} UNAME_r=${UNAME_r}"
+ PBUILD_FLAGS="${PBUILD_FLAGS} OSREL=${REVISION}"
for _PORT in ${EMBEDDEDPORTS}; do
eval chroot ${CHROOTDIR} make -C /usr/ports/${_PORT} \
- BATCH=1 FORCE_PKG_REGISTER=1 install clean distclean
+ FORCE_PKG_REGISTER=1 ${PBUILD_FLAGS} install clean distclean
done
fi