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

dtlib: Allow deleting the root node #66488

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

57300
Copy link
Contributor

@57300 57300 commented Dec 13, 2023

Previously, dtlib would fail to parse the following:

/delete-node/ &{/};

This is accepted by dtc, so dtlib should be aligned.

The expected behavior is that the contents of the "deleted" root node are emptied, but the node itself remains in the tree. This means that it's possible to put that statement at the end of a DTS file and still get a valid output. A small test case for this scenario is included.

@57300 57300 added the bug The issue is a bug, or the PR is fixing a bug label Dec 13, 2023
Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label May 26, 2024
Previously, dtlib would fail to parse the following:

   /delete-node/ &{/};

This is accepted by dtc, so dtlib should be aligned.

The expected behavior is that the contents of the "deleted" root node
are emptied, but the node itself remains in the tree. This means that
it's possible to put that statement at the end of a DTS file and still
get a valid output. A small test case for this scenario is included.

Signed-off-by: Grzegorz Swiderski <[email protected]>
@zephyrbot zephyrbot requested a review from decsny June 5, 2024 20:28
@57300 57300 removed the Stale label Jun 5, 2024
@carlescufi carlescufi merged commit 46572f7 into zephyrproject-rtos:main Jun 6, 2024
77 of 85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Devicetree bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants