Commit ce05c32384e1698053b862dbf1932cee69d99276
1 parent
1ce549ab
allow ACPI table build
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1982 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
11 additions
and
2 deletions
Makefile.target
... | ... | @@ -490,8 +490,10 @@ loader.o: loader.c elf_ops.h |
490 | 490 | |
491 | 491 | acpi.o: acpi.c acpi-dsdt.hex |
492 | 492 | |
493 | -#$(SRC_PATH)/hw/acpi-dsdt.hex: acpi-dsdt.dsl | |
494 | -# iasl -tc -p $@ $< | |
493 | +ifdef BUILD_ACPI_TABLES | |
494 | +$(SRC_PATH)/hw/acpi-dsdt.hex: acpi-dsdt.dsl | |
495 | + iasl -tc -p $@ $< | |
496 | +endif | |
495 | 497 | |
496 | 498 | ifeq ($(TARGET_ARCH), sh4) |
497 | 499 | op.o: op.c op_mem.c cpu.h | ... | ... |
configure
... | ... | @@ -95,6 +95,7 @@ check_gcc="yes" |
95 | 95 | softmmu="yes" |
96 | 96 | user="no" |
97 | 97 | build_docs="no" |
98 | +build_acpi_tables="no" | |
98 | 99 | uname_release="" |
99 | 100 | |
100 | 101 | # OS specific |
... | ... | @@ -240,6 +241,8 @@ for opt do |
240 | 241 | ;; |
241 | 242 | --enable-uname-release=*) uname_release="$optarg" |
242 | 243 | ;; |
244 | + --enable-iasl) build_acpi_tables="yes" | |
245 | + ;; | |
243 | 246 | esac |
244 | 247 | done |
245 | 248 | |
... | ... | @@ -288,6 +291,7 @@ echo " --disable-user disable all linux usermode emulation targets" |
288 | 291 | echo " --fmod-lib path to FMOD library" |
289 | 292 | echo " --fmod-inc path to FMOD includes" |
290 | 293 | echo " --enable-uname-release=R Return R for uname -r in usermode emulation" |
294 | +echo " --enable-iasl compilation of ACPI tables with the IASL compiler" | |
291 | 295 | echo "" |
292 | 296 | echo "NOTE: The object files are build at the place where configure is launched" |
293 | 297 | exit 1 |
... | ... | @@ -708,6 +712,9 @@ echo "TARGET_DIRS=$target_list" >> $config_mak |
708 | 712 | if [ "$build_docs" = "yes" ] ; then |
709 | 713 | echo "BUILD_DOCS=yes" >> $config_mak |
710 | 714 | fi |
715 | +if [ "$build_acpi_tables" = "yes" ] ; then | |
716 | + echo "BUILD_ACPI_TABLES=yes" >> $config_mak | |
717 | +fi | |
711 | 718 | |
712 | 719 | # XXX: suppress that |
713 | 720 | if [ "$bsd" = "yes" ] ; then | ... | ... |