mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
binman: Move state information into a new module
At present the control module has state information in it, since it is the primary user of this. But it is a bit odd to have entries and other modules importing control to obtain this information. It seems better to have a dedicated state module, which control can use as well. Create a new module using code from control and update other modules to use it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -23,6 +23,7 @@ import fdt
|
||||
import fdt_util
|
||||
import fmap_util
|
||||
import test_util
|
||||
import state
|
||||
import tools
|
||||
import tout
|
||||
|
||||
@@ -258,7 +259,7 @@ class TestFunctional(unittest.TestCase):
|
||||
retcode = self._DoTestFile(fname, map=map, update_dtb=update_dtb,
|
||||
entry_args=entry_args)
|
||||
self.assertEqual(0, retcode)
|
||||
out_dtb_fname = control.GetFdtPath('u-boot.dtb')
|
||||
out_dtb_fname = state.GetFdtPath('u-boot.dtb')
|
||||
|
||||
# Find the (only) image, read it and return its contents
|
||||
image = control.images['image']
|
||||
|
Reference in New Issue
Block a user