Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: IODMACommand and Universal KEXT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IODMACommand and Universal KEXT



Hi Peter,

On Feb 12, 2007, at 11:29 PM, Peter Johnson wrote:

I'm trying to migrate our Universal KEXT (PCI
video/audio driver) to use IODMACommand. My problem is
it can't #include <IOKit/IODMACommand.h>. I have the
following config:

Xcode 2.4.1
SDK Path = /Developer/SDKs/MacOSX10.4u.sdk
PER_ARCH_CLAGS_ppc = -DKPI_10_4_0_PPC_COMPAT
SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk
SDKROOT_ppc = /Developer/SDKs/MacOSX10.4.0.sdk

I'm guessing somthing needs to change here? If I
change the SDKROOT_ppc to use 10.4u, it breaks
IOAudioEngine::createUserClient. I'm sure this is
simple and I'm being a noob but what do I set the ppc
SDK path to?

I have a simple unpublished example project showing how to do this. If you'd like it, please send an email to <email@hidden> requesting the SubKEXTDemo sample. This won't cost you a tech support incident.


In short, you have to have two KEXTs. The first one declares a dependency in its OSBundleLibraries on pre-IODMACommand I/O Kit that will load on PowerPC and pre-IODMACommand Intel-based Macs. The second uses IODMACommand and uses the same dependency mechanism to load on just those systems that have IODMACommand.

HTH,
--gc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >IODMACommand and Universal KEXT (From: Peter Johnson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.