Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/../NullCPUPowerManagement-r11 2/Info.plist b/./Info.plist
index 77edcb2..e386f34 100644
--- a/../NullCPUPowerManagement-r11 2/Info.plist
+++ b/./Info.plist
@@ -6,14 +6,14 @@
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
- <key>CFBundleName</key>
- <string>${PRODUCT_NAME}</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
- <string>${MODULE_NAME}</string>
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleSignature</key>
@@ -30,13 +30,12 @@
<string>NullCPUPowerManagement</string>
<key>IOMatchCategory</key>
<string>AppleIntelCPUPowerManagement</string>
+ <key>IOProbeScore</key>
+ <integer>100</integer>
<key>IOProviderClass</key>
<string>IOResources</string>
<key>IOResourceMatch</key>
<string>IOKit</string>
- <!-- Give ourselves a higher probe score so we can claim the resource -->
- <key>IOProbeScore</key>
- <integer>100</integer>
</dict>
</dict>
<key>OSBundleLibraries</key>
@@ -48,11 +47,7 @@
<key>com.apple.kpi.unsupported</key>
<string>8.0.0</string>
</dict>
- <!-- Make sure we get loaded by boot rather than later by kextd.
- Normally this wouldn't matter except the install DVD doesn't contain
- us and we want to make sure we get loaded in that case.
- -->
- <key>OSBundleRequired</key>
- <string>Root</string>
+ <key>OSBundleRequired</key>
+ <string>Root</string>
</dict>
</plist>
diff --git a/../NullCPUPowerManagement-r11 2/NullCPUPowerManagement.cpp b/./NullCPUPowerManagement.cpp
index 7765288..703fe40 100644
--- a/../NullCPUPowerManagement-r11 2/NullCPUPowerManagement.cpp
+++ b/./NullCPUPowerManagement.cpp
@@ -168,7 +168,7 @@ IOService *NullCPUPowerManagement::probe(IOService *provider, SInt32 *score)
}
#endif
char crap[20];
- if(PE_parse_boot_arg("-allowAppleCPUPM", crap))
+ if(PE_parse_boot_argn("-allowAppleCPUPM", crap, sizeof(crap)))
{
IOLog("NullCPUPowerManagement is respecting the -allowAppleCPUPM flag.\n");
return NULL;
diff --git a/../NullCPUPowerManagement-r11 2/NullCPUPowerManagement.xcodeproj/project.pbxproj b/./NullCPUPowerManagement.xcodeproj/project.pbxproj
index 0077a8a..29eaa7e 100644
--- a/../NullCPUPowerManagement-r11 2/NullCPUPowerManagement.xcodeproj/project.pbxproj
+++ b/./NullCPUPowerManagement.xcodeproj/project.pbxproj
@@ -108,9 +108,16 @@
/* Begin PBXProject section */
089C1669FE841209C02AAC07 /* Project object */ = {
isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0920;
+ };
buildConfigurationList = 1DEB91DD08733DB10010E9CD /* Build configuration list for PBXProject "NullCPUPowerManagement" */;
compatibilityVersion = "Xcode 3.0";
+ developmentRegion = en;
hasScannedForEncodings = 1;
+ knownRegions = (
+ en,
+ );
mainGroup = 089C166AFE841209C02AAC07 /* NullCPUPowerManagement */;
projectDirPath = "";
projectRoot = "";
@@ -174,9 +181,9 @@
GCC_OPTIMIZATION_LEVEL = 0;
INFOPLIST_FILE = Info.plist;
INFOPLIST_PREPROCESS = YES;
- INSTALL_PATH = "$(SYSTEM_LIBRARY_DIR)/Extensions";
MODULE_NAME = org.tgwbd.driver.NullCPUPowerManagement;
MODULE_VERSION = 1.0.0d2;
+ PRODUCT_BUNDLE_IDENTIFIER = "${MODULE_NAME}";
PRODUCT_NAME = NullCPUPowerManagement;
WRAPPER_EXTENSION = kext;
};
@@ -190,9 +197,9 @@
GCC_MODEL_TUNING = G5;
INFOPLIST_FILE = Info.plist;
INFOPLIST_PREPROCESS = YES;
- INSTALL_PATH = "$(SYSTEM_LIBRARY_DIR)/Extensions";
MODULE_NAME = org.tgwbd.driver.NullCPUPowerManagement;
MODULE_VERSION = 1.0.0d2;
+ PRODUCT_BUNDLE_IDENTIFIER = "${MODULE_NAME}";
PRODUCT_NAME = NullCPUPowerManagement;
WRAPPER_EXTENSION = kext;
};
@@ -201,24 +208,66 @@
1DEB91DE08733DB10010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.13;
+ ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
- SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk";
+ SDKROOT = macosx;
};
name = Debug;
};
1DEB91DF08733DB10010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ARCHS = (
- ppc,
- i386,
- );
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.13;
PREBINDING = NO;
- SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk";
+ SDKROOT = macosx;
};
name = Release;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.