Re: Building a universal IOKit kext for 10.4 and up
Re: Building a universal IOKit kext for 10.4 and up
- Subject: Re: Building a universal IOKit kext for 10.4 and up
- From: Chris Suter <email@hidden>
- Date: Fri, 18 Sep 2009 19:58:04 +1000
Hi Ron,
On Fri, Sep 18, 2009 at 6:29 PM, Quinn
<email@hidden> wrote:
At 12:06 -0700 17/9/09, Ron Aldrich wrote:
Is there a document that describes the proper build settings for such a beast?
TN2163 hasn't yet been updated to cover 10.6, but it covers the earlier systems comprehensively.
<http://developer.apple.com/mac/library/technotes/tn2006/tn2163.html>
If you have access to the WWDC session videos, there's a session that covers it.
In summary though, here's what you need to do to the build settings:
1. Set base SDK needs to be 10.4.
2. Add an SDK architecture specific for 64 bit Intel set to 10.6.
3. Architectures should be i386, ppc, x86_64
4. Compiler needs to be gcc 4.0 except for 64 bit Intel which can be a later version.
5. Deployment target should be 10.4 with override for 64 bit Intel: 10.6.
6. You need this preprocessor flag for the ppc build: KPI_10_4_0_PPC_COMPAT=1.
You'll also need to fix up your code where things have been deprecated/changed but you should get compiler warnings/errors for those. You'll need to use #ifdefs to fix those. Unfortunately, the availability macros aren't available on the 10.4 SDK so I've defined my own macros to help out. You might be tempted to use the __LP64__ define, but that's not really what you should be switching on since it's the SDK version (MAC_OS_X_VERSION_MAX) that you really want to switch on.
If you get stuck, e-mail me since I've gone through the process myself and I might be able to help.
Kind regards,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden