From 523fcca706ea2ff6eb1154a06afab1f097ac028f Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Sat, 5 May 2018 12:03:12 -0700 Subject: [PATCH] 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 --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5