functions: add to override functions if customos has

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Id4c14ecd4b98a89942a1086cd425768d55b221f3
This commit is contained in:
Dongjin Kim
2021-05-23 07:18:43 +09:00
parent bee68b9ffb
commit 102f5b822b

View File

@@ -70,6 +70,9 @@ OUTFILE=${out_dir}/${IMAGE_FILE}
[ -f ${TOPDIR}/configs/${DISTRO}-${FLAVOUR} ] && \
. ${TOPDIR}/configs/${DISTRO}-${FLAVOUR}
. ${TOPDIR}/boards/${BOARD}/functions
if [ -f ${TOPDIR}/custom/${CUSTOMOS}/functions ]; then
. ${TOPDIR}/custom/${CUSTOMOS}/functions
fi
trap "trap_ctrlc" 2
trap "cleanup" 0