Compile mdev samples for nova-next

Change-Id: If44964f2b99ee0482600ec31e85ea1d4caeea1b3
This commit is contained in:
Dan Smith
2023-10-09 10:37:14 -07:00
parent b419f1dc56
commit 82f4da91ab
4 changed files with 76 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
NOVA_PLUGINDIR=$(readlink -f $(dirname "${BASH_SOURCE[0]}"))
source $NOVA_PLUGINDIR/lib/mdev_samples
if [[ $1 == "stack" ]]; then
case $2 in
install)
if [[ "$NOVA_COMPILE_MDEV_SAMPLES" == True ]]; then
async_runfunc compile_mdev_samples
fi
;;
extra)
if [[ "$NOVA_COMPILE_MDEV_SAMPLES" == True ]]; then
async_wait compile_mdev_samples
fi
;;
esac
elif [[ $1 == "clean" ]]; then
rm -Rf $NOVA_KERNEL_TEMP
fi