diff options
author | Dave Airlie <airlied@linux.ie> | 2004-08-17 10:36:46 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2004-08-17 10:36:46 +0000 |
commit | 02ef96053ccbe4c20827ec8006455906e7fb2360 (patch) | |
tree | 9ca83d803f14908888efc83c4394c7a859e451c0 | |
parent | c360d6f4f2075c90d42b109e3da932ac5d69699c (diff) |
2.6.8.1 has changed the links in /lib/modules
-rw-r--r-- | linux-core/Makefile | 4 | ||||
-rw-r--r-- | linux/Makefile | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/linux-core/Makefile b/linux-core/Makefile index 066766a7..1bb131d8 100644 --- a/linux-core/Makefile +++ b/linux-core/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 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 |