Date: Thu, 20 Nov 2003 20:48:11 -0800 (PST) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 42878 for review Message-ID: <200311210448.hAL4mBdb043422@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311210448.hAL4mBdb043422>