1cvd_host_packages := $(HOST_OUT)/cvd-host_package 2ifeq ($(HOST_CROSS_OS), linux_musl) 3 cvd_host_packages := $(OUT_DIR)/host/$(HOST_CROSS_OS)-$(HOST_CROSS_ARCH)/cvd-host_package $(cvd_host_packages) 4endif 5 6cvd_host_dir_stamps := $(addsuffix .stamp,$(cvd_host_packages)) 7cvd_host_tarballs := $(addsuffix .tar.gz,$(cvd_host_packages)) 8 9.PHONY: hosttar 10hosttar: $(cvd_host_tarballs) 11 12# Build this by default when a developer types make. 13# Skip the tarballs by default as it is time consuming. 14droidcore: $(cvd_host_dir_stamps) 15 16# Dist 17# Dist the first package as cvd-host_package.tar.gz. It would be from x86 in case of cf_x86_phone, 18# and from arm64 in case of cf_arm64_phone. 19$(call dist-for-goals, dist_files,$(firstword $(cvd_host_tarballs))) 20ifeq ($(HOST_CROSS_OS)-$(HOST_CROSS_ARCH), linux_musl-arm64) 21 # If the normal package is arm64, also dist an x86_64 package. 22 $(call dist-for-goals, dist_files,$(lastword $(cvd_host_tarballs)):cvd-host_package-x86_64.tar.gz) 23endif 24 25 26cvd_host_dir_stamps := 27cvd_host_packages := 28cvd_host_tarballs := 29