]> Zhao Yanbai Git Server - minix.git/commitdiff
Reorganize some directories
authorArun Thomas <arun@minix3.org>
Wed, 26 May 2010 22:49:57 +0000 (22:49 +0000)
committerArun Thomas <arun@minix3.org>
Wed, 26 May 2010 22:49:57 +0000 (22:49 +0000)
servers/hgfs/hgfs_server => servers/hgfs
servers/hgfs/libhgfs => lib/libhgfs
servers/rs/service => commands/service
drivers/memory/memory_driver => drivers/memory
drivers/memory/ramdisk => drivers/ramdisk

66 files changed:
commands/Makefile
commands/service/Makefile [moved from servers/rs/service/Makefile with 55% similarity]
commands/service/service.c [moved from servers/rs/service/service.c with 100% similarity]
drivers/Makefile
drivers/memory/Makefile
drivers/memory/imgrd.c [moved from drivers/memory/memory_driver/imgrd.c with 100% similarity]
drivers/memory/local.h [moved from drivers/memory/memory_driver/local.h with 100% similarity]
drivers/memory/memory.c [moved from drivers/memory/memory_driver/memory.c with 100% similarity]
drivers/memory/memory_driver/Makefile [deleted file]
drivers/memory/ramdisk/Makefile [deleted file]
drivers/ramdisk/Makefile [new file with mode: 0644]
drivers/ramdisk/bintoc.c [moved from drivers/memory/ramdisk/bintoc.c with 100% similarity]
drivers/ramdisk/mtab [moved from drivers/memory/ramdisk/mtab with 100% similarity]
drivers/ramdisk/proto [moved from drivers/memory/ramdisk/proto with 100% similarity]
drivers/ramdisk/proto.sh [moved from drivers/memory/ramdisk/proto.sh with 100% similarity]
drivers/ramdisk/rc [moved from drivers/memory/ramdisk/rc with 100% similarity]
etc/mk/minix.prog.mk
include/Makefile
include/hgfs.h [moved from servers/hgfs/libhgfs/hgfs.h with 100% similarity]
lib/Makefile
lib/libhgfs/Makefile [moved from servers/hgfs/libhgfs/Makefile with 88% similarity]
lib/libhgfs/attr.c [moved from servers/hgfs/libhgfs/attr.c with 100% similarity]
lib/libhgfs/backdoor.S [moved from servers/hgfs/libhgfs/backdoor.S with 100% similarity]
lib/libhgfs/channel.c [moved from servers/hgfs/libhgfs/channel.c with 100% similarity]
lib/libhgfs/const.h [moved from servers/hgfs/libhgfs/const.h with 100% similarity]
lib/libhgfs/dir.c [moved from servers/hgfs/libhgfs/dir.c with 100% similarity]
lib/libhgfs/error.c [moved from servers/hgfs/libhgfs/error.c with 100% similarity]
lib/libhgfs/file.c [moved from servers/hgfs/libhgfs/file.c with 100% similarity]
lib/libhgfs/glo.h [moved from servers/hgfs/libhgfs/glo.h with 100% similarity]
lib/libhgfs/inc.h [moved from servers/hgfs/libhgfs/inc.h with 100% similarity]
lib/libhgfs/link.c [moved from servers/hgfs/libhgfs/link.c with 100% similarity]
lib/libhgfs/misc.c [moved from servers/hgfs/libhgfs/misc.c with 100% similarity]
lib/libhgfs/path.c [moved from servers/hgfs/libhgfs/path.c with 100% similarity]
lib/libhgfs/proto.h [moved from servers/hgfs/libhgfs/proto.h with 100% similarity]
lib/libhgfs/rpc.c [moved from servers/hgfs/libhgfs/rpc.c with 100% similarity]
lib/libhgfs/time.c [moved from servers/hgfs/libhgfs/time.c with 100% similarity]
lib/libhgfs/type.h [moved from servers/hgfs/libhgfs/type.h with 100% similarity]
servers/hgfs/Makefile
servers/hgfs/Makefile.inc [deleted file]
servers/hgfs/const.h [moved from servers/hgfs/hgfs_server/const.h with 100% similarity]
servers/hgfs/dentry.c [moved from servers/hgfs/hgfs_server/dentry.c with 100% similarity]
servers/hgfs/glo.h [moved from servers/hgfs/hgfs_server/glo.h with 100% similarity]
servers/hgfs/handle.c [moved from servers/hgfs/hgfs_server/handle.c with 100% similarity]
servers/hgfs/hgfs_server/Makefile [deleted file]
servers/hgfs/inc.h [moved from servers/hgfs/hgfs_server/inc.h with 100% similarity]
servers/hgfs/inode.c [moved from servers/hgfs/hgfs_server/inode.c with 100% similarity]
servers/hgfs/inode.h [moved from servers/hgfs/hgfs_server/inode.h with 100% similarity]
servers/hgfs/link.c [moved from servers/hgfs/hgfs_server/link.c with 100% similarity]
servers/hgfs/lookup.c [moved from servers/hgfs/hgfs_server/lookup.c with 100% similarity]
servers/hgfs/main.c [moved from servers/hgfs/hgfs_server/main.c with 100% similarity]
servers/hgfs/misc.c [moved from servers/hgfs/hgfs_server/misc.c with 100% similarity]
servers/hgfs/mount.c [moved from servers/hgfs/hgfs_server/mount.c with 100% similarity]
servers/hgfs/name.c [moved from servers/hgfs/hgfs_server/name.c with 100% similarity]
servers/hgfs/optset.c [moved from servers/hgfs/hgfs_server/optset.c with 100% similarity]
servers/hgfs/optset.h [moved from servers/hgfs/hgfs_server/optset.h with 100% similarity]
servers/hgfs/path.c [moved from servers/hgfs/hgfs_server/path.c with 100% similarity]
servers/hgfs/proto.h [moved from servers/hgfs/hgfs_server/proto.h with 100% similarity]
servers/hgfs/read.c [moved from servers/hgfs/hgfs_server/read.c with 100% similarity]
servers/hgfs/stat.c [moved from servers/hgfs/hgfs_server/stat.c with 100% similarity]
servers/hgfs/table.c [moved from servers/hgfs/hgfs_server/table.c with 100% similarity]
servers/hgfs/type.h [moved from servers/hgfs/hgfs_server/type.h with 100% similarity]
servers/hgfs/util.c [moved from servers/hgfs/hgfs_server/util.c with 100% similarity]
servers/hgfs/verify.c [moved from servers/hgfs/hgfs_server/verify.c with 100% similarity]
servers/hgfs/write.c [moved from servers/hgfs/hgfs_server/write.c with 100% similarity]
servers/rs/Makefile
tools/Makefile

index 58c705ada144d83c7257d38f98e88f39ef740fad..b0307a8c195c21e2fe49e915afe81a02a22958b6 100644 (file)
@@ -24,7 +24,7 @@ SUBDIR=       aal add_route adduser advent arp ash at autil awk \
        profile progressbar proto pr_routes ps pwd pwdauth \
        ramdisk rarpd rawspeed rcp rdate readall readclock \
        readfs reboot remsync rev rget rlogin rlogind rmdir \
-       rotate rsh rshd sed setup shar size \
+       rotate rsh rshd sed service setup shar size \
        sleep slip sort spell split srccrc stat strings strip \
        stty su sum svclog swapfs swifi sync synctree sysenv \
        syslogd tail talk talkd tcpd tcpdp tcpstat tee telnet \
similarity index 55%
rename from servers/rs/service/Makefile
rename to commands/service/Makefile
index 03e23fc8c3cb51ffa78f679ef94df7bab513e2c0..637f02e1c687ba467abd582dfdbcef8c86f75a10 100644 (file)
@@ -1,11 +1,7 @@
 # Makefile for service
-.include <minix.own.mk>
-
 PROG=  service
-SRCS=  service.c
 
+BINDIR= /bin
 MAN=
 
-BINDIR?= /bin
-
 .include <minix.prog.mk>
index fdcd2dce9cca690d34e625298760c66bcb786ec8..7b515fe9acee69deef0870987567130ae775a25c 100644 (file)
@@ -7,9 +7,9 @@
 SUBDIR=        amddev atl2 at_wini audio bios_wini dec21140A dp8390 dpeth \
        e1000 filter floppy fxp hello lance log orinoco pci printer \
        random readclock rtl8139 rtl8169 sb16 ti1225 tty \
-       .WAIT memory
+       .WAIT ramdisk .WAIT memory
 
 # memory driver must be last for ramdisk image
-IMAGE_SUBDIR=  at_wini bios_wini floppy log tty pci .WAIT memory
+IMAGE_SUBDIR=  at_wini bios_wini floppy log tty pci .WAIT ramdisk .WAIT memory
 
 .include <minix.subdir.mk>
index df986f13ef0bd7e00154fa39c152111241de85de..bf776f900d2b804793948ef532a8f62abfcbacf7 100644 (file)
@@ -1,7 +1,18 @@
-# Makefile for memory driver and ramdisk
-
+# Makefile for memory driver (MEMORY)
 .include <minix.own.mk>
 
-SUBDIR=        ramdisk .WAIT memory_driver
+PROG=  memory
+SRCS=  memory.c imgrd.c
+
+DPADD+=        ${LIBDRIVER} ${LIBSYS}
+LDADD+=        -ldriver -lsys
+
+MAN=
+
+BINDIR?= /usr/sbin
+INSTALLFLAGS+= -S 8k
+
+CPPFLAGS.memory.c+=    -I${MINIXSRCDIR}
+CPPFLAGS.imgrd.c+=     -I${.CURDIR}/../ramdisk -T /usr/tmp
 
-.include <minix.subdir.mk>
+.include <minix.prog.mk>
diff --git a/drivers/memory/memory_driver/Makefile b/drivers/memory/memory_driver/Makefile
deleted file mode 100644 (file)
index ee53102..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-# Makefile for memory driver (MEMORY)
-.include <minix.own.mk>
-
-PROG=  memory
-SRCS=  memory.c imgrd.c
-
-DPADD+=        ${LIBDRIVER} ${LIBSYS}
-LDADD+=        -ldriver -lsys
-
-MAN=
-
-BINDIR?= /usr/sbin
-INSTALLFLAGS+= -S 8k
-
-CPPFLAGS.memory.c+=    -I${MINIXSRCDIR}
-CPPFLAGS.imgrd.c+=     -I${.CURDIR}/../ramdisk -T /usr/tmp
-
-.include <minix.prog.mk>
-.include <minix.subdir.mk>
diff --git a/drivers/memory/ramdisk/Makefile b/drivers/memory/ramdisk/Makefile
deleted file mode 100644 (file)
index 0b2e7e2..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-# Makefile for ramdisk image
-
-PROGRAMS=at_wini bios_wini cdprobe dev2name floppy loadramdisk newroot \
-       pci sh service sysenv mfs
-EXTRA=system.conf passwd
-
-CPPFLAGS+= -I${MINIXSRCDIR}/servers
-MAKEDEV=/usr/bin/MAKEDEV
-
-all:   image.c
-
-clean:
-       rm -rf $(PROGRAMS) $(EXTRA) bintoc image image.c t proto.gen
-
-image.c:       bintoc image
-       ./bintoc -o $@ image
-
-# Note for cross compilation: this executable has to be compiled for the
-# host system
-bintoc:        bintoc.c
-       $(CC) -o $@ bintoc.c
-
-image: proto.gen mtab rc $(PROGRAMS) $(EXTRA)
-       mkfs image proto.gen || { rm -f image; false; }
-
-at_wini: ../../at_wini/at_wini
-       install -s ../../$@/$@ $@
-
-../../at_wini/at_wini:
-       cd ../../at_wini && make
-
-bios_wini: ../../bios_wini/bios_wini
-       install -s ../../$@/$@ $@
-
-../../bios_wini/bios_wini:
-       cd ../../bios_wini && make
-
-floppy: ../../floppy/floppy
-       install -s ../../$@/$@ $@
-
-../../floppy/floppy:
-       cd ../../floppy && make
-
-pci: ../../pci/pci
-       install -s ../../$@/$@ $@
-
-../../pci/pci:
-       cd ../../pci && make
-
-cdprobe:  ../../../commands/cdprobe/cdprobe
-       install -s ../../../commands/$@/$@ $@
-
-../../../commands/cdprobe:
-       cd ../../../commands/cdprobe && make
-
-dev2name:  ../../../commands/dev2name/dev2name
-       install -s ../../../commands/$@/$@ $@
-
-../../../commands/dev2name/dev2name:
-       cd ../../../commands/dev2name && make
-
-loadramdisk:  ../../../commands/loadramdisk/loadramdisk
-       install -s ../../../commands/$@/$@ $@
-
-../../../commands/loadramdisk/loadramdisk:
-       cd ../../../commands/loadramdisk && make
-
-newroot:  ../../../commands/newroot/newroot
-       install -s ../../../commands/$@/$@ $@
-
-../../../commands/newroot/newroot:
-       cd ../../../commands/newroot && make
-
-sysenv:  ../../../commands/sysenv/sysenv
-       install -s ../../../commands/$@/$@ $@
-
-../../../commands/sysenv:
-       cd ../../../commands/sysenv && make
-
-sh:    ../../../commands/ash/sh
-       install -s ../../../commands/ash/$@ $@
-
-../../../commands/ash/sh: 
-       cd ../../../commands/ash && make sh
-
-service: ../../../servers/rs/service/service
-       install -s ../../../servers/rs/service/$@ $@
-
-../../../servers/rs/service: 
-       cd ../../../servers/rs && make service
-
-mfs: ../../../servers/mfs/mfs
-       install -s ../../../servers/mfs/$@ $@
-
-../../../servers/mfs/mfs: 
-       cd ../../../servers/mfs && make
-
-system.conf: ../../../etc/system.conf
-       install -s ../../../etc/$@ $@
-
-passwd: ../../../etc/passwd
-       install -s ../../../etc/$@ $@
-
-proto.gen: $(MAKEDEV) proto.sh proto
-       sh -e proto.sh >proto.gen
-
-.include <minix.prog.mk>
diff --git a/drivers/ramdisk/Makefile b/drivers/ramdisk/Makefile
new file mode 100644 (file)
index 0000000..d6a9ff7
--- /dev/null
@@ -0,0 +1,107 @@
+# Makefile for ramdisk image
+
+PROGRAMS=at_wini bios_wini cdprobe dev2name floppy loadramdisk newroot \
+       pci sh service sysenv mfs
+EXTRA=system.conf passwd
+
+CPPFLAGS+= -I${MINIXSRCDIR}/servers
+MAKEDEV=/usr/bin/MAKEDEV
+
+all:   image.c
+
+clean:
+       rm -rf $(PROGRAMS) $(EXTRA) bintoc image image.c t proto.gen
+
+image.c:       bintoc image
+       ./bintoc -o $@ image
+
+# Note for cross compilation: this executable has to be compiled for the
+# host system
+bintoc:        bintoc.c
+       $(CC) -o $@ bintoc.c
+
+image: proto.gen mtab rc $(PROGRAMS) $(EXTRA)
+       mkfs image proto.gen || { rm -f image; false; }
+
+at_wini: ../at_wini/at_wini
+       install -s ../$@/$@ $@
+
+../at_wini/at_wini:
+       cd ../at_wini && make
+
+bios_wini: ../bios_wini/bios_wini
+       install -s ../$@/$@ $@
+
+../bios_wini/bios_wini:
+       cd ../bios_wini && make
+
+floppy: ../floppy/floppy
+       install -s ../$@/$@ $@
+
+../floppy/floppy:
+       cd ../floppy && make
+
+pci: ../pci/pci
+       install -s ../$@/$@ $@
+
+../pci/pci:
+       cd ../pci && make
+
+cdprobe:  ../../commands/cdprobe/cdprobe
+       install -s ../../commands/$@/$@ $@
+
+../../commands/cdprobe:
+       cd ../../commands/cdprobe && make
+
+dev2name:  ../../commands/dev2name/dev2name
+       install -s ../../commands/$@/$@ $@
+
+../../commands/dev2name/dev2name:
+       cd ../../commands/dev2name && make
+
+loadramdisk:  ../../commands/loadramdisk/loadramdisk
+       install -s ../../commands/$@/$@ $@
+
+../../commands/loadramdisk/loadramdisk:
+       cd ../../commands/loadramdisk && make
+
+newroot:  ../../commands/newroot/newroot
+       install -s ../../commands/$@/$@ $@
+
+../../commands/newroot/newroot:
+       cd ../../commands/newroot && make
+
+sysenv:  ../../commands/sysenv/sysenv
+       install -s ../../commands/$@/$@ $@
+
+../../commands/sysenv:
+       cd ../../commands/sysenv && make
+
+sh:    ../../commands/ash/sh
+       install -s ../../commands/ash/$@ $@
+
+../../commands/ash/sh:
+       cd ../../commands/ash && make sh
+
+service: ../../commands/service/service
+       install -s ../../commands/service/$@ $@
+
+../../commands/service:
+       cd ../../commands/service && make
+
+mfs: ../../servers/mfs/mfs
+       install -s ../../servers/mfs/$@ $@
+
+../../servers/mfs/mfs:
+       cd ../../servers/mfs && make
+
+system.conf: ../../etc/system.conf
+       install -s ../../etc/$@ $@
+
+passwd: ../../etc/passwd
+       install -s ../../etc/$@ $@
+
+proto.gen: $(MAKEDEV) proto.sh proto
+       sh -e proto.sh >proto.gen
+
+.include <minix.prog.mk>
similarity index 100%
rename from drivers/memory/ramdisk/rc
rename to drivers/ramdisk/rc
index 49ce433dca1b03e2ff0c350e2ddc5cc230b87f2b..eaef1f23c0d6dc17e9dfd361b6774a60e7bd9f49 100644 (file)
@@ -56,7 +56,7 @@ MKDEP_SUFFIXES?=      .o .ln
 #      rumpfs_lfs rumpfs_msdosfs rumpfs_nfs rumpfs_ntfs rumpfs_syspuffs \
 #      rumpfs_tmpfs rumpfs_udf rumpfs_ufs
 .for _lib in \
-       c curses driver edit end m sys timers util
+       c curses driver netdriver edit end m sys timers util bz2 l hgfs
 .ifndef LIB${_lib:tu}
 LIB${_lib:tu}= ${DESTDIR}/usr/lib/lib${_lib}.a
 .if ${COMPILER_TYPE} == "ack"
index 3ba9e2b76e0322d73b45c9e8c371999020a3bc4b..c7456927568a9be6d7b3a7c657fa1712b12a410d 100644 (file)
@@ -8,7 +8,8 @@ INCS=   alloca.h ansi.h a.out.h ar.h assert.h configfile.h ctype.h \
        regexp.h setjmp.h sgtty.h signal.h stdarg.h stddef.h \
        stdint.h stdio.h stdlib.h string.h strings.h sysexits.h \
        syslog.h tar.h termcap.h termios.h time.h timers.h tools.h \
-       ttyent.h ucontext.h unistd.h utime.h utmp.h wchar.h wctype.h
+       ttyent.h ucontext.h unistd.h utime.h utmp.h wchar.h wctype.h \
+       hgfs.h
 INCS+= arpa/inet.h
 INCS+= minix/a.out.h minix/bitmap.h minix/callnr.h minix/cdrom.h \
        minix/com.h minix/config.h minix/const.h minix/cpufeature.h \
similarity index 100%
rename from servers/hgfs/libhgfs/hgfs.h
rename to include/hgfs.h
index 24204c21ea2be20bd37a7c72e0ad0f50e6df7a3f..f05e9c80b45f5f9994e27aeceed3c8068a0f4620 100644 (file)
@@ -1,7 +1,7 @@
 .include <minix.own.mk>
 
 SUBDIR= csu libc libcurses libdriver libnetdriver libend libedit libm libsys \
-       libtimers libutil libbz2 libl
+       libtimers libutil libbz2 libl libhgfs
 
 .if ${COMPILER_TYPE} == "ack"
 SUBDIR+= ack/libd ack/libe ack/libfp ack/liby
