llvm: Fix OPTFLAGS.
Change-Id: Id35ac2821ad69825735c50a32bdd04d8453edb22
This commit is contained in:
parent
d8d3052dd0
commit
c9590fa23a
1 changed files with 7 additions and 6 deletions
|
@ -140,9 +140,11 @@ echo
|
||||||
|
|
||||||
cd ${MINIX_ROOT}
|
cd ${MINIX_ROOT}
|
||||||
|
|
||||||
|
OPTFLAGS=`echo ${OPTFLAGS} | sed -e 's/\\$/$$/g'`
|
||||||
for m in ${MINIX_MODS}
|
for m in ${MINIX_MODS}
|
||||||
do
|
do
|
||||||
echo "Instrumenting $m ..."
|
echo "Instrumenting $m ..."
|
||||||
|
|
||||||
n=`get_module_name $m`
|
n=`get_module_name $m`
|
||||||
if [ "" == "$n" ]; then
|
if [ "" == "$n" ]; then
|
||||||
echo "Error: Couldn't fetch the module name for $m"
|
echo "Error: Couldn't fetch the module name for $m"
|
||||||
|
@ -153,12 +155,11 @@ do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
clean_module $n $m
|
clean_module $n $m
|
||||||
OPTFLAGS=`echo ${OPTFLAGS} | sed -e "s/\ /\\\ /g"`
|
|
||||||
OPTFLAGS_PLACEHOLDER="OPTFLAGS.$n=${OPTFLAGS}"
|
( ${TOOLDIR}/nbmake-${ARCH} -C $m all install MKBITCODE=yes OPTFLAGS.$n="${OPTFLAGS}" \
|
||||||
|
&& echo "INFO: $m successfully instrumented."
|
||||||
(env "`echo ${OPTFLAGS_PLACEHOLDER}`" MKBITCODE=yes \
|
)
|
||||||
${TOOLDIR}/nbmake-${ARCH} -C $m all install && echo "INFO: $m successfully instrumented." ) || echo "ERROR: Failed instrumenting $m"
|
echo
|
||||||
echo
|
|
||||||
done
|
done
|
||||||
|
|
||||||
cd ${MYPWD}
|
cd ${MYPWD}
|
||||||
|
|
Loading…
Reference in a new issue