From: ppisa Date: Fri, 7 Aug 2009 16:10:29 +0000 (+0200) Subject: Update embedded build script same way as host one. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/commitdiff_plain/12721485d94ade1e34c99c3f7e8e9a71c3c7467e Update embedded build script same way as host one. Signed-off-by: ppisa --- diff --git a/build-embedded.sh b/build-embedded.sh index 8a68c7a..30e26c0 100755 --- a/build-embedded.sh +++ b/build-embedded.sh @@ -28,7 +28,12 @@ for i in $SOURCE_DIRS ; do done if [ ! -e "$BUILD_DIR/Makefile" ] ; then - cp omk/Makefile "$BUILD_DIR/Makefile" + m=$OMK_RULES_DIR + if [ ! -e "$m/Makefile" ] ; then m="$(dirname $m)" ; fi + if [ ! -e "$m/Makefile" ] ; then m="$(dirname $m)" ; fi + if [ -e "$m/Makefile" ] ; then + cp -v "$m/Makefile" "$BUILD_DIR/Makefile" + fi fi if [ ! -e "$BUILD_DIR/config.omk" ] ; then