Update GCH configuration for gs101. am: f7395d2bf5 am: e976e00eb8

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14687087

Change-Id: I2672bd6c74f8db26f6e0d2639df35907c663264e
This commit is contained in:
Krzysztof Kosiński 2021-05-25 05:27:02 +00:00 committed by Automerger Merge Worker
commit 5730dbeb7a

View file

@ -492,9 +492,6 @@ else
LOCAL_TARGET_PRODUCT := slider
endif
SOONG_CONFIG_NAMESPACES += lyric
SOONG_CONFIG_lyric += use_lyric_camera_hal
SOONG_CONFIG_lyric_use_lyric_camera_hal := true
SOONG_CONFIG_NAMESPACES += google3a_config
SOONG_CONFIG_google3a_config += \
@ -508,11 +505,25 @@ SOONG_CONFIG_google3a_config_gcam_awb := true
SOONG_CONFIG_google3a_config_ghawb_truetone := true
SOONG_CONFIG_google3a_config_target_device := $(LOCAL_TARGET_PRODUCT)
# Determine if Lyric is in the tree, and only have GCH build against it
# if it is. Cases when Lyric isn't going to be in the tree:
# - Non-pixel gs101 devices that exclude vendor/google/services/LyricCameraHAL/src (none as of now)
# - master-without-vendor and other types of AOSP builds (those won't built GCH either, but need this to actually start building)
#
# Builds that will have it are
# - Regular gs101 builds
# - PDK gs101 builds because they still have vendor/google/services/LyricCameraHAL/src
ifneq ($(wildcard vendor/google/services/LyricCameraHAL/src),)
SOONG_CONFIG_NAMESPACES += lyric
SOONG_CONFIG_lyric += use_lyric_camera_hal
SOONG_CONFIG_lyric_use_lyric_camera_hal := true
# Camera HAL library selection
SOONG_CONFIG_NAMESPACES += gch
SOONG_CONFIG_gch += feature
# Disable Legacy common hal modules for whi
SOONG_CONFIG_gch_feature := use_lyric_hal
SOONG_CONFIG_gch += hwl_library
SOONG_CONFIG_gch_hwl_library := lyric
endif
# WiFi
PRODUCT_PACKAGES += \