Skip to content

Commit 01796b0

Browse files
author
Tyler Erickson
committed
release: Finish Release-20.02
2 parents 3897584 + e84fe8f commit 01796b0

File tree

69 files changed

+16885
-1210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+16885
-1210
lines changed

.cirrus.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
task:
2+
name: FreeBSD
3+
freebsd_instance:
4+
matrix:
5+
image_family: freebsd-13-0-snap
6+
image_family: freebsd-12-0
7+
install_script: pkg install -y git gmake
8+
submodules_script: git submodule update --init --recursive --progress
9+
release_script:
10+
- cd Make/gcc
11+
- gmake release

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[submodule "opensea-common"]
22
path = opensea-common
3-
url = ../opensea-common.git
3+
url = https://github.com/Seagate/opensea-common.git
44
[submodule "opensea-transport"]
55
path = opensea-transport
6-
url = ../opensea-transport.git
6+
url = https://github.com/Seagate/opensea-transport.git
77
[submodule "opensea-operations"]
88
path = opensea-operations
9-
url = ../opensea-operations.git
9+
url = https://github.com/Seagate/opensea-operations.git
1010
[submodule "wingetopt"]
1111
path = wingetopt
1212
url = https://github.com/Seagate/wingetopt.git

Make/UEFI/copy_files.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
3+
function usage {
4+
echo "This script will copy all files required to build openSeaChest to the edk2/UDK path specified."
5+
echo "Once the script is done copying, change the target.txt to build one of the following:"
6+
echo " OpenSeaChestPkg/openSeaChestPkg.dsc"
7+
echo
8+
echo "How to use: copy_files.sh <path to edk2 directory>"
9+
}
10+
11+
#check that we were given the correct number of parameters
12+
if [ "$#" -lt 1 ]; then
13+
usage
14+
fi
15+
scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
16+
openSeaChestBaseDir=$(dirname "$(dirname "$scriptDir")")
17+
18+
#check that the directory exists
19+
if [ -d "$1" ]; then
20+
mkdir -p "$1/openSeaChestPkg"
21+
openSeaChestPkgDir="$1/openSeaChestPkg"
22+
#start by copying the files in openSeaChest
23+
cp -r "$openSeaChestBaseDir/utils" "$openSeaChestPkgDir"
24+
cp -r "$openSeaChestBaseDir/include" "$openSeaChestPkgDir"
25+
cp -r "$openSeaChestBaseDir/src" "$openSeaChestPkgDir"
26+
#copy UEFI makefiles for openSeaChest
27+
cp -r "$openSeaChestBaseDir/Make/UEFI/openSeaChest"* "$openSeaChestPkgDir"
28+
#now copy opensea-libs
29+
"$openSeaChestBaseDir"/opensea-common/Make/UEFI/copy_files.sh "$1"
30+
"$openSeaChestBaseDir"/opensea-transport/Make/UEFI/copy_files.sh "$1"
31+
"$openSeaChestBaseDir"/opensea-operations/Make/UEFI/copy_files.sh "$1"
32+
33+
else
34+
echo "Cannot find specified path: $1"
35+
fi

Make/UEFI/openSeaChestPkg.dec

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## @file
2+
3+
##
4+
5+
6+
[Defines]
7+
DEC_SPECIFICATION = 0x00010005
8+
PACKAGE_NAME = openSeaChest
9+
PACKAGE_GUID = B3E3D3D5-D62B-4497-A175-264F489D127E
10+
PACKAGE_VERSION = 0.01
11+
12+
13+
[Guids]
14+
# gAppPkgTokenSpaceGuid = { 0xe7e1efa6, 0x7607, 0x4a78, { 0xa7, 0xdd, 0x43, 0xe4, 0xbd, 0x72, 0xc0, 0x99 }}
15+
16+
17+
[PcdsFixedAtBuild]
18+
# gAppPkgTokenSpaceGuid.DataSource_Port|1234|UINT16|0
19+
# gAppPkgTokenSpaceGuid.Tftp_AckLogBase|4|UINT32|1
20+
# gAppPkgTokenSpaceGuid.Tftp_AckMultiplier|4|UINT32|2
21+
# gAppPkgTokenSpaceGuid.Tftp_Bandwidth|0|BOOLEAN|3
22+
# gAppPkgTokenSpaceGuid.Tftp_HighSpeed|0|BOOLEAN|4
23+
# gAppPkgTokenSpaceGuid.Tftp_MaxRetry|10|UINT32|5
24+
# gAppPkgTokenSpaceGuid.Tftp_MaxTimeoutInSec|3|UINT32|6
25+
# gAppPkgTokenSpaceGuid.WebServer_HttpPort|80|UINT16|7
26+

