The IPA module signing mechanism relies on openssl to generate keys and sign the module. If openssl is not found on the system, the build will fail. Make the dependency optional by detecting openssl, and skip generation of signatures if openssl isn't found. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
23 lines
471 B
C++
23 lines
471 B
C++
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2020, Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
*
|
|
* ipa_pub_key.cpp - IPA module signing public key
|
|
*
|
|
* This file is auto-generated. Do not edit.
|
|
*/
|
|
|
|
#include "ipa_manager.h"
|
|
|
|
namespace libcamera {
|
|
|
|
#if HAVE_IPA_PUBKEY
|
|
const uint8_t IPAManager::publicKeyData_[] = {
|
|
${ipa_key}
|
|
};
|
|
|
|
const PubKey IPAManager::pubKey_{ { IPAManager::publicKeyData_ } };
|
|
#endif
|
|
|
|
} /* namespace libcamera */
|