hw/*/Makefile.objs: Move many .o files to common-objs
We have many files that apparently do not depend on the target CPU configuration, i.e. which can be put into common-obj-y instead of obj-y. This way, the code can be shared for example between qemu-system-arm and qemu-system-aarch64, or the various big and little endian variants like qemu-system-sh4 and qemu-system-sh4eb, so that we do not have to compile the code multiple times anymore. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <20200130133841.10779-1-thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
d9018fbbd6
commit
3ab5a6ece5
@ -1 +1 @@
|
||||
obj-$(CONFIG_STM32F2XX_ADC) += stm32f2xx_adc.o
|
||||
common-obj-$(CONFIG_STM32F2XX_ADC) += stm32f2xx_adc.o
|
||||
|
@ -10,7 +10,7 @@ common-obj-$(CONFIG_ONENAND) += onenand.o
|
||||
common-obj-$(CONFIG_NVME_PCI) += nvme.o
|
||||
common-obj-$(CONFIG_SWIM) += swim.o
|
||||
|
||||
obj-$(CONFIG_SH4) += tc58128.o
|
||||
common-obj-$(CONFIG_SH4) += tc58128.o
|
||||
|
||||
obj-$(CONFIG_VIRTIO_BLK) += virtio-blk.o
|
||||
obj-$(CONFIG_VHOST_USER_BLK) += vhost-user-blk.o
|
||||
|
@ -13,14 +13,13 @@ common-obj-$(CONFIG_XILINX) += xilinx_uartlite.o
|
||||
common-obj-$(CONFIG_XEN) += xen_console.o
|
||||
common-obj-$(CONFIG_CADENCE) += cadence_uart.o
|
||||
|
||||
obj-$(CONFIG_EXYNOS4) += exynos4210_uart.o
|
||||
obj-$(CONFIG_COLDFIRE) += mcf_uart.o
|
||||
obj-$(CONFIG_OMAP) += omap_uart.o
|
||||
obj-$(CONFIG_SH4) += sh_serial.o
|
||||
obj-$(CONFIG_PSERIES) += spapr_vty.o
|
||||
obj-$(CONFIG_DIGIC) += digic-uart.o
|
||||
obj-$(CONFIG_STM32F2XX_USART) += stm32f2xx_usart.o
|
||||
obj-$(CONFIG_RASPI) += bcm2835_aux.o
|
||||
common-obj-$(CONFIG_EXYNOS4) += exynos4210_uart.o
|
||||
common-obj-$(CONFIG_COLDFIRE) += mcf_uart.o
|
||||
common-obj-$(CONFIG_OMAP) += omap_uart.o
|
||||
common-obj-$(CONFIG_SH4) += sh_serial.o
|
||||
common-obj-$(CONFIG_DIGIC) += digic-uart.o
|
||||
common-obj-$(CONFIG_STM32F2XX_USART) += stm32f2xx_usart.o
|
||||
common-obj-$(CONFIG_RASPI) += bcm2835_aux.o
|
||||
|
||||
common-obj-$(CONFIG_CMSDK_APB_UART) += cmsdk-apb-uart.o
|
||||
common-obj-$(CONFIG_ETRAXFS) += etraxfs_ser.o
|
||||
@ -33,4 +32,5 @@ common-obj-$(CONFIG_MILKYMIST) += milkymist-uart.o
|
||||
common-obj-$(CONFIG_SCLPCONSOLE) += sclpconsole.o sclpconsole-lm.o
|
||||
|
||||
obj-$(CONFIG_VIRTIO) += virtio-serial-bus.o
|
||||
obj-$(CONFIG_PSERIES) += spapr_vty.o
|
||||
obj-$(CONFIG_TERMINAL3270) += terminal3270.o
|
||||
|
@ -19,8 +19,8 @@ common-obj-$(CONFIG_SOFTMMU) += machine.o
|
||||
common-obj-$(CONFIG_SOFTMMU) += null-machine.o
|
||||
common-obj-$(CONFIG_SOFTMMU) += loader.o
|
||||
common-obj-$(CONFIG_SOFTMMU) += machine-hmp-cmds.o
|
||||
common-obj-$(CONFIG_SOFTMMU) += numa.o
|
||||
obj-$(CONFIG_SOFTMMU) += machine-qmp-cmds.o
|
||||
obj-$(CONFIG_SOFTMMU) += numa.o
|
||||
|
||||
common-obj-$(CONFIG_EMPTY_SLOT) += empty_slot.o
|
||||
common-obj-$(CONFIG_XILINX_AXI) += stream.o
|
||||
|
@ -24,7 +24,7 @@ common-obj-$(CONFIG_BOCHS_DISPLAY) += bochs-display.o
|
||||
common-obj-$(CONFIG_BLIZZARD) += blizzard.o
|
||||
common-obj-$(CONFIG_EXYNOS4) += exynos4210_fimd.o
|
||||
common-obj-$(CONFIG_FRAMEBUFFER) += framebuffer.o
|
||||
obj-$(CONFIG_MILKYMIST) += milkymist-vgafb.o
|
||||
common-obj-$(CONFIG_MILKYMIST) += milkymist-vgafb.o
|
||||
common-obj-$(CONFIG_ZAURUS) += tc6393xb.o
|
||||
common-obj-$(CONFIG_MACFB) += macfb.o
|
||||
|
||||
|
@ -8,9 +8,9 @@ common-obj-$(CONFIG_XILINX_AXI) += xilinx_axidma.o
|
||||
common-obj-$(CONFIG_ZYNQ_DEVCFG) += xlnx-zynq-devcfg.o
|
||||
common-obj-$(CONFIG_ETRAXFS) += etraxfs_dma.o
|
||||
common-obj-$(CONFIG_STP2000) += sparc32_dma.o
|
||||
obj-$(CONFIG_XLNX_ZYNQMP_ARM) += xlnx_dpdma.o
|
||||
common-obj-$(CONFIG_XLNX_ZYNQMP_ARM) += xlnx_dpdma.o
|
||||
common-obj-$(CONFIG_XLNX_ZYNQMP_ARM) += xlnx-zdma.o
|
||||
|
||||
obj-$(CONFIG_OMAP) += omap_dma.o soc_dma.o
|
||||
obj-$(CONFIG_PXA2XX) += pxa2xx_dma.o
|
||||
common-obj-$(CONFIG_OMAP) += omap_dma.o soc_dma.o
|
||||
common-obj-$(CONFIG_PXA2XX) += pxa2xx_dma.o
|
||||
common-obj-$(CONFIG_RASPI) += bcm2835_dma.o
|
||||
|
@ -5,8 +5,8 @@ common-obj-$(CONFIG_ZAURUS) += zaurus.o
|
||||
common-obj-$(CONFIG_E500) += mpc8xxx.o
|
||||
common-obj-$(CONFIG_GPIO_KEY) += gpio_key.o
|
||||
|
||||
obj-$(CONFIG_OMAP) += omap_gpio.o
|
||||
obj-$(CONFIG_IMX) += imx_gpio.o
|
||||
obj-$(CONFIG_RASPI) += bcm2835_gpio.o
|
||||
obj-$(CONFIG_NRF51_SOC) += nrf51_gpio.o
|
||||
obj-$(CONFIG_ASPEED_SOC) += aspeed_gpio.o
|
||||
common-obj-$(CONFIG_OMAP) += omap_gpio.o
|
||||
common-obj-$(CONFIG_IMX) += imx_gpio.o
|
||||
common-obj-$(CONFIG_RASPI) += bcm2835_gpio.o
|
||||
common-obj-$(CONFIG_NRF51_SOC) += nrf51_gpio.o
|
||||
common-obj-$(CONFIG_ASPEED_SOC) += aspeed_gpio.o
|
||||
|
@ -9,5 +9,5 @@ common-obj-$(CONFIG_IMX_I2C) += imx_i2c.o
|
||||
common-obj-$(CONFIG_ASPEED_SOC) += aspeed_i2c.o
|
||||
common-obj-$(CONFIG_NRF51_SOC) += microbit_i2c.o
|
||||
common-obj-$(CONFIG_MPC_I2C) += mpc_i2c.o
|
||||
obj-$(CONFIG_OMAP) += omap_i2c.o
|
||||
obj-$(CONFIG_PPC4XX) += ppc4xx_i2c.o
|
||||
common-obj-$(CONFIG_OMAP) += omap_i2c.o
|
||||
common-obj-$(CONFIG_PPC4XX) += ppc4xx_i2c.o
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu/log.h"
|
||||
#include "qemu/module.h"
|
||||
#include "cpu.h"
|
||||
#include "hw/i2c/ppc4xx_i2c.h"
|
||||
#include "hw/irq.h"
|
||||
|
||||
|
@ -12,7 +12,7 @@ common-obj-$(CONFIG_VIRTIO_INPUT) += virtio-input-hid.o
|
||||
common-obj-$(CONFIG_VIRTIO_INPUT_HOST) += virtio-input-host.o
|
||||
common-obj-$(CONFIG_VHOST_USER_INPUT) += vhost-user-input.o
|
||||
|
||||
obj-$(CONFIG_MILKYMIST) += milkymist-softusb.o
|
||||
obj-$(CONFIG_PXA2XX) += pxa2xx_keypad.o
|
||||
obj-$(CONFIG_TSC210X) += tsc210x.o
|
||||
obj-$(CONFIG_LASIPS2) += lasips2.o
|
||||
common-obj-$(CONFIG_MILKYMIST) += milkymist-softusb.o
|
||||
common-obj-$(CONFIG_PXA2XX) += pxa2xx_keypad.o
|
||||
common-obj-$(CONFIG_TSC210X) += tsc210x.o
|
||||
common-obj-$(CONFIG_LASIPS2) += lasips2.o
|
||||
|
@ -34,8 +34,8 @@ common-obj-$(CONFIG_SUNHME) += sunhme.o
|
||||
common-obj-$(CONFIG_FTGMAC100) += ftgmac100.o
|
||||
common-obj-$(CONFIG_SUNGEM) += sungem.o
|
||||
|
||||
obj-$(CONFIG_ETRAXFS) += etraxfs_eth.o
|
||||
obj-$(CONFIG_COLDFIRE) += mcf_fec.o
|
||||
common-obj-$(CONFIG_ETRAXFS) += etraxfs_eth.o
|
||||
common-obj-$(CONFIG_COLDFIRE) += mcf_fec.o
|
||||
obj-$(CONFIG_MILKYMIST) += milkymist-minimac2.o
|
||||
obj-$(CONFIG_PSERIES) += spapr_llan.o
|
||||
obj-$(CONFIG_XILINX_ETHLITE) += xilinx_ethlite.o
|
||||
@ -45,7 +45,7 @@ common-obj-$(call land,$(CONFIG_VIRTIO_NET),$(CONFIG_VHOST_NET)) += vhost_net.o
|
||||
common-obj-$(call lnot,$(call land,$(CONFIG_VIRTIO_NET),$(CONFIG_VHOST_NET))) += vhost_net-stub.o
|
||||
common-obj-$(CONFIG_ALL) += vhost_net-stub.o
|
||||
|
||||
obj-$(CONFIG_ETSEC) += fsl_etsec/etsec.o fsl_etsec/registers.o \
|
||||
common-obj-$(CONFIG_ETSEC) += fsl_etsec/etsec.o fsl_etsec/registers.o \
|
||||
fsl_etsec/rings.o fsl_etsec/miim.o
|
||||
|
||||
common-obj-$(CONFIG_ROCKER) += rocker/rocker.o rocker/rocker_fp.o \
|
||||
|
@ -4,5 +4,5 @@ common-obj-$(CONFIG_AT24C) += eeprom_at24c.o
|
||||
common-obj-y += fw_cfg.o
|
||||
common-obj-$(CONFIG_CHRP_NVRAM) += chrp_nvram.o
|
||||
common-obj-$(CONFIG_MAC_NVRAM) += mac_nvram.o
|
||||
common-obj-$(CONFIG_NRF51_SOC) += nrf51_nvm.o
|
||||
obj-$(CONFIG_PSERIES) += spapr_nvram.o
|
||||
obj-$(CONFIG_NRF51_SOC) += nrf51_nvm.o
|
||||
|
@ -1,2 +1,2 @@
|
||||
common-obj-y += pcmcia.o
|
||||
obj-$(CONFIG_PXA2XX) += pxa2xx.o
|
||||
common-obj-$(CONFIG_PXA2XX) += pxa2xx.o
|
||||
|
@ -4,8 +4,8 @@ common-obj-$(CONFIG_SD) += sd.o core.o sdmmc-internal.o
|
||||
common-obj-$(CONFIG_SDHCI) += sdhci.o
|
||||
common-obj-$(CONFIG_SDHCI_PCI) += sdhci-pci.o
|
||||
|
||||
obj-$(CONFIG_MILKYMIST) += milkymist-memcard.o
|
||||
obj-$(CONFIG_OMAP) += omap_mmc.o
|
||||
obj-$(CONFIG_PXA2XX) += pxa2xx_mmci.o
|
||||
obj-$(CONFIG_RASPI) += bcm2835_sdhost.o
|
||||
obj-$(CONFIG_ASPEED_SOC) += aspeed_sdhci.o
|
||||
common-obj-$(CONFIG_MILKYMIST) += milkymist-memcard.o
|
||||
common-obj-$(CONFIG_OMAP) += omap_mmc.o
|
||||
common-obj-$(CONFIG_PXA2XX) += pxa2xx_mmci.o
|
||||
common-obj-$(CONFIG_RASPI) += bcm2835_sdhost.o
|
||||
common-obj-$(CONFIG_ASPEED_SOC) += aspeed_sdhci.o
|
||||
|
@ -6,5 +6,5 @@ common-obj-$(CONFIG_ASPEED_SOC) += aspeed_smc.o
|
||||
common-obj-$(CONFIG_STM32F2XX_SPI) += stm32f2xx_spi.o
|
||||
common-obj-$(CONFIG_MSF2) += mss-spi.o
|
||||
|
||||
obj-$(CONFIG_OMAP) += omap_spi.o
|
||||
obj-$(CONFIG_IMX) += imx_spi.o
|
||||
common-obj-$(CONFIG_OMAP) += omap_spi.o
|
||||
common-obj-$(CONFIG_IMX) += imx_spi.o
|
||||
|
@ -13,8 +13,8 @@ common-obj-$(CONFIG_USB_XHCI) += hcd-xhci.o
|
||||
common-obj-$(CONFIG_USB_XHCI_NEC) += hcd-xhci-nec.o
|
||||
common-obj-$(CONFIG_USB_MUSB) += hcd-musb.o
|
||||
|
||||
obj-$(CONFIG_TUSB6010) += tusb6010.o
|
||||
obj-$(CONFIG_IMX) += chipidea.o
|
||||
common-obj-$(CONFIG_TUSB6010) += tusb6010.o
|
||||
common-obj-$(CONFIG_IMX) += chipidea.o
|
||||
|
||||
# emulated usb devices
|
||||
common-obj-$(CONFIG_USB) += dev-hub.o
|
||||
|
Loading…
Reference in New Issue
Block a user