Load init.rc based on SOC

P24 proto devices use zuma and devices starting from EVT use zumapro
Init should load proper init.rc based on SOC

Bug: 311016628
Test: flash KM4 proto and make sure init.zuma.rc is loaded.
Change-Id: I3d0bef4ad23cb3f0cda527934e09252a8d34e35a
This commit is contained in:
Zheng Pan 2023-11-16 16:43:49 -08:00
parent b4e5df954a
commit 15c6a436bf
4 changed files with 9 additions and 5 deletions

View file

@ -1,5 +1,5 @@
# Caiman specific init.rc
import /vendor/etc/init/hw/init.zumapro.rc
import /vendor/etc/init/hw/init.${ro.boot.hardware.platform}.rc
on init && property:ro.vendor.factory=1
import /vendor/etc/init/hw/init.factory.rc

View file

@ -1,5 +1,5 @@
# Komodo specific init.rc
import /vendor/etc/init/hw/init.zumapro.rc
import /vendor/etc/init/hw/init.${ro.boot.hardware.platform}.rc
on init && property:ro.vendor.factory=1
import /vendor/etc/init/hw/init.factory.rc

View file

@ -1,5 +1,5 @@
# Tokay specific init.rc
import /vendor/etc/init/hw/init.zumapro.rc
import /vendor/etc/init/hw/init.${ro.boot.hardware.platform}.rc
on init && property:ro.vendor.factory=1
import /vendor/etc/init/hw/init.factory.rc

View file

@ -38,3 +38,7 @@ PRODUCT_COPY_FILES += \
$(TARGET_VENDOR_PERF_CONFIG_PATH)/powerhint-$(TARGET_DEVICE).json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
PRODUCT_COPY_FILES += \
$(TARGET_VENDOR_PERF_CONFIG_PATH)/powerhint-zuma.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint-proto.json
# Copy init.p24.zuma.rc for proto devices
PRODUCT_COPY_FILES += \
device/google/zumapro/conf/init.p24.zuma.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.zuma.rc