Merge "Define BOARD_API_LEVEL and BOARD_API_LEVEL_FROZEN" into main
This commit is contained in:
@@ -988,6 +988,21 @@ ifneq (,$(_unsupported_systemsdk_versions))
|
||||
Supported versions are $(PLATFORM_SYSTEMSDK_VERSIONS))
|
||||
endif
|
||||
|
||||
###########################################
|
||||
# BOARD_API_LEVEL for vendor API surface
|
||||
ifdef RELEASE_BOARD_API_LEVEL
|
||||
ifdef BOARD_API_LEVEL
|
||||
$(error BOARD_API_LEVEL must not set manully. The build system automatically sets this value.)
|
||||
endif
|
||||
BOARD_API_LEVEL := $(RELEASE_BOARD_API_LEVEL)
|
||||
.KATI_READONLY := BOARD_API_LEVEL
|
||||
|
||||
ifdef RELEASE_BOARD_API_LEVEL_FROZEN
|
||||
BOARD_API_LEVEL_FROZEN := true
|
||||
.KATI_READONLY := BOARD_API_LEVEL_FROZEN
|
||||
endif
|
||||
endif
|
||||
|
||||
###########################################
|
||||
# Handle BUILD_BROKEN_USES_BUILD_*
|
||||
|
||||
|
10
core/main.mk
10
core/main.mk
@@ -293,16 +293,22 @@ endif
|
||||
|
||||
# Vendors with GRF must define BOARD_SHIPPING_API_LEVEL for the vendor API level.
|
||||
# This must not be defined for the non-GRF devices.
|
||||
# The values of the GRF properties will be verified by post_process_props.py
|
||||
ifdef BOARD_SHIPPING_API_LEVEL
|
||||
ADDITIONAL_VENDOR_PROPERTIES += \
|
||||
ro.board.first_api_level=$(BOARD_SHIPPING_API_LEVEL)
|
||||
endif
|
||||
|
||||
# To manually set the vendor API level of the vendor modules, BOARD_API_LEVEL can be used.
|
||||
# The values of the GRF properties will be verified by post_process_props.py
|
||||
# Build system set BOARD_API_LEVEL to show the api level of the vendor API surface.
|
||||
# This must not be altered outside of build system.
|
||||
ifdef BOARD_API_LEVEL
|
||||
ADDITIONAL_VENDOR_PROPERTIES += \
|
||||
ro.board.api_level=$(BOARD_API_LEVEL)
|
||||
endif
|
||||
# BOARD_API_LEVEL_FROZEN is true when the vendor API surface is frozen.
|
||||
ifdef BOARD_API_LEVEL_FROZEN
|
||||
ADDITIONAL_VENDOR_PROPERTIES += \
|
||||
ro.board.api_frozen=$(BOARD_API_LEVEL_FROZEN)
|
||||
endif
|
||||
|
||||
# Set build prop. This prop is read by ota_from_target_files when generating OTA,
|
||||
|
Reference in New Issue
Block a user