Skip to content

Commit

Permalink
crypto/zuc: fix dependency check
Browse files Browse the repository at this point in the history
[ upstream commit d0246e0 ]

The check for the zuc library dependency did not check for the include
file needed for compilation. It's also recommended when looking for a
library to use the name without the lib prefix.

Fixes: df1740a ("crypto/zuc: enable meson build")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
  • Loading branch information
bruce-richardson authored and kevintraynor committed May 8, 2019
1 parent 8ec3ea4 commit e13b2e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/crypto/zuc/meson.build
@@ -1,12 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation

lib = cc.find_library('libsso_zuc', required: false)
if not lib.found()
lib = cc.find_library('sso_zuc', required: false)
if not lib.found() or not cc.has_header('sso_zuc.h')
build = false
else
ext_deps += lib
subdir_done()
endif

ext_deps += lib
sources = files('rte_zuc_pmd.c', 'rte_zuc_pmd_ops.c')
deps += ['bus_vdev']

0 comments on commit e13b2e6

Please sign in to comment.