From 61f8bb0bb757eebc92d02bdb2bab8046748ec85d Mon Sep 17 00:00:00 2001 From: chengql2 Date: Thu, 22 Jul 2021 18:37:44 +0800 Subject: [PATCH] goodix_fod_mmi.ko: Update Makefile to compat kernel 5.10 motorola/kernel/modules/drivers/input/misc/goodix_fod_mmi/Makefile: updated to compat kernel 5.10 For Rogue, on SM8450, with kernel 5.10 based, kernel modules should use the new version of Makefile. Change-Id: I5094768f8d86179b981c07a1a15710555d3bad83 Signed-off-by: chengql2 Reviewed-on: https://gerrit.mot.com/2021379 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang Reviewed-by: Shunde Jiang Submit-Approved: Jira Key --- drivers/input/misc/goodix_fod_mmi/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/input/misc/goodix_fod_mmi/Makefile b/drivers/input/misc/goodix_fod_mmi/Makefile index 4191dea22679..bfbdc14740ef 100644 --- a/drivers/input/misc/goodix_fod_mmi/Makefile +++ b/drivers/input/misc/goodix_fod_mmi/Makefile @@ -1,10 +1,14 @@ -KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build +all: modules -all: - $(MAKE) -C $(KERNEL_SRC) M=$(shell pwd) modules $(KBUILD_OPTIONS) +modules: + $(MAKE) -C $(KERNEL_SRC) M=$(M) modules $(KBUILD_OPTIONS) modules_install: - $(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(shell pwd) modules_install + $(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(M) modules_install + +%: + $(MAKE) -C $(KERNEL_SRC) M=$(M) $@ $(KBUILD_OPTIONS) clean: - $(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean + rm -f *.o *.ko *.mod.c *.mod.o *~ .*.cmd Module.symvers + rm -rf .tmp_versions