From 3a1072a839b9be70e69f11a6467e732125c8adb6 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Tue, 14 May 2019 22:03:58 -0700 Subject: [PATCH] Obsolete BUILD_BROKEN_ANDROIDMK_EXPORTS Bug: 73959648 Test: treehugger Change-Id: Ibecc6eb97fef6924e5d909c0393d8dfaa62c7d1d --- Changes.md | 13 +++++-------- core/board_config.mk | 5 ----- core/config.mk | 5 ++--- 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/Changes.md b/Changes.md index 6b3095cfc6..2cea334129 100644 --- a/Changes.md +++ b/Changes.md @@ -194,11 +194,9 @@ you're not trying to actively debug the kernel. ## `export` and `unexport` deprecation {#export_keyword} -The `export` and `unexport` keywords have been deprecated, and will throw -warnings or errors depending on where they are used. +The `export` and `unexport` keywords are obsolete, and will throw errors when +used. -Early in the make system, during product configuration and BoardConfig.mk -reading: these will throw a warnings, and will be an error in the future. Device specific configuration should not be able to affect common core build steps -- we're looking at triggering build steps to be invalidated if the set of environment variables they can access changes. If device specific @@ -206,10 +204,9 @@ configuration is allowed to change those, switching devices with the same output directory could become significantly more expensive than it already can be. -Later, during Android.mk files, and later tasks: these will throw errors, since -it is increasingly likely that they are being used incorrectly, attempting to -change the environment for a single build step, and instead setting it for -hundreds of thousands. +If used during Android.mk files, and later tasks, it is increasingly likely +that they are being used incorrectly. Attempting to change the environment for +a single build step, and instead setting it for hundreds of thousands. It is not recommended to just move the environment variable setting outside of the build (in vendorsetup.sh, or some other configuration script or wrapper). diff --git a/core/board_config.mk b/core/board_config.mk index 851bf8a162..9c9e8b18c7 100644 --- a/core/board_config.mk +++ b/core/board_config.mk @@ -85,7 +85,6 @@ _dynamic_partitions_var_list += \ _board_strip_readonly_list += $(_dynamic_partitions_var_list) _build_broken_var_list := \ - BUILD_BROKEN_ANDROIDMK_EXPORTS \ BUILD_BROKEN_DUP_RULES \ BUILD_BROKEN_USES_NETWORK \ @@ -229,10 +228,6 @@ TARGET_CPU_ABI_LIST := $(subst $(space),$(comma),$(strip $(TARGET_CPU_ABI_LIST)) TARGET_CPU_ABI_LIST_32_BIT := $(subst $(space),$(comma),$(strip $(TARGET_CPU_ABI_LIST_32_BIT))) TARGET_CPU_ABI_LIST_64_BIT := $(subst $(space),$(comma),$(strip $(TARGET_CPU_ABI_LIST_64_BIT))) -ifneq ($(BUILD_BROKEN_ANDROIDMK_EXPORTS),true) -$(KATI_obsolete_export It is a global setting. See $(CHANGES_URL)#export_keyword) -endif - ########################################### # Now we can substitute with the real value of TARGET_COPY_OUT_RAMDISK ifeq ($(BOARD_BUILD_SYSTEM_ROOT_IMAGE),true) diff --git a/core/config.mk b/core/config.mk index 8d08495ecf..6461f46f35 100644 --- a/core/config.mk +++ b/core/config.mk @@ -98,9 +98,8 @@ $(KATI_obsolete_var TARGET_ROOT_OUT_SBIN_UNSTRIPPED,/sbin has been removed, use $(KATI_obsolete_var BUILD_BROKEN_PHONY_TARGETS) $(KATI_obsolete_var BUILD_BROKEN_DUP_COPY_HEADERS) $(KATI_obsolete_var BUILD_BROKEN_ENG_DEBUG_TAGS) - -# This is marked as obsolete in envsetup.mk after reading the BoardConfig.mk -$(KATI_deprecate_export It is a global setting. See $(CHANGES_URL)#export_keyword) +$(KATI_obsolete_export It is a global setting. See $(CHANGES_URL)#export_keyword) +$(KATI_obsolete_var BUILD_BROKEN_ANDROIDMK_EXPORTS) # Used to force goals to build. Only use for conditionally defined goals. .PHONY: FORCE