]> git.etc.gen.nz Git - sapphire-remote.git/commitdiff
Import v7.3
authorAndrew Ruthven <puck@catalyst.net.nz>
Sat, 11 Apr 2020 10:54:52 +0000 (22:54 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Sat, 11 Apr 2020 10:54:52 +0000 (22:54 +1200)
Makefile
sapphire.c

index 7aff8edcbea8f68814b13bcca45a21c1b67b4e4a..0a441a231ba7b12069f7ef1103aace9d8db1c5cb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,12 @@ $(INPUT_H):
        @echo
        @exit 1
 
-kmod:
+$(KDIR)/build:
+       [ -e /usr/src/linux-$(KVER)/Makefile ] && sudo ln -sf /usr/src/linux-$(KVER) $@ || exit 0
+       [ -e /usr/src/$(KVER)/Makefile ] && sudo ln -sf /usr/src/$(KVER) $@ || exit 0
+       [ -e $@ ] || exit 1
+
+kmod: $(KDIR)/build
        $(MAKE) -C $(KDIR)/build M=$(CWD) modules
 
 $(MODNAME).ko: $(MODSOURCE) $(MODNAME).h
index 9dfa0f982ae6466a8da104e3af8e3727760d28de..7e3033aae7ad78ae8e43c25ddeba6e1451149a53 100644 (file)
@@ -38,7 +38,7 @@
 #include "sapphire.h"
 
 #define SAPPHIRE_NAME          "sapphire"
-#define SAPPHIRE_VERSION       "7.2"
+#define SAPPHIRE_VERSION       "7.3"
 
 /*
  * "LONGKEY":  Any button can be used to generate a second, different keycode,