Private modules should be installed into private
authorHongguang <hgchen@google.com>
Mon, 23 May 2022 23:16:58 +0000 (16:16 -0700)
committerHongguang <hgchen@google.com>
Mon, 23 May 2022 23:16:58 +0000 (16:16 -0700)
Bug: 220644706
Test: make and find the private modules in dist.
Change-Id: I870ef0ee9ba4a460734b5e2ead23d73f8db7c0f7

Makefile

index 6640ff90d2a59b9b660da5669fb06bc797047553..ce2c0ecd1699350e0e7bb92c825d070c3c164206 100644 (file)
--- 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