aboutsummaryrefslogtreecommitdiff
path: root/release
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2021-02-11 02:23:58 +0000
committerGlen Barber <gjb@FreeBSD.org>2021-02-11 02:23:58 +0000
commitc511a5ab53ba335dc85f7ac93843872eb5763602 (patch)
tree4efc2e2d82d7623d4fe17d2a6ff13c382bc15197 /release
parentd3338f3355a612cf385632291f46c5777bba8d18 (diff)
downloadsrc-c511a5ab53ba335dc85f7ac93843872eb5763602.tar.gz
src-c511a5ab53ba335dc85f7ac93843872eb5763602.zip
release: fix overriding UNAME_r
Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'release')
-rw-r--r--release/tools/arm.subr4
1 files changed, 4 insertions, 0 deletions
diff --git a/release/tools/arm.subr b/release/tools/arm.subr
index 1d4ae17d3851..343d9f3a7034 100644
--- a/release/tools/arm.subr
+++ b/release/tools/arm.subr
@@ -175,6 +175,10 @@ arm_install_base() {
if [ "${PART_SCHEME}" == "MBR" ]; then
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${DESTDIR}
fi
+ _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)
+ export UNAME_r=${REVISION}-${BRANCH}
eval chroot ${CHROOTDIR} make -C ${WORLDDIR} \
TARGET=${EMBEDDED_TARGET} \
TARGET_ARCH=${EMBEDDED_TARGET_ARCH} \