mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 19:10:01 +02:00
Add download and extraction scripts for OS X firmware 1.43
This commit is contained in:
30
firmware/Makefile
Normal file
30
firmware/Makefile
Normal file
@@ -0,0 +1,30 @@
|
||||
SHELL = /bin/bash
|
||||
|
||||
DMG=osxupd10.11.2.dmg
|
||||
OSX_DRV:=AppleCameraInterface
|
||||
RANGE=420107885-421933300
|
||||
URL=https://support.apple.com/downloads/DL1849/en_US/$(DMG)
|
||||
|
||||
FILE=./System/Library/Extensions/AppleCameraInterface.kext/Contents/MacOS/$(OSX_DRV)
|
||||
FW_DIR=/usr/lib/firmware/facetimehd
|
||||
|
||||
all: $(OSX_DRV)
|
||||
@./extract-firmware.sh -x "$(OSX_DRV)"
|
||||
|
||||
$(OSX_DRV):
|
||||
@# Ty to wvengen, see: https://github.com/patjak/bcwc_pcie/issues/14#issuecomment-167446787
|
||||
@echo "Dowloading the driver, please wait..."
|
||||
@(curl -s -L -r "$(RANGE)" "$(URL)" | xzcat -q | cpio --format odc -i -d "$(FILE)") &> /dev/null || true
|
||||
@mv "$(FILE)" .
|
||||
@rm -Rf "./System"
|
||||
|
||||
install:
|
||||
@echo "Copying firmware into '$(DESTDIR)/$(FW_DIR)'"
|
||||
@mkdir -p "$(DESTDIR)/$(FW_DIR)"
|
||||
@cp -f "firmware.bin" "$(DESTDIR)/$(FW_DIR)"
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f AppleCamera{Interface,.sys}
|
||||
rm -f firmware.bin
|
||||
|
||||
Reference in New Issue
Block a user