Last active
August 17, 2018 02:08
-
-
Save leiless/9d339a14d5a984db37299be07eaabc7b to your computer and use it in GitHub Desktop.
Generate the XML-format dependencies of kernel extension which used in Info.plist of the kext
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Created 18H17 | |
# | |
# Generate the XML-format dependencies of kernel extension | |
# which used in Info.plist of the kext | |
# | |
if [ $# -lt 1 ]; then | |
echo "kextdeps.sh kext ..." | |
exit 1 | |
fi | |
for KEXT in "$@" | |
do | |
echo "$KEXT:" | |
kextlibs -compatible-versions -unsupported -multdef-symbols -undef-symbols -xml "$KEXT" | |
[ $? -eq 0 ] || exit 2 | |
done | |
#echo "<!-- Put above XML into Info.plist of your kext -->" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment