Android.bp编译生成 system和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属性说明官方地址

你可能感兴趣的:(Android系统)