在alps-mp-s0.mp1-V8.26版本以在vendor下创建dummy举例,主要是在创建vendor.img的过程中创建dummy文件夹:
build/make:
diff --git a/core/Makefile b/core/Makefile
index 2d56edb9ee..720c3e13b1100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -3103,6+3103,7@@ BUILT_VENDORIMAGE_TARGET := $(PRODUCT_OUT)/vendor.img
define build-vendorimage-target
$(call pretty,"Target vendor fs image: $(INSTALLED_VENDORIMAGE_TARGET)")
@mkdir-p $(TARGET_OUT_VENDOR)
+@mkdir-p $(TARGET_OUT_VENDOR)/dummy
@mkdir-p $(vendorimage_intermediates) && rm -rf
$(vendorimage_intermediates)/vendor_image_info.txt
$(call generate-image-prop-dictionary,
$(vendorimage_intermediates)/vendor_image_info.txt,vendor,skip_fsck=true)
PATH=$(INTERNAL_USERIMAGES_BINARY_PATHS):$PATH \
Test:
rootfs下的vendor实际是挂载的vendor.img所在分区,而非vendor.img的内容直接存放在rootfs下的vendor中:
# ls vendor/
app bin build.prop dummy etc firmware lib lib64 lost+found odm odm_dlkm
overlay priv-app res vendor_dlkm