Skip to content

Commit

Permalink
disassemble-aml: -o actually works
Browse files Browse the repository at this point in the history
Turns out that option was borken due to weird iasl
command line handling. Fix it.

Signed-off-by: Michael S. Tsirkin <[email protected]>
  • Loading branch information
mstsirkin committed Aug 27, 2020
1 parent 9b897b3 commit c27c1cc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/data/acpi/disassemle-aml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,16 @@ do
else
extra=""
fi
asl=${aml}.dsl
if [[ "${outdir}" ]];
then
asl="${outdir}"/${machine}/${asl}
# 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"
else
prefix=""
fi
iasl -d -p ${asl} ${extra} ${aml}
iasl ${extra} ${prefix} -d ${aml}
done
done

0 comments on commit c27c1cc

Please sign in to comment.