From b18840db80ef8621a0c6dfdd7c21388939f5ad42 Mon Sep 17 00:00:00 2001 From: Hongguang Date: Mon, 23 May 2022 19:17:51 -0700 Subject: [PATCH] Fix private modules installing path Bug: 220644706 Test: make and find the private modules in dist. Change-Id: I83004e21f5d2a4f80256f2c660b4dd15fcaa6dc6 --- bcmdhd.100.10.315.x/Makefile | 4 ++-- bcmdhd.101.10.240.x/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bcmdhd.100.10.315.x/Makefile b/bcmdhd.100.10.315.x/Makefile index 78a7ae5..a3d819c 100644 --- a/bcmdhd.100.10.315.x/Makefile +++ b/bcmdhd.100.10.315.x/Makefile @@ -249,8 +249,8 @@ 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}/private/modules - cd ${OUT_DIR}/$(M)/; find -name "*.ko" -exec cp {} ${OUT_DIR}/private/modules/ \; + mkdir -p ${OUT_DIR}/../private/modules + cd ${OUT_DIR}/$(M)/; find -name "*.ko" -exec cp {} ${OUT_DIR}/../private/modules/ \; clean: $(MAKE) -C $(KERNEL_SRC) M=$(M) clean $(KBUILD_OPTIONS) diff --git a/bcmdhd.101.10.240.x/Makefile b/bcmdhd.101.10.240.x/Makefile index 9b15cad..56557f8 100644 --- a/bcmdhd.101.10.240.x/Makefile +++ b/bcmdhd.101.10.240.x/Makefile @@ -244,8 +244,8 @@ 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}/private/modules - cd ${OUT_DIR}/$(M)/; find -name "*.ko" -exec cp {} ${OUT_DIR}/private/modules/ \; + mkdir -p ${OUT_DIR}/../private/modules + cd ${OUT_DIR}/$(M)/; find -name "*.ko" -exec cp {} ${OUT_DIR}/../private/modules/ \; clean: $(MAKE) -C $(KERNEL_SRC) M=$(M) clean $(KBUILD_OPTIONS) -- 2.20.1