Make/UEFI/openSeaChestPkg.dsc

Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
## @file
2+
# openSeaChest development file for EDKII
3+
# This package contains applications which depend upon Standard Libraries
4+
# from the StdLib package.
5+
#
6+
# See the comments in the [LibraryClasses.IA32] and [BuildOptions] sections
7+
# for important information about configuring this package for your
8+
# environment.
9+
#
10+
##
11+
12+
[Defines]
13+
PLATFORM_NAME = openSeaChestPkg
14+
PLATFORM_GUID = dd2c189f-a31a-473d-bfe4-de8500b3bdff
15+
PLATFORM_VERSION = 0.01
16+
DSC_SPECIFICATION = 0x00010006
17+
OUTPUT_DIRECTORY = Build/openSeaChestPkg
18+
SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64|IPF
19+
BUILD_TARGETS = DEBUG|RELEASE|NOOPT
20+
SKUID_IDENTIFIER = DEFAULT
21+
22+
#
23+
# Debug output control
24+
#
25+
DEFINE DEBUG_ENABLE_OUTPUT = FALSE # Set to TRUE to enable debug output
26+
DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x80000040 # Flags to control amount of debug output
27+
DEFINE DEBUG_PROPERTY_MASK = 0
28+
29+
[PcdsFeatureFlag]
30+
31+
[PcdsFixedAtBuild]
32+
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|$(DEBUG_PROPERTY_MASK)
33+
gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)
34+
35+
[PcdsFixedAtBuild.IPF]
36+
37+
[LibraryClasses]
38+
#
39+
# Entry Point Libraries
40+
#
41+
UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
42+
ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
43+
UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
44+
#
45+
# Common Libraries
46+
#
47+
BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
48+
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
49+
UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
50+
PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
51+
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
52+
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
53+
UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
54+
UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
55+
!if $(DEBUG_ENABLE_OUTPUT)
56+
DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
57+
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
58+
!else ## DEBUG_ENABLE_OUTPUT
59+
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
60+
!endif ## DEBUG_ENABLE_OUTPUT
61+
62+
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
63+
PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
64+
IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
65+
PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
66+
PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
67+
SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
68+
UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
69+
HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
70+
UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
71+
PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
72+
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
73+
FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
74+
SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
75+
76+
ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
77+
78+
CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
79+
80+
LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
81+
82+
opensea-commonlib|opensea-libs/opensea-common/opensea-common.inf
83+
opensea-transportlib|opensea-libs/opensea-transport/opensea-transport.inf
84+
opensea-operationslib|opensea-libs/opensea-operations/opensea-operations.inf
85+
86+
###################################################################################################
87+
#
88+
# Components Section - list of the modules and components that will be processed by compilation
89+
# tools and the EDK II tools to generate PE32/PE32+/Coff image files.
90+
#
91+
# Note: The EDK II DSC file is not used to specify how compiled binary images get placed
92+
# into firmware volume images. This section is just a list of modules to compile from
93+
# source into UEFI-compliant binaries.
94+
# It is the FDF file that contains information on combining binary files into firmware
95+
# volume images, whose concept is beyond UEFI and is described in PI specification.
96+
# Binary modules do not need to be listed in this section, as they should be
97+
# specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
98+
# Logo (Logo.bmp), and etc.
99+
# There may also be modules listed in this section that are not required in the FDF file,
100+
# When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
101+
# generated for it, but the binary will not be put into any firmware volume.
102+
#
103+
###################################################################################################
104+
105+
DEFINE DISABLE_TCG_SUPPORT = 1
106+
107+
[Components]
108+
109+
####Each Utility needs a separate inf file
110+
openSeaChestPkg/openSeaChest_Basics.inf {
111+
<LibraryClasses>
112+
opensea-commonlib|opensea-libs/opensea-common/opensea-common.inf
113+
opensea-transportlib|opensea-libs/opensea-transport/opensea-transport.inf
114+
opensea-operationslib|opensea-libs/opensea-operations/opensea-operations.inf
115+
LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
116+
}
117+
openSeaChestPkg/openSeaChest_Security.inf {
118+
<LibraryClasses>
119+
opensea-commonlib|opensea-libs/opensea-common/opensea-common.inf
120+
opensea-transportlib|opensea-libs/opensea-transport/opensea-transport.inf
121+
opensea-operationslib|opensea-libs/opensea-operations/opensea-operations.inf
122+
LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
123+
}
124+
openSeaChestPkg/openSeaChest_Configure.inf {
125+
<LibraryClasses>
126+
opensea-commonlib|opensea-libs/opensea-common/opensea-common.inf
127+
opensea-transportlib|opensea-libs/opensea-transport/opensea-transport.inf
128+
opensea-operationslib|opensea-libs/opensea-operations/opensea-operations.inf
129+
LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
130+
}
131+
openSeaChestPkg/openSeaChest_Erase.inf {
132+
<LibraryClasses>
133+
opensea-commonlib|opensea-libs/opensea-common/opensea-common.inf
134+
opensea-transportlib|opensea-libs/opensea-transport/opensea-transport.inf
135+
opensea-operationslib|opensea-libs/opensea-operations/opensea-operations.inf
136+
LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
137+
}
138+
openSeaChestPkg/openSeaChest_Firmware.inf {
139+
<LibraryClasses>
140+
opensea-commonlib|opensea-libs/opensea-common/opensea-common.inf
141+
opensea-transportlib|opensea-libs/opensea-transport/opensea-transport.inf
142+
opensea-operationslib|opensea-libs/opensea-operations/opensea-operations.inf
143+
LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
144+
}
145+
openSeaChestPkg/openSeaChest_Format.inf {
146+
<LibraryClasses>
147+
opensea-commonlib|opensea-libs/opensea-common/opensea-common.inf
148+
opensea-transportlib|opensea-libs/opensea-transport/opensea-transport.inf
149+
opensea-operationslib|opensea-libs/opensea-operations/opensea-operations.inf
150+
LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
151+
}
152+
openSeaChestPkg/openSeaChest_GenericTests.inf {
153+
<LibraryClasses>
154+
opensea-commonlib|opensea-libs/opensea-common/opensea-common.inf
155+
opensea-transportlib|opensea-libs/opensea-transport/opensea-transport.inf
156+
opensea-operationslib|opensea-libs/opensea-operations/opensea-operations.inf
157+
LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
158+
}
159+
openSeaChestPkg/openSeaChest_Logs.inf {
160+
<LibraryClasses>
161+
opensea-commonlib|opensea-libs/opensea-common/opensea-common.inf
162+
opensea-transportlib|opensea-libs/opensea-transport/opensea-transport.inf
163+
opensea-operationslib|opensea-libs/opensea-operations/opensea-operations.inf
164+
LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
165+
}
166+
openSeaChestPkg/openSeaChest_NVMe.inf {
167+
<LibraryClasses>
168+
opensea-commonlib|opensea-libs/opensea-common/opensea-common.inf
169+
opensea-transportlib|opensea-libs/opensea-transport/opensea-transport.inf
170+
opensea-operationslib|opensea-libs/opensea-operations/opensea-operations.inf
171+
LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
172+
}
173+
openSeaChestPkg/openSeaChest_PowerControl.inf {
174+
<LibraryClasses>
175+
opensea-commonlib|opensea-libs/opensea-common/opensea-common.inf
176+
opensea-transportlib|opensea-libs/opensea-transport/opensea-transport.inf
177+
opensea-operationslib|opensea-libs/opensea-operations/opensea-operations.inf
178+
LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
179+
}
180+
openSeaChestPkg/openSeaChest_Sample.inf {
181+
<LibraryClasses>
182+
opensea-commonlib|opensea-libs/opensea-common/opensea-common.inf
183+
opensea-transportlib|opensea-libs/opensea-transport/opensea-transport.inf
184+
opensea-operationslib|opensea-libs/opensea-operations/opensea-operations.inf
185+
LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
186+
}
187+
openSeaChestPkg/openSeaChest_SMART.inf {
188+
<LibraryClasses>
189+
opensea-commonlib|opensea-libs/opensea-common/opensea-common.inf
190+
opensea-transportlib|opensea-libs/opensea-transport/opensea-transport.inf
191+
opensea-operationslib|opensea-libs/opensea-operations/opensea-operations.inf
192+
LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
193+
}
194+
openSeaChestPkg/openSeaChest_ZBD.inf {
195+
<LibraryClasses>
196+
opensea-commonlib|opensea-libs/opensea-common/opensea-common.inf
197+
opensea-transportlib|opensea-libs/opensea-transport/opensea-transport.inf
198+
opensea-operationslib|opensea-libs/opensea-operations/opensea-operations.inf
199+
LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
200+
}
201+
202+
##############################################################################
203+
#
204+
# Specify whether we are running in an emulation environment, or not.
205+
# Define EMULATE if we are, else keep the DEFINE commented out.
206+
#
207+
# DEFINE EMULATE = 1
208+
209+
##############################################################################
210+
#
211+
# Include Boilerplate text required for building with the Standard Libraries.
212+
#
213+
##############################################################################
214+
!include StdLib/StdLib.inc

