modularize aocd

Bug: 197585437
Test: boot with aoc started
Change-Id: I61560751a5d81816b7ecdc2e1be0eaae025a29e3
This commit is contained in:
Adam Shih 2021-08-24 11:36:31 +08:00
parent df5cec3e17
commit 0f853db94c
5 changed files with 21 additions and 21 deletions

View file

@ -0,0 +1 @@
# AoC firmware will be loaded by Daemon

View file

@ -0,0 +1,3 @@
# Load AoC firmware and boot
on property:vendor.all.modules.ready=1
write /sys/devices/platform/19000000.aoc/firmware aoc.bin

20
aoc/device.mk Normal file
View 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