Commit 8699e445 authored by Martyn Welch's avatar Martyn Welch

Correctl logic for PREFERRED_PROVIDER_virtual/kernel and add RM_WORK

Correct logic to check for PREFERRED_PROVIDER_virtual/kernel in
conf/local.conf. Add similar section to add rm_work.
Signed-off-by: Martyn Welch's avatarMartyn Welch <martyn.welch@collabora.co.uk>
parent 19cc7fe0
......@@ -37,7 +37,18 @@ do
fi
done
grep "PREFERRED_PROVIDER_virtual/kernel" conf/bblayers.conf 1>/dev/null
grep "INHERIT += \"rm_work\"" conf/local.conf 1>/dev/null
if [ "$?" != "0" ]
then
echo "INHERIT += \"rm_work\"" >> conf/local.conf
if [ "$?" != "0" ]
then
echo "Failed to add rm_work to local.conf" >&2
exit 1
fi
fi
grep "PREFERRED_PROVIDER_virtual/kernel" conf/local.conf 1>/dev/null
if [ "$?" != "0" ]
then
echo "PREFERRED_PROVIDER_virtual/kernel = \"linux-yocto-vme\"" >> conf/local.conf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment