]> Zhao Yanbai Git Server - minix.git/commitdiff
Rename tools to releasetools
authorThomas Veerman <thomas@minix3.org>
Fri, 8 Jun 2012 13:09:54 +0000 (13:09 +0000)
committerThomas Veerman <thomas@minix3.org>
Mon, 18 Jun 2012 10:53:37 +0000 (10:53 +0000)
This is in preparation of NetBSD's tools directory to build tools
for cross compilation.

13 files changed:
Makefile
releasetools/Makefile [moved from tools/Makefile with 84% similarity]
releasetools/chrootmake.sh [moved from tools/chrootmake.sh with 100% similarity]
releasetools/issue.install [moved from tools/issue.install with 100% similarity]
releasetools/mkboot [moved from tools/mkboot with 100% similarity]
releasetools/nbsd.config [moved from tools/nbsd.config with 100% similarity]
releasetools/nbsd_diff.sh [moved from tools/nbsd_diff.sh with 100% similarity]
releasetools/nbsd_ports [moved from tools/nbsd_ports with 100% similarity]
releasetools/packages.install [moved from tools/packages.install with 100% similarity]
releasetools/release.functions [moved from tools/release.functions with 100% similarity]
releasetools/release.sh [moved from tools/release.sh with 100% similarity]
releasetools/release/cd/README.TXT [moved from tools/release/cd/README.TXT with 100% similarity]
releasetools/tell_config [moved from tools/tell_config with 100% similarity]

index 7842197257f1aaeed3c86f7475c6c01cbf7f3f06..2e6b028e4d39c22260a3f58375807303f1d32d99 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ usage:
        @echo " make install       # Compile and install commands"
        @echo " make clean         # Remove all compiler results"
        @echo "" 
-       @echo "Run 'make' in tools/ to create a new MINIX configuration." 
+       @echo "Run 'make' in releasetools/ to create a new MINIX configuration."
        @echo "" 
 
 # world has to be able to make a new system, even if there
@@ -81,14 +81,14 @@ install: .PHONY .MAKE
        ${MAKEDIRTARGET} man install
        ${MAKEDIRTARGET} man makedb
        ${MAKEDIRTARGET} share install
-       ${MAKEDIRTARGET} tools install
+       ${MAKEDIRTARGET} releasetools install
 
 clean: mkfiles .PHONY .MAKE
 .for dir in $(CMDSDIRS)
        ${MAKEDIRTARGET} ${dir} clean
 .endfor
        ${MAKEDIRTARGET} sys clean
-       ${MAKEDIRTARGET} tools clean
+       ${MAKEDIRTARGET} releasetools clean
        ${MAKEDIRTARGET} lib clean
        ${MAKEDIRTARGET} test clean
 
@@ -100,7 +100,7 @@ cleandepend: mkfiles .PHONY .MAKE
 
 # Shorthands
 all: .PHONY .MAKE dep-all
-       ${MAKEDIRTARGET} tools all
+       ${MAKEDIRTARGET} releasetools all
 
 # Obsolete targets
 elf-libraries: .PHONY
similarity index 84%
rename from tools/Makefile
rename to releasetools/Makefile
index ea566aedd9a8a532d28ccf96369be262ae9fbd01..8352da635ca94bffe0dfc0dd77a4826716ed5e8f 100644 (file)
@@ -11,19 +11,24 @@ GEN_FILES=  *.bak image kernel *.iso *.iso.gz cdfdimage rootimage src
 # Specify the programs that are part of the system image.
 KERNEL= kernel
 # PROGRAMS are in the order they should be loaded by boot
+.if ${MKBUILDEXT2RD} != "yes"
+FS=    ${NETBSDSRCDIR}/servers/mfs/mfs
+.else
+FS=    ${NETBSDSRCDIR}/servers/ext2/ext2
+.endif
 PROGRAMS= \
-       ../servers/ds/ds \
-       ../servers/rs/rs \
-       ../servers/pm/pm \
-       ../servers/sched/sched \
-       ../servers/vfs/vfs \
-       ../drivers/memory/memory \
-       ../drivers/log/log \
-       ../drivers/tty/tty \
-       ../servers/mfs/mfs \
-       ../servers/vm/vm \
-       ../servers/pfs/pfs \
-       ../servers/init/init
+       ${NETBSDSRCDIR}/servers/ds/ds \
+       ${NETBSDSRCDIR}/servers/rs/rs \
+       ${NETBSDSRCDIR}/servers/pm/pm \
+       ${NETBSDSRCDIR}/servers/sched/sched \
+       ${NETBSDSRCDIR}/servers/vfs/vfs \
+       ${NETBSDSRCDIR}/drivers/memory/memory \
+       ${NETBSDSRCDIR}/drivers/log/log \
+       ${NETBSDSRCDIR}/drivers/tty/tty \
+       ${FS} \
+       ${NETBSDSRCDIR}/servers/vm/vm \
+       ${NETBSDSRCDIR}/servers/pfs/pfs \
+       ${NETBSDSRCDIR}/servers/init/init
 
 usage: 
        @echo " " >&2
@@ -74,9 +79,9 @@ drivers: includes servers
 bootable:
        exec su root mkboot bootable
 
-hdboot:
+hdboot: services
        rm -rf ${DESTDIR}/boot/minix/.temp/
-       ${INSTALL_DIR} {DESTDIR}/boot/minix/.temp
+       mkdir -p ${DESTDIR}/boot/minix/.temp
 # mod_0 is used to make alphabetical order equal to the boot order
        for i in ${PROGRAMS};                                   \
        do                                                      \
@@ -97,15 +102,15 @@ fdboot:
        @sync
 
 install:
-       if [ ${DESTDIR}X != X ];                        \
-       then    ${MAKE} cross_install;                  \
-       else    ${MAKE} includes services hdboot;       \
-       fi
+.if ${MKBUILDEXT2RD} != "yes"
+       ${MAKE} includes services hdboot
+.else
+       ${MAKE} cross_install
+.endif
 
 cross_install:
        ${INSTALL_DIR} ${DESTDIR}/multiboot
-#ext2 might be needed
-       for i in ${PROGRAMS} ../servers/ext2/ext2;      \
+       for i in ${PROGRAMS};                                           \
        do                                                              \
        let n=n+1 >/dev/null;                                           \
        [ "$$n" -ge 10 ] && prefix="mod" || prefix="mod0";              \
similarity index 100%
rename from tools/mkboot
rename to releasetools/mkboot
similarity index 100%
rename from tools/nbsd.config
rename to releasetools/nbsd.config
similarity index 100%
rename from tools/nbsd_diff.sh
rename to releasetools/nbsd_diff.sh
similarity index 100%
rename from tools/nbsd_ports
rename to releasetools/nbsd_ports
similarity index 100%
rename from tools/release.sh
rename to releasetools/release.sh
similarity index 100%
rename from tools/tell_config
rename to releasetools/tell_config