• Fredrik Markstrom's avatar
    Merge nodes with local target label references · 0fcffda1
    Fredrik Markstrom authored
    This change makes sure that nodes with target label references doesn't
    create additional fragments if the label can been resolved
    locally. Target path references are not resolved locally and will
    generate a fragment.
    Previously the dts below would generate two fragments:
    &x { a: a@0 {};};
    &a { b {}; };
    This commit essentially reverts part of the commit "Correct overlay
    syntactic sugar for generating target-path fragments". The main reason
    we want to do this is that it breaks consumers of dtbo:s that can't
    resolve references between fragments in the same dtbo (like the linux
    4.1 kernel). In addition creating a fragment for each label reference
    substantially increases the size of the resulting dtbo for some use
    Signed-off-by: 's avatarFredrik Markstrom <fredrik.markstrom@gmail.com>
    Signed-off-by: 's avatarDavid Gibson <david@gibson.dropbear.id.au>