1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-22 19:12:18 +02:00

dtoc: Move src_scan tests to a separate file

Move the tests related to scanning into their own class, updating them
to avoid using dtb_platdata as a pass-through.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2020-12-28 20:35:07 -07:00
parent a542a70c22
commit 10ea9c0b05
5 changed files with 97 additions and 78 deletions

View File

@@ -78,11 +78,11 @@ class Scanner:
key: Driver alias declared with
DM_DRIVER_ALIAS(driver_alias, driver_name)
value: Driver name declared with U_BOOT_DRIVER(driver_name)
_warning_disabled: true to disable warnings about driver names not found
_drivers_additional (list or str): List of additional drivers to use
during scanning
_warning_disabled: true to disable warnings about driver names not found
"""
def __init__(self, basedir, drivers_additional, warning_disabled):
def __init__(self, basedir, warning_disabled, drivers_additional):
"""Set up a new Scanner
"""
if not basedir: