modified buildmtoc

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2023-03-23 20:35:49 +03:00
parent 0fceb2622a
commit f54aafe218
4 changed files with 7992 additions and 4 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,7 @@
if [ -z "$WORKSPACE" ] if [ -z "$WORKSPACE" ]
then then
echo WORKSPACE must be defined to Clover root path echo WORKSPACE must be defined to Clover root path
exit 1 export WORKSPACE=`pwd`
fi fi
# Ctools source version # Ctools source version
@ -94,11 +94,11 @@ fnDownloadCctools ()
local tarball="cctools-${CCTOOLS_VERSION}.tar.gz" local tarball="cctools-${CCTOOLS_VERSION}.tar.gz"
if [[ ! -f "$tarball" ]]; then if [[ ! -f "$tarball" ]]; then
echo "Status: $tarball not found." echo "Status: $tarball not found."
curl -f -o download.tmp --remote-name https://opensource.apple.com/tarballs/cctools/$tarball || exit 1 curl -f -o download.tmp --remote-name https://github.com/apple-oss-distributions/cctools/archive/refs/tags/$tarball || exit 1
mv download.tmp $tarball mv download.tmp $tarball
fi fi
} }
#https://github.com/apple-oss-distributions/cctools/archive/refs/tags/cctools-973.0.1.tar.gz
### Extract ### ### Extract ###
@ -142,7 +142,8 @@ fnExtract ()
tar -C "$DIR_BUILD" -x "$tar_filter_option" -f "${tarball}" && touch "${DIR_BUILD}/$package.extracted" tar -C "$DIR_BUILD" -x "$tar_filter_option" -f "${tarball}" && touch "${DIR_BUILD}/$package.extracted"
#jief copy the modified version that keeps __mod_init_func section #jief copy the modified version that keeps __mod_init_func section
cp "$WORKSPACE"/BaseTools/Source/C/mtoc/mtoc-v921_jief.c "$DIR_BUILD/$top_level_dir"/efitools/mtoc.c #cp "$WORKSPACE"/BaseTools/Source/C/mtoc/mtoc-v921_jief.c "$DIR_BUILD/$top_level_dir"/efitools/mtoc.c
cp "$WORKSPACE"/Patches/Mtoc/mtoc-v973_jief.c "$DIR_BUILD/$top_level_dir"/efitools/mtoc.c
fi fi
# Restore stdout for the result and close file desciptor 3 # Restore stdout for the result and close file desciptor 3