1
0
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:
setrofim 2016-01-18 18:07:06 +00:00
commit dcf239b06c

View File

@ -429,7 +429,11 @@ class Target(object):
if mod.probe(self): if mod.probe(self):
self._install_module(mod, **params) self._install_module(mod, **params)
else: 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): def _install_module(self, mod, **params):
if mod.name not in self._installed_modules: if mod.name not in self._installed_modules: