Skip to content

Commit

Permalink
kext code signing
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhon committed Dec 7, 2016
1 parent 96d9f1b commit f91f36d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
18 changes: 15 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
KEXT= USBHubPowerFix.kext
SUDO= sudo
DESTDIR=/Library/Extensions
KEXT= USBHubPowerFix.kext
CODESIGN= codesign
KEXTUTIL= kextutil
SUDO= sudo
DESTDIR= /Library/Extensions
IDENTITY= E1E40BB5B7277129FCA48576BBC1625463B13386

all:

sign:
${CODESIGN} -s ${IDENTITY} ${KEXT}

check:
${SUDO} ${KEXTUTIL} -t ${KEXT}

clean:
${RM} -r ${KEXT}/Contents/_CodeSignature

install:
${SUDO} cp -R ${KEXT} ${DESTDIR}
${SUDO} chown -R root:wheel ${DESTDIR}/${KEXT}
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ Note: This kext is not signed. You need either to [disable SIP](http://apple.sta

You need to have Apple Developer Program subscription and [request a kext signing certificate](https://developer.apple.com/contact/kext/).

TBD
1. Modify IDENTITY= in Makefile
2. Run `make sign`

0 comments on commit f91f36d

Please sign in to comment.