LINUXDIR := /lib/modules/$(RUNNING_REL)/build
endif
+ifndef O
+O := $(LINUXDIR)
+endif
+
MACHINE := $(shell uname -m)
# Modules for all architectures
endif
ifneq ($(HAVECONFIG),y)
+ifneq ($(0),$(LINUXDIR))
+GETCONFIG += O=$(O)
+endif
+HAVECONFIG := $(shell if [ -e $(O)/.config ]; then echo y; fi)
+endif
+
+ifneq ($(HAVECONFIG),y)
$(error Cannot find a kernel config file)
endif
LINUXDIR := /lib/modules/$(RUNNING_REL)/build
endif
+ifndef O
+O := $(LINUXDIR)
+endif
+
MACHINE := $(shell uname -m)
# Modules for all architectures
endif
ifneq ($(HAVECONFIG),y)
+ifneq ($(0),$(LINUXDIR))
+GETCONFIG += O=$(O)
+endif
+HAVECONFIG := $(shell if [ -e $(O)/.config ]; then echo y; fi)
+endif
+
+ifneq ($(HAVECONFIG),y)
$(error Cannot find a kernel config file)
endif