universal7885: Don't do findstring with TARGET_PRODUCT

* Use makefile flags instead...

Change-Id: Ic520154e8224fa59451a28dd117ee5f99cd46b10
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
roynatech2544 2022-04-16 10:05:02 +09:00
commit 516c1bd804
No known key found for this signature in database
GPG key ID: 50ABF73F0D19445D
3 changed files with 11 additions and 3 deletions

View file

@ -1,5 +1,8 @@
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
TARGET_BOARD_CAMERA_COUNT := 2
TARGET_BOARD_HAS_FP := false
# Inherit common device configuration
$(call inherit-product, device/samsung/universal7885-common/universal7885-common.mk)

View file

@ -1,5 +1,7 @@
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
BOARD_SUPPORTS_EUREKA_FMRADIO := false
# Inherit common device configuration
$(call inherit-product, device/samsung/universal7885-common/universal7885-common.mk)

View file

@ -55,7 +55,8 @@ PRODUCT_COPY_FILES += \
hardware/samsung_slsi/libbt/conf/bt_vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
# Camera
ifeq ($(findstring a10, $(TARGET_PRODUCT)),)
TARGET_BOARD_CAMERA_COUNT ?= 3
ifeq ($(TARGET_BOARD_CAMERA_COUNT), 3)
PRODUCT_PACKAGES += \
android.hardware.camera.provider@2.5-service.exynos7885
else
@ -83,14 +84,16 @@ PRODUCT_PACKAGES += \
android.hardware.drm@1.2.vendor \
android.hardware.drm@1.3.vendor
ifeq ($(findstring a10, $(TARGET_PRODUCT)),)
# Fingerprint
TARGET_BOARD_HAS_FP ?= true
ifeq ($(TARGET_BOARD_HAS_FP), true)
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.3-service.samsung
endif
ifeq ($(findstring a40, $(TARGET_PRODUCT)),)
# Samsung FMRadio impl
BOARD_SUPPORTS_EUREKA_FMRADIO ?= true
ifeq ($(BOARD_SUPPORTS_EUREKA_FMRADIO), true)
PRODUCT_PACKAGES += \
FMRadio
endif