首页 > 其他分享 >Android 12 平台 如何在vendor下建立目录

Android 12 平台 如何在vendor下建立目录

时间:2022-11-25 19:00:12浏览次数:61  
标签:core vendorimage 12 vendor TARGET dummy image Android

在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




Android 12 平台 如何在vendor下建立目录_v8

标签:core,vendorimage,12,vendor,TARGET,dummy,image,Android
From: https://blog.51cto.com/u_15708279/5887433

相关文章