Skip to contentSkip to conversation

package/qt6/qt6base: use regular $(RM) to remove directory

PATCH In review Thomas Petazzoni via buildroot 1 participant 3 messages May 30 – May 31

lore
Share & tools
lore
#0 lore raw

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
index 3bf4a1221b..5c939568ae 100644
@@ -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
#1 lore raw

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
index 5c939568ae..01661b7f01 100644
@@ -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