Browse Source
In macOS 11, QEMU only gets access to Hypervisor.framework if it has the respective entitlement. Add an entitlement template and automatically self sign and apply the entitlement in the build. Signed-off-by: Alexander Graf <agraf@csgraf.de> Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com> Tested-by: Roman Bolshakov <r.bolshakov@yadro.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>pull/109/head
committed by
Peter Maydell
3 changed files with 46 additions and 4 deletions
@ -0,0 +1,8 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
|||
<plist version="1.0"> |
|||
<dict> |
|||
<key>com.apple.security.hypervisor</key> |
|||
<true/> |
|||
</dict> |
|||
</plist> |
|||
@ -0,0 +1,13 @@ |
|||
#!/bin/sh -e |
|||
# |
|||
# Helper script for the build process to apply entitlements |
|||
|
|||
SRC="$1" |
|||
DST="$2" |
|||
ENTITLEMENT="$3" |
|||
|
|||
trap 'rm "$DST.tmp"' exit |
|||
cp -af "$SRC" "$DST.tmp" |
|||
codesign --entitlements "$ENTITLEMENT" --force -s - "$DST.tmp" |
|||
mv "$DST.tmp" "$DST" |
|||
trap '' exit |
|||
Loading…
Reference in new issue