Skip to content

Commit 7b08a61

Browse files
committed
exclude Updater and PrefPane from compilation as obsolete
Signed-off-by: Slice <[email protected]>
1 parent 677fbb1 commit 7b08a61

File tree

7 files changed

+50
-67
lines changed

7 files changed

+50
-67
lines changed

CloverPackage/Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ slimpkg2:
2222
slimpkg3:
2323
@${SRCROOT}/makepkg --nothemes --norc --nolegacy
2424

25-
updatepo:
26-
@${SRCROOT}/package/translate.sh --update-po
25+
#updatepo:
26+
# @${SRCROOT}/package/translate.sh --update-po
2727

2828
utils:
2929
@make -C "${SRCROOT}"/utils all
@@ -32,6 +32,8 @@ install:
3232
@make -C "${SRCROOT}"/utils install
3333

3434
clean:
35-
rm -rf sym obj dst CloverPrefpane/build CloverUpdater/build
35+
rm -rf sym obj dst
36+
#CloverPrefpane/build CloverUpdater/build
37+
38+
.PHONY: clean image iso pkg installer utils
3639

37-
.PHONY: clean image iso pkg installer updatepo utils

CloverPackage/makepkg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ echo "${revision}" > revision
5656
# Make the translation
5757
echo ""
5858
echo "========= Translating Resources ========"
59-
./package/translate.sh || exit $?
59+
#./package/translate.sh || exit $?
6060

6161
# Check that XCode is install properly
6262
xcode_path=$(/usr/bin/xcode-select --print-path 2>/dev/null)

