From 3b844791e8e916ddc95a866f20c84bfd0cf2dc02 Mon Sep 17 00:00:00 2001 From: Hongguang Date: Mon, 23 May 2022 19:21:03 -0700 Subject: [PATCH] Fix private modules install path Bug: 220644706 Test: make and find the private modules in dist. Change-Id: I6d93347c1617a28e139cd4979ae0b09c960cf684 --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.20.1