Skip to content

Commit bf7fcd5

Browse files
authored
Merge pull request #172 from rust-embedded/bugfix/ignore-os-case
Ignore string case when checking ARCH, OS, and TUNE variables
2 parents 6c1eb7e + 5f6a73e commit bf7fcd5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

classes/rust_bin-common.bbclass

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ def rust_target(d, spec_type):
66
import re
77
spec_type = spec_type.upper()
88

9-
arch = d.getVar('%s_ARCH' % spec_type, True)
10-
os = d.getVar('%s_OS' % spec_type, True)
9+
arch = d.getVar('%s_ARCH' % spec_type, True).lower()
10+
os = d.getVar('%s_OS' % spec_type, True).lower()
1111

1212
# Make sure that tasks properly recalculate after ARCH or OS change
1313
d.appendVarFlag("rust_target", "vardeps", " %s_ARCH" % spec_type)
@@ -36,8 +36,8 @@ def rust_target(d, spec_type):
3636

3737
# TUNE_FEATURES are always only for the TARGET
3838
if spec_type == "TARGET":
39-
tune = d.getVar("TUNE_FEATURES", True).split()
40-
tune += d.getVar("MACHINEOVERRIDES", True).split(":")
39+
tune = d.getVar("TUNE_FEATURES", True).lower().split()
40+
tune += d.getVar("MACHINEOVERRIDES", True).lower().split(":")
4141
else:
4242
tune = []
4343

0 commit comments

Comments
 (0)