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