u-boot: only append suffix when creating multiple u-boot variants

This commit is contained in:
Christian Hewitt 2018-09-26 09:59:01 +04:00
parent 649960709e
commit 27a4a4763b

View File

@ -71,7 +71,7 @@ else
IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
fi
if [ -n "$UBOOT_SYSTEM" ]; then
if [ -n "$UBOOT_SYSTEM" ] && [ "$UBOOT_SYSTEM" != "${DEVICE:-$PROJECT}" ]; then
IMAGE_NAME="$IMAGE_NAME-$UBOOT_SYSTEM"
fi
fi