Error when the build target is not present under 'distro/'

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I32d326dac31913ae83ac7b201f8c6bba3795b85d
This commit is contained in:
Dongjin Kim
2022-03-06 13:28:12 +09:00
parent 2a81214a53
commit 6fb11b5353

View File

@@ -73,6 +73,12 @@ fi
[ "x${IMAGE_FILE}" = "x" ] && IMAGE_FILE=$(image_file ${DISTRO} ${FLAVOUR} ${BOARD})
OUTFILE=${out_dir}/${IMAGE_FILE}
if [ ! -d ${TOPDIR}/distro/${DISTRO}/${FLAVOUR} ]; then
echo "No build target for ${DISTRO}/${FLAVOUR}"
usage
exit 0
fi
[ -f ${TOPDIR}/distro/${DISTRO}/${FLAVOUR}/functions ] && \
. ${TOPDIR}/distro/${DISTRO}/${FLAVOUR}/functions
. ${TOPDIR}/boards/${BOARD}/functions