Skip to content

Commit

Permalink
Fix compilation when secureboot is not enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
jief666 committed Jan 10, 2024
1 parent bac4bac commit d271034
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*~
.cache
/Conf
/ConfJief
/toolchain/


Expand Down
8 changes: 8 additions & 0 deletions Library/OpensslLib/OpensslLibNull.c
Original file line number Diff line number Diff line change
@@ -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
30 changes: 30 additions & 0 deletions Library/OpensslLib/OpensslLibNull.inf
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d271034

Please sign in to comment.