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 <chengql2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2021379
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Shunde Jiang <jiangsd2@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
chengql2 2021-07-22 18:37:44 +08:00 • committed by Qiuliang Cheng
commit 61f8bb0bb7

View file

@ -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