summaryrefslogtreecommitdiff
path: root/linux/Makefile
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2004-08-17 12:04:58 +0000
committerDave Airlie <airlied@linux.ie>2004-08-17 12:04:58 +0000
commit15026ddc3cbb831343a53fc33f4d4cbeea3e4f98 (patch)
tree340f67a5bc3d400c0ef0a1ee00f162c54c638331 /linux/Makefile
parent05c724faee6dbff27a6a573adc77bd22015444b4 (diff)
merge trunk to branchdrmfntbl-0-0-1-170804
Diffstat (limited to 'linux/Makefile')
-rw-r--r--linux/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/Makefile b/linux/Makefile
index 066766a7..1bb131d8 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -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