From bf1eef94f7a96cfdec2b90228d003c11fd73d2dc Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Mon, 26 Jun 2023 13:05:49 +0200 Subject: [PATCH 1/9] Bump version --- SMCProcessorAMD.xcodeproj/project.pbxproj | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SMCProcessorAMD.xcodeproj/project.pbxproj b/SMCProcessorAMD.xcodeproj/project.pbxproj index 5d61181..eac2ff7 100644 --- a/SMCProcessorAMD.xcodeproj/project.pbxproj +++ b/SMCProcessorAMD.xcodeproj/project.pbxproj @@ -292,7 +292,7 @@ ARCHS = x86_64; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1.0.1; + CURRENT_PROJECT_VERSION = 1.0.2; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", @@ -305,9 +305,9 @@ ); INFOPLIST_FILE = SMCProcessorAMD/Info.plist; LIBRARY_SEARCH_PATHS = "$(PROJECT_DIR)/Lilu.kext/Contents/Resources/Library"; - MARKETING_VERSION = 1.0.1; + MARKETING_VERSION = 1.0.2; MODULE_NAME = as.lorys89.SMCProcessorAMD; - MODULE_VERSION = 1.0.1; + MODULE_VERSION = 1.0.2; OTHER_CPLUSPLUSFLAGS = "-Wno-inconsistent-missing-override"; OTHER_LDFLAGS = "-static"; PRODUCT_BUNDLE_IDENTIFIER = as.lorys89.SMCProcessorAMD; @@ -322,7 +322,7 @@ ARCHS = x86_64; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1.0.1; + CURRENT_PROJECT_VERSION = 1.0.2; GCC_PREPROCESSOR_DEFINITIONS = ( "PRODUCT_NAME=$(PRODUCT_NAME)", "MODULE_VERSION=$(MODULE_VERSION)", @@ -333,9 +333,9 @@ ); INFOPLIST_FILE = SMCProcessorAMD/Info.plist; LIBRARY_SEARCH_PATHS = "$(PROJECT_DIR)/Lilu.kext/Contents/Resources/Library"; - MARKETING_VERSION = 1.0.1; + MARKETING_VERSION = 1.0.2; MODULE_NAME = as.lorys89.SMCProcessorAMD; - MODULE_VERSION = 1.0.1; + MODULE_VERSION = 1.0.2; OTHER_CPLUSPLUSFLAGS = "-Wno-inconsistent-missing-override"; OTHER_LDFLAGS = "-static"; PRODUCT_BUNDLE_IDENTIFIER = as.lorys89.SMCProcessorAMD; From 1bd157d1420b709a42d0005ed47f494a7de1b7bf Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Mon, 26 Jun 2023 13:24:58 +0200 Subject: [PATCH 2/9] fix changelog --- Changelog.md | 2 ++ SMCProcessorAMD.xcodeproj/project.pbxproj | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Changelog.md b/Changelog.md index 54bf6d7..b422949 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,8 @@ SMCProcessorAMD Changelog ====================== +#### v1.0.2 + #### v1.0.1 - Code Fix - Support read cpu proximity temp diff --git a/SMCProcessorAMD.xcodeproj/project.pbxproj b/SMCProcessorAMD.xcodeproj/project.pbxproj index eac2ff7..68b3da8 100644 --- a/SMCProcessorAMD.xcodeproj/project.pbxproj +++ b/SMCProcessorAMD.xcodeproj/project.pbxproj @@ -17,6 +17,7 @@ /* Begin PBXFileReference section */ 776129DF2A4371FE003779C0 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; + A37CAA882A49AA4F00A3C68A /* Changelog.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = Changelog.md; sourceTree = ""; }; B57D27F423F66AE7002BC699 /* SMCProcessorAMD.kext */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SMCProcessorAMD.kext; sourceTree = BUILT_PRODUCTS_DIR; }; B57D27FB23F66AE7002BC699 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; B57D280123F66C8E002BC699 /* SMCProcessorAMD.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SMCProcessorAMD.cpp; sourceTree = ""; }; @@ -42,6 +43,7 @@ isa = PBXGroup; children = ( 776129DF2A4371FE003779C0 /* README.md */, + A37CAA882A49AA4F00A3C68A /* Changelog.md */, B57D27F623F66AE7002BC699 /* SMCProcessorAMD */, B57D27F523F66AE7002BC699 /* Products */, ); From fdfccae7a4d7fcc4ec480c1599c965002b99ce6c Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Mon, 26 Jun 2023 13:38:37 +0200 Subject: [PATCH 3/9] remove unused code --- SMCProcessorAMD/SMCProcessorAMD.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/SMCProcessorAMD/SMCProcessorAMD.cpp b/SMCProcessorAMD/SMCProcessorAMD.cpp index d25b631..2f73164 100644 --- a/SMCProcessorAMD/SMCProcessorAMD.cpp +++ b/SMCProcessorAMD/SMCProcessorAMD.cpp @@ -334,22 +334,3 @@ EXPORT extern "C" kern_return_t ADDPR(kern_stop)(kmod_info_t *, void *) { // It is not safe to unload VirtualSMC plugins! return KERN_FAILURE; } - - -#ifdef __MAC_10_15 - -// macOS 10.15 adds Dispatch function to all OSObject instances and basically -// every header is now incompatible with 10.14 and earlier. -// Here we add a stub to permit older macOS versions to link. -// Note, this is done in both kern_util and plugin_start as plugins will not link -// to Lilu weak exports from vtable. - -kern_return_t WEAKFUNC PRIVATE OSObject::Dispatch(const IORPC rpc) { - PANIC("util", "OSObject::Dispatch smcproc stub called"); -} - -kern_return_t WEAKFUNC PRIVATE OSMetaClassBase::Dispatch(const IORPC rpc) { - PANIC("util", "OSMetaClassBase::Dispatch smcproc stub called"); -} - -#endif From 1c440ac54c5fbf42f1b9d815191abfa9a70edd32 Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Mon, 26 Jun 2023 13:43:42 +0200 Subject: [PATCH 4/9] fix build release withou file dSYM --- SMCProcessorAMD.xcodeproj/project.pbxproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SMCProcessorAMD.xcodeproj/project.pbxproj b/SMCProcessorAMD.xcodeproj/project.pbxproj index 68b3da8..8c4d46f 100644 --- a/SMCProcessorAMD.xcodeproj/project.pbxproj +++ b/SMCProcessorAMD.xcodeproj/project.pbxproj @@ -270,7 +270,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu11; From 9ea5b34af78952c84cc323392345a5795dbb0c3d Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Mon, 26 Jun 2023 19:12:15 +0200 Subject: [PATCH 5/9] os 10.13 and 10.14 add support --- README.md | 4 +++- SMCProcessorAMD.xcodeproj/project.pbxproj | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d84bbb3..3c44407 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,10 @@ VirtualSMC plugin for AMD CPU temperature - macOS Monterey - macOS Big Sur - macOS Catalina +- macOS Mojave +- macOS High sierra -## Legacy systems not supported +## Old systems not supported ## Credits - [Apple](https://www.apple.com) for macOS diff --git a/SMCProcessorAMD.xcodeproj/project.pbxproj b/SMCProcessorAMD.xcodeproj/project.pbxproj index 8c4d46f..7047605 100644 --- a/SMCProcessorAMD.xcodeproj/project.pbxproj +++ b/SMCProcessorAMD.xcodeproj/project.pbxproj @@ -229,7 +229,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 10.13; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; @@ -281,7 +281,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 10.13; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SDKROOT = macosx; @@ -307,6 +307,7 @@ ); INFOPLIST_FILE = SMCProcessorAMD/Info.plist; LIBRARY_SEARCH_PATHS = "$(PROJECT_DIR)/Lilu.kext/Contents/Resources/Library"; + MACOSX_DEPLOYMENT_TARGET = 10.13; MARKETING_VERSION = 1.0.2; MODULE_NAME = as.lorys89.SMCProcessorAMD; MODULE_VERSION = 1.0.2; @@ -335,6 +336,7 @@ ); INFOPLIST_FILE = SMCProcessorAMD/Info.plist; LIBRARY_SEARCH_PATHS = "$(PROJECT_DIR)/Lilu.kext/Contents/Resources/Library"; + MACOSX_DEPLOYMENT_TARGET = 10.13; MARKETING_VERSION = 1.0.2; MODULE_NAME = as.lorys89.SMCProcessorAMD; MODULE_VERSION = 1.0.2; From a86f61a24f0de25059ca4c75494cbf292e93ed61 Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Mon, 26 Jun 2023 19:20:18 +0200 Subject: [PATCH 6/9] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c44407..681ac01 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ VirtualSMC plugin for AMD CPU temperature - macOS Big Sur - macOS Catalina - macOS Mojave -- macOS High sierra +- macOS High Sierra ## Old systems not supported From c7b5711a8585d3b62404bcdcb60602b1cddda30b Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Mon, 26 Jun 2023 19:29:02 +0200 Subject: [PATCH 7/9] add min & max kernel os version --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 681ac01..91bbcd2 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,13 @@ VirtualSMC plugin for AMD CPU temperature ## Supported Systems -- macOS Sonoma -- macOS Ventura -- macOS Monterey -- macOS Big Sur -- macOS Catalina -- macOS Mojave -- macOS High Sierra +- macOS Sonoma 14.x (min kern 23.0.0 - max kernel 23.99.99) +- macOS Ventura 13.x (min kern 22.0.0 - max kernel 22.99.99) +- macOS Monterey 12.x (min kern 21.0.0 - max kernel 21.99.99) +- macOS Big Sur 11.x (min kern 20.0.0 - max kernel 20.99.99) +- macOS Catalina 10.15.x (min kern 19.0.0 - max kernel 19.99.99) +- macOS Mojave 10.14.x (min kern 18.0.0 - max kernel 18.99.99) +- macOS High Sierra 10.13.x (min kern 17.0.0 - max kernel 17.99.99) ## Old systems not supported From ab426fc9d58b91a6c51b193eeefb775d059833f2 Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Mon, 26 Jun 2023 19:32:42 +0200 Subject: [PATCH 8/9] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 91bbcd2..76d243c 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,13 @@ VirtualSMC plugin for AMD CPU temperature ## Supported Systems -- macOS Sonoma 14.x (min kern 23.0.0 - max kernel 23.99.99) -- macOS Ventura 13.x (min kern 22.0.0 - max kernel 22.99.99) -- macOS Monterey 12.x (min kern 21.0.0 - max kernel 21.99.99) -- macOS Big Sur 11.x (min kern 20.0.0 - max kernel 20.99.99) -- macOS Catalina 10.15.x (min kern 19.0.0 - max kernel 19.99.99) -- macOS Mojave 10.14.x (min kern 18.0.0 - max kernel 18.99.99) -- macOS High Sierra 10.13.x (min kern 17.0.0 - max kernel 17.99.99) +- macOS Sonoma 14.x (MinKernel 23.0.0 - MaxKernel 23.99.99) +- macOS Ventura 13.x (MinKernel 22.0.0 - MaxKernel 22.99.99) +- macOS Monterey 12.x (MinKernel 21.0.0 - MaxKernel 21.99.99) +- macOS Big Sur 11.x (MinKernel 20.0.0 - MaxKernel 20.99.99) +- macOS Catalina 10.15.x (MinKernel 19.0.0 - MaxKernel 19.99.99) +- macOS Mojave 10.14.x (MinKernel 18.0.0 - MaxKernel 18.99.99) +- macOS High Sierra 10.13.x (MinKernel 17.0.0 - MaxKernel 17.99.99) ## Old systems not supported From bccac580d28963dc518a09281a16630751137d65 Mon Sep 17 00:00:00 2001 From: Lorys89 <64613690+Lorys89@users.noreply.github.com> Date: Mon, 26 Jun 2023 19:37:06 +0200 Subject: [PATCH 9/9] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 76d243c..18cdfce 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,10 @@ VirtualSMC plugin for AMD CPU temperature ## Supported Systems -- macOS Sonoma 14.x (MinKernel 23.0.0 - MaxKernel 23.99.99) -- macOS Ventura 13.x (MinKernel 22.0.0 - MaxKernel 22.99.99) -- macOS Monterey 12.x (MinKernel 21.0.0 - MaxKernel 21.99.99) -- macOS Big Sur 11.x (MinKernel 20.0.0 - MaxKernel 20.99.99) +- macOS Sonoma 14.x.x (MinKernel 23.0.0 - MaxKernel 23.99.99) +- macOS Ventura 13.x.x (MinKernel 22.0.0 - MaxKernel 22.99.99) +- macOS Monterey 12.x.x (MinKernel 21.0.0 - MaxKernel 21.99.99) +- macOS Big Sur 11.x.x (MinKernel 20.0.0 - MaxKernel 20.99.99) - macOS Catalina 10.15.x (MinKernel 19.0.0 - MaxKernel 19.99.99) - macOS Mojave 10.14.x (MinKernel 18.0.0 - MaxKernel 18.99.99) - macOS High Sierra 10.13.x (MinKernel 17.0.0 - MaxKernel 17.99.99)