diff --git a/mxm_wifiex/wlan_src/BUILD.bazel b/mxm_wifiex/wlan_src/BUILD.bazel new file mode 100644 index 0000000..0aed636 --- /dev/null +++ b/mxm_wifiex/wlan_src/BUILD.bazel @@ -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__", + ], +) diff --git a/mxm_wifiex/wlan_src/Makefile b/mxm_wifiex/wlan_src/Makefile index 353a2bb..376d747 100644 --- a/mxm_wifiex/wlan_src/Makefile +++ b/mxm_wifiex/wlan_src/Makefile @@ -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 ###############################################################