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

Makefile

index ce2c0ecd1699350e0e7bb92c825d070c3c164206..ee4779f4a886150c4d9d04c3be779d4c5b84901f 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}/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/
+       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