diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-05-05 06:02:04 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-05-05 06:02:04 +0000 |
commit | 3d10bc794d2e03421fd174136259f42a03004bca (patch) | |
tree | d1b03f69e85167322eb9804fa9e85237ce45b7f1 /sys/arch/alpha/stand/libz | |
parent | 53e6b51c98a2cae3f0e7c41c03a85f76fcd17341 (diff) |
Updates from NetBSD (cgd):
- seriously clean up makefiles. use libsa/libkern/libz as appropriate,
and don't build the various sources into objs locally by specifying
them directly in the Makefiles.
- move the secondary bootstrap down (to 0x20004000), and add a HEAP_LIMIT
so that we don't exhaust our bootstrap address space (when using the new,
not yet checked in, memory allocator).
- clean up installboot, deal with secondary bootstrap programs not on
'a' partition or 'a' partition not starting at 0.
- add padding to structures in bbinfo.h for future expansion. Add a
netbbinfo structure to allow netboot information to be hard-coded in
network boot blocks, so that they can be made to work even on systems
with firmware which doesn't support the new "ethernet address in boot
device" convention.
- move the sync() calls to the correct place in installboot.c
- remove a kludge in disk.c which was breaking multiple opens/closes
of the disk
- allow netboot ethernet address to be hard-coded into binary so that
machines with old firmware which doesn't pass it in the boot device
can work. Assume that if the ethernet address isn't passed in, it
uses the old (dain-bramaged) 'read' interface works on my 3000/300LX.
- Add setnetbootinfo, a program to hard code an ethernet address into
a network boot.
- move an 'int debug;' into boot.c (it was the only diff between boot.c and
netboot.c), and nuke netboot.c (using boot.c instead for net boot blocks).
- add cd9660 file system ops to the file system ops table in filesystem.c
- if a file name is given (i.e. BOOTED_FILE) is set, boot only that file,
but if not then try to boot "bsd", "bsd.bak", "bsd.old", and
"obsd" (in that order) until one is found or until the list of names
is exhausted.
- add support for reading gzipped kernels.
- use strerror() to print errors, rather than just printing error numbers
- if no disk label exists, fake one up
- slightly relax the block size checks in bootxx.c; they were a bit to paranoid
And local changes:
- don't build a copy of libsa/libkern/libz for each boot prog,
just build a single copy and use it for everything.
Diffstat (limited to 'sys/arch/alpha/stand/libz')
-rw-r--r-- | sys/arch/alpha/stand/libz/Makefile | 5 | ||||
-rw-r--r-- | sys/arch/alpha/stand/libz/Makefile.inc | 71 |
2 files changed, 76 insertions, 0 deletions
diff --git a/sys/arch/alpha/stand/libz/Makefile b/sys/arch/alpha/stand/libz/Makefile new file mode 100644 index 00000000000..48bcdedcd3a --- /dev/null +++ b/sys/arch/alpha/stand/libz/Makefile @@ -0,0 +1,5 @@ +# $OpenBSD: Makefile,v 1.1 1997/05/05 06:01:58 millert Exp $ + +.include <bsd.obj.mk> +.include <bsd.dep.mk> +.include <bsd.subdir.mk> diff --git a/sys/arch/alpha/stand/libz/Makefile.inc b/sys/arch/alpha/stand/libz/Makefile.inc new file mode 100644 index 00000000000..205125fa1ff --- /dev/null +++ b/sys/arch/alpha/stand/libz/Makefile.inc @@ -0,0 +1,71 @@ +# $OpenBSD: Makefile.inc,v 1.1 1997/05/05 06:01:58 millert Exp $ +# $NetBSD: Makefile.inc,v 1.2 1997/01/23 22:29:09 cgd Exp $ +# +# Configuration variables (default values are below): +# +# S must be set to the top of the 'sys' tree. +# ZDST may be set to the location of the directory where library +# objects are to be built. Defaults to ${.OBJDIR}/lib/z. +# Z_AS may be set to 'obj' to build a object from the library's +# object files. (Otherwise, a library will be built.) +# Defaults to 'library'. +# ZMISCMAKEFLAGS +# Miscellaneous flags to be passed to the library's Makefile when +# building. See library's Makefile for more details about +# supported flags and their default values. + +# Default values: +ZDST?= ${.OBJDIR}/lib/z +Z_AS?= library + +ZDIR= $S/lib/libz +.if (${Z_AS} == "obj") +ZLIB= ${ZDST}/libz.o +ZLIB_PROF= ${ZDST}/libz.po +.else +ZLIB= ${ZDST}/libz.a +ZLIB_PROF= ${ZDST}/libz_p.a +.endif + +ZMAKE= \ + cd ${ZDIR} && MAKEOBJDIR=${ZDST} ${MAKE} \ + CC="${CC}" CFLAGS="${CFLAGS}" \ + AS=${AS} AFLAGS="${AFLAGS}" \ + LD=${LD} STRIP=${STRIP} \ + MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH} \ + ZCPPFLAGS="${CPPFLAGS:S@^-I.@-I../../.@g}" \ + ${ZMISCMAKEFLAGS} + +${ZLIB}: .NOTMAIN __always_make_zlib + @echo making sure the z library is up to date... +.if (${Z_AS} == "library") + ${ZMAKE} libz.a +.else + @${ZMAKE} libz.o +.endif + +${ZLIB_PROF}: .NOTMAIN __always_make_zlib + @echo making sure the profiled z library is up to date... +.if (${Z_AS} == "library") + @${ZMAKE} libz_p.a +.else + @${ZMAKE} libz.po +.endif + +clean: .NOTMAIN cleanzlib +cleanzlib: .NOTMAIN __always_make_zlib + @echo cleaning the z library objects + @${ZMAKE} clean + +cleandir: .NOTMAIN cleandirzlib +cleandirzlib: .NOTMAIN __always_make_zlib + @echo cleandiring the z library objects + @${ZMAKE} cleandir + +depend: .NOTMAIN dependzlib +dependzlib: .NOTMAIN __always_make_zlib + @echo depending the z library objects + @${ZMAKE} depend + +__always_make_zlib: .NOTMAIN + @mkdir -p ${ZDST} |