Run kextlibs on the Kernel Extension

来源:互联网 发布:三国演义总结知乎 编辑:程序博客网 时间:2024/05/17 02:11

Add Library Declarations


Because kexts are linked at load time, a kext must list its libraries in its information property list with theOSBundleLibraries property. At this stage of creating your kext, you need to find out what those libraries are. The best way to do so is to run thekextlibs tool on your built kext and copy its output into your kext’sInfo.plist file.


kextlibs is a command-line program that you run with the Terminal application. Its purpose is to identify libraries that your kext needs to link against.


$ kextlibs -xml MyKext.kext


$ echo $?


然后把输出替换掉info.plist对应的

<key>OSBundleLibraries</key>

<dict>

部分

0 0
原创粉丝点击