Fix compilation when secureboot is not enabled.

This commit is contained in:
jief666 2024-01-10 14:44:42 +01:00
parent bac4bac33a
commit d27103447c
3 changed files with 39 additions and 0 deletions

1
.gitignore vendored
View File

@ -10,6 +10,7 @@
*~
.cache
/Conf
/ConfJief
/toolchain/

View File

@ -0,0 +1,8 @@
#include <Uefi.h>
#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wunused"
#endif
int gOpensslLibNullDummy; // to silence libtool warning saying that there is no symbols

View File

@ -0,0 +1,30 @@
## @file
# OpenSSL Library implementation.
#
# Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
##
[Defines]
INF_VERSION = 0x00010017
BASE_NAME = OpensslLib
MODULE_UNI_FILE = OpensslLib.uni
FILE_GUID = C873A7D0-9824-409f-9B42-2C158B992E69
MODULE_TYPE = BASE
VERSION_STRING = 1.0
LIBRARY_CLASS = OpensslLib
[Packages]
MdePkg/MdePkg.dec
#CloverPkg.dec
[Sources]
OpensslLibNull.c