1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

target: fix 'bl' module initialisation

When "load_default_modules" is set to False at target initialisation time
but the "bl" module is explicitly required, the initialization of this module
fails because the system as not yet been identified as a big.LITTLE.
This identification is performed by platform.update_from_target.

This patch post-pone modules initialisation at the end of the connection
method to ensure that all the required information are available at modules
probe time.

Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
This commit is contained in:
Patrick Bellasi 2015-10-12 12:37:11 +01:00
parent cbe80da3a1
commit b83e51856d

View File

@ -177,8 +177,8 @@ class Target(object):
tid = id(threading.current_thread()) tid = id(threading.current_thread())
self._connections[tid] = self.get_connection(timeout=timeout) self._connections[tid] = self.get_connection(timeout=timeout)
self.busybox = self.get_installed('busybox') self.busybox = self.get_installed('busybox')
self._update_modules('connected')
self.platform.update_from_target(self) self.platform.update_from_target(self)
self._update_modules('connected')
if self.platform.big_core and self.load_default_modules: if self.platform.big_core and self.load_default_modules:
self._install_module(get_module('bl')) self._install_module(get_module('bl'))