当前位置:   article > 正文

Android.bp编译生成 system和vendor分区两份库_如何将so编译成vendor分区

如何将so编译成vendor分区

在Android.bp中添加vendor_avaiable:ture属性。当然也可以使用vendor:ture属性。
官方解释如下:
vendor bool, whether this module is specific to an SoC (System-On-a-Chip). When set to true, it is installed into /vendor (or /system/vendor if vendor partition does not exist). Use soc_specific instead for better meaning.
vendor_available bool, whether this module should be allowed to be directly depended by other modules with vendor: true, proprietary: true, or vendor_available:true. If set to true, two variants will be built separately, one like normal, and the other limited to the set of libraries and headers that are exposed to /vendor modules. The vendor variant may be used with a different (newer) /system, so it shouldn’t have any unversioned runtime dependencies, or make assumptions about the system that may not be true in the future. If set to false, this module becomes inaccessible from /vendor modules. Default value is true when vndk: {enabled: true} or vendor: true. Nothing happens if BOARD_VNDK_VERSION isn’t set in the BoardConfig.mk

android.bp属性说明官方地址

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/256006
推荐阅读
相关标签
  

闽ICP备14008679号