Lines Matching defs:KERN_DIR
179 ifndef KERN_DIR
181 KERN_DIR := /lib/modules/$(shell uname -r)/build
182 ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
183 KERN_DIR := /usr/src/linux
184 ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
186 Specify KERN_DIR=<directory> and run Make again)
190 KERN_DIR=<directory> and run Make again.)
193 ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
194 $(error Error: KERN_DIR does not point to a directory)
200 KERN_INCL = $(KERN_DIR)/include
229 $(warning dbg: KERN_DIR = $(KERN_DIR))
298 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) CONFIG_MODULE_SIG= -C $(KERN_DIR) modules
312 ifndef KERN_DIR
313 KERN_DIR := /lib/modules/$(shell uname -r)/build
314 ifeq ($(wildcard $(KERN_DIR)/Makefile),)
315 KERN_DIR := /usr/src/linux
318 ifeq ($(wildcard $(KERN_DIR)/Makefile),)
327 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) -C $(KERN_DIR) clean