Skip to content

Commit

Permalink
Minor platform cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp v. K committed Mar 9, 2022
1 parent 7eb25bf commit e570ccf
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
5 changes: 0 additions & 5 deletions mlonmcu/platform/espidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,11 @@ class EspIdfPlatform(CompilePlatform, TargetPlatform):

REQUIRED = ["espidf.install_dir", "espidf.src_dir"]

# def __init__(self, framework, backend, target, features=None, config=None, context=None):
def __init__(self, features=None, config=None):
super().__init__(
"espidf",
# Framework=framework,
# Backend=backend,
# Target=target,
features=features,
config=config,
# context=context,
)
self.tempdir = None
self.project_name = "app"
Expand Down
5 changes: 0 additions & 5 deletions mlonmcu/platform/mlif.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,11 @@ class MlifPlatform(CompilePlatform):

REQUIRED = ["mlif.src_dir"]

# def __init__(self, framework, backend, target, features=None, config=None, context=None):
def __init__(self, features=None, config=None):
super().__init__(
"mlif",
# framework=framework,
# backend=backend,
# target=target,
features=features,
config=config,
# context=context,
)
self.tempdir = None
self.build_dir = None
Expand Down
10 changes: 0 additions & 10 deletions mlonmcu/platform/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,26 +115,16 @@ class CompilePlatform(Platform):

REQUIRED = []

# def __init__(self, name, framework, backend, target, features=None, config=None, context=None):
def __init__(self, name, features=None, config=None):
super().__init__(
name,
# framework,
# backend,
# target,
features=features,
config=config,
# context=context,
)
self.name = name
# self.framework = framework # TODO: required? or self.target.framework?
# self.backend = backend
# self.target = target
self.config = config if config else {}
self.features = self.process_features(features)
self.config = filter_config(self.config, self.name, self.DEFAULTS, self.REQUIRED)
self.definitions = {}
# self.context = context

@property
def supports_compile(self):
Expand Down

0 comments on commit e570ccf

Please sign in to comment.