From: Hongguang Date: Tue, 24 May 2022 02:21:03 +0000 (-0700) Subject: Fix private modules install path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3b844791e8e916ddc95a866f20c84bfd0cf2dc02;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_media.git Fix private modules install path Bug: 220644706 Test: make and find the private modules in dist. Change-Id: I6d93347c1617a28e139cd4979ae0b09c960cf684 --- diff --git a/Makefile b/Makefile index ce2c0ec..ee4779f 100644 --- a/Makefile +++ b/Makefile @@ -35,10 +35,10 @@ all: modules modules_install: $(MAKE) INSTALL_MOD_STRIP=1 M=$(M)/drivers -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/firmware/video - cp $(KERNEL_SRC)/$(M)/firmware/* ${OUT_DIR}/private/firmware/video/ + mkdir -p ${OUT_DIR}/../private/modules + cd ${OUT_DIR}/$(M)/; find -name "*.ko" -exec cp {} ${OUT_DIR}/../private/modules/ \; + mkdir -p ${OUT_DIR}/../private/firmware/video + cp $(KERNEL_SRC)/$(M)/firmware/* ${OUT_DIR}/../private/firmware/video/ clean: $(MAKE) -C $(KERNEL_SRC) M=$(M) clean