4 while getopts "o:" arg
; do
10 echo "Usage: ./tests/data/acpi/disassemle-aml.sh [-o <output-directory>]"
17 for machine
in tests
/data
/acpi
/*
19 if [[ ! -d "$machine" ]];
26 mkdir
-p "${outdir}"/${machine} ||
exit $?
30 if [[ "$aml" == $machine/*.dsl
]];
34 if [[ "$aml" == $machine/SSDT
*.
* ]];
36 dsdt
=${aml/SSDT*./DSDT.}
38 elif [[ "$aml" == $machine/SSDT
* ]];
40 dsdt
=${aml/SSDT*/DSDT};
47 # iasl strips an extension from prefix if there.
48 # since we have some files with . in the name, the
49 # last component gets interpreted as an extension:
50 # add another extension to work around that.
51 prefix
="-p ${outdir}/${aml}.dsl"
55 iasl
${extra} ${prefix} -d ${aml}