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
F169614853: D13663.id37135.diff
Wed, Sep 2, 1:59 AM
F169498010: D13663.id.diff
Tue, Sep 1, 5:25 PM
F169475103: D13663.id37135.diff
Tue, Sep 1, 3:27 PM
F169467686: D13663.id37138.diff
Tue, Sep 1, 3:02 PM
F169466395: D13663.id37159.diff
Tue, Sep 1, 2:57 PM
F169416554: D13663.diff
Tue, Sep 1, 12:02 PM
Unknown Object (File)
Tue, Sep 1, 1:01 AM
Unknown Object (File)
Mon, Aug 31, 8:20 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 13895

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.