mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
dtoc: Assign a sequence number to each node
Now that we have the alias information we can assign a sequence number to each device in the uclass. Store this in the node associated with each device. This requires renaming the sandbox test drivers to have the right name. Note that test coverage is broken with this patch, but fixed in the next one. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -1092,3 +1092,9 @@ U_BOOT_DRVINFO(spl_test2) = {
|
||||
plat = self.run_test(['struct'], dtb_file, output)
|
||||
self.assertEqual("Could not find uclass for alias 'other1'",
|
||||
stdout.getvalue().strip())
|
||||
|
||||
def test_sequence(self):
|
||||
"""Test assignment of sequence numnbers"""
|
||||
dtb_file = get_dtb_file('dtoc_test_inst.dts')
|
||||
output = tools.GetOutputFilename('output')
|
||||
plat = self.run_test(['struct'], dtb_file, output)
|
||||
|
||||
Reference in New Issue
Block a user