lynx: Add build_flags based properties for SMR/EMR build

Flag: build.RELEASE_IS_SMR
Flag: build.RELEASE_IS_EMR
Flag: build.RELEASE_BASE_OS_LYNX
Bug: 155105803
Change-Id: I3c2d4586accdab96292d2a45b9835b3f49f4255b
This commit is contained in:
Lokesh Kumar Goel 2024-04-19 20:45:52 +00:00
parent ed80b9345a
commit 77bda630a9

View File

@ -237,6 +237,24 @@ endif
PRODUCT_VENDOR_PROPERTIES += \
ro.vendor.build.svn=$(TARGET_SVN)
# Set device family property for SMR
PRODUCT_PROPERTY_OVERRIDES += \
ro.build.device_family=P10C10L10
# Set build properties for SMR builds
ifeq ($(RELEASE_IS_SMR), true)
ifneq (,$(RELEASE_BASE_OS_LYNX))
PRODUCT_BASE_OS := $(RELEASE_BASE_OS_LYNX)
endif
endif
# Set build properties for EMR builds
ifeq ($(RELEASE_IS_EMR), true)
ifneq (,$(RELEASE_BASE_OS_LYNX))
PRODUCT_PROPERTY_OVERRIDES += \
ro.build.version.emergency_base_os=$(RELEASE_BASE_OS_LYNX)
endif
endif
# Set support hide display cutout feature
PRODUCT_PRODUCT_PROPERTIES += \
ro.support_hide_display_cutout=true