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

scripts/build: make struct_tags.json deterministic #66009

Merged

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Dec 1, 2023

It's not good to see struct_tags.json change from one build to the next when nothing changes.

Python's sets are not deterministic, see long story for older commit f896fc2 ("scripts: gen_handles: Sort the device handles")

Simply convert multiple_directories to a sorted list before using it.

Fixes commit 80e7820 ("kernel: syscalls: no need to include all syscalls in binary")

It's not good to see struct_tags.json change from one build to the next
when nothing changes.

Python's sets are not deterministic, see long story for older commit
f896fc2 ("scripts: gen_handles: Sort the device handles")

Simply convert multiple_directories to a sorted list before using it.

Fixes commit 80e7820 ("kernel: syscalls: no need to include all
syscalls in binary")

Signed-off-by: Marc Herbert <[email protected]>
@marc-hb marc-hb marked this pull request as ready for review December 1, 2023 07:11
@marc-hb marc-hb added the bug The issue is a bug, or the PR is fixing a bug label Dec 1, 2023
@marc-hb marc-hb requested a review from JordanYates December 1, 2023 08:40
@carlescufi carlescufi merged commit 352980b into zephyrproject-rtos:main Dec 11, 2023
27 checks passed
@marc-hb marc-hb deleted the deterministic-struct-tags branch December 27, 2023 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Build System 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.

7 participants