Skip to content

Commit 1f42eb3

Browse files
committed
scripts: fix script to use local vfio-bindings
Due the upstream changes, script needs to adjust to match the version instead of git repo previously. Signed-off-by: Muminul Islam <muislam@microsoft.com>
1 parent 0229edd commit 1f42eb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/use-local-vfio-for-vfio-user-build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
filename=./Cargo.toml
44

5-
line=$(grep -n "vfio-bindings = { git =" $filename | tail -n1 | cut -f1 -d:)
5+
line=$(grep -n "vfio-bindings = { version =" $filename | tail -n1 | cut -f1 -d:)
66
if [ -z $line ]; then
77
echo "vfio-bindings not found in the Cargo.toml file"
88
exit 1
99
fi
10-
sed -i "$line i vfio-bindings = { path = \"../vfio/vfio-bindings\" }" $filename
10+
sed -i "$line i vfio-bindings = { path = \"../vfio/vfio-bindings\", features = [\"fam-wrappers\"] }" $filename
1111
line=$((line+1))
1212
sed -i "${line}d" $filename

0 commit comments

Comments
 (0)