mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-12 09:54:36 +01:00
exclude newyer theme
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
1148542685
commit
fd93022f92
@ -1166,7 +1166,7 @@ if [[ -d "${SRCROOT}/CloverV2/EFI/CLOVER/drivers/$DRIVERS_OFF/$DRIVERS_UEFI/Memo
|
||||
|
||||
buildpackage "$packageRefId" "${driverName}" "${PKG_BUILD_DIR}/${driverName}" "${driverDestDir}"
|
||||
addChoice --group="MemoryFix64UEFI" --title="$driverName" \
|
||||
--start-selected="choicePreviouslySelected('$packageRefId')" \
|
||||
--start-visible="true" --start-selected="true" \
|
||||
--pkg-refs="$packageRefId" "${driverName}"
|
||||
rm -R -f "${PKG_BUILD_DIR}/${driverName}"
|
||||
done
|
||||
@ -1333,7 +1333,7 @@ fi
|
||||
if [[ ${NOEXTRAS} != *"Clover Themes"* ]]; then
|
||||
echo "======================== Themes ========================"
|
||||
addGroupChoices "Themes"
|
||||
local specialThemes=('christmas' 'newyear')
|
||||
local specialThemes=('christmas')
|
||||
|
||||
# Using themes section from Azi's/package branch.
|
||||
packagesidentity="${clover_package_identity}".themes
|
||||
@ -1369,7 +1369,7 @@ if [[ ${NOEXTRAS} != *"Clover Themes"* ]]; then
|
||||
for (( i = 0 ; i < ${#specialThemes[@]} ; i++ )); do
|
||||
local themeName=${specialThemes[$i]##*/}
|
||||
# Don't add christmas and newyear themes if month < 11
|
||||
[[ $currentMonth -lt 11 ]] && [[ "$themeName" == christmas || "$themeName" == newyear ]] && continue
|
||||
[[ $currentMonth -lt 11 ]] && [[ "$themeName" == christmas ]] && continue
|
||||
mkdir -p "${PKG_BUILD_DIR}/${themeName}/Root/"
|
||||
rsync -r --exclude=.svn --exclude="*~" "$artwork/${specialThemes[$i]}/" "${PKG_BUILD_DIR}/${themeName}/Root/${themeName}"
|
||||
packageRefId=$(getPackageRefId "${packagesidentity}" "${themeName}")
|
||||
|
@ -284,7 +284,7 @@ void GetCPUProperties (void)
|
||||
if (gCPUStructure.Vendor == CPU_VENDOR_INTEL) {
|
||||
// Determine turbo boost support
|
||||
DoCpuid(6, gCPUStructure.CPUID[CPUID_6]);
|
||||
gCPUStructure.Turbo = ((gCPUStructure.CPUID[CPUID_6][EAX] & (1 << 1)) != 0);
|
||||
gCPUStructure.Turbo = ((gCPUStructure.CPUID[CPUID_6][EAX] & BIT1) != 0);
|
||||
DBG(" The CPU%s supported turbo\n", gCPUStructure.Turbo?"":" not");
|
||||
//get cores and threads
|
||||
switch (gCPUStructure.Model)
|
||||
@ -351,6 +351,15 @@ void GetCPUProperties (void)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (gCPUStructure.Vendor == CPU_VENDOR_INTEL) {
|
||||
DoCpuid(7, gCPUStructure.CPUID[CPUID_7]);
|
||||
if ((gCPUStructure.CPUID[CPUID_7][EBX] & BIT1) != 0) {
|
||||
DBG(" IA32_TSC_ADJUST MSR is supported \n");
|
||||
msr = AsmReadMsr64(IA32_TSC_ADJUST); //0x3B
|
||||
DBG(" value to adjust = %llu\n", msr);
|
||||
}
|
||||
}
|
||||
|
||||
//workaround for Xeon Harpertown and Yorkfield
|
||||
if ((gCPUStructure.Model == CPU_MODEL_PENRYN) &&
|
||||
@ -512,7 +521,7 @@ void GetCPUProperties (void)
|
||||
|
||||
//----test C3 patch
|
||||
msr = AsmReadMsr64(MSR_PKG_CST_CONFIG_CONTROL); //0xE2
|
||||
MsgLog("MSR 0xE2 before patch %08llX\n", msr);
|
||||
MsgLog("MSR 0xE2 before patch %08llX\n", msr);
|
||||
if (msr & 0x8000) {
|
||||
MsgLog("MSR 0xE2 is locked, PM patches will be turned on\n");
|
||||
NeedPMfix = TRUE;
|
||||
@ -524,13 +533,13 @@ void GetCPUProperties (void)
|
||||
// MsgLog("MSR 0xE4 %08X\n", msr);
|
||||
//------------
|
||||
msr = AsmReadMsr64(MSR_PLATFORM_INFO); //0xCE
|
||||
MsgLog("MSR 0xCE %08llX_%08llX\n", (msr>>32), msr & 0xFFFFFFFFull);
|
||||
MsgLog("MSR 0xCE %08llX_%08llX\n", (msr>>32), msr & 0xFFFFFFFFull);
|
||||
gCPUStructure.MaxRatio = (UINT8)RShiftU64(msr, 8) & 0xff;
|
||||
gCPUStructure.MinRatio = (UINT8)MultU64x32(RShiftU64(msr, 40) & 0xff, 10);
|
||||
//--- Check if EIST locked
|
||||
msr = AsmReadMsr64(MSR_IA32_MISC_ENABLE); //0x1A0
|
||||
if (msr & _Bit(20)) {
|
||||
MsgLog("MSR 0x1A0 %08llX\n", msr);
|
||||
MsgLog("MSR 0x1A0 %08llX\n", msr);
|
||||
MsgLog(" EIST is locked and %s\n", (msr & _Bit(16))?"enabled":"disabled");
|
||||
}
|
||||
|
||||
@ -545,13 +554,13 @@ void GetCPUProperties (void)
|
||||
AsmWriteMsr64(MSR_FLEX_RATIO, (msr & 0xFFFFFFFFFFFEFFFFULL));
|
||||
gBS->Stall(10);
|
||||
msr = AsmReadMsr64(MSR_FLEX_RATIO);
|
||||
MsgLog("corrected FLEX_RATIO = %llX\n", msr);
|
||||
MsgLog("corrected FLEX_RATIO = %llX\n", msr);
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((gCPUStructure.CPUID[CPUID_6][ECX] & (1 << 3)) != 0) {
|
||||
msr = AsmReadMsr64(IA32_ENERGY_PERF_BIAS); //0x1B0
|
||||
MsgLog("MSR 0x1B0 %08llX\n", msr);
|
||||
MsgLog("MSR 0x1B0 %08llX\n", msr);
|
||||
}
|
||||
|
||||
if(gCPUStructure.MaxRatio) {
|
||||
@ -633,8 +642,8 @@ void GetCPUProperties (void)
|
||||
gCPUStructure.Turbo4 = (UINT16)(gCPUStructure.MaxRatio + 10);
|
||||
}
|
||||
DBG("MSR dumps:\n");
|
||||
DBG("\t@0x00CD=%llx\n", msr);
|
||||
DBG("\t@0x0198=%llx\n", AsmReadMsr64(MSR_IA32_PERF_STATUS));
|
||||
DBG("\t@0x00CD=%llx\n", msr);
|
||||
DBG("\t@0x0198=%llx\n", AsmReadMsr64(MSR_IA32_PERF_STATUS));
|
||||
break;
|
||||
default:
|
||||
gCPUStructure.TSCFrequency = MultU64x32(gCPUStructure.CurrentSpeed, Mega); //MHz -> Hz
|
||||
@ -679,8 +688,6 @@ void GetCPUProperties (void)
|
||||
UINT64 busFrequency = 0;
|
||||
UINT64 cpuFrequency = 0;
|
||||
|
||||
|
||||
|
||||
gCPUStructure.TSCFrequency = MultU64x32(gCPUStructure.CurrentSpeed, Mega); //MHz -> Hz
|
||||
DBG("CurrentSpeed: %llu\n", DivU64x32(gCPUStructure.TSCFrequency, Mega));
|
||||
|
||||
@ -1112,7 +1119,7 @@ void GetCPUProperties (void)
|
||||
//Slice - why 2:1? Intel spec said 3:4 - QCLK_RATIO at offset 0x50
|
||||
// && (Device == 2) && (Function == 1)) {
|
||||
&& (Device == 3) && (Function == 4)) {
|
||||
DBG("Found QCLK_RATIO at bus 0x%02llX dev=%llX funs=%llX\n", Bus, Device, Function);
|
||||
DBG("Found QCLK_RATIO at bus 0x%02llX dev=%llX funs=%llX\n", Bus, Device, Function);
|
||||
Status = PciIo->Mem.Read (
|
||||
PciIo,
|
||||
EfiPciIoWidthUint32,
|
||||
|
@ -182,7 +182,7 @@ const char CPU_STRING_UNKNOWN[] = "Unknown CPU Type";
|
||||
#define MSR_IA32_PLATFORM_ID 0x0017
|
||||
//#define IA32_APIC_BASE 0x001B /* used also for AMD */
|
||||
#define MSR_CORE_THREAD_COUNT 0x0035 /* limited use - not for Penryn or older */
|
||||
//#define IA32_TSC_ADJUST 0x003B
|
||||
#define IA32_TSC_ADJUST 0x003B
|
||||
#define MSR_IA32_BIOS_SIGN_ID 0x008B /* microcode version */
|
||||
#define MSR_FSB_FREQ 0x00CD /* limited use - not for i7 */
|
||||
/*
|
||||
@ -316,11 +316,12 @@ MSR C001006B 0000-0000-0000-0000
|
||||
#define CPUID_4 4
|
||||
#define CPUID_5 5
|
||||
#define CPUID_6 6
|
||||
#define CPUID_80 7
|
||||
#define CPUID_81 8
|
||||
#define CPUID_87 9
|
||||
#define CPUID_88 10
|
||||
#define CPUID_81E 11
|
||||
#define CPUID_7 7
|
||||
#define CPUID_80 10
|
||||
#define CPUID_81 11
|
||||
#define CPUID_87 12
|
||||
#define CPUID_88 13
|
||||
#define CPUID_81E 14
|
||||
#define CPUID_15 15
|
||||
#define CPUID_MAX 16
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user