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
F169242403: D13663.diff
Tue, Sep 1, 1:01 AM
F169207669: D13663.id37159.diff
Mon, Aug 31, 8:20 PM
Unknown Object (File)
Sun, Aug 30, 6:21 PM
Unknown Object (File)
Sun, Aug 30, 3:06 PM
Unknown Object (File)
Sun, Aug 30, 2:48 PM
Unknown Object (File)
Sun, Aug 30, 2:05 PM
Unknown Object (File)
Sun, Aug 30, 1:49 PM
Unknown Object (File)
Sun, Aug 30, 1:47 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 Not Applicable
Unit
Tests Not Applicable

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.