build: device configuration can use SRCREVISION and SRCABI now

This commit is contained in:
Franco Fichtner 2021-04-08 08:41:39 +02:00
parent 17fa565a15
commit 316eb45bd7
1 changed files with 7 additions and 7 deletions

View File

@ -238,6 +238,13 @@ export PRODUCT_SETTINGS="${CONFIGDIR##*/}"
export DEVICEDIR="${TOOLSDIR}/device"
export PACKAGESDIR="/.pkg"
# get the current version for the selected source repository
SRCREVISION=unknown
if [ -f ${SRCDIR}/sys/conf/newvers.sh ]; then
eval export SRC$(grep ^REVISION= ${SRCDIR}/sys/conf/newvers.sh)
fi
export SRCABI="FreeBSD:${SRCREVISION%%.*}:${PRODUCT_ARCH}"
if [ ! -f ${DEVICEDIR}/${PRODUCT_DEVICE_REAL}.conf ]; then
echo ">>> No configuration found for device ${PRODUCT_DEVICE_REAL}." >&2
exit 1
@ -275,13 +282,6 @@ if [ -n "${*}" ]; then
export PRODUCT_REBUILD=yes
fi
# get the current version for the selected source repository
SRCREVISION=unknown
if [ -f ${SRCDIR}/sys/conf/newvers.sh ]; then
eval export SRC$(grep ^REVISION= ${SRCDIR}/sys/conf/newvers.sh)
fi
export SRCABI="FreeBSD:${SRCREVISION%%.*}:${PRODUCT_ARCH}"
case "${SELF}" in
confirm|fingerprint|info|make\.conf|print)
;;