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 <chenzc2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2226485
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Reviewed-by: Xingyun Fu <fuxy7@motorola.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
chenzc2 2022-03-25 20:55:48 +08:00 • committed by Zhichao Chen
commit 130ebbbf86

View file

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