From: Hongguang Date: Tue, 24 May 2022 02:17:51 +0000 (-0700) Subject: Fix private modules installing path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b18840db80ef8621a0c6dfdd7c21388939f5ad42;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_dhd-driver.git Fix private modules installing path Bug: 220644706 Test: make and find the private modules in dist. Change-Id: I83004e21f5d2a4f80256f2c660b4dd15fcaa6dc6 --- 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)