提交 9fe1d14a 编写于 作者: M Mike Beaton

EnableGop: Provide release and pre-release versions with build

上级 a9d34648
...@@ -14,6 +14,7 @@ OpenCore Changelog ...@@ -14,6 +14,7 @@ OpenCore Changelog
- Implemented `InitialMode` option to allow fine control over text renderer operating mode - Implemented `InitialMode` option to allow fine control over text renderer operating mode
- Added support for `ConsoleMode` text resolution setting to `Builtin` renderer - Added support for `ConsoleMode` text resolution setting to `Builtin` renderer
- Fixed regression for ACPI quirks `RebaseRegions` and `SyncTableIds` - Fixed regression for ACPI quirks `RebaseRegions` and `SyncTableIds`
- Updated build process to provide stable and bleeding-edge versions of `EnableGop`
#### v0.9.1 #### v0.9.1
- Fixed long comment printing for ACPI patches, thx @corpnewt - Fixed long comment printing for ACPI patches, thx @corpnewt
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
BUILD_TARGETS = RELEASE|DEBUG|NOOPT BUILD_TARGETS = RELEASE|DEBUG|NOOPT
SKUID_IDENTIFIER = DEFAULT SKUID_IDENTIFIER = DEFAULT
DSC_SPECIFICATION = 0x00010006 DSC_SPECIFICATION = 0x00010006
# FLASH_DEFINITION = OpenCorePkg/OpenCorePkg.fdf FLASH_DEFINITION = OpenCorePkg/OpenCorePkg.fdf
# #
# Network definition # Network definition
......
...@@ -7,12 +7,15 @@ ...@@ -7,12 +7,15 @@
# #
## ##
# Note: VERSION_STRING is compiled into the .ffs file, so updates to Staging/EnableGop/Release
# folder contents should be built locally, or on non-master branch in CI, without -dev suffix
# on VERSION_STRING, and then copied from the built Utilities/EnableGop/Pre-release folder.
[Defines] [Defines]
INF_VERSION = 0x00010005 INF_VERSION = 0x00010005
BASE_NAME = EnableGop BASE_NAME = EnableGop
FILE_GUID = 3FBA58B1-F8C0-41BC-ACD8-253043A3A17F FILE_GUID = 3FBA58B1-F8C0-41BC-ACD8-253043A3A17F
MODULE_TYPE = DXE_DRIVER MODULE_TYPE = DXE_DRIVER
VERSION_STRING = 1.4 VERSION_STRING = 1.4-dev
ENTRY_POINT = UefiMain ENTRY_POINT = UefiMain
# #
......
...@@ -7,12 +7,15 @@ ...@@ -7,12 +7,15 @@
# #
## ##
# Note: VERSION_STRING is compiled into the .ffs file, so updates to Staging/EnableGop/Release
# folder contents should be built locally, or on non-master branch in CI, without -dev suffix
# on VERSION_STRING, and then copied from the built Utilities/EnableGop/Pre-release folder.
[Defines] [Defines]
INF_VERSION = 0x00010005 INF_VERSION = 0x00010005
BASE_NAME = EnableGopDirect BASE_NAME = EnableGopDirect
FILE_GUID = 3FBA58B1-F8C0-41BC-ACD8-253043A3A17F FILE_GUID = 3FBA58B1-F8C0-41BC-ACD8-253043A3A17F
MODULE_TYPE = DXE_DRIVER MODULE_TYPE = DXE_DRIVER
VERSION_STRING = 1.4 VERSION_STRING = 1.4-dev
ENTRY_POINT = UefiMain ENTRY_POINT = UefiMain
# #
......
...@@ -69,6 +69,33 @@ buildutil() { ...@@ -69,6 +69,33 @@ buildutil() {
popd || exit popd || exit
} }
get_inf_version() {
VER="VERSION_STRING"
if [ ! -f "${1}" ]; then
echo "Missing .inf file ${1}" > /dev/stderr
exit 1
fi
ver_line=$(grep -E "${VER} *=" "${1}")
if [ "${ver_line}" = "" ] ; then
echo "Missing ${VER} in ${1}" > /dev/stderr
exit 1
fi
read -ra ver_array <<<"${ver_line}"
if [ "${ver_array[0]}" != "${VER}" ] ||
[ "${ver_array[1]}" != "=" ] ||
[ "${ver_array[2]}" = "" ] ; then
echo "Malformed ${VER} line in ${1}" > /dev/stderr
exit 1
fi
echo "${ver_array[2]}"
}
package() { package() {
if [ ! -d "$1" ]; then if [ ! -d "$1" ]; then
echo "Missing package directory $1" echo "Missing package directory $1"
...@@ -251,31 +278,40 @@ package() { ...@@ -251,31 +278,40 @@ package() {
fi fi
done done
# Copy Mac Pro GOP firmware driver. # Copy EFI-era Mac GOP firmware driver.
# # mkdir -p "${dstdir}/Utilities/EnableGop" || exit 1 eg_ver=$(get_inf_version "${selfdir}/Staging/EnableGop/EnableGop.inf") || exit 1
# # ENABLE_GOP_GUID="3FBA58B1-F8C0-41BC-ACD8-253043A3A17F" egdirect_ver=$(get_inf_version "${selfdir}/Staging/EnableGop/EnableGopDirect.inf") || exit 1
# # ffsNames=(
# # "EnableGop" if [ "${eg_ver}" != "${egdirect_ver}" ] ; then
# # "EnableGopDirect" echo "Mismatched EnableGop versions (${eg_ver} and ${egdirect_ver})!"
# # ) exit 1
# # for ffsName in "${ffsNames[@]}"; do fi
# # cp "FV/Ffs/${ENABLE_GOP_GUID}${ffsName}/${ENABLE_GOP_GUID}.ffs" "${dstdir}/Utilities/EnableGop/${ffsName}.ffs" || exit 1
# # done mkdir -p "${dstdir}/Utilities/EnableGop/Pre-release" || exit 1
# # gopDrivers=( ENABLE_GOP_GUID="3FBA58B1-F8C0-41BC-ACD8-253043A3A17F"
# # "EnableGop.efi" ffsNames=(
# # "EnableGopDirect.efi" "EnableGop"
# # ) "EnableGopDirect"
# # for file in "${gopDrivers[@]}"; do )
# # cp "X64/${file}" "${dstdir}/Utilities/EnableGop"/ || exit 1 for ffsName in "${ffsNames[@]}"; do
# # done cp "FV/Ffs/${ENABLE_GOP_GUID}${ffsName}/${ENABLE_GOP_GUID}.ffs" "${dstdir}/Utilities/EnableGop/Pre-release/${ffsName}_${eg_ver}.ffs" || exit 1
# # helpFiles=( done
# # "README.md" gopDrivers=(
# # "UEFITool_Inserted_Screenshot.png" "EnableGop"
# # "vBiosInsert.sh" "EnableGopDirect"
# # ) )
# # for file in "${helpFiles[@]}"; do for file in "${gopDrivers[@]}"; do
# # cp "${selfdir}/Staging/EnableGop/${file}" "${dstdir}/Utilities/EnableGop"/ || exit 1 cp "X64/${file}.efi" "${dstdir}/Utilities/EnableGop/Pre-release/${file}_${eg_ver}.efi" || exit 1
# # done done
helpFiles=(
"README.md"
"UEFITool_Inserted_Screenshot.png"
"vBiosInsert.sh"
)
for file in "${helpFiles[@]}"; do
cp "${selfdir}/Staging/EnableGop/${file}" "${dstdir}/Utilities/EnableGop"/ || exit 1
done
cp "${selfdir}/Staging/EnableGop/Release/"* "${dstdir}/Utilities/EnableGop"/ || exit 1
# Provide EDK-II BaseTools. # Provide EDK-II BaseTools.
mkdir "${dstdir}/Utilities/BaseTools" || exit 1 mkdir "${dstdir}/Utilities/BaseTools" || exit 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册