refine product make scripts

- allow enable overlayfs data partiton
- stub to extend product definition
- auto detect GPU
This commit is contained in:
Ziyang Zhou
2021-06-25 15:40:27 +00:00
parent 7f2cd6d5a8
commit d54109c53d
5 changed files with 25 additions and 15 deletions

View File

@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
$(call inherit-product-if-exists, product.mk)
PRODUCT_SOONG_NAMESPACES += external/mesa3d
AUDIOSERVER_MULTILIB := first
@@ -28,7 +30,6 @@ PRODUCT_HOST_PACKAGES += \
fs_config
PRODUCT_PACKAGES += \
vncserver \
hwcomposer.redroid \
gralloc.gbm \
gralloc.redroid \
@@ -36,7 +37,7 @@ PRODUCT_PACKAGES += \
libGLESv1_CM_swiftshader \
libGLESv2_swiftshader \
libGLES_mesa \
ipconfigstore \
ipconfigstore \
PRODUCT_PROPERTY_OVERRIDES += \
ro.kernel.qemu=1 \
@@ -89,7 +90,8 @@ PRODUCT_COPY_FILES += \
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
frameworks/native/data/etc/android.hardware.ethernet.xml:/system/etc/permissions/android.hardware.ethernet.xml \
frameworks/native/data/etc/android.hardware.ethernet.xml:/system/etc/permissions/android.hardware.ethernet.xml \
vendor/redroid/gpu_config.sh:$(TARGET_COPY_OUT_VENDOR)/bin/gpu_config.sh \
# Extend heap size we use for dalvik/art runtime
$(call inherit-product, frameworks/native/build/tablet-7in-hdpi-1024-dalvik-heap.mk)