From owner-p4-projects@FreeBSD.ORG Thu Nov 20 20:48:13 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 723CA16A4D0; Thu, 20 Nov 2003 20:48:13 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A3B416A4CF for ; Thu, 20 Nov 2003 20:48:13 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3CFA43F85 for ; Thu, 20 Nov 2003 20:48:11 -0800 (PST) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hAL4mBXJ043425 for ; Thu, 20 Nov 2003 20:48:11 -0800 (PST) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hAL4mBdb043422 for perforce@freebsd.org; Thu, 20 Nov 2003 20:48:11 -0800 (PST) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Thu, 20 Nov 2003 20:48:11 -0800 (PST) Message-Id: <200311210448.hAL4mBdb043422@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Subject: PERFORCE change 42878 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2003 04:48:13 -0000 http://perforce.freebsd.org/chv.cgi?CH=42878 Change 42878 by rwatson@rwatson_powerbook on 2003/11/20 20:47:58 Attempt to include more detailed instructions for building a new XNU on Mac OS X Jaguar. Amazing how painful it is. Affected files ... .. //depot/projects/trustedbsd/sedarwin/bootstrap_instructions.txt#3 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin/bootstrap_instructions.txt#3 (text+ko) ==== @@ -26,16 +26,70 @@ tools are: bootstrap_cmds-35 + Libstreams-23 + cctools-435.4 + + bootstrap_cmds-35 + make ; sudo make install + Libstreams-23 + cctools-435.4 + Edit COMMON_SUBDIRS to libstuff libmacho misc + make RC_OS=macos + sudo cp misc/seg_hack.NEW /usr/local/bin/seg_hack + cd ld + make RC_OS=macos kld_build + sudo cp static_kld/libkld.a /usr/local/lib + sudo ranlib /usr/local/lib/libkld.a + These may also be checked out and installed from the TrustedBSD Perforce repository using the following paths: - //depot/vendor/apple/darwin/apsl/bootstrap_cmds + //depot/vendor/apple/darwin/apsl/... + + Build, install bootstrap_cmds using: + + cd bootstrap_cmds + make ; sudo make install + cd .. + + Copy a header that was left out of the Jaguar header installation: + + sudo cp /usr/include/sys/unistd.h \ + /System/Library/Frameworks/Kernel.framework/Headers/sys/ - Install bootstrap_cmds using: + Build, install Libstreams: + cd Libstreams make ; sudo make install + cd .. + + In the next step, selected parts of cctools must be built and installed + to allow a Darwin kernel to be built on Mac OS X. First, you must + manually edit cctools/Makefile to replace the COMMON_SUBDIRS + definition with: + + COMMON_SUBDIRS=libstuff libmacho misc + Next, build these components: + + cd cctools + make RC_OS=macos + + Next, install seg_hack: + + sudo cp misc/seg_hack.NEW /usr/local/bin/seg_hack + + Next, build and install libkld: + + cd ld + make RC_OS=macos kld_build + sudo cp static_kld/libkld.a /usr/local/lib + sudo ranlib /usr/local/lib/libkld.a + cd ../.. + + You now have the missing bits of the Darwin kernel build installed. + Step 3: Configure TrustedBSD/SEBSD makefiles You will need to customize a file named Makeconfig in the sedarwin @@ -133,6 +187,10 @@ Step 10: Build XNU + NOTE: If you skipped the long and tedious elements of Step 2 above, + the chances are good this step will fail with a variety of hard to + interpret failures. + cd apsl/xnu make