From a981934256be3bf800d2f6f0a375ea4833f7191b Mon Sep 17 00:00:00 2001 From: Luis Date: Fri, 15 May 2026 16:21:41 +0200 Subject: [PATCH] add primary purpose estimation for mach-types and piggy_data Signed-off-by: Luis --- sbom/sbom/spdx_graph/kernel_file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbom/sbom/spdx_graph/kernel_file.py b/sbom/sbom/spdx_graph/kernel_file.py index cc7f7d3..5221ebe 100644 --- a/sbom/sbom/spdx_graph/kernel_file.py +++ b/sbom/sbom/spdx_graph/kernel_file.py @@ -253,7 +253,7 @@ def includes_path_segments(path_segments: list[str]) -> bool: return "library" # Archives - if ends_with([".xz", ".cpio", ".gz", ".tar", ".zip"]): + if ends_with([".xz", ".cpio", ".gz", ".tar", ".zip", "piggy_data"]): return "archive" # Applications @@ -295,6 +295,7 @@ def includes_path_segments(path_segments: list[str]) -> bool: "x509_revocation_list", "cpucaps", "sysreg", + "mach-types", ] ) or includes_path_segments(["drivers/gpu/drm/radeon/reg_srcs/"]): return "data"