Skip to content

Commit 2754996

Browse files
committed
fix buildme, thanks to MacOSXer
Signed-off-by: Slice <sergey.slice@gmail.com>
1 parent 30870cb commit 2754996

1 file changed

Lines changed: 46 additions & 35 deletions

File tree

buildme

Lines changed: 46 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tell application "Terminal"
3535
# set font name of window 1 to "Monaco"
3636
# set font size of window 1 to "11"
3737
# set normal text color of window 1 to {3341, 35186, 50092}
38-
# set position of first window to {650, 420}
38+
# set position of first window to {915, 474}
3939
end tell
4040
EOF
4141
fi
@@ -319,7 +319,6 @@ buildClover() {
319319

320320
buildCloverXC() {
321321
checkTools
322-
323322
# to force recreation of the Conf folder. You can still use a custom CONF_PATH if you don't want recreation.
324323
rm -rf "$CLOVERROOT"/Conf
325324
mkdir "$CLOVERROOT"/Conf
@@ -341,7 +340,7 @@ buildCloverXC() {
341340
echo "Running custom build script"
342341
"${DIR_TOOLS}"/Scripts/build.sh "${CLOVERROOT}" $MYTOOLCHAIN
343342
else
344-
local xrel="$(defaults read /Applications/Xcode.app/Contents/version.plist CFBundleShortVersionString)"
343+
local xrel="$(defaults read ~/Applications/Xcode.app/Contents/version.plist CFBundleShortVersionString)"
345344
if [[ "$xrel" < "14.*" ]]; then
346345
./ebuild.sh -fr -D NO_GRUB_DRIVERS_EMBEDDED -D USE_APPLE_HFSPLUS_DRIVER -t XCODE8
347346
elif [[ "$xrel" == "14.*" ]]; then
@@ -350,7 +349,7 @@ buildCloverXC() {
350349
./ebuild.sh -fr -D NO_GRUB_DRIVERS_EMBEDDED -D USE_APPLE_HFSPLUS_DRIVER -t XCODE15
351350
elif [[ "$xrel" == "16.*" ]]; then
352351
./ebuild.sh -fr -D NO_GRUB_DRIVERS_EMBEDDED -D USE_APPLE_HFSPLUS_DRIVER -t XCODE16
353-
fi
352+
fi
354353
fi
355354
# Run a post build script if exist (${DIR_TOOLS}/CloverScripts/postbuild.sh)
356355
if [[ -x "${DIR_TOOLS}"/CloverScripts/postbuild.sh ]]; then
@@ -411,10 +410,12 @@ echo "[BUILD CLOVER TEST]"
411410
buildPkg() {
412411
if [[ "$SYSNAME" == Darwin ]]; then
413412
cd "${CLOVERROOT}"/CloverPackage
414-
echo "[BUILD PKG]"
415413
checkXCODE
416414
checkGETTEXT
417-
make pkg
415+
echo "[BUILD PKG]"
416+
echo "The log will be created in the CloverPackage folder."
417+
rm -f mpkg.log
418+
make pkg >mpkg.log
418419
else
419420
echo && echo "can't build pkg on a non Darwin OS!"
420421
fi
@@ -487,6 +488,11 @@ cd "${CLOVERROOT}"/BaseTools
487488
make clean
488489
}
489490

491+
makeBaseTools() {
492+
cd $HOME/src/CloverBootloader
493+
make -C BaseTools "BUILD_CC=clang"
494+
}
495+
490496
## Utilities
491497
buildCPV() {
492498
revision=r$(git describe --tags $(git rev-list --tags --max-count=1))
@@ -788,6 +794,7 @@ options=( 'Cloverbuilds '
788794
'open CloverV2 directory'
789795
'update Clover (reset changes)'
790796
'clean BaseTools'
797+
'make BaseTools'
791798
'Utilities'
792799
'Exit')
793800

@@ -835,6 +842,10 @@ do
835842
fi
836843
break
837844
;;
845+
"make BaseTools")
846+
makeBaseTools
847+
break
848+
;;
838849
"Utilities")
839850
Utilities
840851
break
@@ -898,7 +909,7 @@ do
898909
BLC
899910
buildPkg
900911
buildIso
901-
makeV2
912+
makeV2
902913
break
903914
;;
904915
"make Release (Default Toolchain) ")
@@ -909,51 +920,51 @@ do
909920
makeV2
910921
break
911922
;;
912-
"update Clover ")
923+
"update Clover ")
913924
updateClover
914925
break
915926
;;
916-
"make pkg ")
927+
"make pkg ")
917928
BLC
918929
buildPkg
919930
break
920931
;;
921-
"make iso ")
932+
"make iso ")
922933
buildIso
923934
break
924935
;;
925-
"make Clover_V2")
936+
"make Clover_V2")
926937
makeV2
927938
break
928939
;;
929-
"build Clover (with XCode)")
940+
"build Clover (with XCode)")
930941
buildCloverXC
931942
break
932943
;;
933-
"build all (with XCode)")
934-
buildCloverXC
944+
"build all (with XCode)")
945+
buildCloverXC
935946
BLC
936-
buildPkg
937-
buildIso
938-
makeV2
939-
break
940-
;;
941-
"make Release (with XCode)")
942-
makeReleaseXC
943-
BLC
944-
buildPkg
945-
buildIso
946-
makeV2
947-
break
948-
;;
949-
"build Clover with HFSPlus ")
950-
buildCloverHFSPlus
951-
break
952-
;;
953-
"Extra Options")
954-
Extra
955-
break
956-
;;
947+
buildPkg
948+
buildIso
949+
makeV2
950+
break
951+
;;
952+
"make Release (with XCode)")
953+
makeReleaseXC
954+
BLC
955+
buildPkg
956+
buildIso
957+
makeV2
958+
break
959+
;;
960+
"build Clover with HFSPlus")
961+
buildCloverHFSPlus
962+
break
963+
;;
964+
"Extra Options")
965+
Extra
966+
break
967+
;;
957968
"Exit")
958969
exit 0
959970
;;

0 commit comments

Comments
 (0)