From 3edbe84c9364f6ef9ccb8d495117d959dc975fb2 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 30 May 2026 23:14:13 +0200 Subject: [PATCH] package/qt6/qt6base: remove SBOMs from target All Qt6 packages install their own SPDX SBOM in $(TARGET_DIR)/usr/lib/qt6/sbom/. In the context of Buildroot having such SBOMs on the target is not useful, and they take up some space, so get rid of them. We use a TARGET_FINALIZE_HOOKS (and not a POST_INSTALL_TARGET_HOOKS) because it's not just qt6base that installs SBOMs, but all qt6 modules, so we want the cleanup to happen after they all got installed. Signed-off-by: Thomas Petazzoni Signed-off-by: Julien Olivain (cherry picked from commit 160ef0b27a824fbd8f44a9514d5ad7762c3be560) Signed-off-by: Thomas Perale --- package/qt6/qt6base/qt6base.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/qt6/qt6base/qt6base.mk b/package/qt6/qt6base/qt6base.mk index 5c939568ae..01661b7f01 100644 --- a/package/qt6/qt6base/qt6base.mk +++ b/package/qt6/qt6base/qt6base.mk @@ -431,5 +431,10 @@ define QT6BASE_RM_USR_MKSPECS endef QT6BASE_TARGET_FINALIZE_HOOKS += QT6BASE_RM_USR_MKSPECS +define QT6BASE_RM_SBOMS + $(RM) -rf $(TARGET_DIR)/usr/lib/qt6/sbom/ +endef +QT6BASE_TARGET_FINALIZE_HOOKS += QT6BASE_RM_SBOMS + $(eval $(cmake-package)) $(eval $(host-cmake-package))