modularize aocd
Bug: 197585437 Test: boot with aoc started Change-Id: I61560751a5d81816b7ecdc2e1be0eaae025a29e3
This commit is contained in:
parent
df5cec3e17
commit
0f853db94c
5 changed files with 21 additions and 21 deletions
20
aoc/device.mk
Normal file
20
aoc/device.mk
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
aocd
|
||||||
|
|
||||||
|
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs201-sepolicy/aoc
|
||||||
|
|
||||||
|
# If AoC Daemon is not present on this build, load firmware at boot via rc
|
||||||
|
ifeq ($(wildcard vendor/google/whitechapel/aoc/aocd),)
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
device/google/gs201/aoc/conf/init.aoc.nodaemon.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.aoc.rc
|
||||||
|
else
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
device/google/gs201/aoc/conf/init.aoc.daemon.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.aoc.rc
|
||||||
|
endif
|
||||||
|
|
||||||
|
# AoC debug support
|
||||||
|
PRODUCT_PACKAGES_DEBUG += \
|
||||||
|
aocdump \
|
||||||
|
aocutil \
|
||||||
|
aoc_audio_cfg \
|
||||||
|
vp_util
|
|
@ -1,7 +1,6 @@
|
||||||
import /vendor/etc/init/hw/init.gs201.usb.rc
|
import /vendor/etc/init/hw/init.gs201.usb.rc
|
||||||
import android.hardware.drm@1.2-service.widevine.rc
|
import android.hardware.drm@1.2-service.widevine.rc
|
||||||
import init.exynos.sensorhub.rc
|
import init.exynos.sensorhub.rc
|
||||||
import /vendor/etc/init/hw/init.aoc.rc
|
|
||||||
|
|
||||||
service vendor.charger /system/bin/charger
|
service vendor.charger /system/bin/charger
|
||||||
class charger
|
class charger
|
||||||
|
|
21
device.mk
21
device.mk
|
@ -239,15 +239,6 @@ PRODUCT_COPY_FILES += \
|
||||||
device/google/gs201/conf/init.debug.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.debug.rc
|
device/google/gs201/conf/init.debug.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.debug.rc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# If AoC Daemon is not present on this build, load firmware at boot via rc
|
|
||||||
ifeq ($(wildcard vendor/google/whitechapel/aoc/aocd),)
|
|
||||||
PRODUCT_COPY_FILES += \
|
|
||||||
device/google/gs201/conf/init.aoc.nodaemon.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.aoc.rc
|
|
||||||
else
|
|
||||||
PRODUCT_COPY_FILES += \
|
|
||||||
device/google/gs201/conf/init.aoc.daemon.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.aoc.rc
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Recovery files
|
# Recovery files
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
device/google/gs201/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.gs201.rc
|
device/google/gs201/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.gs201.rc
|
||||||
|
@ -394,17 +385,7 @@ PRODUCT_PACKAGES += \
|
||||||
android.hardware.dumpstate@1.1-service.gs201
|
android.hardware.dumpstate@1.1-service.gs201
|
||||||
|
|
||||||
# AoC support
|
# AoC support
|
||||||
PRODUCT_PACKAGES += \
|
include device/google/gs201/aoc/device.mk
|
||||||
aocd \
|
|
||||||
aocutil \
|
|
||||||
aoc_audio_cfg \
|
|
||||||
vp_util
|
|
||||||
|
|
||||||
# AoC debug support
|
|
||||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
|
||||||
PRODUCT_PACKAGES += \
|
|
||||||
aocdump
|
|
||||||
endif
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Audio HALs
|
# Audio HALs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue