From 21f4302c39889f042629071ab64170af58df72bd Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sat, 11 Apr 2020 22:54:52 +1200 Subject: [PATCH] Import v7.3 --- Makefile | 7 ++++++- sapphire.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7aff8ed..0a441a2 100644 --- 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 diff --git a/sapphire.c b/sapphire.c index 9dfa0f9..7e3033a 100644 --- a/sapphire.c +++ b/sapphire.c @@ -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, -- 2.30.2