build: replacement with vars just needs quotes

Simplify the code a little by using the SELF var instead
of hardcoding the type again.  This way some day the code
could be moved to common and reduce duplication further.
This commit is contained in:
Franco Fichtner 2021-02-23 11:30:48 +01:00
parent 5e28a3aa48
commit 0f46176f1a
4 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ setup_entropy ${STAGEDIR}/work
UEFIBOOT=
if [ ${PRODUCT_ARCH} = "amd64" -a -n "${PRODUCT_UEFI}" -a \
-z "${PRODUCT_UEFI%%*dvd*}" ]; then
-z "${PRODUCT_UEFI%%*"${SELF}"*}" ]; then
dd if=/dev/zero of=${STAGEDIR}/efiboot.img bs=4k count=200
DEV=$(mdconfig -a -t vnode -f ${STAGEDIR}/efiboot.img)
newfs_msdos -F 12 -m 0xf8 /dev/${DEV}

View File

@ -60,7 +60,7 @@ UEFIBOOT=
GPTDUMMY=
if [ ${PRODUCT_ARCH} = "amd64" -a -n "${PRODUCT_UEFI}" -a \
-z "${PRODUCT_UEFI%%*serial*}" ]; then
-z "${PRODUCT_UEFI%%*"${SELF}"*}" ]; then
UEFIBOOT="-p efi:=${STAGEDIR}/work/boot/boot1.efifat"
GPTDUMMY="-p freebsd-swap::512k"
fi

View File

@ -59,7 +59,7 @@ UEFIBOOT=
GPTDUMMY=
if [ ${PRODUCT_ARCH} = "amd64" -a -n "${PRODUCT_UEFI}" -a \
-z "${PRODUCT_UEFI%%*vga*}" ]; then
-z "${PRODUCT_UEFI%%*"${SELF}"*}" ]; then
UEFIBOOT="-p efi:=${STAGEDIR}/work/boot/boot1.efifat"
GPTDUMMY="-p freebsd-swap::512k"
fi

View File

@ -85,7 +85,7 @@ SWAPARGS=
UEFIBOOT=
if [ ${PRODUCT_ARCH} = "amd64" -a -n "${PRODUCT_UEFI}" -a \
-z "${PRODUCT_UEFI%%*vm*}" ]; then
-z "${PRODUCT_UEFI%%*"${SELF}"*}" ]; then
UEFIBOOT="-p efi:=${STAGEDIR}/boot/boot1.efifat"
fi