Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

References to node@address are incorrectly handled #9

Closed
zxombie opened this issue Jul 27, 2016 · 1 comment
Closed

References to node@address are incorrectly handled #9

zxombie opened this issue Jul 27, 2016 · 1 comment

Comments

@zxombie
Copy link
Contributor

zxombie commented Jul 27, 2016

The following seems to be common in Linux dts files:

/dts-v1/;

/ {
    foo@0 {
    };

    bar {
        ref = <&{/foo@0}>;
    };
};

We fail with:

Failed to find node with label: /foo@0
Failed to parse tree.

We also incorrectly parse this:

/dts-v1/;

/ {
    foo@0 {
    };

    bar {
        ref = <&{/foo}>;
    };
};
@zxombie
Copy link
Contributor Author

zxombie commented Jul 27, 2016

The second case should fail. GNU dtc rejects it with:

ERROR (phandle_references): Reference to non-existent node or label "/foo"

ERROR: Input tree has errors, aborting (use -f to force output)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant