From: Guenter Roeck Date: Sat, 5 May 2018 19:03:12 +0000 (-0700) Subject: Makefile: Add support for arch distribution X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=523fcca706ea2ff6eb1154a06afab1f097ac028f;p=groeck-k10temp Makefile: Add support for arch distribution The arch distribution keept System.map in a different location. Try to pull it from the running system. Untested. Signed-off-by: Guenter Roeck --- diff --git a/Makefile b/Makefile index 53d5471..09e3023 100644 --- 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