summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Kowalski <p.kowalski2@partner.samsung.com>2018-11-28 11:39:49 +0100
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>2018-12-03 15:34:54 +0100
commitc54ed8bd81a76ec23fd0d6e144ea8781623c1ec7 (patch)
tree0ca72e4b95e0c2289c25083b23e56649ddbf148f
parente0d5bfde568340c163bfae0dd047162cdee0de24 (diff)
downloadkey-manager-c54ed8bd81a76ec23fd0d6e144ea8781623c1ec7.tar.gz
key-manager-c54ed8bd81a76ec23fd0d6e144ea8781623c1ec7.tar.bz2
key-manager-c54ed8bd81a76ec23fd0d6e144ea8781623c1ec7.zip
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
-rw-r--r--packaging/key-manager.spec6
1 files changed, 3 insertions, 3 deletions
diff --git a/packaging/key-manager.spec b/packaging/key-manager.spec
index 24fc5ac..c5f8212 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 \