Unverified Commit 5c62c3d2 authored by Fernando Rodrigues's avatar Fernando Rodrigues
Browse files

xen: don't patch QEMU and OVMF if they aren't being built



This resolves the spurious 'directory not found' errors in the xen-slim
builds.

Signed-off-by: default avatarFernando Rodrigues <alpha@sigmasquadron.net>
parent 97e4f530
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -532,8 +532,10 @@ stdenv.mkDerivation (finalAttrs: {
      ${deployPrefetchedSourcesPatches}
    ''
    # Patch shebangs for QEMU and OVMF build scripts.
    + ''
    + lib.strings.optionalString withInternalQEMU ''
      patchShebangs --build tools/qemu-xen/scripts/tracetool.py
    ''
    + lib.strings.optionalString withInternalOVMF ''
      patchShebangs --build tools/firmware/ovmf-dir-remote/OvmfPkg/build.sh tools/firmware/ovmf-dir-remote/BaseTools/BinWrappers/PosixLike/{AmlToC,BrotliCompress,build,GenFfs,GenFv,GenFw,GenSec,LzmaCompress,TianoCompress,Trim,VfrCompile}
    '';