Loading core/tasks/vndk.mk +14 −8 Original line number Original line Diff line number Diff line Loading @@ -20,6 +20,9 @@ ifeq ($(BOARD_VNDK_VERSION),current) # PLATFORM_VNDK_VERSION must be set. # PLATFORM_VNDK_VERSION must be set. ifneq (,$(PLATFORM_VNDK_VERSION)) ifneq (,$(PLATFORM_VNDK_VERSION)) # BOARD_VNDK_RUNTIME_DISABLE must not be set to 'true'. ifneq ($(BOARD_VNDK_RUNTIME_DISABLE),true) # Returns arch-specific libclang_rt.ubsan* library name. # Returns arch-specific libclang_rt.ubsan* library name. # Because VNDK_CORE_LIBRARIES includes all arch variants for libclang_rt.ubsan* # Because VNDK_CORE_LIBRARIES includes all arch variants for libclang_rt.ubsan* # libs, the arch-specific libs are selected separately. # libs, the arch-specific libs are selected separately. Loading Loading @@ -239,20 +242,23 @@ vndk_snapshot_dependencies := # vndk_snapshot_arch_2ND := # vndk_snapshot_arch_2ND := # endif # endif else # PLATFORM_VNDK_VERSION is NOT set else # BOARD_VNDK_RUNTIME_DISABLE is set to 'true' error_msg := "CANNOT generate VNDK snapshot. BOARD_VNDK_RUNTIME_DISABLE must not be set to 'true'." .PHONY: vndk endif # BOARD_VNDK_RUNTIME_DISABLE vndk: $(call echo-error,$(current_makefile),CANNOT generate VNDK snapshot. PLATFORM_VNDK_VERSION must be set.) exit 1 else # PLATFORM_VNDK_VERSION is NOT set error_msg := "CANNOT generate VNDK snapshot. PLATFORM_VNDK_VERSION must be set." endif # PLATFORM_VNDK_VERSION endif # PLATFORM_VNDK_VERSION else # BOARD_VNDK_VERSION is NOT set to 'current' 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 .PHONY: vndk vndk: vndk: $(call echo-error,$(current_makefile),CANNOT generate VNDK snapshot. BOARD_VNDK_VERSION must be set to 'current'.) $(call echo-error,$(current_makefile),$(error_msg)) exit 1 exit 1 endif # BOARD_VNDK_VERSION endif Loading
core/tasks/vndk.mk +14 −8 Original line number Original line Diff line number Diff line Loading @@ -20,6 +20,9 @@ ifeq ($(BOARD_VNDK_VERSION),current) # PLATFORM_VNDK_VERSION must be set. # PLATFORM_VNDK_VERSION must be set. ifneq (,$(PLATFORM_VNDK_VERSION)) ifneq (,$(PLATFORM_VNDK_VERSION)) # BOARD_VNDK_RUNTIME_DISABLE must not be set to 'true'. ifneq ($(BOARD_VNDK_RUNTIME_DISABLE),true) # Returns arch-specific libclang_rt.ubsan* library name. # Returns arch-specific libclang_rt.ubsan* library name. # Because VNDK_CORE_LIBRARIES includes all arch variants for libclang_rt.ubsan* # Because VNDK_CORE_LIBRARIES includes all arch variants for libclang_rt.ubsan* # libs, the arch-specific libs are selected separately. # libs, the arch-specific libs are selected separately. Loading Loading @@ -239,20 +242,23 @@ vndk_snapshot_dependencies := # vndk_snapshot_arch_2ND := # vndk_snapshot_arch_2ND := # endif # endif else # PLATFORM_VNDK_VERSION is NOT set else # BOARD_VNDK_RUNTIME_DISABLE is set to 'true' error_msg := "CANNOT generate VNDK snapshot. BOARD_VNDK_RUNTIME_DISABLE must not be set to 'true'." .PHONY: vndk endif # BOARD_VNDK_RUNTIME_DISABLE vndk: $(call echo-error,$(current_makefile),CANNOT generate VNDK snapshot. PLATFORM_VNDK_VERSION must be set.) exit 1 else # PLATFORM_VNDK_VERSION is NOT set error_msg := "CANNOT generate VNDK snapshot. PLATFORM_VNDK_VERSION must be set." endif # PLATFORM_VNDK_VERSION endif # PLATFORM_VNDK_VERSION else # BOARD_VNDK_VERSION is NOT set to 'current' 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 .PHONY: vndk vndk: vndk: $(call echo-error,$(current_makefile),CANNOT generate VNDK snapshot. BOARD_VNDK_VERSION must be set to 'current'.) $(call echo-error,$(current_makefile),$(error_msg)) exit 1 exit 1 endif # BOARD_VNDK_VERSION endif