From 574cb00c7ba81028fd20fad74a854f24b21eb758 Mon Sep 17 00:00:00 2001 From: Hongguang Date: Mon, 23 May 2022 16:16:58 -0700 Subject: [PATCH] Private modules should be installed into private Bug: 220644706 Test: make and find the private modules in dist. Change-Id: I870ef0ee9ba4a460734b5e2ead23d73f8db7c0f7 --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6640ff9..ce2c0ec 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}/../vendor_lib/modules - cd ${OUT_DIR}/$(M)/; find -name "*.ko" -exec cp {} ${OUT_DIR}/../vendor_lib/modules/ \; - mkdir -p ${OUT_DIR}/../vendor_lib/firmware/video - cp $(KERNEL_SRC)/$(M)/firmware/* ${OUT_DIR}/../vendor_lib/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