Merge "rootdir: Allow board specific folders and symlinks in root directory"
This commit is contained in:
commit
6e699df21e
1 changed files with 10 additions and 6 deletions
|
|
@ -41,17 +41,21 @@ endif
|
||||||
# because init.rc is conditionally included.
|
# because init.rc is conditionally included.
|
||||||
#
|
#
|
||||||
# create some directories (some are mount points) and symlinks
|
# create some directories (some are mount points) and symlinks
|
||||||
local_post_install_cmd_base := mkdir -p $(addprefix $(TARGET_ROOT_OUT)/, \
|
LOCAL_POST_INSTALL_CMD := mkdir -p $(addprefix $(TARGET_ROOT_OUT)/, \
|
||||||
sbin dev proc sys system data oem acct cache config storage mnt root); \
|
sbin dev proc sys system data oem acct cache config storage mnt root $(BOARD_ROOT_EXTRA_FOLDERS)); \
|
||||||
ln -sf /system/etc $(TARGET_ROOT_OUT)/etc; \
|
ln -sf /system/etc $(TARGET_ROOT_OUT)/etc; \
|
||||||
ln -sf /sys/kernel/debug $(TARGET_ROOT_OUT)/d; \
|
ln -sf /sys/kernel/debug $(TARGET_ROOT_OUT)/d; \
|
||||||
ln -sf /storage/self/primary $(TARGET_ROOT_OUT)/sdcard
|
ln -sf /storage/self/primary $(TARGET_ROOT_OUT)/sdcard
|
||||||
ifdef BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE
|
ifdef BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE
|
||||||
LOCAL_POST_INSTALL_CMD := $(local_post_install_cmd_base); mkdir -p $(TARGET_ROOT_OUT)/vendor
|
LOCAL_POST_INSTALL_CMD += ; mkdir -p $(TARGET_ROOT_OUT)/vendor
|
||||||
else
|
endif
|
||||||
LOCAL_POST_INSTALL_CMD := $(local_post_install_cmd_base)
|
ifdef BOARD_ROOT_EXTRA_SYMLINKS
|
||||||
|
# BOARD_ROOT_EXTRA_SYMLINKS is a list of <target>:<link_name>.
|
||||||
|
LOCAL_POST_INSTALL_CMD += $(foreach s, $(BOARD_ROOT_EXTRA_SYMLINKS),\
|
||||||
|
$(eval p := $(subst :,$(space),$(s)))\
|
||||||
|
; mkdir -p $(dir $(TARGET_ROOT_OUT)/$(word 2,$(p))) \
|
||||||
|
; ln -sf $(word 1,$(p)) $(TARGET_ROOT_OUT)/$(word 2,$(p)))
|
||||||
endif
|
endif
|
||||||
local_post_install_cmd_base :=
|
|
||||||
|
|
||||||
include $(BUILD_SYSTEM)/base_rules.mk
|
include $(BUILD_SYSTEM)/base_rules.mk
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue