configure.sh: support custom board build with absolute path

Also add custom board build with absolute path support in addtion
to relative path.

Change-Id: I01bcb0b79db9e245484540c714036c64234b3656
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
liuhaitao 2020-11-23 17:17:18 +08:00 committed by Xiang Xiao
parent 642718709d
commit b044ec5a86

View file

@ -148,11 +148,14 @@ if [ ! -d ${configpath} ]; then
configpath=${TOPDIR}/${boardconfig} configpath=${TOPDIR}/${boardconfig}
if [ ! -d ${configpath} ]; then if [ ! -d ${configpath} ]; then
echo "Directory for ${boardconfig} does not exist." configpath=${boardconfig}
echo "" if [ ! -d ${configpath} ]; then
echo "Run tools/configure.sh -L to list available configurations." echo "Directory for ${boardconfig} does not exist."
echo "$USAGE" echo ""
exit 3 echo "Run tools/configure.sh -L to list available configurations."
echo "$USAGE"
exit 3
fi
fi fi
fi fi
@ -163,9 +166,9 @@ if [ ! -r ${src_makedefs} ]; then
src_makedefs=${TOPDIR}/boards/*/*/${boarddir}/scripts/Make.defs src_makedefs=${TOPDIR}/boards/*/*/${boarddir}/scripts/Make.defs
if [ ! -r ${src_makedefs} ]; then if [ ! -r ${src_makedefs} ]; then
src_makedefs=${TOPDIR}/${boardconfig}/Make.defs src_makedefs=${configpath}/Make.defs
if [ ! -r ${src_makedefs} ]; then if [ ! -r ${src_makedefs} ]; then
src_makedefs=${TOPDIR}/${boardconfig}/../../scripts/Make.defs src_makedefs=${configpath}/../../scripts/Make.defs
if [ ! -r ${src_makedefs} ]; then if [ ! -r ${src_makedefs} ]; then
echo "File Make.defs could not be found" echo "File Make.defs could not be found"