2.6.8.1 has changed the links in /lib/modules
authorDave Airlie <airlied@linux.ie>
Tue, 17 Aug 2004 10:36:46 +0000 (10:36 +0000)
committerDave Airlie <airlied@linux.ie>
Tue, 17 Aug 2004 10:36:46 +0000 (10:36 +0000)
linux-core/Makefile
linux/Makefile

index 066766a..1bb131d 100644 (file)
@@ -38,7 +38,9 @@ SHELL=/bin/sh
 ifndef LINUXDIR
 RUNNING_REL := $(shell uname -r)
 
-LINUXDIR := /lib/modules/$(RUNNING_REL)/build
+LINUXDIR := $(shell if [ -e /lib/modules/$(RUNNING_REL)/source ]; then \
+                echo /lib/modules/$(RUNNING_REL)/source; \
+                else echo /lib/modules/$(RUNNING_REL)/build; fi)
 endif
 
 ifndef O
index 066766a..1bb131d 100644 (file)
@@ -38,7 +38,9 @@ SHELL=/bin/sh
 ifndef LINUXDIR
 RUNNING_REL := $(shell uname -r)
 
-LINUXDIR := /lib/modules/$(RUNNING_REL)/build
+LINUXDIR := $(shell if [ -e /lib/modules/$(RUNNING_REL)/source ]; then \
+                echo /lib/modules/$(RUNNING_REL)/source; \
+                else echo /lib/modules/$(RUNNING_REL)/build; fi)
 endif
 
 ifndef O