CloverPackage/package/translate.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ while [[ $# -gt 0 ]]; do
5858
done
5959

6060
TEMPLATES_DIR="Resources/templates"
61-
CLOVER_UPDATER_DIR="../CloverUpdater"
62-
CLOVER_PREFPANE_DIR="../CloverPrefpane"
61+
#CLOVER_UPDATER_DIR="../CloverUpdater"
62+
#CLOVER_PREFPANE_DIR="../CloverPrefpane"
6363
PODIR="po"
6464

6565
# Update CloverUpdater.strings
66-
"$CLOVER_UPDATER_DIR"/translate_xib.sh --extract-only
66+
#"$CLOVER_UPDATER_DIR"/translate_xib.sh --extract-only
6767

6868
# Update CloverPrefpane.strings
69-
"$CLOVER_PREFPANE_DIR"/translate_xib.sh --extract-only
69+
#"$CLOVER_PREFPANE_DIR"/translate_xib.sh --extract-only
7070
# Update Localizable.strings
71-
"$CLOVER_PREFPANE_DIR"/translate_source.sh --extract-only
71+
#"$CLOVER_PREFPANE_DIR"/translate_source.sh --extract-only
7272

7373
# Check if pot and po files need to be updated
7474
IFS=$'\n' # '

ebuild.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -519,14 +519,14 @@ MainBuildScript() {
519519

520520
# Cleaning part of the script if we have told to do it
521521
if [[ "$TARGETRULE" == cleanpkg ]]; then
522-
if [[ "$SYSNAME" != Linux ]]; then
523-
# Make some house cleaning
524-
echo "Cleaning CloverUpdater files..."
525-
make -C "$CLOVERROOT"/CloverPackage/CloverUpdater clean
526-
527-
echo "Cleaning CloverPrefpane files..."
528-
make -C "$CLOVERROOT"/CloverPackage/CloverPrefpane clean
529-
fi
522+
# if [[ "$SYSNAME" != Linux ]]; then
523+
# # Make some house cleaning
524+
# echo "Cleaning CloverUpdater files..."
525+
# make -C "$CLOVERROOT"/CloverPackage/CloverUpdater clean
526+
#
527+
# echo "Cleaning CloverPrefpane files..."
528+
# make -C "$CLOVERROOT"/CloverPackage/CloverPrefpane clean
529+
# fi
530530

531531
echo "Cleaning bootsector files..."
532532
local BOOTHFS="$CLOVERROOT"/BootHFS

hebuild.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -515,14 +515,14 @@ MainBuildScript() {
515515

516516
# Cleaning part of the script if we have told to do it
517517
if [[ "$TARGETRULE" == cleanpkg ]]; then
518-
if [[ "$SYSNAME" != Linux ]]; then
519-
# Make some house cleaning
520-
echo "Cleaning CloverUpdater files..."
521-
make -C "$CLOVERROOT"/CloverPackage/CloverUpdater clean
522-
523-
echo "Cleaning CloverPrefpane files..."
524-
make -C "$CLOVERROOT"/CloverPackage/CloverPrefpane clean
525-
fi
518+
# if [[ "$SYSNAME" != Linux ]]; then
519+
# # Make some house cleaning
520+
# echo "Cleaning CloverUpdater files..."
521+
# make -C "$CLOVERROOT"/CloverPackage/CloverUpdater clean
522+
#
523+
# echo "Cleaning CloverPrefpane files..."
524+
# make -C "$CLOVERROOT"/CloverPackage/CloverPrefpane clean
525+
# fi
526526

527527
echo "Cleaning bootsector files..."
528528
local BOOTHFS="$CLOVERROOT"/BootHFS

rEFIt_UEFI/entry_scan/loader.cpp

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,9 +1470,12 @@ STATIC void LinuxScan(REFIT_VOLUME *Volume, UINT8 KernelScan, UINT8 Type, XStrin
14701470
continue;
14711471
}
14721472
XStringW File = SWPrintf("EFI\\%ls\\grubx64.efi", DirEntry->FileName);
1473+
XStringW FileS = SWPrintf("EFI\\%ls\\shimx64.efi", DirEntry->FileName);
14731474
XStringW OSName = XStringW().takeValueFrom(DirEntry->FileName); // this is folder name, for example "ubuntu"
14741475
OSName.lowerAscii(); // lowercase for icon name and title (first letter in title will be capitalized later)
1475-
if (FileExists(Volume->RootDir, File)) {
1476+
XBool F1 = FileExists(Volume->RootDir, File);
1477+
XBool F2 = FileExists(Volume->RootDir, FileS);
1478+
if (F1 || F2) {
14761479
// check if nonstandard icon mapping is needed
14771480
for (Index = 0; Index < LinuxIconMappingCount; ++Index) {
14781481
if (StrCmp(OSName.wc_str(),LinuxIconMapping[Index].DirectoryName) == 0) {
@@ -1485,7 +1488,8 @@ STATIC void LinuxScan(REFIT_VOLUME *Volume, UINT8 KernelScan, UINT8 Type, XStrin
14851488
}
14861489
XStringW LoaderTitle = OSName.subString(0,1); // capitalize first letter for title
14871490
LoaderTitle.upperAscii();
1488-
LoaderTitle += OSName.subString(1, OSName.length()) + L" Linux"_XSW;
1491+
XStringW LoaderTitle1 = LoaderTitle + OSName.subString(1, OSName.length()) + L" Linux"_XSW;
1492+
XStringW LoaderTitle2 = LoaderTitle + OSName.subString(1, OSName.length()) + L" Secure"_XSW;
14891493
// Very few linux icons exist in IconNames, but these few may be preloaded, so check that first
14901494
XIcon ImageX = ThemeX->GetIcon(L"os_"_XSW + OSName); //will the image be destroyed or rewritten by next image after the cycle end?
14911495
if (ImageX.isEmpty()) {
@@ -1500,9 +1504,20 @@ STATIC void LinuxScan(REFIT_VOLUME *Volume, UINT8 KernelScan, UINT8 Type, XStrin
15001504
DirIterClose(&DirIter);
15011505
return;
15021506
}
1503-
AddLoaderEntry(File, NullXString8Array, L""_XSW, LoaderTitle, Volume,
1507+
if (F1) {
1508+
AddLoaderEntry(File, NullXString8Array, L""_XSW, LoaderTitle1, Volume,
1509+
(ImageX.isEmpty() ? NULL : &ImageX), OSTYPE_LIN, OSFLAG_NODEFAULTARGS);
1510+
}
1511+
if (F2) {
1512+
AddLoaderEntry(FileS, NullXString8Array, L""_XSW, LoaderTitle2, Volume,
15041513
(ImageX.isEmpty() ? NULL : &ImageX), OSTYPE_LIN, OSFLAG_NODEFAULTARGS);
1514+
}
15051515
} //anyway continue search other entries
1516+
// for secure boot?
1517+
1518+
if (FileExists(Volume->RootDir, File)) {
1519+
1520+
}
15061521
}
15071522
DirIterClose(&DirIter);
15081523

rEFIt_UEFI/libeg/FloatLib.cpp

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ float FloorF(float X)
138138

139139
float ModF(float X, float Y)
140140
{
141+
if (Y == 0.0f) return 0.0f;
141142
INT32 I = (INT32)(X / Y);
142143
return (X - (float)I * Y);
143144
}
@@ -219,15 +220,7 @@ float Atan2F(float Y, float X) //result -pi..+pi
219220
return sign * (res - PP);
220221
}
221222

222-
/*
223-
RETURN_STATUS
224-
EFIAPI
225-
AsciiStrDecimalToUintnS (
226-
IN CONST CHAR8 *String,
227-
OUT CHAR8 **EndPointer, OPTIONAL
228-
OUT UINTN *Data
229-
);
230-
*/
223+
231224
RETURN_STATUS
232225
AsciiStrToFloat(IN CONST CHAR8 *String,
233226
OUT CHAR8 **EndPointer, OPTIONAL
@@ -334,36 +327,9 @@ void QuickSort(void* Array, INTN Low, INTN High, INTN Size, INTN (*compare)(CONS
334327
if (j > Low) QuickSort(Array, Low, j, Size, compare);
335328
if (High > i) QuickSort(Array, i, High, Size, compare);
336329
}
337-
//
338-
////S must be allocated before use
339-
//void AsciiSPrintFloat(CHAR8* S, INTN N, CHAR8* F, float X)
340-
//{
341-
// INTN I, Fract;
342-
// float D;
343-
// if (!S) {
344-
// return;
345-
// }
346-
//
347-
// I = (INTN)X;
348-
// D = (float)I;
349-
// Fract = fabsf((X - D) * 1000000.0f);
350-
// snprintf(S, N, "%D.%06D", I, (INTN)Fract);
351-
//}
330+
352331
#endif
353-
//
354-
//CHAR16* P__oolPrintFloat(float X)
355-
//{
356-
// INTN I, Fract;
357-
// CHAR8 S = ' ';
358-
// float D;
359-
// I = (INTN)X;
360-
// D = (float)I;
361-
// if (I == 0 && X < 0) {
362-
// S = '-';
363-
// }
364-
// Fract = (INTN)fabsf((X - D) * 1000000.0f);
365-
// return P__oolPrint(L"%c%d.%06d", S, I, Fract);
366-
//}
332+
367333

368334
static UINT32 seed = 12345;
369335
float rndf() //expected 0..1

0 commit comments

Comments
 (0)