From 7d81b4e08172037674f378ffb6f45ad694c01077 Mon Sep 17 00:00:00 2001 From: Hung-ying Tyan Date: Fri, 28 Jul 2017 19:09:33 +0800 Subject: [PATCH] Move trusty reference implementations to /vendor Trusty implementations are provided by vendors. This patch moves the AOSP reference implementations to the vendor partition. Bug: 63085384 Test: build gordon_peak which adopts trusty as the TEE and confirm that libtrusty and gateway.trusty are moved to /vendor. Test: build marlin which does not adopt trusty as the TEE and confirm that this patch has no effect on the build result. Change-Id: I9a5440071386b929058207fdef560ed2d7223ba3 --- CleanSpec.mk | 8 ++++++++ trusty/gatekeeper/Android.bp | 1 + trusty/keymaster/Android.bp | 2 ++ trusty/libtrusty/Android.bp | 1 + trusty/storage/proxy/Android.bp | 1 + 5 files changed, 13 insertions(+) diff --git a/CleanSpec.mk b/CleanSpec.mk index 5b5eff406..9fe59086c 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -60,3 +60,11 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib/hw/gatekeeper.$(TARGET_D $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib64/hw/gatekeeper.$(TARGET_DEVICE).so) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/vendor) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/init.rc) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib/libtrusty.so) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib64/libtrusty.so) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib/hw/keystore.trusty.so) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib64/hw/keystore.trusty.so) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib/hw/gatekeeper.trusty.so) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib64/hw/gatekeeper.trusty.so) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/bin/storageproxyd.so) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/bin/trusty_keymaster_tipc.so) diff --git a/trusty/gatekeeper/Android.bp b/trusty/gatekeeper/Android.bp index a9566a17e..011f4a1c6 100644 --- a/trusty/gatekeeper/Android.bp +++ b/trusty/gatekeeper/Android.bp @@ -22,6 +22,7 @@ cc_library_shared { name: "gatekeeper.trusty", + vendor: true, relative_install_path: "hw", diff --git a/trusty/keymaster/Android.bp b/trusty/keymaster/Android.bp index 6b9d72359..6dcfb208b 100644 --- a/trusty/keymaster/Android.bp +++ b/trusty/keymaster/Android.bp @@ -25,6 +25,7 @@ // and ECDSA keys. cc_binary { name: "trusty_keymaster_tipc", + vendor: true, srcs: [ "trusty_keymaster_device.cpp", "trusty_keymaster_ipc.cpp", @@ -45,6 +46,7 @@ cc_binary { // keystore.trusty is the HAL used by keystore on Trusty devices. cc_library_shared { name: "keystore.trusty", + vendor: true, relative_install_path: "hw", srcs: [ "module.cpp", diff --git a/trusty/libtrusty/Android.bp b/trusty/libtrusty/Android.bp index f316da229..88d624048 100644 --- a/trusty/libtrusty/Android.bp +++ b/trusty/libtrusty/Android.bp @@ -18,6 +18,7 @@ subdirs = [ cc_library { name: "libtrusty", + vendor: true, srcs: ["trusty.c"], export_include_dirs: ["include"], diff --git a/trusty/storage/proxy/Android.bp b/trusty/storage/proxy/Android.bp index eb34df014..4088696ce 100644 --- a/trusty/storage/proxy/Android.bp +++ b/trusty/storage/proxy/Android.bp @@ -16,6 +16,7 @@ cc_binary { name: "storageproxyd", + vendor: true, srcs: [ "ipc.c",