Prohibit host modules from using LOCAL_COPY_HEADERS
There are no users left, so remove all of this. Test: lunch aosp_arm-eng; m -j native Test: build/tools/kati_all_products.sh on aosp and internal master Change-Id: I32f5c8b470a43dd203d7e20c192167630e4e6888
This commit is contained in:
parent
bab0fa6928
commit
6e51ef61a7
|
@ -377,6 +377,8 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/recovery/root/sdcard)
|
||||||
$(call add-clean-step, rm -rf $(TARGET_OUT_COMMON_INTERMEDIATES)/APPS/previous_overlays.txt)
|
$(call add-clean-step, rm -rf $(TARGET_OUT_COMMON_INTERMEDIATES)/APPS/previous_overlays.txt)
|
||||||
$(call add-clean-step, rm -rf $(TARGET_OUT_COMMON_INTERMEDIATES)/APPS/current_packages.txt)
|
$(call add-clean-step, rm -rf $(TARGET_OUT_COMMON_INTERMEDIATES)/APPS/current_packages.txt)
|
||||||
|
|
||||||
|
$(call add-clean-step, rm -rf $(HOST_OUT_INTERMEDIATES)/include)
|
||||||
|
|
||||||
# ************************************************
|
# ************************************************
|
||||||
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
|
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
|
||||||
# ************************************************
|
# ************************************************
|
||||||
|
|
|
@ -545,10 +545,8 @@ $(LOCAL_INTERMEDIATE_TARGETS): PRIVATE_TARGET_GLOBAL_LDFLAGS := $(my_target_glob
|
||||||
else # LOCAL_IS_HOST_MODULE
|
else # LOCAL_IS_HOST_MODULE
|
||||||
|
|
||||||
my_host_global_c_includes := $(SRC_HEADERS) \
|
my_host_global_c_includes := $(SRC_HEADERS) \
|
||||||
$($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)PROJECT_INCLUDES) \
|
|
||||||
$($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)C_INCLUDES)
|
$($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)C_INCLUDES)
|
||||||
my_host_global_c_system_includes := $(SRC_SYSTEM_HEADERS) \
|
my_host_global_c_system_includes := $(SRC_SYSTEM_HEADERS) \
|
||||||
$($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)PROJECT_SYSTEM_INCLUDES) \
|
|
||||||
$($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)C_SYSTEM_INCLUDES)
|
$($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)C_SYSTEM_INCLUDES)
|
||||||
|
|
||||||
ifeq ($(my_clang),true)
|
ifeq ($(my_clang),true)
|
||||||
|
|
|
@ -684,8 +684,6 @@ else
|
||||||
RELATIVE_PWD :=
|
RELATIVE_PWD :=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
HOST_PROJECT_INCLUDES :=
|
|
||||||
HOST_PROJECT_SYSTEM_INCLUDES := $(HOST_OUT_HEADERS)
|
|
||||||
TARGET_PROJECT_INCLUDES :=
|
TARGET_PROJECT_INCLUDES :=
|
||||||
TARGET_PROJECT_SYSTEM_INCLUDES := \
|
TARGET_PROJECT_SYSTEM_INCLUDES := \
|
||||||
$(TARGET_DEVICE_KERNEL_HEADERS) $(TARGET_BOARD_KERNEL_HEADERS) \
|
$(TARGET_DEVICE_KERNEL_HEADERS) $(TARGET_BOARD_KERNEL_HEADERS) \
|
||||||
|
@ -696,21 +694,6 @@ $(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_PROJECT_INCLUDES := $(TARGET_PROJECT_INCLUDE
|
||||||
$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_PROJECT_SYSTEM_INCLUDES := $(TARGET_PROJECT_SYSTEM_INCLUDES)
|
$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_PROJECT_SYSTEM_INCLUDES := $(TARGET_PROJECT_SYSTEM_INCLUDES)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef HOST_2ND_ARCH
|
|
||||||
$(HOST_2ND_ARCH_VAR_PREFIX)HOST_PROJECT_INCLUDES := $(HOST_PROJECT_INCLUDES)
|
|
||||||
$(HOST_2ND_ARCH_VAR_PREFIX)HOST_PROJECT_SYSTEM_INCLUDES := $(HOST_PROJECT_SYSTEM_INCLUDES)
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef HOST_CROSS_OS
|
|
||||||
HOST_CROSS_PROJECT_INCLUDES :=
|
|
||||||
HOST_CROSS_PROJECT_SYSTEM_INCLUDES := $(HOST_CROSS_OUT_HEADERS)
|
|
||||||
|
|
||||||
ifdef HOST_CROSS_2ND_ARCH
|
|
||||||
$(HOST_CROSS_2ND_ARCH_VAR_PREFIX)HOST_CROSS_PROJECT_INCLUDES:= $(HOST_CROSS_PROJECT_INCLUDES)
|
|
||||||
$(HOST_CROSS_2ND_ARCH_VAR_PREFIX)HOST_CROSS_PROJECT_SYSTEM_INCLUDES:= $(HOST_CROSS_PROJECT_SYSTEM_INCLUDES)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# allow overriding default Java libraries on a per-target basis
|
# allow overriding default Java libraries on a per-target basis
|
||||||
ifeq ($(TARGET_DEFAULT_JAVA_LIBRARIES),)
|
ifeq ($(TARGET_DEFAULT_JAVA_LIBRARIES),)
|
||||||
TARGET_DEFAULT_JAVA_LIBRARIES := core-oj core-libart core-junit ext framework okhttp
|
TARGET_DEFAULT_JAVA_LIBRARIES := core-oj core-libart core-junit ext framework okhttp
|
||||||
|
|
|
@ -4,9 +4,8 @@ ifneq (,$(strip $(LOCAL_COPY_HEADERS)))
|
||||||
###########################################################
|
###########################################################
|
||||||
$(call record-module-type,COPY_HEADERS)
|
$(call record-module-type,COPY_HEADERS)
|
||||||
ifneq ($(strip $(LOCAL_IS_HOST_MODULE)),)
|
ifneq ($(strip $(LOCAL_IS_HOST_MODULE)),)
|
||||||
my_prefix := HOST_
|
$(shell echo $(LOCAL_MODULE_MAKEFILE): $(LOCAL_MODULE): LOCAL_COPY_HEADERS may not be used with host modules >&2)
|
||||||
else
|
$(error done)
|
||||||
my_prefix := TARGET_
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Modules linking against the SDK do not have the include path to use
|
# Modules linking against the SDK do not have the include path to use
|
||||||
|
@ -37,8 +36,8 @@ $(foreach header,$(LOCAL_COPY_HEADERS), \
|
||||||
$(eval _chFrom := $(LOCAL_PATH)/$(header)) \
|
$(eval _chFrom := $(LOCAL_PATH)/$(header)) \
|
||||||
$(eval _chTo := \
|
$(eval _chTo := \
|
||||||
$(if $(LOCAL_COPY_HEADERS_TO),\
|
$(if $(LOCAL_COPY_HEADERS_TO),\
|
||||||
$($(my_prefix)OUT_HEADERS)/$(LOCAL_COPY_HEADERS_TO)/$(notdir $(header)),\
|
$(TARGET_OUT_HEADERS)/$(LOCAL_COPY_HEADERS_TO)/$(notdir $(header)),\
|
||||||
$($(my_prefix)OUT_HEADERS)/$(notdir $(header)))) \
|
$(TARGET_OUT_HEADERS)/$(notdir $(header)))) \
|
||||||
$(eval ALL_COPIED_HEADERS.$(_chTo).MAKEFILE += $(LOCAL_MODULE_MAKEFILE)) \
|
$(eval ALL_COPIED_HEADERS.$(_chTo).MAKEFILE += $(LOCAL_MODULE_MAKEFILE)) \
|
||||||
$(eval ALL_COPIED_HEADERS.$(_chTo).SRC += $(_chFrom)) \
|
$(eval ALL_COPIED_HEADERS.$(_chTo).SRC += $(_chFrom)) \
|
||||||
$(if $(filter $(_chTo),$(ALL_COPIED_HEADERS)),, \
|
$(if $(filter $(_chTo),$(ALL_COPIED_HEADERS)),, \
|
||||||
|
|
|
@ -269,7 +269,6 @@ HOST_CROSS_OUT_NATIVE_TESTS := $(HOST_CROSS_OUT)/nativetest
|
||||||
HOST_CROSS_OUT_COVERAGE := $(HOST_CROSS_OUT)/coverage
|
HOST_CROSS_OUT_COVERAGE := $(HOST_CROSS_OUT)/coverage
|
||||||
|
|
||||||
HOST_OUT_INTERMEDIATES := $(HOST_OUT)/obj
|
HOST_OUT_INTERMEDIATES := $(HOST_OUT)/obj
|
||||||
HOST_OUT_HEADERS := $(HOST_OUT_INTERMEDIATES)/include
|
|
||||||
HOST_OUT_INTERMEDIATE_LIBRARIES := $(HOST_OUT_INTERMEDIATES)/lib
|
HOST_OUT_INTERMEDIATE_LIBRARIES := $(HOST_OUT_INTERMEDIATES)/lib
|
||||||
HOST_OUT_NOTICE_FILES := $(HOST_OUT_INTERMEDIATES)/NOTICE_FILES
|
HOST_OUT_NOTICE_FILES := $(HOST_OUT_INTERMEDIATES)/NOTICE_FILES
|
||||||
HOST_OUT_COMMON_INTERMEDIATES := $(HOST_COMMON_OUT_ROOT)/obj
|
HOST_OUT_COMMON_INTERMEDIATES := $(HOST_COMMON_OUT_ROOT)/obj
|
||||||
|
@ -279,7 +278,6 @@ HOST_OUT_FAKE := $(HOST_OUT)/fake_packages
|
||||||
include $(BUILD_SYSTEM)/aux_config.mk
|
include $(BUILD_SYSTEM)/aux_config.mk
|
||||||
|
|
||||||
HOST_CROSS_OUT_INTERMEDIATES := $(HOST_CROSS_OUT)/obj
|
HOST_CROSS_OUT_INTERMEDIATES := $(HOST_CROSS_OUT)/obj
|
||||||
HOST_CROSS_OUT_HEADERS := $(HOST_CROSS_OUT_INTERMEDIATES)/include
|
|
||||||
HOST_CROSS_OUT_INTERMEDIATE_LIBRARIES := $(HOST_CROSS_OUT_INTERMEDIATES)/lib
|
HOST_CROSS_OUT_INTERMEDIATE_LIBRARIES := $(HOST_CROSS_OUT_INTERMEDIATES)/lib
|
||||||
HOST_CROSS_OUT_NOTICE_FILES := $(HOST_CROSS_OUT_INTERMEDIATES)/NOTICE_FILES
|
HOST_CROSS_OUT_NOTICE_FILES := $(HOST_CROSS_OUT_INTERMEDIATES)/NOTICE_FILES
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue