From: Juan Quintela Date: Mon, 3 Aug 2009 12:47:02 +0000 (+0200) Subject: Consolidate audio flags in configure X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~11052 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55d9c04bc3418ae7bd49a8f66a070f0a4c466c69;p=sdk%2Femulator%2Fqemu.git Consolidate audio flags in configure Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori Message-Id: --- diff --git a/Makefile.target b/Makefile.target index 65c15f3..a294e6b 100644 --- a/Makefile.target +++ b/Makefile.target @@ -202,10 +202,6 @@ obj-i386-y += cirrus_vga.o apic.o ioapic.o parallel.o acpi.o piix_pci.o obj-i386-y += usb-uhci.o vmmouse.o vmport.o vmware_vga.o hpet.o obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o -ifeq ($(TARGET_BASE_ARCH), i386) -QEMU_CFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE -endif - # shared objects obj-ppc-y = ppc.o ide.o vga.o $(sound-obj-y) dma.o isa-bus.o openpic.o # PREP target @@ -223,11 +219,6 @@ obj-ppc-y += ppc440.o ppc440_bamboo.o # PowerPC E500 boards obj-ppc-y += ppce500_pci.o ppce500_mpc8544ds.o obj-ppc-$(CONFIG_KVM) += kvm_ppc.o - -ifeq ($(TARGET_BASE_ARCH), ppc) -QEMU_CFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE -endif - obj-ppc-$(CONFIG_FDT) += device_tree.o obj-mips-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o @@ -239,10 +230,6 @@ obj-mips-y += mipsnet.o obj-mips-y += pflash_cfi01.o obj-mips-y += vmware_vga.o -ifeq ($(TARGET_BASE_ARCH), mips) -QEMU_CFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE -endif - obj-microblaze-y = petalogix_s3adsp1800_mmu.o obj-microblaze-y += microblaze_pic_cpu.o @@ -299,10 +286,6 @@ obj-arm-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o obj-arm-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o obj-arm-y += syborg_virtio.o -ifeq ($(TARGET_BASE_ARCH), arm) -QEMU_CFLAGS += -DHAS_AUDIO -endif - obj-sh4-y = shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o obj-sh4-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o serial.o obj-sh4-y += ide.o diff --git a/configure b/configure index 1956519..0ee2c47 100755 --- a/configure +++ b/configure @@ -2136,6 +2136,17 @@ ia64) ;; esac +if test "$target_softmmu" = "yes" ; then + case "$TARGET_BASE_ARCH" in + arm) + cflags="-DHAS_AUDIO $cflags" + ;; + i386|mips|ppc) + cflags="-DHAS_AUDIO -DHAS_AUDIO_CHOICE $cflags" + ;; + esac +fi + if test "$target_softmmu" = "yes" -a \( \ "$TARGET_ARCH" = "microblaze" -o \ "$TARGET_ARCH" = "cris" \) ; then