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

Makefile

index 9eaeff1ec9b155b572b6c209495c4eda6de2f543..c2ee2b5785a2c036412baddce9b2148526fd3820 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -23,8 +23,8 @@ all:
 modules_install:
        @echo "$(MAKE) INSTALL_MOD_STRIP=1 M=$(M) -C $(KERNEL_SRC) modules_install"
        @$(MAKE) INSTALL_MOD_STRIP=1 M=$(M) -C $(KERNEL_SRC) modules_install
-       mkdir -p ${OUT_DIR}/../vendor_lib
-       cd ${OUT_DIR}/$(M)/; find -name "*.ko" -exec cp {} ${OUT_DIR}/../vendor_lib/ \;
+       mkdir -p ${OUT_DIR}/private
+       cd ${OUT_DIR}/$(M)/; find -name "*.ko" -exec cp {} ${OUT_DIR}/private/ \;
 
 
 clean: