dm: Reorganize ACRN DM directory.

The current dm, all non-pci and non-acpi related files are put into
hw/platform directory. This is actually disturbed the meaning of
*platform*. The platform devices are mean of board and SoC specific
non-PCI devices, like usb devices, etc.

This patch refines the ACRN dm directory architecture.

For some common device logic files, likes block_if.c/uart_core.c or
usb_core.c. They will move to hw/ directly.

For platform architecture depended files, create arch/ under root dir.
And create sub-dir arch/x86 for x86 architecture, will create more
architectures in future. The pm.c will move to this new dir.

The hw/acpi will be moved to hw/platform/acpi due to acpi also be
considered as part of platform.

Signed-off-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Yu Wang 2018-05-09 11:30:55 +08:00 committed by Jack Ren
parent eebf5fec6f
commit 8c06b69622
7 changed files with 9 additions and 6 deletions

View File

@ -50,21 +50,22 @@ LIBS += -lz
LIBS += -luuid LIBS += -luuid
# hw # hw
SRCS += hw/block_if.c
SRCS += hw/usb_core.c
SRCS += hw/uart_core.c
SRCS += hw/pci/virtio/virtio.c SRCS += hw/pci/virtio/virtio.c
SRCS += hw/pci/virtio/virtio_kernel.c SRCS += hw/pci/virtio/virtio_kernel.c
SRCS += hw/platform/usb_mouse.c SRCS += hw/platform/usb_mouse.c
SRCS += hw/platform/usb_core.c
SRCS += hw/platform/atkbdc.c SRCS += hw/platform/atkbdc.c
SRCS += hw/platform/ps2mouse.c SRCS += hw/platform/ps2mouse.c
SRCS += hw/platform/rtc.c SRCS += hw/platform/rtc.c
SRCS += hw/platform/ps2kbd.c SRCS += hw/platform/ps2kbd.c
SRCS += hw/platform/pm.c
SRCS += hw/platform/uart_core.c
SRCS += hw/platform/block_if.c
SRCS += hw/platform/ioapic.c SRCS += hw/platform/ioapic.c
SRCS += hw/platform/cmos_io.c SRCS += hw/platform/cmos_io.c
SRCS += hw/platform/ioc.c SRCS += hw/platform/ioc.c
SRCS += hw/platform/ioc_cbc.c SRCS += hw/platform/ioc_cbc.c
SRCS += hw/platform/acpi/acpi.c
SRCS += hw/platform/acpi/acpi_pm.c
SRCS += hw/pci/wdt_i6300esb.c SRCS += hw/pci/wdt_i6300esb.c
SRCS += hw/pci/lpc.c SRCS += hw/pci/lpc.c
SRCS += hw/pci/xhci.c SRCS += hw/pci/xhci.c
@ -81,8 +82,6 @@ SRCS += hw/pci/virtio/virtio_hyper_dmabuf.c
SRCS += hw/pci/virtio/virtio_heci.c SRCS += hw/pci/virtio/virtio_heci.c
SRCS += hw/pci/irq.c SRCS += hw/pci/irq.c
SRCS += hw/pci/uart.c SRCS += hw/pci/uart.c
SRCS += hw/acpi/acpi.c
SRCS += hw/acpi/acpi_pm.c
# core # core
#SRCS += core/bootrom.c #SRCS += core/bootrom.c
@ -103,6 +102,10 @@ SRCS += core/mptbl.c
SRCS += core/main.c SRCS += core/main.c
SRCS += core/hugetlb.c SRCS += core/hugetlb.c
# arch
SRCS += arch/x86/pm.c
OBJS := $(patsubst %.c,$(DM_OBJDIR)/%.o,$(SRCS)) OBJS := $(patsubst %.c,$(DM_OBJDIR)/%.o,$(SRCS))
HEADERS := $(shell find $(BASEDIR) -name '*.h') HEADERS := $(shell find $(BASEDIR) -name '*.h')