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 <thomas.petazzoni@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit 160ef0b27a)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
Thomas Petazzoni
2026-05-30 23:14:13 +02:00
committed by Thomas Perale
parent 7e30510882
commit 3edbe84c93

View File

@@ -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))