Skip to content

Commit

Permalink
Script: updated spi module target name
Browse files Browse the repository at this point in the history
  • Loading branch information
ppaulweber committed Sep 6, 2019
1 parent 01ab827 commit 6471ed7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ linux-module-bce:
git clone $(BCE_SOURCES) $@
(cd $@; git checkout $(BCE_VERSION))

linux-module-applespi:
linux-module-spi:
@echo "-- Fetching SPI Module"
git clone $(SPI_SOURCES) $@
(cd $@; git checkout $(SPI_VERSION))


build: $(KERNEL) patch linux-module-bce linux-module-applespi
build: $(KERNEL) patch linux-module-bce linux-module-spi
@echo "-- Compiling Linux Kernel"
(cd $(KERNEL); make)

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

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

Expand All @@ -75,17 +75,17 @@ install-kernel: /boot/$(PREFIX)-$(POSTFIX) /etc/mkinitcpio.d/linux-mba.preset
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/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 "-- Installing spi modules"
cp -f linux-module-spi/apple-ibridge.ko $(MODULE)/kernel/extra/
cp -f linux-module-spi/apple-ib-tb.ko $(MODULE)/kernel/extra/
cp -f linux-module-spi/apple-ib-als.ko $(MODULE)/kernel/extra/
@echo "-- Updating Linux kernel module dependencies"
depmod -a $(UNAME)

install-systemd:
@echo "-- Installing systemd configuration"
cp -f setup-etc-modules-load.d-bce.conf /etc/modules-load.d/bce.conf
cp -f setup-etc-modules-load.d-applespi.conf /etc/modules-load.d/applespi.conf
cp -f setup-etc-modules-load.d-spi.conf /etc/modules-load.d/spi.conf
cp -f setup-usr-share-alsa-cards-apple_t2.conf /usr/share/alsa/cards/AppleT2.conf
cp -f setup-usr-lib-systemd-system-brcmfmac.service /usr/lib/systemd/system/brcmfmac.service

Expand Down
File renamed without changes.

0 comments on commit 6471ed7

Please sign in to comment.