Lines Matching defs:KERN_DIR
84 ifndef KERN_DIR
86 KERN_DIR := /lib/modules/$(shell uname -r)/build
87 ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
88 KERN_DIR := /usr/src/linux
89 ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
91 Specify KERN_DIR=<directory> and run Make again)
95 KERN_DIR=<directory> and run Make again.)
98 ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
99 $(error Error: KERN_DIR does not point to a directory)
105 KERN_INCL = $(KERN_DIR)/include
134 $(warning dbg: KERN_DIR = $(KERN_DIR))
201 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) CONFIG_MODULE_SIG= -C $(KERN_DIR) modules
215 ifndef KERN_DIR
216 KERN_DIR := /lib/modules/$(shell uname -r)/build
217 ifeq ($(wildcard $(KERN_DIR)/Makefile),)
218 KERN_DIR := /usr/src/linux
221 ifeq ($(wildcard $(KERN_DIR)/Makefile),)
230 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) -C $(KERN_DIR) clean