Lines Matching defs:KERN_DIR
88 ifndef KERN_DIR
90 KERN_DIR := /lib/modules/$(shell uname -r)/build
91 ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
92 KERN_DIR := /usr/src/linux
93 ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
95 Specify KERN_DIR=<directory> and run Make again)
99 KERN_DIR=<directory> and run Make again.)
102 ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
103 $(error Error: KERN_DIR does not point to a directory)
109 KERN_INCL = $(KERN_DIR)/include
138 $(warning dbg: KERN_DIR = $(KERN_DIR))
205 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) CONFIG_MODULE_SIG= -C $(KERN_DIR) modules
219 ifndef KERN_DIR
220 KERN_DIR := /lib/modules/$(shell uname -r)/build
221 ifeq ($(wildcard $(KERN_DIR)/Makefile),)
222 KERN_DIR := /usr/src/linux
225 ifeq ($(wildcard $(KERN_DIR)/Makefile),)
234 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) -C $(KERN_DIR) clean