Page MenuHomeFreeBSD

stand/fdt: Avoid bailout when dtbo has no fixups
ClosedPublic

Authored by kevans on Dec 28 2017, 2:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 22, 7:56 PM
Unknown Object (File)
Fri, Mar 22, 7:56 PM
Unknown Object (File)
Fri, Mar 22, 7:56 PM
Unknown Object (File)
Fri, Mar 22, 7:56 PM
Unknown Object (File)
Sat, Mar 9, 2:26 PM
Unknown Object (File)
Jan 8 2024, 9:58 AM
Unknown Object (File)
Jan 3 2024, 7:26 PM
Unknown Object (File)
Jan 3 2024, 7:26 PM
Subscribers

Details

Summary

In the case of a simple dtbo where fragment uses target-path and the overlay contains no references, /__fixups__ will not be included by either our dtc or dtc from ports, but the file still has valid fragments to be applied. My single test fragment:

target-path = "/soc/ethernet";
__overlay__ {
    phy-mode = "rgmii-txid";
};

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 13892

Event Timeline

kevans retitled this revision from stand/fdt: Fix bailout when dtbo has no fixups to stand/fdt: Avoid bailout when dtbo has no fixups.Dec 28 2017, 2:42 PM

Further testing showed that one of the dt compilers I tried emitted empty /__symbols__ while the other just omitted /__symbols__ since it was empty. I don't know if omitting it is OK according to whatever spec we may follow, but allowing it doesn't seem harmful.

This revision is now accepted and ready to land.Dec 28 2017, 4:56 PM
This revision was automatically updated to reflect the committed changes.