Rename tools to releasetools

This is in preparation of NetBSD's tools directory to build tools
for cross compilation.
This commit is contained in:
Thomas Veerman 2012-06-08 13:09:54 +00:00
parent 9b58157579
commit 7f99f3a293
13 changed files with 29 additions and 24 deletions

View file

@ -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

View 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"; \