Use objcopy to build ramdisk object

. during build, uses much less memory,
	  disk space, and time
	. lets us throw out bintoc
This commit is contained in:
Antoine Leca
2012-01-17 16:04:58 +01:00
committed by Ben Gras
parent 5a645f22a8
commit ab0a67f7af
6 changed files with 29 additions and 159 deletions

View File

@@ -23,19 +23,11 @@ PROTO= proto.small
EXTRA=system.conf master.passwd passwd pwd.db spwd.db rs.single
CPPFLAGS+= -I${MINIXSRCDIR}/servers -I${MINIXSRCDIR}
CLEANFILES += $(PROGRAMS) $(SCRIPTS) $(EXTRA) bintoc image image.c t proto.gen
CLEANFILES += $(PROGRAMS) $(SCRIPTS) $(EXTRA) image image.c t proto.gen
install: all
realall: image.c
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
realall: image
image: proto.gen mtab rc $(EXTRA)
mkfs.mfs image proto.gen || { rm -f image; false; }