Generalize create-combined-dtb to use VC4DTBO from board config
[AGL/meta-agl.git] / meta-security / recipes-security / cynara / cynara / 0003-Avoid-warning-when-compiling-without-smack.patch
1 From fdcf2a68a4bfec588b1c6c969caa0be20961b807 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Jos=C3=A9=20Bollo?= <jose.bollo@iot.bzh>
3 Date: Thu, 25 Jan 2018 11:38:16 +0100
4 Subject: [PATCH] Avoid warning when compiling without smack
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 When DB_FILES_SMACK_LABEL is not defined, cmake complains
10 with the following message:
11
12 >  -- Checking for modules ''
13 >  Please specify at least one package name on the command line.
14
15 Change-Id: Ie837cae81114d096f951ec0ee4ada4173fb60190
16 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
17
18 ---
19  src/admin/CMakeLists.txt | 10 +++++-----
20  1 file changed, 5 insertions(+), 5 deletions(-)
21
22 diff --git a/src/admin/CMakeLists.txt b/src/admin/CMakeLists.txt
23 index e4f354a..38b8669 100644
24 --- a/src/admin/CMakeLists.txt
25 +++ b/src/admin/CMakeLists.txt
26 @@ -23,12 +23,12 @@ IF (DB_FILES_SMACK_LABEL)
27     SET(SMACK "smack")
28     SET(LIBSMACK "libsmack")
29     ADD_DEFINITIONS("-DDB_FILES_SMACK_LABEL=\"${DB_FILES_SMACK_LABEL}\"")
30 -ENDIF (DB_FILES_SMACK_LABEL)
31  
32 -PKG_CHECK_MODULES(CYNARA_ADMIN_API_DEP
33 -    REQUIRED
34 -    ${LIBSMACK}
35 -    )
36 +   PKG_CHECK_MODULES(CYNARA_ADMIN_API_DEP
37 +      REQUIRED
38 +      ${LIBSMACK}
39 +   )
40 +ENDIF (DB_FILES_SMACK_LABEL)
41  
42  SET(CYNARA_LIB_CYNARA_ADMIN_PATH ${CYNARA_PATH}/admin)
43