Skip to content

Commit f91f36d

Browse files
committed
kext code signing
1 parent 96d9f1b commit f91f36d

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

Makefile

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
KEXT= USBHubPowerFix.kext
2-
SUDO= sudo
3-
DESTDIR=/Library/Extensions
1+
KEXT= USBHubPowerFix.kext
2+
CODESIGN= codesign
3+
KEXTUTIL= kextutil
4+
SUDO= sudo
5+
DESTDIR= /Library/Extensions
6+
IDENTITY= E1E40BB5B7277129FCA48576BBC1625463B13386
47

58
all:
69

10+
sign:
11+
${CODESIGN} -s ${IDENTITY} ${KEXT}
12+
13+
check:
14+
${SUDO} ${KEXTUTIL} -t ${KEXT}
15+
16+
clean:
17+
${RM} -r ${KEXT}/Contents/_CodeSignature
18+
719
install:
820
${SUDO} cp -R ${KEXT} ${DESTDIR}
921
${SUDO} chown -R root:wheel ${DESTDIR}/${KEXT}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ Note: This kext is not signed. You need either to [disable SIP](http://apple.sta
3535

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

38-
TBD
38+
1. Modify IDENTITY= in Makefile
39+
2. Run `make sign`

0 commit comments

Comments
 (0)