summaryrefslogtreecommitdiffstats
path: root/Makefile.target
Commit message (Collapse)AuthorAgeFilesLines
* Compile some user files only once for all targetsBlue Swirl2009-09-271-16/+4
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix user emulator breakageBlue Swirl2009-09-271-4/+2
| | | | | | | | Fix breakage in the following conditions: - use in-tree building - build user targets after system targets Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Revert "This files are compiled in libqemu.a now"Blue Swirl2009-09-251-0/+3
| | | | | | | | | | | This reverts commit fe6549dfd76c278dbcd788b3c15c5e6e5ed32190. tcg-runtime and host-utils are needed on 32 bit host and they are not part of libqemu.a. Thanks to Stefan Weil for reporting. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* clean: remove ide/*.o files on cleanJuan Quintela2009-09-251-1/+1
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* This files are compiled in libqemu.a nowJuan Quintela2009-09-231-3/+0
| | | | | | | This fixes compilation of linux-user with today qemu, please apply. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Fix user targets broken by 96e132e24ee5a693069e83b6a981693588b088c1Blue Swirl2009-09-211-3/+3
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Compile host-utils only onceBlue Swirl2009-09-201-4/+4
| | | | | | | See also facd2857783d58387885ad7cb1e4a8386f241738 and 34005a0060c176b3025a9e7c5d064615a9f80325. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Compile TCG runtime library only onceBlue Swirl2009-09-201-1/+4
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Compile ne2000 only onceBlue Swirl2009-09-201-1/+0
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* ioports: remove unused env parameter and compile only onceBlue Swirl2009-09-201-1/+1
| | | | | | | The CPU state parameter is not used, remove it and adjust callers. Now we can compile ioport.c once for all targets. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Compile msix only onceBlue Swirl2009-09-201-1/+1
| | | | | | Get page size in device init. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Compile loader only onceBlue Swirl2009-09-201-1/+1
| | | | | | | | | | | | | Callers must pass ELF machine, byte swapping and symbol LSB clearing information to ELF loader. A.out loader needs page size information, pass that too as a parameter. Extract prototypes to a separate file. Move loader.[ch] and elf_ops.h under hw. Adjust callers. Also use target_phys_addr_t instead of target_ulong for addresses: loader addresses aren't virtual. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Compile qemu-config only onceBlue Swirl2009-09-201-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Compile wdt_i6300esb only onceBlue Swirl2009-09-201-3/+0
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* ide/pci: convert to qdev.Gerd Hoffmann2009-09-151-4/+6
| | | | | | | | | | | | | | | With this patch applied ide drives (when attached to a pci adapter) can be created via -device, like this: -drive if=none,id=mydisk,file=/path/to/disk.img -device ide-drive,drive=mydisk,bus=ide.0,unit=0 Note that creating a master on ide1 doesn't work that way. That is a side effect of qemu creating a cdrom automagically even if you don't ask for it. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Fix breakage by f80237d45032fbc429aba3b597175fb544a11378 for ISA-less targetsBlue Swirl2009-09-141-7/+7
| | | | | | Move ISA bus to HW library. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Add configure option to compile user targets as PIEKirill A. Shutemov2009-09-121-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | Build uset targers as true PIE if user want to keep qemu self-virtualizable. v5: - Split into to patches: drop link hack and add PIE support - do not build PIE by default and drop toolchain check v4: - Add test for toolchain if it has proper PIE support v3: - One more pice of the hack was removed - Description updated v2: - Add configure options do enable/disable PIE for usermode targets. Disabling can be useful if you build uswing toolchain which has broken PIE support. PIE for usermode targets enabled by default. Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* qdev/isa: convert ne2000Gerd Hoffmann2009-09-101-2/+3
| | | | | | | Also split the isa bits into a separate source file, so we don't drag in a dependency for isa-bus.o for machines which want ne2k_pci only. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
* vga: split vga-isa-mm.oJuan Quintela2009-09-091-1/+1
| | | | | | | | | It is only used in mips softmmu, compile only there. it_shift field was only used for vga_isa_mm, move it from VGACommonState to ISAVGAMMstate. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* vga: split isa bits inco vga-isa.cJuan Quintela2009-09-091-2/+2
| | | | | | | | Adjust all the VGAState in VGACommonState Compile vga-isa.o in the targets that use it Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* vga: split pci bits into vga-pci.cJuan Quintela2009-09-091-3/+6
| | | | | | | | Adjust all the VGAState in VGACommonState Compile vga-pci.o only for targets that use it. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Split piix4 support from piix_pci.cJuan Quintela2009-09-041-1/+1
| | | | | | | Now mips_malta uses piix4 and pc's use piix_pci definitions Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: move code to hw/ide/Gerd Hoffmann2009-08-271-5/+5
| | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: split away ide-microdrive.cGerd Hoffmann2009-08-271-1/+1
| | | | | | | | create ide-microdrive.c and place microdrive support there. only build ide-microdrive support for platforms using it. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: split away ide-mmio.cGerd Hoffmann2009-08-271-1/+1
| | | | | | | | create ide-mmio.c and place mmio support there. only build ide-mmio support for platforms using it. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: split away ide-pci.cGerd Hoffmann2009-08-271-4/+5
| | | | | | | | | | create ide-pci.c and place pci bus support there. only build ide-pci support for platforms using it. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Fix build (merge with isa mmio split)
* ide: split away ide-isa.cGerd Hoffmann2009-08-271-3/+4
| | | | | | | | | create ide-isa.c and place isa bus support there. only build ide-isa support for platforms using it. also create ide.h header file. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* qdev: convert watchdogsMarkus Armbruster2009-08-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | -watchdog NAME is now equivalent to -device NAME, except it treats option argument '?' specially, and supports only one watchdog. A side effect is that a device created with -watchdog may now receive a different PCI address. i6300esb is now available on any machine with a PCI bus, not just PCs. ib700 is still PC only, but that could be changed easily. The only remaining use of struct WatchdogTimerModel and watchdog_add_model() is supporting '-watchdog ?'. Should be replaced by searching device_info_list for watchdog devices when we can identify them there. Also fixes ib700 not to use vm_clock before it is initialized: in wdt_ib700_init(), called from register_watchdogs(), which runs before init_timers(). The bug made ib700_write_enable_reg() crash in qemu_del_timer(). Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Add isa_reserve_irq().Jes Sorensen2009-08-271-2/+2
| | | | | | | | | | | | | | | | | | | Introduce isa_reserve_irq() which marks an irq reserved and returns the appropriate qemu_irq entry from the i8259 table. isa_reserve_irq() is a temporary interface to be used to allocate ISA IRQs for devices which have not yet been converted to qdev, and for special cases which are not suited for qdev conversions, such as the 'ferr'. This patch goes on top of Gerd Hoffmann's which makes isa-bus.c own the ISA irq table. [ added isa-bus.o to some targets to fix build failures -- kraxel ] Signed-off-by: Jes Sorensen <jes@sgi.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Remove a hack introduced by d19076faca944c31bb051b95d285e75ec67902f7malc2009-08-271-4/+0
| | | | | Work by Blue Swirl culminating with 5c55ff99fa88158871d5b9f619c485deae5f3d5b made it unnecessary.
* qemu: move virtio-pci.o to near pci.oMichael S. Tsirkin2009-08-241-1/+1
| | | | | | | | | | virtio-pci depends, and will always depend, on pci.c so it makes sense to keep it in the same makefile, (unlike the rest of virtio files which should eventually be moved out to Makefile.hw). Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Only build osdep onceAnthony Liguori2009-08-241-1/+1
| | | | | | We no longer need hackery to work around kqemu Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Unbreak large mem support by removing kqemuAnthony Liguori2009-08-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | kqemu introduces a number of restrictions on the i386 target. The worst is that it prevents large memory from working in the default build. Furthermore, kqemu is fundamentally flawed in a number of ways. It relies on the TSC as a time source which will not be reliable on a multiple processor system in userspace. Since most modern processors are multicore, this severely limits the utility of kqemu. kvm is a viable alternative for people looking to accelerate qemu and has the benefit of being supported by the upstream Linux kernel. If someone can implement work arounds to remove the restrictions introduced by kqemu, I'm happy to avoid and/or revert this patch. N.B. kqemu will still function in the 0.11 series but this patch removes it from the 0.12 series. Paul, please Ack or Nack this patch. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Extract the Marvell 88w8618 audio device from musicpal.cAndrzej Zaborowski2009-08-231-1/+1
| | | | | Signed-off-by: Benoit Canet <benoit.canet@gmail.com> Signed-off-by: Andrzej Zaborowski <balrogg@gmail.com>
* Extract musicpal.c I2C bitbanging code and make it gpio awareAndrzej Zaborowski2009-08-231-1/+1
| | | | | Signed-off-by: Benoit Canet <benoit.canet@gmail.com> Signed-off-by: Andrzej Zaborowski <balrogg@gmail.com>
* user: compile host-utils.c only onceBlue Swirl2009-08-161-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Simplify 5ba6531956b9b6486560cbd13604c2238a3542ddBlue Swirl2009-08-161-9/+3
| | | | | | Thanks to Juan Quintela. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* linux-user: compile envlist.c only onceBlue Swirl2009-08-151-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* user: compile ioport-user.c only for x86Blue Swirl2009-08-151-5/+16
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* user: compile path.c only onceBlue Swirl2009-08-151-2/+2
| | | | | | Also merge bsd-user/path.c and linux-user/path.c. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Add emacs header to Makefile.targetAnthony Liguori2009-08-101-0/+2
| | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibmc.om> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* Move libsunpath to use the same style than everything elseJuan Quintela2009-08-101-7/+0
| | | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* convert gprof flags to style of rest of MakefileJuan Quintela2009-08-101-4/+1
| | | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* Add cocoa libs at Darwin selection timeJuan Quintela2009-08-101-5/+0
| | | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* CURL libs are used both by tools and softmmuJuan Quintela2009-08-101-1/+1
| | | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* VDE libs are used both by tools and softmmuJuan Quintela2009-08-101-1/+1
| | | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* use TARGET_<arch name> for selectionJuan Quintela2009-08-101-11/+3
| | | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* Consolidate audio flags in configureJuan Quintela2009-08-101-17/+0
| | | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* remove last 3 uses of :=, everywhere else uses += or =Juan Quintela2009-08-101-3/+3
| | | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
* Make slirp include dir globlal in cflagsJuan Quintela2009-08-101-3/+0
| | | | | | | | We already include it everywhere Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
OpenPOWER on IntegriCloud