]> git.sur5r.net Git - groeck-it87/commitdiff
Support Arch
authormettacrawler <metta.crawler@gmail.com>
Sun, 29 Apr 2018 17:07:08 +0000 (13:07 -0400)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 29 Apr 2018 17:33:30 +0000 (10:33 -0700)
Arch uses /proc/kallsyms and /proc/config.gz by default instead of /boot/System.map* and /boot/config*

Makefile

index de8e0d42a57f75616f98ad8829414521f56b2d66..bb631830f420dd9c21906b3aae023fb26dff553d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,12 @@ endif
 endif
 
 #SYSTEM_MAP    := $(KERNEL_BUILD)/System.map
 endif
 
 #SYSTEM_MAP    := $(KERNEL_BUILD)/System.map
+ifneq ("","$(wildcard /boot/System.map-$(TARGET))")
 SYSTEM_MAP     := /boot/System.map-$(TARGET)
 SYSTEM_MAP     := /boot/System.map-$(TARGET)
+else
+# Arch
+SYSTEM_MAP     := /proc/kallsyms
+endif
 
 DRIVER := it87
 ifneq ("","$(wildcard .git/*)")
 
 DRIVER := it87
 ifneq ("","$(wildcard .git/*)")