package/qt6/qt6base: use regular $(RM) to remove directory
PATCH 1/2 package/qt6/qt6base: use regular $(RM) to remove directory
Using '$(Q)rm -rf' is not the typical thing we do in Buildroot, we more commonly use '$(RM) -rf'.
--- package/qt6/qt6base/qt6base.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/qt6/qt6base/qt6base.mk +1 -1
@@ -427,7 +427,7 @@ QT6BASE_CONF_OPTS += -DFEATURE_zstd=OFF endif define QT6BASE_RM_USR_MKSPECS - $(Q)rm -rf $(TARGET_DIR)/usr/mkspecs + $(RM) -rf $(TARGET_DIR)/usr/mkspecs endef QT6BASE_TARGET_FINALIZE_HOOKS += QT6BASE_RM_USR_MKSPECS
Signature · 6 lines
2.54.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 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.
--- package/qt6/qt6base/qt6base.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/qt6/qt6base/qt6base.mk +5 -0
@@ -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))
Signature · 6 lines
2.54.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 4 lines · Thomas Petazzoni via buildroot
Using '$(Q)rm -rf' is not the typical thing we do in Buildroot, we more commonly use '$(RM) -rf'.
Signed-off-by Thomas Petazzoni <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot