Install private modules into private/modules
authorHongguang <hgchen@google.com>
Tue, 24 May 2022 01:20:21 +0000 (18:20 -0700)
committerHongguang <hgchen@google.com>
Tue, 24 May 2022 01:20:21 +0000 (18:20 -0700)
Bug: 220644706
Test: make and find the private modules in dist.
Change-Id: I7be1f94d02a57f6206afd42f2b6801c3be0e641d

Makefile

index c2ee2b5785a2c036412baddce9b2148526fd3820..82ce8e059c6dd7cdef6b0447ad758808b92da374 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}/private
-       cd ${OUT_DIR}/$(M)/; find -name "*.ko" -exec cp {} ${OUT_DIR}/private/ \;
+       mkdir -p ${OUT_DIR}/private/modules
+       cd ${OUT_DIR}/$(M)/; find -name "*.ko" -exec cp {} ${OUT_DIR}/private/modules/ \;
 
 
 clean: