Skip to content

Commit 60e0554

Browse files
committed
ignore __MAC resources for the OUTPUT EFI
1 parent da48cd0 commit 60e0554

File tree

5 files changed

+32
-2
lines changed

5 files changed

+32
-2
lines changed

src/build.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ pub fn build_output(
270270
if missing_files.len() > 0 {
271271
write!(
272272
stdout,
273-
"\x1B[31;7mWARNING:\x1B[0m the following file(s) are unknown by octool\x1B[33m\r\n"
273+
"\x1B[31;7mWARNING:\x1B[0m the following file(s) are missing or unknown by octool\x1B[33m\r\n"
274274
)?;
275275
for f in missing_files.iter() {
276276
write!(stdout, "{}\x1B[0K\r\n", f)?;
@@ -279,6 +279,8 @@ pub fn build_output(
279279
stdout,
280280
"\x1B[31mIf you want octool to include them automatically,\r\n\
281281
they need to be placed in the \x1B[32mINPUT\x1B[31m folder before building.\r\n\
282+
If you feel octool should know this file, then there may be an issue with the\r\n\
283+
resources folder. You can delete that folder and try running octool again.\r\n\
282284
Otherwise, they will need to be placed into your EFI manually\x1B[0m\r\n\n"
283285
)?;
284286
stdout.flush()?;

src/res.rs

+6
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,9 @@ pub fn show_res_info(resources: &mut Resources, settings: &mut Settings, stdout:
425425
.into_iter()
426426
.filter_map(Result::ok)
427427
{
428+
if entry.path().to_string_lossy().contains("_MAC") { //ignore
429+
continue;
430+
}
428431
let f_name = String::from(entry.file_name().to_string_lossy());
429432
if f_name == ind_res {
430433
out = Some(entry);
@@ -695,6 +698,9 @@ pub fn get_res_path(
695698
.into_iter()
696699
.filter_map(Result::ok)
697700
{
701+
if entry.path().to_string_lossy().contains("_MAC") { //ignore
702+
continue;
703+
}
698704
let f_name = String::from(entry.file_name().to_string_lossy());
699705
if f_name == ind_res {
700706
out = Some(entry);

tool_config_files/octool_config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"reset_res_versions": true,
3333

3434
"//comm_clob_local": "replace local res list with updated list when octool is run",
35-
"clobber_local_dyn_res_list": true,
35+
"clobber_local_dyn_res_list": false,
3636

3737
"//comm_use_latest": "use latest version of OpenCore that fits the format of the config.plist being used",
3838
"use_latest_oc_on_guess": true,

tool_config_files/other.json

+19
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,24 @@
110110
}
111111
}
112112
]
113+
},
114+
"VoodooSMBus": {
115+
"versions": [
116+
{
117+
"version": "2.2",
118+
"links": {
119+
"debug": "https://github.com/VoodooSMBus/VoodooSMBus/releases/download/v2.2/VoodooSMBus-v2.2.zip",
120+
"release": "https://github.com/VoodooSMBus/VoodooSMBus/releases/download/v2.2/VoodooSMBus-v2.2.zip"
121+
},
122+
"hashes": {
123+
"debug": {
124+
"sha256": "a65d68b112ef89e262cb713af1f821d7eaa5978d3ef1a47f9d4d2338cbc6aa8e"
125+
},
126+
"release": {
127+
"sha256": "a65d68b112ef89e262cb713af1f821d7eaa5978d3ef1a47f9d4d2338cbc6aa8e"
128+
}
129+
}
130+
}
131+
]
113132
}
114133
}

tool_config_files/resource_list.json

+3
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,9 @@
451451
"VoodooRMI.kext": {
452452
"parent": "VoodooRMI"
453453
},
454+
"VoodooSMBus.kext": {
455+
"parent": "VoodooSMBus"
456+
},
454457
"RMII2C.kext": {
455458
"parent": "VoodooRMI"
456459
},

0 commit comments

Comments
 (0)