summaryrefslogtreecommitdiffstats
path: root/scripts/Kconfig
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2018-06-09 09:27:56 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-06-11 22:06:36 +0200
commit526dddf4c3493a7b7732d9bd0aab2d3e22b3154a (patch)
treef7c4008ee722af799da9bb319a30a88fbe76cbdc /scripts/Kconfig
parent23ee83f42f947a7f9d725c71f638f7c9bacc93c3 (diff)
downloadbarebox-526dddf4c3493a7b7732d9bd0aab2d3e22b3154a.tar.gz
barebox-526dddf4c3493a7b7732d9bd0aab2d3e22b3154a.tar.xz
scripts: create a separate section for host tools
This allows to enable host tools even if they are not needed for the current configuration to improve compile coverage and simplify packaging these tools. The conversion doesn't cover all tools available but can be extended later. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/Kconfig')
-rw-r--r--scripts/Kconfig51
1 files changed, 51 insertions, 0 deletions
diff --git a/scripts/Kconfig b/scripts/Kconfig
new file mode 100644
index 0000000000..14a577ac4f
--- /dev/null
+++ b/scripts/Kconfig
@@ -0,0 +1,51 @@
+menu "Host Tools"
+
+config COMPILE_HOST_TOOLS
+ bool "Allow to enable unused host tools"
+ help
+ Usually the needed host tools are selected (or selectable) depending
+ on some config options. If you say yes here, the host tools that are
+ not needed can be selected, too.
+
+ This is usefull for compile coverage testing and for packaging the
+ host tools.
+
+source scripts/imx/Kconfig
+
+config MVEBU_HOSTTOOLS
+ bool "mvebu hosttools" if COMPILE_HOST_TOOLS
+ depends on ARCH_MVEBU || COMPILE_HOST_TOOLS
+ default y if ARCH_MVEBU
+ help
+ This enables building the tools kwbimage to create an image suitable
+ for Marvell mvebu machines and kwboot to boot via UART.
+
+config MXS_HOSTTOOLS
+ bool "mxs hosttools" if COMPILE_HOST_TOOLS
+ depends on ARCH_MXS || COMPILE_HOST_TOOLS
+ default y if ARCH_MXS
+ help
+ This builds the tools mxsimage and mxsboot which are needed to
+ create bootable image files for mxs. You need openssl development
+ files to compile this tool.
+
+config OMAP3_USB_LOADER
+ bool "omap3 USB loader"
+ depends on ARCH_OMAP3 || COMPILE_HOST_TOOLS
+ help
+ Say Y here to build the omap3 usb loader tool.
+
+ You need libusb-1.0 to compile this tool.
+
+config OMAP4_HOSTTOOL_USBBOOT
+ bool "omap4 usbboot"
+ depends on (ARCH_OMAP4 && !MMU) || COMPILE_HOST_TOOLS
+ default y if OMAP4_USBBOOT
+ help
+ Say Y here to build the omap4 usb loader tool.
+ Note that you need to enable OMAP4_USBBOOT to create an image
+ suitable to boot using this tool.
+
+ You need libusb-1.0 to compile this tool.
+
+endmenu