Skip to content

Commit

Permalink
[test] Remove fiber availability on ARM64 targets
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed May 15, 2023
1 parent 260143c commit 45ae68a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/modm/processing/fiber/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ def init(module):
def prepare(module, options):
module.depends(":processing:timer")
# No ARM64 support yet!
core = options[":target"].get_driver("core")["type"]
return ((core.startswith("cortex-m") or
core.startswith("avr") or
"x86_64" in core))
return "arm64" not in options[":target"].get_driver("core")["type"]


def build(env):
Expand Down
8 changes: 6 additions & 2 deletions test/modm/processing/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@ def prepare(module, options):
"modm:math:utils",
"modm:math:filter",
"modm:processing:protothread",
"modm:processing:fiber",
"modm:processing:resumable",
"modm:processing:timer",
"modm:processing:scheduler",
":mock:clock")
if "arm64" not in options[":target"].get_driver("core")["type"]:
module.depends("modm:processing:fiber")
return True


def build(env):
env.outbasepath = "modm-test/src/modm-test/processing"
env.copy('.')
if "arm64" in env[":target"].get_driver("core")["type"]:
env.copy('.', ignore=env.ignore_paths("fiber"))
else:
env.copy('.')

0 comments on commit 45ae68a

Please sign in to comment.