From c54ed8bd81a76ec23fd0d6e144ea8781623c1ec7 Mon Sep 17 00:00:00 2001 From: Pawel Kowalski Date: Wed, 28 Nov 2018 11:39:49 +0100 Subject: Add gbs option to enable the TZ backend support To enable the TZ backend support add following option to the gbs build: --define "tz_backend ON". If the option is not set or is set to value different than ON, the TZ backend support is disabled (it is disabled by default). Change-Id: If6ebd2625ea7b559df52c8fc6da659a99e53a9f9 --- packaging/key-manager.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/key-manager.spec b/packaging/key-manager.spec index 24fc5ac8..c5f82121 100644 --- a/packaging/key-manager.spec +++ b/packaging/key-manager.spec @@ -1,7 +1,7 @@ %global watchdog_enabled 1 %global watchdog_timeout_sec 60 %global watchdog_notify_sec 20 -%global tz_backend_enabled 0 +%global tz_backend_enabled %{?tz_backend:%tz_backend}%{!?tz_backend:OFF} Name: key-manager Summary: Central Key Manager and utilities @@ -36,7 +36,7 @@ BuildRequires: pkgconfig(argos_watchdog) %endif BuildRequires: boost-devel BuildRequires: ca-certificates-devel -%if %{tz_backend_enabled} == 1 +%if %{tz_backend_enabled} == ON BuildRequires: key-manager-ta-devel BuildRequires: key-manager-ta-serialization-devel BuildRequires: pkgconfig(tef-libteec) @@ -176,7 +176,7 @@ export LDFLAGS+="-Wl,--rpath=%{_libdir},-Bsymbolic-functions " -DWATCHDOG_TIMEOUT_SEC=%{watchdog_timeout_sec} \ -DWATCHDOG_NOTIFY_SEC=%{watchdog_notify_sec} \ %endif -%if %{tz_backend_enabled} == 1 +%if %{tz_backend_enabled} == ON -DTZ_BACKEND_ENABLED=ON \ %else -DTZ_BACKEND_ENABLED=OFF \ -- cgit v1.2.3