Skip to content

Commit

Permalink
Merge pull request #172 from rust-embedded/bugfix/ignore-os-case
Browse files Browse the repository at this point in the history
Ignore string case when checking ARCH, OS, and TUNE variables
  • Loading branch information
eldruin authored Mar 23, 2024
2 parents 6c1eb7e + 5f6a73e commit bf7fcd5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions classes/rust_bin-common.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ def rust_target(d, spec_type):
import re
spec_type = spec_type.upper()

arch = d.getVar('%s_ARCH' % spec_type, True)
os = d.getVar('%s_OS' % spec_type, True)
arch = d.getVar('%s_ARCH' % spec_type, True).lower()
os = d.getVar('%s_OS' % spec_type, True).lower()

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

# TUNE_FEATURES are always only for the TARGET
if spec_type == "TARGET":
tune = d.getVar("TUNE_FEATURES", True).split()
tune += d.getVar("MACHINEOVERRIDES", True).split(":")
tune = d.getVar("TUNE_FEATURES", True).lower().split()
tune += d.getVar("MACHINEOVERRIDES", True).lower().split(":")
else:
tune = []

Expand Down

0 comments on commit bf7fcd5

Please sign in to comment.