Commit 019d6b8ff0d495ded6977f24a4e8fd1c7fec09e0
1 parent
5efa9d5a
Move block drivers into their own directory
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing
15 changed files
with
9 additions
and
8 deletions
Makefile
... | ... | @@ -64,18 +64,18 @@ recurse-all: $(SUBDIR_RULES) |
64 | 64 | # BLOCK_OBJS is code used by both qemu system emulation and qemu-img |
65 | 65 | |
66 | 66 | BLOCK_OBJS=cutils.o cache-utils.o qemu-malloc.o module.o |
67 | -BLOCK_OBJS+=block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o | |
68 | -BLOCK_OBJS+=block-dmg.o block-bochs.o block-vpc.o block-vvfat.o | |
69 | -BLOCK_OBJS+=block-qcow2.o block-parallels.o block-nbd.o | |
67 | +BLOCK_OBJS+=block/cow.o block/qcow.o aes.o block/vmdk.o block/cloop.o | |
68 | +BLOCK_OBJS+=block/dmg.o block/bochs.o block/vpc.o block/vvfat.o | |
69 | +BLOCK_OBJS+=block/qcow2.o block/parallels.o block/nbd.o | |
70 | 70 | BLOCK_OBJS+=nbd.o block.o aio.o |
71 | 71 | |
72 | 72 | ifdef CONFIG_WIN32 |
73 | -BLOCK_OBJS += block-raw-win32.o | |
73 | +BLOCK_OBJS += block/raw-win32.o | |
74 | 74 | else |
75 | 75 | ifdef CONFIG_AIO |
76 | 76 | BLOCK_OBJS += posix-aio-compat.o |
77 | 77 | endif |
78 | -BLOCK_OBJS += block-raw-posix.o | |
78 | +BLOCK_OBJS += block/raw-posix.o | |
79 | 79 | endif |
80 | 80 | |
81 | 81 | ###################################################################### |
... | ... | @@ -234,7 +234,7 @@ clean: |
234 | 234 | # avoid old build problems by removing potentially incorrect old files |
235 | 235 | rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h |
236 | 236 | rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~ |
237 | - rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d | |
237 | + rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d | |
238 | 238 | $(MAKE) -C tests clean |
239 | 239 | for d in $(TARGET_DIRS); do \ |
240 | 240 | $(MAKE) -C $$d $@ || exit 1 ; \ |
... | ... | @@ -408,4 +408,4 @@ tarbin: |
408 | 408 | $(mandir)/man8/qemu-nbd.8 |
409 | 409 | |
410 | 410 | # Include automatically generated dependency files |
411 | --include $(wildcard *.d audio/*.d slirp/*.d) | |
411 | +-include $(wildcard *.d audio/*.d slirp/*.d block/*.d) | ... | ... |
block-bochs.c renamed to block/bochs.c
block-cloop.c renamed to block/cloop.c
block-cow.c renamed to block/cow.c
block-dmg.c renamed to block/dmg.c
block-nbd.c renamed to block/nbd.c
block-parallels.c renamed to block/parallels.c
block-qcow.c renamed to block/qcow.c
block-qcow2.c renamed to block/qcow2.c
block-raw-posix.c renamed to block/raw-posix.c
block-raw-win32.c renamed to block/raw-win32.c
block-vmdk.c renamed to block/vmdk.c
block-vpc.c renamed to block/vpc.c
block-vvfat.c renamed to block/vvfat.c
configure
... | ... | @@ -2029,7 +2029,7 @@ done # for target in $targets |
2029 | 2029 | |
2030 | 2030 | # build tree in object directory if source path is different from current one |
2031 | 2031 | if test "$source_path_used" = "yes" ; then |
2032 | - DIRS="tests tests/cris slirp audio" | |
2032 | + DIRS="tests tests/cris slirp audio block" | |
2033 | 2033 | FILES="Makefile tests/Makefile" |
2034 | 2034 | FILES="$FILES tests/cris/Makefile tests/cris/.gdbinit" |
2035 | 2035 | FILES="$FILES tests/test-mmap.c" | ... | ... |