virtualbox: fix compiler error with newer iasl versions

I also added another sed command to suppress warnings that appear
because the include-guards contain dashes.

fixes #3147
This commit is contained in:
Johannes Schlatow 2019-02-08 11:05:09 +01:00 committed by Christian Helmuth
parent bd09783438
commit 7bd506b913
1 changed files with 9 additions and 4 deletions

View File

@ -96,20 +96,25 @@ Devices/PC/ACPI/VBoxAcpi.o: vboxaml.hex vboxssdt-standard.hex vboxssdt-cpuhotplu
vboxaml.hex: vbox.dsl
iasl -tc -vs -p $@ $^
mv $@ $@.tmp && \
sed "s/vboxaml_aml_code/AmlCode/g" <$@.tmp >$@ && \
rm $@.tmp
vboxssdt-standard.hex: vbox-standard.dsl
iasl -tc -vs -p $@ $^ && \
mv $@ $@.tmp && \
sed "s/AmlCode/AmlCodeSsdtStandard/g" <$@.tmp >$@ && \
rm $@.tmp
sed "s/AmlCode\|vboxssdt-standard_aml_code/AmlCodeSsdtStandard/g" <$@.tmp >$@.tmp2 && \
sed "s/__VBOXSSDT-STANDARD_HEX__/__VBOXSSDT_STANDARD_HEX__/g" <$@.tmp2 >$@ && \
rm $@.tmp $@.tmp2
vboxssdt-cpuhotplug.hex: vbox-cpuhotplug.dsl
gcc -E -P -x c -o $@.pre $< && \
sed "s/<NL>/\n/g" <$@.pre >$@.pre1 && \
iasl -tc -vs -p $@ $@.pre1 && \
mv $@ $@.tmp && \
sed "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" <$@.tmp >$@ && \
rm $@.tmp $@.pre $@.pre1
sed "s/AmlCode\|vboxssdt-cpuhotplug_aml_code/AmlCodeSsdtCpuHotPlug/g" <$@.tmp >$@.tmp2 && \
sed "s/__VBOXSSDT-CPUHOTPLUG_HEX__/__VBOXSSDT_CPUHOTPLUG_HEX__/g" <$@.tmp2 >$@ && \
rm $@.tmp $@.tmp2 $@.pre $@.pre1
vpath %.dsl $(VBOX_DIR)/Devices/PC
vpath devxhci.cc $(REP_DIR)/src/virtualbox5