Skip to content

Commit

Permalink
Module: updated applespi to 'mbp15' branch
Browse files Browse the repository at this point in the history
* fixed corresponding modules to be installed and loaded
  • Loading branch information
ppaulweber committed Sep 6, 2019
1 parent 3c79c44 commit ef16b2d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ BCE_SOURCES=https://github.com/MCMrARM/mbp2018-bridge-drv
BCE_VERSION=master

SPI_SOURCES=https://github.com/roadrunner2/macbook12-spi-driver
SPI_VERSION=master
SPI_VERSION=mbp15

default: build

Expand Down Expand Up @@ -55,11 +55,11 @@ build: $(KERNEL) patch linux-module-bce linux-module-applespi

build-module-bce: linux-module-bce
@echo "-- Compiling BCE Module"
make -C $(PWD)/$(KERNEL) M=$(PWD)/$@ modules
make -C $(PWD)/$(KERNEL) M=$(PWD)/$^ modules

build-module-applespi: linux-module-applespi
@echo "-- Compiling SPI Module"
make -C $(PWD)/$(KERNEL) M=$(PWD)/$@ modules
make -C $(PWD)/$(KERNEL) M=$(PWD)/$^ modules


install: install-kernel install-modules install-systemd
Expand All @@ -76,7 +76,9 @@ install-modules: $(MODULE)/kernel/extra
@echo "-- Installing bce module"
cp -f linux-module-bce/bce.ko $(MODULE)/kernel/extra/
@echo "-- Installing applespi module"
cp -f linux-module-applespi/applespi.ko $(MODULE)/kernel/extra/
cp -f linux-module-applespi/apple-ibridge.ko $(MODULE)/kernel/extra/
cp -f linux-module-applespi/apple-ib-tb.ko $(MODULE)/kernel/extra/
cp -f linux-module-applespi/apple-ib-als.ko $(MODULE)/kernel/extra/
@echo "-- Updating Linux kernel module dependencies"
depmod -a $(UNAME)

Expand Down
6 changes: 4 additions & 2 deletions setup-etc-modules-load.d-applespi.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Load applespi.ko at boot
applespi
# Load apple-ibridge.ko at boot
apple-ibridge
apple-ib-tb
apple-ib-als

0 comments on commit ef16b2d

Please sign in to comment.