Fix private modules install path
authorHongguang <hgchen@google.com>
Tue, 24 May 2022 02:23:36 +0000 (19:23 -0700)
committerHongguang <hgchen@google.com>
Tue, 24 May 2022 02:23:36 +0000 (19:23 -0700)
Bug: 220644706
Test: make and find the private modules in dist.
Change-Id: I25d123128fab6a0a3bfcf73de1aadd19a69d1f7a

Makefile

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