]> git.sur5r.net Git - groeck-it87/blobdiff - Makefile
Add driver removal notice
[groeck-it87] / Makefile
index 09ccc89f335d6fb2490555bb1697eca70c317fd7..bb631830f420dd9c21906b3aae023fb26dff553d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
 # For building for the current running version of Linux
+ifndef TARGET
 TARGET         := $(shell uname -r)
+endif
 # Or specific version
 #TARGET                := 2.6.33.5
+
 KERNEL_MODULES := /lib/modules/$(TARGET)
 
 ifneq ("","$(wildcard /usr/src/linux-headers-$(TARGET)/*)")
@@ -17,7 +20,12 @@ endif
 endif
 
 #SYSTEM_MAP    := $(KERNEL_BUILD)/System.map
+ifneq ("","$(wildcard /boot/System.map-$(TARGET))")
 SYSTEM_MAP     := /boot/System.map-$(TARGET)
+else
+# Arch
+SYSTEM_MAP     := /proc/kallsyms
+endif
 
 DRIVER := it87
 ifneq ("","$(wildcard .git/*)")