summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2020-08-25 16:46:34 -0700
committerYifan Hong <elsk@google.com>2020-08-25 18:02:23 -0700
commit6373d11b215d77d90c2e82dba94e9ccc30856845 (patch)
tree2163ddcc2a27d0d0d957bfd7b7967ed0f4e3a55a
parent909219ccc294fe61582f3c3da953a176a3d16e82 (diff)
rootdir: Add modules directory
... as the mount point for the modules partition. If the partition does not exist, just leave the directory empty. Test: on CF check /proc/mounts Bug: 163543381 Change-Id: I2fa96199a029179395a2d655937728f4275ba2b3
-rw-r--r--rootdir/Android.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/rootdir/Android.mk b/rootdir/Android.mk
index 77fa94e73..81dba1f30 100644
--- a/rootdir/Android.mk
+++ b/rootdir/Android.mk
@@ -141,6 +141,9 @@ LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/odm_dlkm
# via /odm/lib/modules directly.
LOCAL_POST_INSTALL_CMD += ; ln -sf /odm/odm_dlkm/etc $(TARGET_ROOT_OUT)/odm_dlkm/etc
+# For /modules partition.
+LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/modules
+
ifdef BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE
LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/cache
else