]> git.sur5r.net Git - groeck-k10temp/commitdiff
Makefile: Add support for arch distribution master
authorGuenter Roeck <linux@roeck-us.net>
Sat, 5 May 2018 19:03:12 +0000 (12:03 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 5 May 2018 19:03:12 +0000 (12:03 -0700)
The arch distribution keept System.map in a different location.
Try to pull it from the running system.

Untested.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Makefile

index 53d54717ef462a45245c9cf868478cbad9af5486..09e30233f8c9488d5b24d7e161344e6337cef7bb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,12 @@ KERNEL_BUILD := $(KERNEL_MODULES)/build
 endif
 endif
 
+ifneq ("","$(wildcard /boot/System.map-$(TARGET))")
 SYSTEM_MAP     := /boot/System.map-$(TARGET)
+else
+# Arch
+SYSTEM_MAP     := /proc/kallsyms
+endif
 
 DRIVER := k10temp