mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2025-01-15 16:25:35 +00:00
MA-20666-1 Kleaf: Add wlan as an external module.
Test: tools/bazel run --lto=thin //common:imx_abi_update_symbol_list Change-Id: I3ed918514ee08dbd376b9a737b47a21badceed77 Signed-off-by: Zhipeng Wang <zhipeng.wang_1@nxp.com>
This commit is contained in:
parent
f84ecea53f
commit
4304ad6450
2 changed files with 24 additions and 4 deletions
21
mxm_wifiex/wlan_src/BUILD.bazel
Normal file
21
mxm_wifiex/wlan_src/BUILD.bazel
Normal file
|
@ -0,0 +1,21 @@
|
|||
# NOTE: THIS FILE IS EXPERIMENTAL FOR THE BAZEL MIGRATION AND NOT USED FOR
|
||||
# YOUR BUILDS CURRENTLY.
|
||||
#
|
||||
# It is not yet the source of truth for your build. If you're looking to modify
|
||||
# the build file, modify the Android.bp file instead. Do *not* modify this file
|
||||
# unless you have coordinated with the team managing the Soong to Bazel
|
||||
# migration.
|
||||
|
||||
load("//build/kernel/kleaf:kernel.bzl", "kernel_module")
|
||||
|
||||
kernel_module(
|
||||
name = "wlan.imx",
|
||||
outs = [
|
||||
"mlan.ko",
|
||||
"moal.ko",
|
||||
],
|
||||
kernel_build = "//common:imx",
|
||||
visibility = [
|
||||
"//common:__pkg__",
|
||||
],
|
||||
)
|
|
@ -28,6 +28,7 @@ LD ?= $(CROSS_COMPILE)ld
|
|||
BACKUP= /root/backup
|
||||
YMD= `date +%Y%m%d%H%M`
|
||||
PWD := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||
M ?= $(shell pwd)
|
||||
|
||||
#############################################################################
|
||||
# Configuration Options
|
||||
|
@ -639,12 +640,10 @@ moal-objs := $(MOALOBJS)
|
|||
else
|
||||
|
||||
default:
|
||||
$(MAKE) -C $(KERNELDIR) M=$(PWD) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) modules
|
||||
$(MAKE) -C $(KERNELDIR) M=$(M) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) modules
|
||||
|
||||
modules_install:
|
||||
$(MAKE) -C $(KERNELDIR) M=$(PWD) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) modules_install
|
||||
|
||||
|
||||
$(MAKE) -C $(KERNELDIR) M=$(M) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) modules_install
|
||||
endif
|
||||
|
||||
###############################################################
|
||||
|
|
Loading…
Reference in a new issue