mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
Merge pull request #11 from JaviMerino/warn_unsupported_module
target: warn if a module is not supported for the target
This commit is contained in:
commit
dcf239b06c
@ -429,7 +429,11 @@ class Target(object):
|
||||
if mod.probe(self):
|
||||
self._install_module(mod, **params)
|
||||
else:
|
||||
self.logger.debug('Module {} is not supported by the target'.format(mod.name))
|
||||
msg = 'Module {} is not supported by the target'.format(mod.name)
|
||||
if self.load_default_modules:
|
||||
self.logger.debug(msg)
|
||||
else:
|
||||
self.logger.warning(msg)
|
||||
|
||||
def _install_module(self, mod, **params):
|
||||
if mod.name not in self._installed_modules:
|
||||
|
Loading…
x
Reference in New Issue
Block a user