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

EnableGop: Provide release and pre-release versions with build

上级 a9d34648
......@@ -14,6 +14,7 @@ OpenCore Changelog
- Implemented `InitialMode` option to allow fine control over text renderer operating mode
- Added support for `ConsoleMode` text resolution setting to `Builtin` renderer
- Fixed regression for ACPI quirks `RebaseRegions` and `SyncTableIds`
- Updated build process to provide stable and bleeding-edge versions of `EnableGop`
#### v0.9.1
- Fixed long comment printing for ACPI patches, thx @corpnewt
......
......@@ -22,7 +22,7 @@
BUILD_TARGETS = RELEASE|DEBUG|NOOPT
SKUID_IDENTIFIER = DEFAULT
DSC_SPECIFICATION = 0x00010006
# FLASH_DEFINITION = OpenCorePkg/OpenCorePkg.fdf
FLASH_DEFINITION = OpenCorePkg/OpenCorePkg.fdf
#
# Network definition
......
......@@ -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]
INF_VERSION = 0x00010005
BASE_NAME = EnableGop
FILE_GUID = 3FBA58B1-F8C0-41BC-ACD8-253043A3A17F
MODULE_TYPE = DXE_DRIVER
VERSION_STRING = 1.4
VERSION_STRING = 1.4-dev
ENTRY_POINT = UefiMain
#
......
......@@ -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]
INF_VERSION = 0x00010005
BASE_NAME = EnableGopDirect
FILE_GUID = 3FBA58B1-F8C0-41BC-ACD8-253043A3A17F
MODULE_TYPE = DXE_DRIVER
VERSION_STRING = 1.4
VERSION_STRING = 1.4-dev
ENTRY_POINT = UefiMain
#
......
......@@ -69,6 +69,33 @@ buildutil() {
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() {
if [ ! -d "$1" ]; then
echo "Missing package directory $1"
......@@ -251,31 +278,40 @@ package() {
fi
done
# Copy Mac Pro GOP firmware driver.
# # mkdir -p "${dstdir}/Utilities/EnableGop" || exit 1
# # ENABLE_GOP_GUID="3FBA58B1-F8C0-41BC-ACD8-253043A3A17F"
# # ffsNames=(
# # "EnableGop"
# # "EnableGopDirect"
# # )
# # for ffsName in "${ffsNames[@]}"; do
# # cp "FV/Ffs/${ENABLE_GOP_GUID}${ffsName}/${ENABLE_GOP_GUID}.ffs" "${dstdir}/Utilities/EnableGop/${ffsName}.ffs" || exit 1
# # done
# # gopDrivers=(
# # "EnableGop.efi"
# # "EnableGopDirect.efi"
# # )
# # for file in "${gopDrivers[@]}"; do
# # cp "X64/${file}" "${dstdir}/Utilities/EnableGop"/ || exit 1
# # 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
# Copy EFI-era Mac GOP firmware driver.
eg_ver=$(get_inf_version "${selfdir}/Staging/EnableGop/EnableGop.inf") || exit 1
egdirect_ver=$(get_inf_version "${selfdir}/Staging/EnableGop/EnableGopDirect.inf") || exit 1
if [ "${eg_ver}" != "${egdirect_ver}" ] ; then
echo "Mismatched EnableGop versions (${eg_ver} and ${egdirect_ver})!"
exit 1
fi
mkdir -p "${dstdir}/Utilities/EnableGop/Pre-release" || exit 1
ENABLE_GOP_GUID="3FBA58B1-F8C0-41BC-ACD8-253043A3A17F"
ffsNames=(
"EnableGop"
"EnableGopDirect"
)
for ffsName in "${ffsNames[@]}"; do
cp "FV/Ffs/${ENABLE_GOP_GUID}${ffsName}/${ENABLE_GOP_GUID}.ffs" "${dstdir}/Utilities/EnableGop/Pre-release/${ffsName}_${eg_ver}.ffs" || exit 1
done
gopDrivers=(
"EnableGop"
"EnableGopDirect"
)
for file in "${gopDrivers[@]}"; do
cp "X64/${file}.efi" "${dstdir}/Utilities/EnableGop/Pre-release/${file}_${eg_ver}.efi" || exit 1
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.
mkdir "${dstdir}/Utilities/BaseTools" || exit 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册