From 7bb3e6abddea5307dedeca235b83b80767df3b30 Mon Sep 17 00:00:00 2001 From: Ycarus Date: Fri, 11 May 2018 15:14:40 +0200 Subject: [PATCH] Make build script more easy for unsupported targets --- build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 01ed7fec..8ea15771 100755 --- a/build.sh +++ b/build.sh @@ -29,7 +29,7 @@ OMR_FEED_SRC="${OMR_FEED_SRC:-master}" if [ ! -f "$OMR_TARGET_CONFIG" ]; then echo "Target $OMR_TARGET not found !" - exit 1 + #exit 1 fi if [ "$OMR_TARGET" = "rpi3" ]; then @@ -142,6 +142,11 @@ scripts/feeds install -a -d y -f -p openmptcprouter cp .config.keep .config echo "Done" +if [ ! -f "../../$OMR_TARGET_CONFIG" ]; then + echo "Target $OMR_TARGET not found ! You have to configure and compile your kernel manually." + exit 1 +fi + echo "Building $OMR_DIST for the target $OMR_TARGET" make defconfig make IGNORE_ERRORS=m "$@"