Commit 9eaad202 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Peter Korsgaard
Browse files

toolchain: rework thread options

The selection of linuxthreads, linuxthreads old or NPTL doesn't make a
lot of sense for external toolchains. So, instead, we :

 * Introduce an hidden BR2_TOOLCHAIN_HAS_THREADS option, which must be
   selected by toolchain specific options when thread support is
   available. Package needing to test thread support should use this
   option.

 * Move the none/linuxthreads/linuxthreads old/NPTL selection to
   Buildroot internal toolchain configuration.

 * Add an option in external toolchain to tell if thread support is
   available or not in the external toolchain. We assume that glibc
   without threads is not possible, as Ulrich Drepper said in
   http://sourceware.org/ml/libc-alpha/2005-08/msg00091.html



ffmpeg, dmalloc and openvpn are fixed to use the new
BR2_TOOLCHAIN_HAS_THREADS option. For openvpn, --enable-threads=posix
is no longer used, as the configure script doesn't even understand
this option.

Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent a72a6704
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -3,10 +3,11 @@
	Ccache support reworked. Now used for both host and target
	compilation, and cache is stored in ~/.buildroot-ccache.

	Updated/fixed packages: at, busybox, bzip2, direcfb-examples,
	dbus, cloop, cups, gdk-pixbuf, hostapd, i2c-tools, libconfig,
	ltp-testsuite, m4, openssh, openssl, pango, qt, rsync,
	sdl_gfx, sdl_sound, udev, usbutils, xz, zlib
	Updated/fixed packages: at, busybox, bzip2, dbus,
	direcfb-examples, dmalloc, cloop, cups, ffmpeg, gdk-pixbuf,
	hostapd, i2c-tools, libconfig, ltp-testsuite, m4, openssh,
	openssl, openvpn, pango, qt, rsync, sdl_gfx, sdl_sound, udev,
	usbutils, xz, zlib

	New packages: dhrystone, fbgrab, lsuio, rsh-redone, whetstone

+3 −3
Original line number Diff line number Diff line
@@ -16,10 +16,10 @@ else
DMALLOC_CONF_OPT+=--disable-cxx
endif

ifeq ($(BR2_PTHREADS_NONE),y)
DMALLOC_CONF_OPT+=--disable-threads
else
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
DMALLOC_CONF_OPT+=--enable-threads
else
DMALLOC_CONF_OPT+=--disable-threads
endif

define DMALLOC_POST_PATCH
+2 −2
Original line number Diff line number Diff line
config BR2_PACKAGE_LTP_TESTSUITE
	bool "ltp-testsuite"
	depends on !BR2_PTHREADS_NONE
	depends on BR2_TOOLCHAIN_HAS_THREADS
	help
	  The Linux Test Project provides a huge testsuite for Linux.

@@ -13,4 +13,4 @@ config BR2_PACKAGE_LTP_TESTSUITE
	  http://ltp.sourceforge.net/

comment "ltp-testsuite requires a toolchain with thread support"
	depends on BR2_PTHREADS_NONE
	depends on !BR2_TOOLCHAIN_HAS_THREADS
+3 −3
Original line number Diff line number Diff line
@@ -111,10 +111,10 @@ else
FFMPEG_CONF_OPT += --disable-outdevs
endif

ifeq ($(BR2_PTHREADS_NONE),y)
FFMPEG_CONF_OPT += --disable-pthreads
else
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
FFMPEG_CONF_OPT += --enable-pthreads
else
FFMPEG_CONF_OPT += --disable-pthreads
endif

ifeq ($(BR2_PACKAGE_ZLIB),y)
+3 −3
Original line number Diff line number Diff line
@@ -8,10 +8,10 @@ OPENVPN_VERSION = 2.1.3
OPENVPN_SITE = http://openvpn.net/release
OPENVPN_CONF_OPT = --enable-small

ifeq ($(BR2_PTHREADS_NATIVE),y)
	OPENVPN_CONF_OPT += --enable-threads=posix
else
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
	OPENVPN_CONF_OPT += --enable-pthread
else
	OPENVPN_CONF_OPT += --disable-pthread
endif

ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
Loading