diff --git a/core/board_config.mk b/core/board_config.mk index 25e0643fca..4424517bcf 100644 --- a/core/board_config.mk +++ b/core/board_config.mk @@ -973,15 +973,6 @@ define check_vndk_version $(if $(wildcard $(vndk_path)/*/Android.bp),,$(error VNDK version $(1) not found)) endef -ifeq ($(KEEP_VNDK),true) -ifeq ($(BOARD_VNDK_VERSION),$(PLATFORM_VNDK_VERSION)) - $(error BOARD_VNDK_VERSION is equal to PLATFORM_VNDK_VERSION; use BOARD_VNDK_VERSION := current) -endif -ifneq ($(BOARD_VNDK_VERSION),current) - $(call check_vndk_version,$(BOARD_VNDK_VERSION)) -endif -endif - TARGET_VENDOR_TEST_SUFFIX := /vendor ifeq (,$(TARGET_BUILD_UNBUNDLED)) diff --git a/core/main.mk b/core/main.mk index 051ebdd812..bc8adde055 100644 --- a/core/main.mk +++ b/core/main.mk @@ -221,20 +221,6 @@ ADDITIONAL_SYSTEM_PROPERTIES += $(foreach s,$(SANITIZE_TARGET),ro.sanitize.$(s)= # mount system_other partition. ADDITIONAL_SYSTEM_PROPERTIES += ro.postinstall.fstab.prefix=/system -# ----------------------------------------------------------------- -# ADDITIONAL_VENDOR_PROPERTIES will be installed in vendor/build.prop if -# property_overrides_split_enabled is true. Otherwise it will be installed in -# /system/build.prop -ifeq ($(KEEP_VNDK),true) -ifdef BOARD_VNDK_VERSION - ifeq ($(BOARD_VNDK_VERSION),current) - ADDITIONAL_VENDOR_PROPERTIES := ro.vndk.version=$(PLATFORM_VNDK_VERSION) - else - ADDITIONAL_VENDOR_PROPERTIES := ro.vndk.version=$(BOARD_VNDK_VERSION) - endif -endif -endif - # Add cpu properties for bionic and ART. ADDITIONAL_VENDOR_PROPERTIES += ro.bionic.arch=$(TARGET_ARCH) ADDITIONAL_VENDOR_PROPERTIES += ro.bionic.cpu_variant=$(TARGET_CPU_VARIANT_RUNTIME) @@ -346,18 +332,6 @@ ADDITIONAL_VENDOR_PROPERTIES += \ ro.build.ab_update=$(AB_OTA_UPDATER) endif -# Set ro.product.vndk.version to PLATFORM_VNDK_VERSION only if -# KEEP_VNDK is true, PRODUCT_PRODUCT_VNDK_VERSION is current and -# PLATFORM_VNDK_VERSION is less than or equal to 35. -# ro.product.vndk.version must be removed for the other future builds. -ifeq ($(KEEP_VNDK)|$(PRODUCT_PRODUCT_VNDK_VERSION),true|current) -ifeq ($(call math_is_number,$(PLATFORM_VNDK_VERSION)),true) -ifeq ($(call math_lt_or_eq,$(PLATFORM_VNDK_VERSION),35),true) -ADDITIONAL_PRODUCT_PROPERTIES += ro.product.vndk.version=$(PLATFORM_VNDK_VERSION) -endif -endif -endif - ADDITIONAL_PRODUCT_PROPERTIES += ro.build.characteristics=$(TARGET_AAPT_CHARACTERISTICS) ifeq ($(AB_OTA_UPDATER),true) diff --git a/core/soong_cc_rust_prebuilt.mk b/core/soong_cc_rust_prebuilt.mk index 943ed30b24..a1c64786ee 100644 --- a/core/soong_cc_rust_prebuilt.mk +++ b/core/soong_cc_rust_prebuilt.mk @@ -38,14 +38,6 @@ ifndef LOCAL_UNINSTALLABLE_MODULE endif endif -# Don't install modules of current VNDK when it is told so -ifeq ($(TARGET_SKIP_CURRENT_VNDK),true) - ifeq ($(LOCAL_SOONG_VNDK_VERSION),$(PLATFORM_VNDK_VERSION)) - LOCAL_UNINSTALLABLE_MODULE := true - endif -endif - - # Use the Soong output as the checkbuild target instead of LOCAL_BUILT_MODULE # to avoid checkbuilds making an extra copy of every module. LOCAL_CHECKED_MODULE := $(LOCAL_PREBUILT_MODULE_FILE) diff --git a/core/tasks/vndk.mk b/core/tasks/vndk.mk deleted file mode 100644 index ebe9bd4736..0000000000 --- a/core/tasks/vndk.mk +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright (C) 2017 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -current_makefile := $(lastword $(MAKEFILE_LIST)) - -# BOARD_VNDK_VERSION must be set to 'current' in order to generate a VNDK snapshot. -ifeq ($(BOARD_VNDK_VERSION),current) - -# PLATFORM_VNDK_VERSION must be set. -ifneq (,$(PLATFORM_VNDK_VERSION)) - -.PHONY: vndk -vndk: $(SOONG_VNDK_SNAPSHOT_ZIP) - -$(call dist-for-goals, vndk, $(SOONG_VNDK_SNAPSHOT_ZIP)) - -else # PLATFORM_VNDK_VERSION is NOT set -error_msg := "CANNOT generate VNDK snapshot. PLATFORM_VNDK_VERSION must be set." -endif # PLATFORM_VNDK_VERSION - -else # BOARD_VNDK_VERSION is NOT set to 'current' -error_msg := "CANNOT generate VNDK snapshot. BOARD_VNDK_VERSION must be set to 'current'." -endif # BOARD_VNDK_VERSION - -ifneq (,$(error_msg)) - -.PHONY: vndk -vndk: PRIVATE_MAKEFILE := $(current_makefile) -vndk: - $(call echo-error,$(PRIVATE_MAKEFILE),$(error_msg)) - exit 1 - -endif diff --git a/core/version_util.mk b/core/version_util.mk index 6cda0fc6be..610cdaf107 100644 --- a/core/version_util.mk +++ b/core/version_util.mk @@ -28,7 +28,6 @@ # BUILD_ID # BUILD_NUMBER # PLATFORM_SECURITY_PATCH -# PLATFORM_VNDK_VERSION # PLATFORM_SYSTEMSDK_VERSIONS # PLATFORM_VERSION_LAST_STABLE # PLATFORM_VERSION_KNOWN_CODENAMES @@ -151,24 +150,6 @@ ifndef DEFAULT_APP_TARGET_SDK endif .KATI_READONLY := DEFAULT_APP_TARGET_SDK -ifeq ($(KEEP_VNDK),true) - ifndef PLATFORM_VNDK_VERSION - # This is the definition of the VNDK version for the current VNDK libraries. - # With trunk stable, VNDK will not be frozen but deprecated. - # This version will be removed with the VNDK deprecation. - ifeq (REL,$(PLATFORM_VERSION_CODENAME)) - ifdef RELEASE_PLATFORM_VNDK_VERSION - PLATFORM_VNDK_VERSION := $(RELEASE_PLATFORM_VNDK_VERSION) - else - PLATFORM_VNDK_VERSION := $(PLATFORM_SDK_VERSION) - endif - else - PLATFORM_VNDK_VERSION := $(PLATFORM_VERSION_CODENAME) - endif - endif - .KATI_READONLY := PLATFORM_VNDK_VERSION -endif - ifndef PLATFORM_SYSTEMSDK_MIN_VERSION # This is the oldest version of system SDK that the platform supports. Contrary # to the public SDK where platform essentially supports all previous SDK versions, diff --git a/target/product/gsi/Android.mk b/target/product/gsi/Android.mk index c8ace36fbd..3bb65ac811 100644 --- a/target/product/gsi/Android.mk +++ b/target/product/gsi/Android.mk @@ -4,23 +4,6 @@ LOCAL_PATH:= $(call my-dir) # list of vndk libraries from the source code. INTERNAL_VNDK_LIB_LIST := $(SOONG_VNDK_LIBRARIES_FILE) -##################################################################### -# This is the up-to-date list of vndk libs. -LATEST_VNDK_LIB_LIST := $(LOCAL_PATH)/current.txt -ifeq ($(KEEP_VNDK),true) -UNFROZEN_VNDK := true -ifeq (REL,$(PLATFORM_VERSION_CODENAME)) - # Use frozen vndk lib list only if "34 >= PLATFORM_VNDK_VERSION" - ifeq ($(call math_gt_or_eq,34,$(PLATFORM_VNDK_VERSION)),true) - LATEST_VNDK_LIB_LIST := $(LOCAL_PATH)/$(PLATFORM_VNDK_VERSION).txt - ifeq ($(wildcard $(LATEST_VNDK_LIB_LIST)),) - $(error $(LATEST_VNDK_LIB_LIST) file not found. Please copy "$(LOCAL_PATH)/current.txt" to "$(LATEST_VNDK_LIB_LIST)" and commit a CL for release branch) - endif - UNFROZEN_VNDK := - endif -endif -endif - ##################################################################### # Check the generate list against the latest list stored in the # source tree @@ -159,11 +142,7 @@ define filter-abi-dump-names $(notdir $(call filter-abi-dump-paths,$(1),$(2))) endef -ifdef RELEASE_BOARD_API_LEVEL - VNDK_ABI_DUMP_DIR := prebuilts/abi-dumps/vndk/$(RELEASE_BOARD_API_LEVEL) -else - VNDK_ABI_DUMP_DIR := prebuilts/abi-dumps/vndk/$(PLATFORM_VNDK_VERSION) -endif + ifeq (REL,$(PLATFORM_VERSION_CODENAME)) NDK_ABI_DUMP_DIR := prebuilts/abi-dumps/ndk/$(PLATFORM_SDK_VERSION) PLATFORM_ABI_DUMP_DIR := prebuilts/abi-dumps/platform/$(PLATFORM_SDK_VERSION) @@ -171,7 +150,6 @@ else NDK_ABI_DUMP_DIR := prebuilts/abi-dumps/ndk/current PLATFORM_ABI_DUMP_DIR := prebuilts/abi-dumps/platform/current endif -VNDK_ABI_DUMPS := $(call find-abi-dump-paths,$(VNDK_ABI_DUMP_DIR)) NDK_ABI_DUMPS := $(call find-abi-dump-paths,$(NDK_ABI_DUMP_DIR)) PLATFORM_ABI_DUMPS := $(call find-abi-dump-paths,$(PLATFORM_ABI_DUMP_DIR))