Add gbs option to attach the test key 46/194046/2
authorPawel Kowalski <p.kowalski2@partner.samsung.com>
Wed, 28 Nov 2018 10:49:46 +0000 (11:49 +0100)
committerPawel Kowalski <p.kowalski2@partner.samsung.com>
Mon, 3 Dec 2018 10:53:16 +0000 (11:53 +0100)
To attach the test key add following option to the gbs build:
--define "test_key ON". If the option is not set or is set to value
different than ON, the key won't be attached (it is not attached by
default).

Change-Id: Ied386b44ab85a4fdd2229a75cb444f40aca0b163

packaging/key-manager-ta.spec

index aa99bf4bfa034f1f82a9345edf3e78b5c7402e8e..17320cdcc4cbafc8be4eaf39f549dc76b102d436 100644 (file)
@@ -4,7 +4,7 @@
 %define ta_name %{unified_ta_devkit_get_ta_name 00000000000000000000666666555555}
 
 %define attach_product_key OFF
-%define attach_test_key OFF
+%define attach_test_key %{?test_key:%test_key}%{!?test_key:OFF}
 
 %define secret_ta_key_enable OFF