Commit 352980be authored by Marc Herbert's avatar Marc Herbert Committed by Carles Cufi
Browse files

scripts/build: make struct_tags.json deterministic

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
f896fc23 ("scripts: gen_handles: Sort the device handles")

Simply convert multiple_directories to a sorted list before using it.

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

Signed-off-by: default avatarMarc Herbert <marc.herbert@intel.com>
parent 79b00f6c
Loading
Loading
Loading
Loading
+3 −0
Changes for scripts/build/parse_syscalls.py: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -84,6 +84,9 @@ def analyze_headers(include_dir, scan_dir, file_list):
    if scan_dir:
        multiple_directories |= set(scan_dir)

    # Convert to a list to keep the output deterministic
    multiple_directories = sorted(multiple_directories)

    # Look for source files under various directories.
    # Due to "syscalls/*.h" being included unconditionally in various
    # other header files. We must generate the associated syscall