From 07b69961f2291f002f15cc4168726ba1e306914c Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Thu, 12 Nov 2015 07:49:47 +0900 Subject: [PATCH] Fix non-vendor.img configuration. If / is not write-able and system.img contains system/vendor, symlink for `/vendor/ -> /system/vendor/` that is otherwise done in init.rc should be done at build time. BUG=b:25512724 Change-Id: Iaa63d6440373a4fd754a933c9f1960b3787a6d98 --- rootdir/Android.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rootdir/Android.mk b/rootdir/Android.mk index b134f9353..895a25d64 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -48,6 +48,8 @@ LOCAL_POST_INSTALL_CMD := mkdir -p $(addprefix $(TARGET_ROOT_OUT)/, \ ln -sf /storage/self/primary $(TARGET_ROOT_OUT)/sdcard ifdef BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/vendor +else + LOCAL_POST_INSTALL_CMD += ; ln -sf /system/vendor $(TARGET_ROOT_OUT)/vendor endif ifdef BOARD_ROOT_EXTRA_SYMLINKS # BOARD_ROOT_EXTRA_SYMLINKS is a list of :.