[darwinbuild-dev] Building Darwin 9 on a PowerBook G4 for a i386 PC
Dr. Rolf Jansen
rj at surtec.com
Wed Sep 10 17:09:01 PDT 2008
Am 10.09.2008 um 17:43 schrieb William Siegrist:
> On Sep 10, 2008, at 1:27 PM, Dr. Rolf Jansen wrote:
>
>> PowerBook G4 / Mac OS X 10.5.4 / Xcode 3.1
>>
>> Can darwinbuild be used for building Darwin 9.4 for a i386 PC an a
>> PowerBook G4, or is this script meant to build Darwin for Macs only?
>>
>
> DarwinBuild is meant to assist in building darwin projects by
> automatically handling dependencies, selection of build tool, etc.
> I have not done what you're asking about, but it seems possible.
>
> -Bill
OK, I gave it a try:
hdiutil create -size 16g -type UDIF -fs HFSX -volname Builds\
-uid 0 -gid 0 -attach Builds.dmg
sudo vsdbutil -a /Volumes/Builds
cd /Volumes/Builds
sudo -s
mkdir Build9E17
cd Build9E17
darwinbuild -init 9E17
cp .build/9E17.plist .build/i386PC.plist
nano .build/i386PC.plist
### enter and save the following content
// !$*UTF8*$!
{
build = i386PC;
darwin = "Darwin 9.4";
inherits = 9E17;
environment = {
INSTALLED_PRODUCT_ASIDES = YES;
MACOSX_DEPLOYMENT_TARGET = 10.5;
NEXT_ROOT = "";
RC_ARCHS = "i386";
RC_JASPER = YES;
RC_NONARCH_CFLAGS = "-pipe -no-cpp-precomp";
RC_OS = darwin;
RC_PRIVATE = /private;
RC_RELEASE = Leopard;
RC_XBS = YES;
SEPARATE_STRIP = YES;
UNAME_RELEASE = 9.0;
UNAME_SYSNAME = Darwin;
};
}
### continue at the CLI
darwinxref loadIndex .build/i386PC.plist
darwinbuild -load CF
/usr/local/share/darwinbuild/installXcode /Volumes/Builds/Build9E17/
BuildRoot
darwinbuild -build=i386PC xnu
Finally:
[ /SourceCache/xnu/xnu-1228.5.20/ ] make do_build_install RELEASE
I386 /private/var/tmp/xnu/xnu-1228.5.20.obj/RELEASE_I386/.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++
BUILD TIME: 0h 17m 40s
EXIT STATUS: 0
40755 0 0 0 ./System
40755 0 0 0 ./System/Library
40755 0 0 0 ./System/Library/
Extensions
40755 0 0 0 ./System/Library/
Extensions/IPFirewall.kext
7aeb707e56ff26fc9ddf88a91914f77cde48ecfc 100644 0 0 797 ./System/
Library/Extensions/IPFirewall.kext/Info.plist
...
...
...
5975e5ed3daff6e35d8f87637bf29d4188f3ec62 100444 0 0 16 ./usr/share/man/
man9/suulong.9
5975e5ed3daff6e35d8f87637bf29d4188f3ec62 100444 0 0 16 ./usr/share/man/
man9/suword.9
Seems, that I have a i386 Darwin 9.4 kernel now, I will try it out
tomorrow at the PC and then let you know the result.
Best regards
Rolf
More information about the darwinbuild-dev
mailing list