瀏覽代碼

xenomai: add string option for additional configure options

Xenomai has many configure options that users may or may not want to set.
Providing individual Buildroot config options for every single one of them
is not maintainable.

Therefore, add a string option to allow the needed flexibility.
Important options, or those that have 'select/depends on' impact, can still
be turned into real Buildroot config options.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
[Thomas: rewrap Config.in help text.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas De Schampheleire 8 年之前
父節點
當前提交
e9470687c0
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 6 0
      package/xenomai/Config.in
  2. 2 0
      package/xenomai/xenomai.mk

+ 6 - 0
package/xenomai/Config.in

@@ -120,6 +120,12 @@ config BR2_PACKAGE_XENOMAI_ENABLE_REGISTRY_PATH
 	  To use the Xenomai default (currently: /var/run/xenomai),
 	  To use the Xenomai default (currently: /var/run/xenomai),
 	  leave this option empty.
 	  leave this option empty.
 
 
+config BR2_PACKAGE_XENOMAI_ADDITIONAL_CONF_OPTS
+	string "Additional configure options"
+	help
+	  Specify any additional options to pass to the configure
+	  script here.  See Xenomai documentation for details.
+
 config BR2_PACKAGE_XENOMAI_TESTSUITE
 config BR2_PACKAGE_XENOMAI_TESTSUITE
 	bool "Install testsuite"
 	bool "Install testsuite"
 	help
 	help

+ 2 - 0
package/xenomai/xenomai.mk

@@ -57,6 +57,8 @@ else
 XENOMAI_CONF_OPTS += --disable-registry
 XENOMAI_CONF_OPTS += --disable-registry
 endif
 endif
 
 
+XENOMAI_CONF_OPTS += $(call qstrip,$(BR2_PACKAGE_XENOMAI_ADDITIONAL_CONF_OPTS))
+
 # Some of these files may be desired by some users -- at that point specific
 # Some of these files may be desired by some users -- at that point specific
 # config options need to be added to keep a particular set.
 # config options need to be added to keep a particular set.
 define XENOMAI_REMOVE_UNNEEDED_FILES
 define XENOMAI_REMOVE_UNNEEDED_FILES