Make/UEFI/openSeaChest_Basics.inf

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
## @file
2+
# openseachest_Basics
3+
#
4+
#
5+
##
6+
7+
[Defines]
8+
INF_VERSION = 0x00010006
9+
BASE_NAME = openSeaChest_Basics
10+
FILE_GUID = 29f1b91c-030e-40d9-aad7-adeaaf15484c
11+
MODULE_TYPE = UEFI_APPLICATION
12+
VERSION_STRING = 1.0
13+
ENTRY_POINT = ShellCEntryLib
14+
15+
#
16+
# VALID_ARCHITECTURES = IA32 X64 ARM AARCH64 IPF
17+
#
18+
19+
[Sources]
20+
include/EULA.h
21+
include/openseachest_util_options.h
22+
src/EULA.c
23+
src/openseachest_util_options.c
24+
utils/C/openSeaChest/openSeaChest_Basics.c
25+
26+
[Packages]
27+
StdLib/StdLib.dec
28+
StdLibPrivateInternalFiles/DoNotUse.dec
29+
MdePkg/MdePkg.dec
30+
ShellPkg/ShellPkg.dec
31+
opensea-libs/opensea-common/opensea-common.dec
32+
opensea-libs/opensea-transport/opensea-transport.dec
33+
opensea-libs/opensea-operations/opensea-operations.dec
34+
35+
[LibraryClasses]
36+
LibC
37+
LibCType
38+
LibMath
39+
LibTime
40+
ShellCEntryLib
41+
UefiLib
42+
BaseLib
43+
BaseMemoryLib
44+
MemoryAllocationLib
45+
LibStdLib
46+
LibStdio
47+
LibString
48+
DevConsole
49+
opensea-commonlib
50+
opensea-transportlib
51+
opensea-operationslib
52+

0 commit comments

Comments
 (0)