From 130ebbbf864474b012c5cf0104174e76d2c44bc0 Mon Sep 17 00:00:00 2001 From: chenzc2 Date: Fri, 25 Mar 2022 20:55:48 +0800 Subject: [PATCH] oneli: update wl2864c makefile Update the makefile to enable the ko file which has been changed for oneli. Change-Id: I75704e4031bc26cadf76ca63a4cf4e3d3be13d1b Signed-off-by: chenzc2 Reviewed-on: https://gerrit.mot.com/2226485 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shuo Wang Reviewed-by: Guobin Zhang Reviewed-by: Xingyun Fu Reviewed-by: Zhuoran Xu Submit-Approved: Jira Key --- drivers/regulator/wl2864c/Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/wl2864c/Makefile b/drivers/regulator/wl2864c/Makefile index 4191dea22679..365d3fe73a44 100644 --- a/drivers/regulator/wl2864c/Makefile +++ b/drivers/regulator/wl2864c/Makefile @@ -1,10 +1,15 @@ -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 +