Skip to contentSkip to conversation

qt5base: Add buildroot config for custom options

PATCH New Bryce Ferguson 2 participants 2 messages Oct 10, 2016 – Feb 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qt5base: Add buildroot config for custom options

To reduce the qt5base binary size, we can disable unnecessary features. Instead of trying to map every qt5base option to buildroot, create a single config that we can pass any option too. Then append those to the ones generated by buildroot.

---
 package/qt5/qt5base/Config.in  | 11 +++++++++++
 package/qt5/qt5base/qt5base.mk |  2 ++
 2 files changed, 13 insertions(+)
package/qt5/qt5base/Config.in +11 -0
index 64a7f65..c7c4622 100644
@@ -16,6 +16,17 @@ config BR2_PACKAGE_QT5BASE
 
 if BR2_PACKAGE_QT5BASE
 
+config BR2_PACKAGE_QT5BASE_CUSTOM_CONF_OPTS
+	string "Custom qt5base options"
+	help
+	  Define custom qt5 configuration options which can be used to enable
+	  or disable options not managed by buildroot. These options are
+	  appended to the ones generated by buildroot and passed to qt5base
+	  during configuration.
+
+	  E.g. to remove the Windows Vista style option, add the option
+	  -no-feature-style_windowsvista.
+
 config BR2_PACKAGE_QT5BASE_LICENSE_APPROVED
 	bool "Approve free license"
 	help
package/qt5/qt5base/qt5base.mk +2 -0
index bf541b0..282ea1a 100644
@@ -154,6 +154,8 @@ QT5BASE_DEPENDENCIES   += $(if $(BR2_PACKAGE_QT5BASE_ICU),icu)
 
 QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_EXAMPLES),-make,-nomake) examples
 
+QT5BASE_CONFIGURE_OPTS += $(call qstrip, $(BR2_PACKAGE_QT5BASE_CUSTOM_CONF_OPTS))
+
 # gstreamer 0.10 support is broken in qt5multimedia
 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE),y)
 QT5BASE_CONFIGURE_OPTS += -gstreamer 1.0
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 qt5base: Add buildroot config for custom options

Hello,

Quoted 11 lines · Bryce Ferguson

To reduce the qt5base binary size, we can disable unnecessary features. Instead of trying to map every qt5base option to buildroot, create a single config that we can pass any option too. Then append those to the ones generated by buildroot.

---
 package/qt5/qt5base/Config.in  | 11 +++++++++++
 package/qt5/qt5base/qt5base.mk |  2 ++
 2 files changed, 13 insertions(+)

Normally we don't really like to add such "open" options, but since Qt5 has so many options, it probably makes sense to make an exception here. In addition, nobody complained since you sent the patch in October 2016, so I applied it after doing some minor tweaks.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com