diff options
author | Jiyong Park <jiyong@google.com> | 2020-10-19 12:42:12 +0900 |
---|---|---|
committer | Jiyong Park <jiyong@google.com> | 2020-10-27 13:41:51 +0900 |
commit | 22cbc106975aae518bc978d2b815f3d7b3bf439c (patch) | |
tree | ebad6aacea196e3420c94e013a8a6a0cb79d9b9a /host_package.mk | |
parent | af5af9eea9a5759c968942c54a4556adc866fa5f (diff) | |
download | cuttlefish-22cbc106975aae518bc978d2b815f3d7b3bf439c.tar.gz |
cvd-host_package.tar.gz is from cvd-host-package Soong module
This change replaces the Make logic for packaging cvd-host_package.tar.
gz with the new soong module type cvd-host-package.
Bug: 159685774
Test: acloud --local-image --local-instance
Test: monitor TH
Change-Id: Iddae6f6f6563bd794a000bc67c6a483b9aafcb4d
Diffstat (limited to 'host_package.mk')
-rw-r--r-- | host_package.mk | 180 |
1 files changed, 8 insertions, 172 deletions
diff --git a/host_package.mk b/host_package.mk index 09e2a8a5b..92c868c7e 100644 --- a/host_package.mk +++ b/host_package.mk @@ -1,6 +1,8 @@ -LOCAL_PATH := $(call my-dir) - -cvd_host_package_tar := $(HOST_OUT)/cvd-host_package.tar.gz +soong_host_out := $(SOONG_HOST_OUT) +ifeq ($(HOST_CROSS_OS)_$(HOST_CROSS_ARCH),linux_bionic_arm64) + soong_host_out := $(SOONG_OUT_DIR)/host/$(HOST_CROSS_OS)-$(HOST_CROSS_ARCH) +endif +cvd_host_package_tar := $(soong_host_out)/cvd-host_package.tar.gz .PHONY: hosttar hosttar: $(cvd_host_package_tar) @@ -8,174 +10,8 @@ hosttar: $(cvd_host_package_tar) # Build this by default when a developer types make droidcore: $(cvd_host_package_tar) -# Build and store them on the build server. -$(call dist-for-goals, dist_files, $(cvd_host_package_tar)) - -bin_path := $(notdir $(HOST_OUT_EXECUTABLES)) -lib_path := $(notdir $(HOST_OUT_SHARED_LIBRARIES)) -tests_path := $(notdir $(HOST_OUT_NATIVE_TESTS)) -webrtc_files_path := usr/share/webrtc -modem_simulator_path := etc/modem_simulator - -cvd_host_executables := \ - aarch64-linux-gnu/crosvm \ - aarch64-linux-gnu/libepoxy.so.0 \ - aarch64-linux-gnu/libgbm.so.1 \ - aarch64-linux-gnu/libminijail.so \ - aarch64-linux-gnu/libvirglrenderer.so.1 \ - adb \ - adb_connector \ - adbshell \ - allocd \ - allocd_client \ - assemble_cvd \ - config_server \ - console_forwarder \ - crosvm \ - cvd_status \ - detect_graphics \ - extract-vmlinux \ - fsck.f2fs \ - gnss_grpc_proxy \ - kernel_log_monitor \ - launch_cvd \ - log_tee \ - logcat_receiver \ - lpmake \ - lpunpack \ - lz4 \ - make_f2fs \ - metrics \ - mkbootimg \ - mkenvimage \ - modem_simulator \ - ms-tpm-20-ref \ - newfs_msdos \ - powerwash_cvd \ - resize.f2fs \ - run_cvd \ - secure_env \ - socket_vsock_proxy \ - stop_cvd \ - tapsetiff \ - tombstone_receiver \ - unpack_bootimg \ - vnc_server \ - webRTC \ - webrtc_operator \ - x86_64-linux-gnu/crosvm \ - x86_64-linux-gnu/libOpenglRender.so \ - x86_64-linux-gnu/libandroid-emu-shared.so \ - x86_64-linux-gnu/libc++.so.1 \ - x86_64-linux-gnu/libemugl_common.so \ - x86_64-linux-gnu/libgfxstream_backend.so \ - -ifneq ($(wildcard device/google/trout),) - cvd_host_executables += android.hardware.automotive.vehicle@2.0-virtualization-grpc-server -endif - -cvd_host_tests := \ - cuttlefish_net_tests \ - modem_simulator_test \ - -cvd_host_shared_libraries := \ - android.hardware.automotive.vehicle@2.0.so \ - cuttlefish_net.so \ - libandroidicu-host.so \ - libbase.so \ - libc++.so \ - libcap.so \ - libcrypto-host.so \ - libcrypto_utils.so \ - libcutils.so \ - libcuttlefish_allocd_utils.so \ - libcuttlefish_device_config.so \ - libcuttlefish_device_config_proto.so \ - libcuttlefish_fs.so \ - libcuttlefish_kernel_log_monitor_utils.so \ - libcuttlefish_security.so \ - libcuttlefish_utils.so \ - libdrm.so \ - libepoxy.so \ - libext4_utils.so \ - libfdt.so \ - libgatekeeper.so \ - libgbm.so \ - libgrpc++.so \ - libhidlbase.so \ - libicui18n-host.so \ - libicuuc-host.so \ - libjpeg.so \ - libjsoncpp.so \ - libkeymaster_messages.so \ - libkeymaster_portable.so \ - liblog.so \ - liblp.so \ - libminijail.so \ - libnl.so \ - libopus.so \ - libprotobuf-cpp-full.so \ - libpuresoftkeymasterdevice_host.so \ - libsoft_attestation_cert.so \ - libsparse-host.so \ - libssl-host.so \ - libutils.so \ - libvirglrenderer.so \ - libvpx.so \ - libwayland_client.so \ - libxml2.so \ - libyuv.so \ - libz-host.so \ - libziparchive.so \ - ms-tpm-20-ref-lib.so \ - tpm2-tss2-esys.so \ - tpm2-tss2-mu.so \ - tpm2-tss2-rc.so \ - tpm2-tss2-sys.so \ - tpm2-tss2-tcti.so \ - tpm2-tss2-util.so \ +# Dist +$(call dist-for-goals, dist_files,$(cvd_host_package_tar)) -webrtc_assets := \ - index.html \ - js/adb.js \ - js/app.js \ - js/cf_webrtc.js \ - style.css \ - -webrtc_certs := \ - server.crt \ - server.key \ - server.p12 \ - trusted.pem \ - -cvd_host_webrtc_files := \ - $(addprefix assets/,$(webrtc_assets)) \ - $(addprefix certs/,$(webrtc_certs)) \ - -modem_simulator_files := \ - iccprofile_for_sim0.xml \ - iccprofile_for_sim0_for_CtsCarrierApiTestCases.xml \ - numeric_operator.xml \ - -include external/crosvm/seccomp/host_package.mk - -cvd_host_package_files := \ - $(addprefix $(bin_path)/,$(cvd_host_executables)) \ - $(addprefix $(lib_path)/,$(cvd_host_shared_libraries)) \ - $(foreach test,$(cvd_host_tests), ${tests_path}/$(test)/$(test)) \ - $(addprefix $(webrtc_files_path)/,$(cvd_host_webrtc_files)) \ - $(addprefix $(modem_simulator_path)/files/,$(modem_simulator_files)) \ - $(crosvm_inline_seccomp_policy_x86_64) \ - $(crosvm_inline_seccomp_policy_aarch64) \ - -$(cvd_host_package_tar): PRIVATE_FILES := $(cvd_host_package_files) -$(cvd_host_package_tar): $(addprefix $(HOST_OUT)/,$(cvd_host_package_files)) - $(hide) rm -rf $@ && tar Scfzh $@.tmp -C $(HOST_OUT) $(PRIVATE_FILES) - $(hide) mv $@.tmp $@ - -soong_host_out := $(SOONG_HOST_OUT) -ifeq ($(HOST_CROSS_OS)_$(HOST_CROSS_ARCH),linux_bionic_arm64) - soong_host_out := $(SOONG_OUT_DIR)/host/$(HOST_CROSS_OS)-$(HOST_CROSS_ARCH) -endif -$(call dist-for-goals, dist_files,$(soong_host_out)/cvd_host_package.tar.gz) +cvd_host_package_tar := soong_host_out := |