summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXindong Xu <xindong.xu@amlogic.com>2020-04-24 16:30:28 +0800
committerXindong Xu <xindong.xu@amlogic.com>2020-05-08 15:22:58 +0800
commit7850a0a08c41d77fab1b9106d5ef1c5acb9a993f (patch)
tree7d0a33583579d6df4ba5432d2b8b9e04a3efcb9f
parent12cae11ecf31c225807745af5a3f36403f3cbf10 (diff)
downloaddhd-driver-7850a0a08c41d77fab1b9106d5ef1c5acb9a993f.tar.gz
kernel_build: support standalone build for 4.9 + R [4/9]
PD#SWPL-23333 Problem: need to support standalone build for 4.9 + R Solution: support standalone build for 4.9 + R Verify: deadpool Change-Id: I141c898ec9eb2aed097caf78ff025d5888cc4866
-rw-r--r--bcmdhd.100.10.315.x/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/bcmdhd.100.10.315.x/Makefile b/bcmdhd.100.10.315.x/Makefile
index af14ef2..88d5475 100644
--- a/bcmdhd.100.10.315.x/Makefile
+++ b/bcmdhd.100.10.315.x/Makefile
@@ -208,11 +208,21 @@ ARCH ?= arm64
CROSS_COMPILE ?=aarch64-linux-gnu-
KDIR ?=../../../../../../common
-all: bcmdhd_sdio bcmdhd_usb
+#all: bcmdhd_sdio bcmdhd_usb
+all: bcmdhd_sdio
+
+EXTRA_CFLAGS += -I$(KERNEL_SRC)/$(M)/include -I$(KERNEL_SRC)/$(M)/
+modules_install:
+ @$(MAKE) INSTALL_MOD_STRIP=1 M=$(M) -C $(KERNEL_SRC) modules_install
+ mkdir -p ${OUT_DIR}/../vendor_lib/modules
+ cd ${OUT_DIR}/$(M)/; find -name "*.ko" -exec cp {} ${OUT_DIR}/../vendor_lib/modules/ \;
+
+clean:
+ $(MAKE) -C $(KERNEL_SRC) M=$(M) clean $(KBUILD_OPTIONS)
bcmdhd_sdio:
- $(MAKE) -C $(KDIR) M=$(PWD) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) modules CONFIG_BCMDHD_SDIO=y
- mv dhd.ko dhd_sdio.ko
+ $(MAKE) -C $(KERNEL_SRC) M=$(M) CONFIG_DHD_USE_STATIC_BUF=y CONFIG_BCMDHD_SDIO=y modules
+ #mv dhd.ko dhd_sdio.ko
bcmdhd_usb:
$(MAKE) -C $(KDIR) M=$(PWD) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) modules CONFIG_BCMDHD_USB=y