mirror of
https://github.com/leifliddy/macbook12-bluetooth-driver.git
synced 2024-10-26 21:59:34 +03:00
rework Makefile
This commit is contained in:
parent
f8bb9b1453
commit
80e41d7767
20
Makefile
20
Makefile
@ -1,16 +1,18 @@
|
||||
ifneq ($(KERNELRELEASE),)
|
||||
KERNELDIR ?= /lib/modules/$(KERNELRELEASE)/build
|
||||
ifdef KERNELRELEASE
|
||||
KERNELDIR := /lib/modules/$(KERNELRELEASE)
|
||||
else
|
||||
## KERNELRELEASE not set.
|
||||
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
|
||||
KERNELDIR := /lib/modules/$(shell uname -r)
|
||||
endif
|
||||
|
||||
all:
|
||||
make -C $(KERNELDIR) M=$(shell pwd)/build/bluetooth modules
|
||||
clean:
|
||||
make -C $(KERNELDIR) M=$(shell pwd)/build/bluetooth clean
|
||||
KERNELBUILD := $(KERNELDIR)/build
|
||||
|
||||
ifeq ($(KERNELRELEASE),)
|
||||
all:
|
||||
make -C $(KERNELBUILD) M=$(shell pwd)/build/bluetooth modules
|
||||
|
||||
clean:
|
||||
make -C $(KERNELBUILD) M=$(shell pwd)/build/bluetooth clean
|
||||
|
||||
ifndef KERNELRELEASE
|
||||
install:
|
||||
cp $(shell pwd)/build/bluetooth/hci_uart.ko /lib/modules/$(shell uname -r)/updates
|
||||
depmod -a
|
||||
|
Loading…
Reference in New Issue
Block a user