BigW Consortium Gitlab

Commit 204831ad by Forest Godfrey

Give KERNEL_SOURCE_DIR the more common name KERNEL_SRC for compatibility

with Yocto (among other build systems)
parent 0315643a
......@@ -13,7 +13,7 @@
DRIVER_NAME := rp_usbdisplay
KERNEL_SOURCE_DIR ?= /lib/modules/`uname -r`/build
KERNEL_SRC ?= /lib/modules/`uname -r`/build
EXTRA_CFLAGS += -I$(PWD)/src -I$(PWD)/../common
......@@ -27,12 +27,12 @@ DRIVER_FILES := src/main.o \
$(DRIVER_NAME)-objs:= $(DRIVER_FILES)
modules:
$(MAKE) -C $(KERNEL_SOURCE_DIR) KCPPFLAGS="$(EXTRA_CFLAGS)" M=$(PWD) modules
$(MAKE) -C $(KERNEL_SRC) KCPPFLAGS="$(EXTRA_CFLAGS)" M=$(PWD) modules
modules_install:
$(MAKE) -C $(KERNEL_SOURCE_DIR) M=$(PWD) modules_install
$(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules_install
install: modules_install
clean:
$(MAKE) -C $(KERNEL_SOURCE_DIR) M=$(PWD) clean
$(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment