refine product make scripts
- allow enable overlayfs data partiton - stub to extend product definition - auto detect GPU
This commit is contained in:
@@ -1,14 +1,28 @@
|
||||
on early-init
|
||||
mount debugfs debugfs /sys/kernel/debug mode=755
|
||||
|
||||
mount none /system/etc /etc bind rec # docker fix
|
||||
mount sysfs sysfs /sys rw remount # ueventd fix
|
||||
|
||||
# inputflinger require this dir
|
||||
mkdir /dev/input
|
||||
|
||||
exec - root root -- /vendor/bin/gpu_config.sh
|
||||
|
||||
|
||||
# setup overlay data partition
|
||||
on early-init && property:ro.kernel.redroid.overlay=1
|
||||
mkdir /data-diff/upper
|
||||
rmdir /data-diff/work
|
||||
mkdir /data-diff/work
|
||||
|
||||
mount overlay overlay /data lowerdir=/data-base,upperdir=/data-diff/upper,workdir=/data-diff/work
|
||||
|
||||
|
||||
on init
|
||||
write /data/.empty 0
|
||||
mount none /data/.empty /proc/vmallocinfo bind # lxcfs?
|
||||
|
||||
# fix for WSL2
|
||||
mkdir /dev/input
|
||||
|
||||
setprop gralloc.gbm.device /dev/dri/renderD128
|
||||
|
||||
on post-fs-data
|
||||
# fix for static IP, must after post-fs-data and before netd
|
||||
|
||||
@@ -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 \
|
||||
@@ -90,6 +91,7 @@ PRODUCT_COPY_FILES += \
|
||||
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 \
|
||||
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)
|
||||
|
||||
@@ -10,8 +10,7 @@ BUILD_EMULATOR_OPENGL := false
|
||||
# use seperate vendor partition
|
||||
TARGET_COPY_OUT_VENDOR := vendor
|
||||
|
||||
# TODO add panfrost
|
||||
BOARD_GPU_DRIVERS := freedreno lima virgl radeonsi
|
||||
BOARD_GPU_DRIVERS := virgl radeonsi
|
||||
|
||||
DEVICE_MANIFEST_FILE := device/redroid/manifest.xml
|
||||
PRODUCT_ENFORCE_VINTF_MANIFEST := true
|
||||
|
||||
@@ -7,8 +7,7 @@ MINIMAL_FONT_FOOTPRINT := false
|
||||
# use seperate vendor partition
|
||||
TARGET_COPY_OUT_VENDOR := vendor
|
||||
|
||||
# i915g soong build error
|
||||
BOARD_GPU_DRIVERS := i915 i965 nouveau kmsro r300g r600g virgl vmwgfx etnaviv iris tegra radeonsi
|
||||
BOARD_GPU_DRIVERS := i915 i965 r300g r600g virgl iris radeonsi
|
||||
|
||||
DEVICE_MANIFEST_FILE := device/redroid/manifest.xml
|
||||
PRODUCT_ENFORCE_VINTF_MANIFEST := true
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
gralloc.minigbm \
|
||||
libGLES_mesa
|
||||
Reference in New Issue
Block a user