]> Zhao Yanbai Git Server - minix.git/commitdiff
llvm: Always build memory last.
authorCristiano Giuffrida <giuffrida@cs.vu.nl>
Wed, 18 Jun 2014 11:58:02 +0000 (13:58 +0200)
committerLionel Sambuc <lionel@minix3.org>
Mon, 28 Jul 2014 15:06:08 +0000 (17:06 +0200)
minix/llvm/minix.inc

index 5c1b5b53b20895b84ebfa640c7a2fa1bae7f7e0c..93675264a1543b1947dcdb86c17788199ef9f2e3 100644 (file)
@@ -25,7 +25,8 @@ function generate_modules_map()
 
        for l in `cat ${TMPFILE}.1`; do echo "`echo $l | cut -d: -f2`=`echo $l | cut -d: -f1`" | sed -e "s/\/Makefile//g"; done > ${TMPFILE}.2
        GREP_FILTER=$( cat drivers/Makefile | awk "\$1 ~ /endif/ {N=0}; N==1 {print}; \$4 ~ /earm/ {N=1}" | sed "s/^\t//g" | sed "s/SUBDIR[^ ]* *//g" | sed "s/ \\\//g" | xargs | sed "s/ /= -e ^/g")
-        grep -v -e ^${GREP_FILTER}= ${TMPFILE}.2 > ${OUTFILE}
+        grep -v -e ^${GREP_FILTER}= -e ^memory= ${TMPFILE}.2 > ${OUTFILE}
+       echo memory=drivers/memory >> ${OUTFILE} # memory always last
 
        rm -rf ${TMPFILE} ${TMPFILE}.1 ${TMPFILE}.2