Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NKE dependencies



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Apr 20, 2006, at 1:14 PM, Michael Tuexen wrote:

Dear all,

I have a NKE which has a dependancy to com.apple.kernel.
To get it working on 10.4.6 on PPC I have

        <dict>
                <key>com.apple.kernel</key>
                <string>8.6.0</string>
        </dict>

in the corresponding Info.plist file.

I also built the NKE as a universal binary but I figured out
that 10.4.6 on Intel uses 8.6.1.

How can I build a universal binary which loads on both? So how
can I wildcard the last number?


You can't. When you link against the kernel proper, you are limited to that specific version.


What you need to do is link against the specific kpi's you use:

<key>OSBundleLibraries</key>
        <dict>
                <key>com.apple.kpi.libkern</key>
                <string>8.3.0</string>
        <key>com.apple.kpi.mach</key>
                <string>8.3.0</string>
        <key>com.apple.kpi.bsd</key>
                <string>8.3.0</string>
                <key>com.apple.kpi.iokit</key>
                <string>8.3.0</string>
        </dict>


In this example, the kext will load on anything >= 8.3.0.

Furthmore I think the NKE will load on all Tiger systems? So
is it possible to state something like 8.?.? for the version?

Use the kpi's and set the version to 8.0.0.

HTH.

Brian Bergstrand
<http://www.bergstrand.org/brian/>   PGP Key ID: 0xB6C7B6A2


-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin)

iD8DBQFER9R8edHYW7bHtqIRAjSoAKCF001hYBWW+39kb7L6vOjpuc0pkwCfVimH
TzqbRcmhiWrJJsNZYvQNkhE=
=Cd/m
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >NKE dependencies (From: Michael Tuexen <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.