skloc 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/ext/skl.yml +289 -0
  3. data/lib/skloc.rb +50 -0
  4. metadata +86 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 78c8670597ce8d225a2e88c8df68b46d8996758ce0636e2fe4dca7ef71f29a15
4
+ data.tar.gz: 0b1864d776c48e33beb8f20b37f86c091d3c99d535e18adbbf379c2d8722b061
5
+ SHA512:
6
+ metadata.gz: f0408811f8b540613eddb546191e7d31f45cdb90621e1ca10dfcb396d5d38bb1f5429a5f58a5b09a480c0824bfd939ae5e58644fac69bcea6b069f4ebba90be3
7
+ data.tar.gz: c185ab41e7e2f5b1698810030b9dd59ca3d9e5f75e32e9a6dd39eaecac116b3f2c738ad47a244756411d0535230f22ce1fbce990a63fd7bc8acf7c6e7babb053
data/ext/skl.yml ADDED
@@ -0,0 +1,289 @@
1
+ ACPI:
2
+ Add: []
3
+ #-
4
+ #Enabled: false
5
+ #Comment: 'DSDT'
6
+ #Path: 'DSDT.aml'
7
+ Delete: []
8
+ Patch: []
9
+ Quirks:
10
+ FadtEnableReset: false
11
+ NormalizeHeaders: false
12
+ RebaseRegions: false
13
+ ResetHwSig: false
14
+ ResetLogoStatus: true
15
+
16
+ Booter:
17
+ MmioWhitelist: []
18
+ Patch: []
19
+ Quirks:
20
+ AllowRelocationBlock: false
21
+ AvoidRuntimeDefrag: true
22
+ DevirtualiseMmio: false
23
+ DisableSingleUser: false
24
+ DisableVariableWrite: false
25
+ DiscardHibernateMap: false
26
+ EnableSafeModeSlide: true
27
+ EnableWriteUnprotector: true
28
+ ForceExitBootServices: false
29
+ ProtectMemoryRegions: false
30
+ ProtectSecureBoot: false
31
+ ProtectUefiServices: false
32
+ ProvideCustomSlide: true
33
+ ProvideMaxSlide: 0
34
+ RebuildAppleMemoryMap: false
35
+ SetupVirtualMap: true
36
+ SignalAppleOS: false
37
+ SyncRuntimePermissions: false
38
+
39
+ DeviceProperties:
40
+ Add:
41
+ PciRoot(0x0)/Pci(0x2,0x0):
42
+ #AAPL,ig-platform-id: 00001B19
43
+ AAPL,slot-name: 'Internal@0,2,0'
44
+ #device-id: 1B190000
45
+ # ...
46
+ device_type: 'VGA compatible controller'
47
+ # Let Hacintool do it
48
+
49
+ Delete: {}
50
+
51
+ Kernel:
52
+ Add:
53
+ -
54
+ Arch: 'x86_64'
55
+ BundlePath: 'Lilu.kext'
56
+ Comment: 'Patch engine'
57
+ Enabled: true
58
+ ExecutablePath: 'Contents/MacOS/Lilu'
59
+ MaxKernel: ''
60
+ MinKernel: '10.0.0'
61
+ PlistPath: 'Contents/Info.plist'
62
+ -
63
+ Arch: 'x86_64'
64
+ BundlePath: 'VirtualSMC.kext'
65
+ Comment: 'SMC emulator'
66
+ Enabled: true
67
+ ExecutablePath: 'Contents/MacOS/VirtualSMC'
68
+ MaxKernel: ''
69
+ MinKernel: '10.0.0'
70
+ PlistPath: 'Contents/Info.plist'
71
+ -
72
+ Arch: 'x86_64'
73
+ BundlePath: 'WhateverGreen.kext'
74
+ Comment: 'Video patches'
75
+ Enabled: true
76
+ ExecutablePath: 'Contents/MacOS/WhateverGreen'
77
+ MaxKernel: ''
78
+ MinKernel: '12.0.0'
79
+ PlistPath: 'Contents/Info.plist'
80
+ -
81
+ Arch: 'x86_64'
82
+ BundlePath: 'SMCProcessor.kext'
83
+ Comment: 'Prosessor'
84
+ Enabled: true
85
+ ExecutablePath: 'Contents/MacOS/SMCProcessor'
86
+ MaxKernel: ''
87
+ MinKernel: ''
88
+ PlistPath: 'Contents/Info.plist'
89
+ -
90
+ Arch: 'x86_64'
91
+ BundlePath: 'AppleALC.kext'
92
+ Comment: 'Audio patches'
93
+ Enabled: true
94
+ ExecutablePath: 'Contents/MacOS/AppleALC'
95
+ MaxKernel: ''
96
+ MinKernel: '12.0.0'
97
+ PlistPath: 'Contents/Info.plist'
98
+ Block: []
99
+ Emulate:
100
+ #Cpuid1Data
101
+ #Cpuid1Mask
102
+ DummyPowerManagement: false
103
+ MaxKernel: ''
104
+ MinKernel: ''
105
+
106
+ Force: []
107
+ Patch: []
108
+ Quirks:
109
+ AppleCpuPmCfgLock: true
110
+ AppleXcpmCfgLock: true
111
+ AppleXcpmExtraMsrs: false
112
+ AppleXcpmForceBoost: false
113
+ CustomSMBIOSGuid: false
114
+ DisableIoMapper: true
115
+ DisableLinkeditJettison: true
116
+ DisableRtcChecksum: false
117
+ ExtendBTFeatureFlags: false
118
+ ExternalDiskIcons: false
119
+ ForceSecureBootScheme: false
120
+ IncreasePciBarSize: false
121
+ LapicKernelPanic: false
122
+ LegacyCommpage: false
123
+ PanicNoKextDump: true
124
+ PowerTimeoutKernelPanic: false
125
+ SetApfsTrimTimeout: -1
126
+ ThirdPartyDrives: false
127
+ XhciPortLimit: false
128
+ Scheme:
129
+ FuzzyMatch: true
130
+ KernelArch: 'x86_64'
131
+ KernelCache: 'Auto'
132
+
133
+ Misc:
134
+ BlessOverride: []
135
+ Boot:
136
+ ConsoleAttributes: 0
137
+ HibernateMode: 'None'
138
+ HideAuxiliary: false
139
+ LauncherOption: 'Disabled'
140
+ LauncherPath: 'Default'
141
+ PickerAttributes: 17
142
+ PickerAudioAssist: false
143
+ PickerMode: 'Builtin'
144
+ PickerVariant: 'Auto'
145
+ PollAppleHotKeys: false
146
+ ShowPicker: true
147
+ TakeoffDelay: 0
148
+ Timeout: 1
149
+ Debug:
150
+ AppleDebug: false
151
+ ApplePanic: false
152
+ DisableWatchDog: true
153
+ DisplayDelay: 0
154
+ DisplayLevel: 2147483650
155
+ SerialInit: false
156
+ SysReport: false
157
+ Target: 0
158
+ Entries: []
159
+ Security:
160
+ AllowNvramReset: true
161
+ AllowSetDefault: true
162
+ ApECID: 0
163
+ AuthRestart: false
164
+ BlacklistAppleUpdate: true
165
+ DmgLoading: 'Signed'
166
+ EnablePassword: false
167
+ ExposeSensitiveData: 0
168
+ HaltLevel: 2147483648
169
+ #PasswordHash
170
+ #PasswordSalt
171
+ ScanPolicy: 0
172
+ SecureBootModel: 'Default'
173
+ Vault: 'Optional'
174
+ Tools: []
175
+
176
+ NVRAM:
177
+ Add:
178
+ 4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14: {}
179
+ 7C436110-AB2A-4BBB-A880-FE41995C9F82:
180
+ #SystemAudioVolume
181
+ boot-args: ''
182
+ #csr-active-config
183
+ #prev-lang:kbd
184
+ run-efi-updater: 'No'
185
+ Delete: {}
186
+ LegacyEnable: false
187
+ LegacyOverwrite: false
188
+ LegacySchema:
189
+ 7C436110-AB2A-4BBB-A880-FE41995C9F82: ['EFILoginHiDPI', 'EFIBluetoothDelay', 'LocationServicesEnabled', 'SystemAudioVolume','SystemAudioVolumeDB', 'SystemAudioVolumeSaved', 'bluetoothActiveControllerInfo', 'bluetoothInternalControllerInfo', 'flagstate', 'fmm-computer-name', 'fmm-mobileme-token-FMM', 'fmm-mobileme-token-FMM-BridgeHasAccount', 'nvda_drv', 'prev-lang:kbd', ]
190
+ 8BE4DF61-93CA-11D2-AA0D-00E098032B8C:
191
+ - 'Boot0080'
192
+ - 'Boot0081'
193
+ - 'Boot0082'
194
+ - 'BootNext'
195
+ - 'BootOrder'
196
+ WriteFlash: true
197
+
198
+ PlatformInfo:
199
+ Automatic: true
200
+ CustomMemory: false
201
+ Generic:
202
+ AdviseWindows: false
203
+ MLB: ''
204
+ MaxBIOSVersion: false
205
+ ProcessorType: 0
206
+ #ROM
207
+ SpoofVendor: true
208
+ SystemMemoryStatus: 'Auto'
209
+ SystemProductName: ''
210
+ SystemSerialNumber: 'W00000000001'
211
+ SystemUUID: '00000000-0000-0000-0000-000000000000'
212
+ UpdateDataHub: true
213
+ UpdateNVRAM: true
214
+ UpdateSMBIOS: true
215
+ UpdateSMBIOSMode: 'Create'
216
+ UseRawUuidEncoding: false
217
+
218
+ UEFI:
219
+ APFS:
220
+ EnableJumpstart: true
221
+ GlobalConnect: false
222
+ HideVerbose: true
223
+ JumpstartHotPlug: false
224
+ MinDate: 0
225
+ MinVersion: 0
226
+ Audio:
227
+ AudioCodec: 0
228
+ AudioDevice: 'PciRoot(0x0)/Pci(0x1b,0x0)'
229
+ AudioOut: 0
230
+ AudioSupport: false
231
+ MinimumVolume: 20
232
+ PlayChime: 'Auto'
233
+ ResetTrafficClass: false
234
+ SetupDelay: 0
235
+ VolumeAmplifier: 0
236
+ ConnectDrivers: true
237
+ Drivers: ['HfsPlus.efi', 'OpenRuntime.efi']
238
+ Input:
239
+ KeyFiltering: false
240
+ KeyForgetThreshold: 5
241
+ KeySupport: true
242
+ KeySupportMode: 'Auto'
243
+ KeySwap: false
244
+ PointerSupport: false
245
+ PointerSupportMode: 'ASUS'
246
+ TimerResolution: 50000
247
+ Output:
248
+ ClearScreenOnModeSwitch: false
249
+ ConsoleMode: ''
250
+ DirectGopRendering: false
251
+ ForceResolution: false
252
+ GopPassThrough: false
253
+ IgnoreTextInGraphics: false
254
+ ProvideConsoleGop: true
255
+ ReconnectOnResChange: false
256
+ ReplaceTabWithSpace: false
257
+ Resolution: 'Max'
258
+ SanitiseClearScreen: false
259
+ TextRenderer: 'BuiltinGraphics'
260
+ UgaPassThrough: false
261
+ ProtocolOverrides:
262
+ AppleAudio: false
263
+ AppleBootPolicy: false
264
+ AppleDebugLog: false
265
+ AppleEvent: false
266
+ AppleFramebufferInfo: false
267
+ AppleImageConversion: false
268
+ AppleImg4Verification: false
269
+ AppleKeyMap: false
270
+ AppleRtcRam: false
271
+ AppleSecureBoot: false
272
+ AppleSmcIo: false
273
+ AppleUserInterfaceTheme: false
274
+ DataHub: false
275
+ DeviceProperties: false
276
+ FirmwareVolume: true
277
+ HashServices: false
278
+ OSInfo: false
279
+ UnicodeCollation: false
280
+ Quirks:
281
+ ActivateHpetSupport: false
282
+ DisableSecurityPolicy: false
283
+ ExitBootServicesDelay: 0
284
+ IgnoreInvalidFlexRatio: false
285
+ ReleaseUsbOwnership: true
286
+ RequestBootVarRouting: true
287
+ TscSyncTimeout: 0
288
+ UnblockFsConnect: false
289
+ ReservedMemory: []
data/lib/skloc.rb ADDED
@@ -0,0 +1,50 @@
1
+ require 'yaml_extend'
2
+ require 'plist'
3
+ require 'base64_string'
4
+
5
+ module SKLoc
6
+ def self.marshal(f)
7
+ config = YAML.ext_load_file "#{f}"
8
+ return config
9
+ end
10
+ def self.wPlist(v)
11
+ sPath = File::expand_path("#{__FILE__}../../../ext/skl.yml")
12
+ yCt = YAML.ext_load_file sPath
13
+ self.cVersion(yCt, v)
14
+ pCt = yCt.to_plist
15
+ pFile = File.new("config.plist", "w")
16
+ pFile.syswrite(pCt) if pFile
17
+ end
18
+ def self.cVersion(configObj, v)
19
+ if v == 'r'
20
+ configObj['Misc']['Debug']['AppleDebug'] = false
21
+ configObj['Misc']['Debug']['ApplePanic'] = false
22
+ configObj['Misc']['Debug']['Target'] = 0
23
+ configObj['Misc']['Security']['AllowNvramReset'] = false
24
+ configObj['NVRAM']['Add']['7C436110-AB2A-4BBB-A880-FE41995C9F82']['boot-args'] = '-no_compat_check -wegnoegpu'
25
+ else
26
+ configObj['Misc']['Debug']['AppleDebug'] = true
27
+ configObj['Misc']['Debug']['ApplePanic'] = true
28
+ configObj['Misc']['Debug']['Target'] = 67
29
+ configObj['Misc']['Security']['AllowNvramReset'] = true
30
+ configObj['NVRAM']['Add']['7C436110-AB2A-4BBB-A880-FE41995C9F82']['boot-args'] = '-v dart=0 debug=0x100 ncpi=0x200 keepsyms=1 -no_compat_check -wegnoegpu'
31
+ end
32
+ self.addDataToPlist(configObj)
33
+ end
34
+ def self.addDataToPlist(configObj)
35
+ configObj['Kernel']['Emulate']['Cpuid1Data'] = self.wData('')
36
+ configObj['Kernel']['Emulate']['Cpuid1Mask'] = self.wData('')
37
+ configObj['NVRAM']['Add']['4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14']['DefaultBackgroundColor'] = self.wData('AAAAAA==')
38
+ configObj['NVRAM']['Add']['4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14']['UIScale'] = self.wData('AAAAAA==')
39
+ configObj['NVRAM']['Add']['7C436110-AB2A-4BBB-A880-FE41995C9F82']['SystemAudioVolume'] = self.wData('AQ==')
40
+ configObj['NVRAM']['Add']['7C436110-AB2A-4BBB-A880-FE41995C9F82']['csr-active-config'] = self.wData('/wcAAA==')
41
+ configObj['NVRAM']['Add']['7C436110-AB2A-4BBB-A880-FE41995C9F82']['prev-lang:kbd'] = self.wData('emgtSGFuczoyNTI=')
42
+ end
43
+ def self.wData(ct)
44
+ dArg = ct.decode64
45
+ io = StringIO.new
46
+ io.write dArg
47
+ io.rewind
48
+ return io
49
+ end
50
+ end
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: skloc
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ platform: ruby
6
+ authors:
7
+ - Sirius2
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-03-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: yaml_extend
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.1.1
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.1.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: plist
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 3.6.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 3.6.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: base64_string
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.0.2
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.0.2
55
+ description: OpenCore config.plist Generator for SkyLake (Current 0.6.7, Laptop)
56
+ email: xjy37.me@outlook.com
57
+ executables: []
58
+ extensions: []
59
+ extra_rdoc_files: []
60
+ files:
61
+ - ext/skl.yml
62
+ - lib/skloc.rb
63
+ homepage: https://gitee.com/Sirius2/skloc
64
+ licenses:
65
+ - GPL-3.0+
66
+ metadata: {}
67
+ post_install_message:
68
+ rdoc_options: []
69
+ require_paths:
70
+ - lib
71
+ required_ruby_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ requirements: []
82
+ rubygems_version: 3.2.3
83
+ signing_key:
84
+ specification_version: 4
85
+ summary: skloc
86
+ test_files: []