linux-qubasis

linux oasis port as a qubes template

git clone https://9o.is/git/linux-qubasis.git

dsdt_pvh.sh

(554B)


      1 set -eu
      2 
      3 mk_dsdt=$1
      4 in=$2
      5 out=$3
      6 outpath=${3%/*}
      7 
      8 printf 'DefinitionBlock ("DSDT.aml", "DSDT", 5, "Xen", "HVM", 0)\n{' > $outpath/dsdt_pvh.asl
      9 cat $in >> $outpath/dsdt_pvh.asl
     10 $mk_dsdt --debug=n --maxcpu any --dm-version none >> $outpath/dsdt_pvh.asl
     11 
     12 iasl -vs -p $outpath/dsdt_pvh.tmp -tc $outpath/dsdt_pvh.asl >/dev/null 2>&1
     13 sed -e 's/AmlCode/dsdt_pvh/g' -e 's/_aml_code//g' $outpath/dsdt_pvh.hex > $out.tmp
     14 printf 'int dsdt_pvh_len=sizeof(dsdt_pvh);\n' >> $outpath/dsdt_pvh.c.tmp
     15 mv -f $out.tmp $out
     16 rm -f $outpath/dsdt_pvh.aml $outpath/dsdt_pvh.hex