similarity index 88%
rename from servers/hgfs/libhgfs/Makefile
rename to lib/libhgfs/Makefile
index d7947cdfd060fd50d57324083ee3383b0bbaeaca..07c52d7a4e11618ae9f23d31d0051403b16c244e 100644 (file)
@@ -1,7 +1,5 @@
 # Makefile for HGFS library
 
-LIBISPRIVATE=   yes
-
 LIB=    hgfs
 SRCS=  backdoor.S attr.c channel.c dir.c error.c file.c \
        link.c misc.c path.c rpc.c time.c
similarity index 100%
rename from servers/hgfs/libhgfs/dir.c
rename to lib/libhgfs/dir.c
similarity index 100%
rename from servers/hgfs/libhgfs/glo.h
rename to lib/libhgfs/glo.h
similarity index 100%
rename from servers/hgfs/libhgfs/inc.h
rename to lib/libhgfs/inc.h
similarity index 100%
rename from servers/hgfs/libhgfs/rpc.c
rename to lib/libhgfs/rpc.c
index 483c9b51e500ad1cf9ec00615cf6e3947f33eb3b..f8c75f6e2796d9f6580b03ac4ed017038359e436 100644 (file)
@@ -1,7 +1,14 @@
 # Makefile for VMware Host/Guest File System (HGFS) server
+PROG=  hgfs
+SRCS=  dentry.c handle.c inode.c link.c lookup.c main.c \
+       misc.c mount.c name.c optset.c path.c read.c \
+       stat.c table.c util.c verify.c write.c
 
-.include <minix.own.mk>
+DPADD+=        ${LIBHGFS} ${LIBSYS}
+LDADD+=        -lhgfs -lsys
 
-SUBDIR=        libhgfs .WAIT hgfs_server
+MAN=
 
-.include <minix.subdir.mk>
+BINDIR?= /sbin
+
+.include <minix.prog.mk>
diff --git a/servers/hgfs/Makefile.inc b/servers/hgfs/Makefile.inc
deleted file mode 100644 (file)
index 4229a01..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-.include <minix.own.mk>
-
-LIBHGFS != cd ${.CURDIR}/../libhgfs && ${PRINTOBJDIR}
-CPPFLAGS+=-I${.CURDIR}/../libhgfs
-DPADD+= ${LIBHGFS}/libhgfs.a
-LDADD+= -L${LIBHGFS} -lhgfs
-
-DPADD+=        ${LIBSYS}
-LDADD+=        -lsys
-
-.if exists(${.CURDIR}/../../Makefile.inc)
-.include "${.CURDIR}/../../Makefile.inc"
-.endif
diff --git a/servers/hgfs/hgfs_server/Makefile b/servers/hgfs/hgfs_server/Makefile
deleted file mode 100644 (file)
index ce98eb4..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-# Makefile for VMware Host/Guest File System (HGFS) server
-PROG=  hgfs
-SRCS=  dentry.c handle.c inode.c link.c lookup.c main.c \
-       misc.c mount.c name.c optset.c path.c read.c \
-       stat.c table.c util.c verify.c write.c
-
-MAN=
-
-BINDIR?= /sbin
-
-.include <minix.prog.mk>
index 7fd5f23e30699b1dcebeedf07b55318d41e80620..c3ab6037224ba2a0f67038c09301f730e9a7591b 100644 (file)
@@ -14,7 +14,4 @@ INSTALLFLAGS+=        -S 1225k
 
 CPPFLAGS+=     -I${MINIXSRCDIR}
 
-SUBDIR= service
-
 .include <minix.prog.mk>
-.include <minix.subdir.mk>
index 2f770e00c63bbc158535c8d9269e3b571196834c..a53eec943e364f9876a0b2fa345f6ccccd74ac12 100644 (file)
@@ -12,7 +12,7 @@ PROGRAMS=     ../kernel/kernel \
        ../servers/pm/pm \
        ../servers/sched/sched \
        ../servers/vfs/vfs \
-       ../drivers/memory/memory_driver/memory \
+       ../drivers/memory/memory \
        ../drivers/log/log \
        ../drivers/tty/tty \
        ../servers/mfs/mfs \