Add BUILD_BROKEN_USES_NETWORK

Some people apparently still talk to the network during their build.
Allow this temporarily with a BUILD_BROKEN_USES_NETWORK check.

Bug: 129992021
Test: attempt to talk to the network during the build with and without
      this flag
Change-Id: I45612ad6165f92f123847b4057338c0dfc3424ee
This commit is contained in:
Dan Willemsen
2019-04-09 09:56:48 -07:00
parent d7d6e9d671
commit 0586c65780

View File

@@ -89,6 +89,7 @@ _build_broken_var_list := \
BUILD_BROKEN_DUP_RULES \ BUILD_BROKEN_DUP_RULES \
BUILD_BROKEN_PHONY_TARGETS \ BUILD_BROKEN_PHONY_TARGETS \
BUILD_BROKEN_ENG_DEBUG_TAGS \ BUILD_BROKEN_ENG_DEBUG_TAGS \
BUILD_BROKEN_USES_NETWORK \
_board_true_false_vars := $(_build_broken_var_list) _board_true_false_vars := $(_build_broken_var_list)
_board_strip_readonly_list += $(_build_broken_var_list) _board_strip_readonly_list += $(_build_broken_var_list)
@@ -101,11 +102,7 @@ endif
# ############################################################### # ###############################################################
# Broken build defaults # Broken build defaults
# ############################################################### # ###############################################################
BUILD_BROKEN_ANDROIDMK_EXPORTS := $(foreach v,$(_build_broken_var_list),$(eval $(v) :=))
BUILD_BROKEN_DUP_COPY_HEADERS :=
BUILD_BROKEN_DUP_RULES :=
BUILD_BROKEN_PHONY_TARGETS :=
BUILD_BROKEN_ENG_DEBUG_TAGS :=
# Boards may be defined under $(SRC_TARGET_DIR)/board/$(TARGET_DEVICE) # Boards may be defined under $(SRC_TARGET_DIR)/board/$(TARGET_DEVICE)
# or under vendor/*/$(TARGET_DEVICE). Search in both places, but # or under vendor/*/$(TARGET_DEVICE). Search in both places, but