Permalink
Browse files

initial import

  • Loading branch information...
0 parents commit 7c54f12d28b929eaef868e05c122c998324234cd @joshuabergeron committed Aug 16, 2013
Showing 362 changed files with 97,146 additions and 0 deletions.
@@ -0,0 +1,33 @@
+All of the documentation and software included in the 4.4BSD and 4.4BSD-Lite
+Releases is copyrighted by The Regents of the University of California.
+
+Copyright 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
+ The Regents of the University of California. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+3. All advertising materials mentioning features or use of this software
+ must display the following acknowledgement:
+This product includes software developed by the University of
+California, Berkeley and its contributors.
+4. Neither the name of the University nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
@@ -0,0 +1,11 @@
+This file contains additional installation instructions for the ClosedBSD
+distribution. The current revision of this file is:
+
+It is highly recommended that you use the RELENG_4_5 branch of
+FreeBSD sources on your system to build ClosedBSD.
+
+When using CompactFlash, the build system can be used to create a
+partition image which will contain read-only and read/write partitions.
+XXX: document special flags to mount root read-only in this instance.
+
+Additional instructions will appear here when ready.
@@ -0,0 +1,59 @@
+#
+# The following build tools are required, in addition to the FreeBSD
+# base install, on the host system:-
+# mkisofs and the md driver.
+#
+# Many of the targets which appear in Makefile.inc1 in the core FreeBSD
+# build process will actually wind up appearing here, because we only
+# build using ELF support (not a.out).
+
+# ----------------------------------------------------------------------------
+# User-driven targets:
+# iso - Build the CDROM image of ClosedBSD.
+# floppy - Build the floppy image of ClosedBSD.
+# flash - Build a CompactFlash image (including partitions).
+#
+# Implied targets:
+# depend - Recursive depend for userland world.
+# buildworld - Build the ClosedBSD world (binaries).
+#
+# Convenience targets:
+# update - Convenience target to update ClosedBSD via CVS
+# checkout - Checkout ClosedBSD from $CVSROOT; overwrites this file.
+# ----------------------------------------------------------------------------
+
+# Set the default make target.
+.MAIN: all
+
+# ----------------------------------------------------------------------------
+# Pull in user-configurable build defaults.
+# ----------------------------------------------------------------------------
+
+TGTS= all burnflash burnfloppy burniso buildworld buildkernel checkout \
+ clean cleandepend cleandir depend flash floppy hierarchy iso kernel \
+ libraries mk obj objlink tags update
+
+# XXX: Currently assumes that the BSD make includes are available on
+# the host system in the path ${SHAREMKDIR}, which defaults to /usr/share/mk.
+# XXX: Also assumes that the 'md' memory disk driver is available, as is
+# the mkisofs(8) utility; also relies on /usr/bin/crunchgen.
+
+PATH= /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
+MAKE= PATH=${PATH} make -m ${.CURDIR}/share/mk -f Makefile.inc1
+
+STARTTIME!= LC_ALL=C date
+
+# ----------------------------------------------------------------------------
+
+#
+# A simple test target used as part of the test to see if make supports
+# the -m argument.
+#
+test:
+
+#
+# Handle the user-driven targets, using the source relative mk files.
+#
+${TGTS}:
+ @cd ${.CURDIR}; \
+ ${MAKE} ${.TARGET}
@@ -0,0 +1,242 @@
+#
+# *** HEAVILY UNDER CONSTRUCTION ***
+#
+# This file contains make targets which are private to the build process,
+# and which are not intended to be directly invoked by the user.
+# Its role in the build process is identical to that of the Makefile.inc1
+# file in the FreeBSD build.
+#
+# The intended user-driven targets are listed in ./Makefile. Most of
+# these targets are defined in this file.
+#
+# Standard targets (not defined here) are documented in the makefiles in
+# /usr/share/mk. These include:
+# obj depend all install clean cleandepend cleanobj
+#
+# ----------------------------------------------------------------------------
+
+# Put initial settings here.
+SUBDIR=
+
+# ----------------------------------------------------------------------------
+# Default configuration variables go here. Anything not already
+# specified in the environment will be sourced from here.
+# ----------------------------------------------------------------------------
+
+# Please set ${SRC} to the absolute location of your FreeBSD source.
+SRC?= /usr/src
+CDROM_ISO?= closedbsd.iso
+FLASH_IMG?= flash.img
+
+#
+# Build up the $SUBDIR from the source tree components we have installed.
+# Initially:- kernel bin closedbsd sbin share usr.bin usr.sbin
+#
+
+.if exists(${.CURDIR}/bin)
+SUBDIR += bin
+.endif
+.if exists(${.CURDIR}/sbin)
+SUBDIR += sbin
+.endif
+.if exists(${.CURDIR}/share) && !defined(NOSHARE)
+SUBDIR += share
+.endif
+.if exists(${.CURDIR}/usr.bin)
+SUBDIR += usr.bin
+.endif
+.if exists(${.CURDIR}/usr.sbin)
+SUBDIR += usr.sbin
+.endif
+
+.if exists(${.CURDIR}/closedbsd)
+SUBDIR += closedbsd
+.endif
+
+# private closedbsd kernel build directory
+.if exists(${.CURDIR}/kernel)
+SUBDIR += kernel
+.endif
+
+.if defined(NOCLEANDIR)
+CLEANDIR= clean cleandepend
+.else
+CLEANDIR= cleandir
+.endif
+
+SUP?= /usr/local/bin/cvsup
+SUPFLAGS?= -g -L 2 -P -
+.if defined(SUPHOST)
+SUPFLAGS+= -h ${SUPHOST}
+.endif
+
+MAKEOBJDIRPREFIX?= /usr/obj
+TARGET_ARCH?= ${MACHINE_ARCH}
+TARGET?= ${MACHINE}
+.if make(buildworld)
+BUILD_ARCH!= sysctl -n hw.machine_arch
+.if ${MACHINE_ARCH} != ${BUILD_ARCH}
+.error To cross-build, set TARGET_ARCH.
+.endif
+.endif
+.if ${MACHINE_ARCH} == ${TARGET_ARCH}
+OBJTREE= ${MAKEOBJDIRPREFIX}
+.else
+OBJTREE= ${MAKEOBJDIRPREFIX}/${TARGET_ARCH}
+.endif
+WORLDTMP= ${OBJTREE}${.CURDIR}/${MACHINE_ARCH}
+STRICTTMPPATH= ${WORLDTMP}/usr/sbin:${WORLDTMP}/usr/bin:${WORLDTMP}/usr/games
+TMPPATH= ${STRICTTMPPATH}:${PATH}
+OBJFORMAT_PATH?= /usr/libexec
+
+TMPDIR?= /tmp
+TMPPID!= echo $$$$
+INSTALLTMP= ${TMPDIR}/install.${TMPPID}
+
+# ----------------------------------------------------------------------------
+# Steps which need to be performed ahead of anything else will go here.
+# ----------------------------------------------------------------------------
+
+# build-tool and temporary build tree stage
+TMAKEENV= MAKEOBJDIRPREFIX=${OBJTREE} \
+ PATH=${TMPPATH}
+TMAKE= ${TMAKEENV} ${MAKE} -f Makefile.inc1
+
+# world stage
+WMAKEENV= ${CROSSENV} \
+ DESTDIR=${WORLDTMP} \
+ PATH=${TMPPATH}
+WMAKE= ${WMAKEENV} ${MAKE} -f Makefile.inc1
+
+# media stage, propagate the required build environment variables.
+FMAKEENV= ${CROSSENV} \
+ TARGET_ARCH=${TARGET_ARCH} \
+ CDROM_BOOT=${CDROM_BOOT} \
+ CDROM_ISO=${CDROM_ISO} \
+ FLASH_IMG=${FLASH_IMG} \
+ SRC=${SRC} \
+ DESTDIR=${WORLDTMP} \
+ PATH=${TMPPATH}
+FMAKE= ${FMAKEENV} ${MAKE}
+
+# ----------------------------------------------------------------------------
+# Public makefile targets go here.
+# ----------------------------------------------------------------------------
+
+STARTTIME!= LC_ALL=C date
+
+buildworld:
+ @echo "--------------------------------------------------------------"
+ @echo ">>> ClosedBSD/${TARGET_ARCH} buildworld on ${STARTTIME}"
+ @echo "--------------------------------------------------------------"
+ @echo
+ @echo "--------------------------------------------------------------"
+ @echo ">>> Rebuilding the temporary build tree"
+ @echo "--------------------------------------------------------------"
+.if !defined(NOCLEAN)
+ rm -rf ${WORLDTMP}
+.else
+ for dir in bin sbin closedbsd usr.bin usr.sbin ; do \
+ rm -rf ${WORLDTMP}/usr/$$dir; \
+ done
+.endif
+.if !defined(NOCLEAN)
+ @echo "--------------------------------------------------------------"
+ @echo ">>> stage 1: cleaning up the object tree"
+ @echo "--------------------------------------------------------------"
+ cd ${.CURDIR}; ${TMAKE} ${CLEANDIR:S/^/par-/}
+.endif
+ @echo
+ @echo "--------------------------------------------------------------"
+ @echo ">>> stage 2: rebuilding the object tree"
+ @echo "--------------------------------------------------------------"
+ cd ${.CURDIR}; ${TMAKE} par-obj
+ @echo
+ @echo "--------------------------------------------------------------"
+ @echo ">>> stage 3: building everything..."
+ @echo "--------------------------------------------------------------"
+ cd ${.CURDIR}; ${WMAKE} all
+
+iso: buildworld
+ @echo "--------------------------------------------------------------"
+ @echo ">>> ClosedBSD/${TARGET_ARCH} buildiso on ${STARTTIME}"
+ @echo "--------------------------------------------------------------"
+.if !defined(NOCLEAN)
+ @echo "--------------------------------------------------------------"
+ @echo ">>> stage 1: cleaning up the object tree"
+ @echo "--------------------------------------------------------------"
+ cd ${.CURDIR}/release/cdrom; TARGET_MEDIA=CDROM ${FMAKE} ${CLEANDIR}
+.endif
+ @echo
+ @echo "--------------------------------------------------------------"
+ @echo ">>> stage 2: rebuilding the object tree"
+ @echo "--------------------------------------------------------------"
+ cd ${.CURDIR}/release/cdrom; TARGET_MEDIA=CDROM ${FMAKE} obj
+ @echo
+ @echo "--------------------------------------------------------------"
+ @echo ">>> stage 3: building everything..."
+ @echo "--------------------------------------------------------------"
+ cd ${.CURDIR}/release/cdrom/kernel; TARGET_MEDIA=CDROM ${FMAKE} all
+ cd ${.CURDIR}/release/cdrom/monolith; TARGET_MEDIA=CDROM ${FMAKE} all
+ cd ${.CURDIR}/release/cdrom/tree; TARGET_MEDIA=CDROM ${FMAKE} all
+ @echo "--------------------------------------------------------------"
+ @echo ">>> ClosedBSD/${TARGET_ARCH} iso build complete ${STARTTIME}"
+ @echo "--------------------------------------------------------------"
+ @echo "Image file now resides in: ${.OBJDIR}/release/cdrom/tree/${CDROM_ISO}"
+ @echo "Have a nice day."
+ @echo
+
+flash: buildworld
+ @echo "--------------------------------------------------------------"
+ @echo ">>> ClosedBSD/${TARGET_ARCH} buildflash on ${STARTTIME}"
+ @echo "--------------------------------------------------------------"
+.if !defined(NOCLEAN)
+ @echo "--------------------------------------------------------------"
+ @echo ">>> stage 1: cleaning up the object tree"
+ @echo "--------------------------------------------------------------"
+ cd ${.CURDIR}/release/flash; TARGET_MEDIA=FLASH ${FMAKE} ${CLEANDIR}
+.endif
+ @echo
+ @echo "--------------------------------------------------------------"
+ @echo ">>> stage 2: rebuilding the object tree"
+ @echo "--------------------------------------------------------------"
+ cd ${.CURDIR}/release/flash; TARGET_MEDIA=FLASH ${FMAKE} obj
+ @echo
+ @echo "--------------------------------------------------------------"
+ @echo ">>> stage 3: building everything..."
+ @echo "--------------------------------------------------------------"
+ cd ${.CURDIR}/release/flash/kernel; TARGET_MEDIA=FLASH ${FMAKE} all
+ cd ${.CURDIR}/release/flash/monolith; TARGET_MEDIA=FLASH ${FMAKE} all
+ cd ${.CURDIR}/release/flash/tree; TARGET_MEDIA=FLASH ${FMAKE} all
+ @echo "--------------------------------------------------------------"
+ @echo ">>> ClosedBSD/${TARGET_ARCH} flash build complete ${STARTTIME}"
+ @echo "--------------------------------------------------------------"
+ @echo "Image file now resides in: ${.OBJDIR}/release/flash/tree/${CDROM_ISO}"
+ @echo "Have a nice day."
+ @echo
+
+# ----------------------------------------------------------------------------
+# ----------------------------------------------------------------------------
+# Private makefile targets go here.
+# ----------------------------------------------------------------------------
+
+# parallel build and clean magic
+
+.for __target in clean cleandepend cleandir depend obj
+.for entry in ${SUBDIR}
+${entry}.${__target}__D: .PHONY
+ @if test -d ${.CURDIR}/${entry}.${MACHINE_ARCH}; then \
+ ${ECHODIR} "===> ${DIRPRFX}${entry}.${MACHINE_ARCH}"; \
+ edir=${entry}.${MACHINE_ARCH}; \
+ cd ${.CURDIR}/$${edir}; \
+ else \
+ ${ECHODIR} "===> ${DIRPRFX}${entry}"; \
+ edir=${entry}; \
+ cd ${.CURDIR}/$${edir}; \
+ fi; \
+ ${MAKE} ${__target} DIRPRFX=${DIRPRFX}$${edir}/
+.endfor
+par-${__target}: ${SUBDIR:S/$/.${__target}__D/}
+.endfor
+
+.include <bsd.subdir.mk>
Oops, something went wrong.

0 comments on commit 7c54f12

Please sign in to comment.