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))
204 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) CONFIG_MODULE_SIG= -C $(KERN_DIR) modules
217 ifndef KERN_DIR
218 KERN_DIR := /lib/modules/$(shell uname -r)/build
219 ifeq ($(wildcard $(KERN_DIR)/Makefile),)
220 KERN_DIR := /usr/src/linux
223 ifeq ($(wildcard $(KERN_DIR)/Makefile),)
232 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) -C $(KERN_DIR) clean