@@ -17,6 +17,16 @@ config BR2_PACKAGE_QT6BASE
if BR2_PACKAGE_QT6BASE
+config BR2_PACKAGE_QT6BASE_CUSTOM_CONF_OPTS
+ string "Custom configuration options"
+ help
+ Define custom qt6 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 qt6base during configuration.
+
+ Use cmake style '-Doption_name=ON' or -Doption_name=OFF'.
+
config BR2_PACKAGE_QT6BASE_EXAMPLES
bool "Compile and install examples (with code)"
select BR2_PACKAGE_QT6BASE_NETWORK
@@ -190,5 +190,8 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
QT6BASE_CONF_OPTS += -DCMAKE_SHARED_LINKER_FLAGS="-latomic"
endif
+# Must be last so can override all options set by Buildroot
+QT6BASE_CONF_OPTS += $(call qstrip,$(BR2_PACKAGE_QT6BASE_CUSTOM_CONF_OPTS))
+
$(eval $(cmake-package))
$(eval $(host-cmake-package))