arch: move atomics to arch, not toolchain (branch yem/atomics)
v5 cover arch: move atomics to arch, not toolchain (branch yem/atomics)
Hello All!
This series is a follow-up to, and includes Anton's series, to introduce awareness of atomic operations, so pacjages can be hidden-away on architectures that do not provide atomic operations.
We've discussed this with Thomas on IRC and on the list, and although this comes late in the cycle, we both consider this to be materials for the *current* release.
I tried to cover all bases here, but there are architectures I have close-to-zero knowledge of, so please speak up if you disagree on my proposal.
The series is split in thre parts:
- patches 1..7 renames the option, and moves it out of toolchain and
to an architecture option, and add the option to the manual;
- patches 8..11 hides more packages due to their requiring atomics
- patches 12..24 convert all our architectures to selectively declare their (non-)support for atomic ops, to finally get rid of the generic default value.
Changes v4 -> v5:
- enhance the manual (Thomas DS)
- misc typoes (Thomas DS)
Changes v3 -> v4:
- rename the option into an architecture option (Yann)
Regards,
Yann E. MORIN.
The following changes since commit 4e116bf3696234347a2628cda78b976ac70ba6da:
postgresql: remove devfiles from target (2014-08-17 21:16:34 +0200)
are available in the git repository at:
git://gitorious.org/buildroot/buildroot.git yem/atomics
for you to fetch changes up to a2b1d4aad5e0611dce67c2bfed7cb724d0b6843a:
arch: remove no-longer default on atomics option (2014-08-17 21:24:30 +0200)
----------------------------------------------------------------
Anton Kolesov (5):
manual: document dependencies on atomic operations
cairo: add dependency on atomic operations
pulseaudio: add dependency on atomic operations
libftdi: add dependency on atomic operations
msgpack: add dependency on atomic operations
Yann E. MORIN (19):
arch: add an option to specify if the arch has atomic ops package/icu: use the new ARCH_HAS_ATOMICS as dependency package/libtorrent: use the new ARCH_HAS_ATOMICS as dependency package/jack2: use the new ARCH_HAS_ATOMICS as dependency package/thrift: use the new ARCH_HAS_ATOMICS as dependency
toolchain: drop the now-unused old BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS arch/arm: always has atomic ops
arch/avr32: always has atomic ops
arch/bfin: always has atomic ops
arch/m68k: always has atomic ops
arch/microblaze: always has atomic ops
arch/mips: always has atomic ops
arch/nios2: always has atomic ops
arch/powerpc: always has atomic ops
arch/sh: always has atomic ops
arch/sparc: always has atomic ops
arch/x86: all x86 but i386 has atomics operations arch/xtensa: always has atomic ops
arch: remove no-longer default on atomics option
arch/Config.in | 4 ++++ arch/Config.in.aarch64 | 3 +++ arch/Config.in.arc | 2 +- arch/Config.in.arm | 3 +++ arch/Config.in.avr32 | 3 +++ arch/Config.in.bfin | 3 +++ arch/Config.in.m68k | 3 +++ arch/Config.in.microblaze | 3 +++ arch/Config.in.mips | 3 +++ arch/Config.in.nios2 | 3 +++ arch/Config.in.powerpc | 3 +++ arch/Config.in.sh | 3 +++ arch/Config.in.sparc | 3 +++ arch/Config.in.x86 | 3 +++ arch/Config.in.xtensa | 3 +++ docs/manual/adding-packages-directory.txt | 5 +++++ package/beecrypt/Config.in | 12 ++++++------ package/cairo/Config.in | 1 + package/cppcms/Config.in | 7 ++++--- package/efl/libevas-generic-loaders/Config.in | 2 ++ package/gstreamer/gst-plugins-good/Config.in | 7 +++++++ package/gstreamer1/gst1-plugins-good/Config.in | 7 +++++++ package/icu/Config.in | 7 ++++--- package/jack2/Config.in | 7 ++++--- package/libftdi/Config.in | 2 ++ package/libgtk2/Config.in | 2 ++ package/librsvg/Config.in | 2 ++ package/libsvg-cairo/Config.in | 1 + package/libtorrent/Config.in | 8 ++++---- package/mpd/Config.in | 2 ++ package/msgpack/Config.in | 4 ++-- package/openocd/Config.in | 1 + package/pango/Config.in | 2 ++ package/php/Config.ext | 8 ++++---- package/pulseaudio/Config.in | 2 ++ package/python-msgpack/Config.in | 4 ++-- package/qt5/qt5base/Config.in | 5 +---- package/rtorrent/Config.in | 8 ++++---- package/thrift/Config.in | 8 ++++---- package/webkit/Config.in | 2 ++ package/weston/Config.in | 2 ++ toolchain/toolchain-common.in | 4 ---- 42 files changed, 123 insertions(+), 44 deletions(-)
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH v5 1/24 arch: add an option to specify if the arch has atomic ops
The fact that atomic operations are available is not really a specificity of the toolchain, but rather of the architecture.
So, add a new option that architectures that have atomic operations can select. This in turn selects the current toolchain atomic option, until all packages have been converted, at which point the old toolchain option can be removed.
--- arch/Config.in | 6 ++++++ arch/Config.in.arc | 2 +- toolchain/toolchain-common.in | 1 - 3 files changed, 7 insertions(+), 2 deletions(-)
arch/Config.in +6 -0
@@ -250,6 +250,12 @@ config BR2_GCC_TARGET_FLOAT_ABI config BR2_GCC_TARGET_MODE string +# If the architecture has atomic operations, select this: +config BR2_ARCH_HAS_ATOMICS + bool + default y if !BR2_arc + select BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS + # Set up target binary format choice prompt "Target Binary Format"
arch/Config.in.arc +1 -1
@@ -1,7 +1,7 @@ # Choise of atomic instructions presence config BR2_ARC_ATOMIC_EXT bool "Atomic extension (LLOCK/SCOND instructions)" - select BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS + select BR2_ARCH_HAS_ATOMICS config BR2_ARCH default "arc" if BR2_arcle
toolchain/toolchain-common.in +0 -1
@@ -46,7 +46,6 @@ config BR2_TOOLCHAIN_HAS_SSP config BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS bool - default y if !BR2_arc config BR2_ENABLE_LOCALE_PURGE bool "Purge unwanted locales"
Signature · 1 line
1.9.1
PATCH v5 2/24 package/icu: use the new ARCH_HAS_ATOMICS as dependency
In reply to Yann E. MORINAnd propagate to the reverse dependencies of icu.
Also, fix beecrypt's comment: only the C++ support needs atomics.
--- package/beecrypt/Config.in | 12 ++++++------ package/cppcms/Config.in | 7 ++++--- package/icu/Config.in | 7 ++++--- package/php/Config.ext | 8 ++++---- package/qt5/qt5base/Config.in | 5 +---- 5 files changed, 19 insertions(+), 20 deletions(-)
package/beecrypt/Config.in +6 -6
@@ -1,5 +1,5 @@ -comment "beecrypt needs a toolchain w/ threads, atomic intrinsics" - depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS +comment "beecrypt needs a toolchain w/ threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS config BR2_PACKAGE_BEECRYPT bool "beecrypt"
@@ -15,15 +15,15 @@ config BR2_PACKAGE_BEECRYPT_CPP bool "C++ support" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_USE_WCHAR # icu - depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS # icu depends on !BR2_BINFMT_FLAT # icu + depends on BR2_ARCH_HAS_ATOMICS # icu select BR2_PACKAGE_ICU help Enable C++ support. This pulls in the (large) icu package. -comment "C++ support needs a toolchain w/ wchar, atomic intrinsics" +comment "C++ support needs a toolchain w/ wchar" depends on !BR2_BINFMT_FLAT - depends on BR2_INSTALL_LIBSTDCPP && (!BR2_USE_WCHAR || \ - !BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS) + depends on BR2_ARCH_HAS_ATOMICS + depends on BR2_INSTALL_LIBSTDCPP && !BR2_USE_WCHAR endif # BR2_PACKAGE_BEECRYPT
package/cppcms/Config.in +4 -3
@@ -26,14 +26,15 @@ config BR2_PACKAGE_CPPCMS_ICU bool "enable icu support" depends on !BR2_BINFMT_FLAT # icu depends on BR2_USE_WCHAR # icu - depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS # icu + depends on BR2_ARCH_HAS_ATOMICS # icu select BR2_PACKAGE_ICU help Using ICU allows advanced localization features into CppCMS, in another hand ICU is heavier than iconv. -comment "icu support needs a toolchain w/ wchar, atomic intrinsics" - depends on !BR2_BINFMT_FLAT || !BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS +comment "icu support needs a toolchain w/ wchar" + depends on !BR2_BINFMT_FLAT + depends on BR2_ARCH_HAS_ATOMICS depends on !BR2_USE_WCHAR endif
package/icu/Config.in +4 -3
@@ -7,7 +7,7 @@ config BR2_PACKAGE_ICU # file, and it cannot easily be changed to generate FLAT # format. depends on !BR2_BINFMT_FLAT - depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS + depends on BR2_ARCH_HAS_ATOMICS help International Components for Unicode.
@@ -25,7 +25,8 @@ config BR2_PACKAGE_ICU_CUSTOM_DATA_PATH endif -comment "icu needs a toolchain w/ C++, wchar, threads, atomic intrinsics" +comment "icu needs a toolchain w/ C++, wchar, threads" depends on !BR2_BINFMT_FLAT + depends on BR2_ARCH_HAS_ATOMICS depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \ - !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS + !BR2_TOOLCHAIN_HAS_THREADS
package/php/Config.ext +4 -4
@@ -168,14 +168,14 @@ config BR2_PACKAGE_PHP_EXT_INTL depends on BR2_USE_WCHAR depends on !BR2_BINFMT_FLAT # icu depends on BR2_TOOLCHAIN_HAS_THREADS # icu - depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS # icu + depends on BR2_ARCH_HAS_ATOMICS # icu help Internationalization support -comment "intl support needs a toolchain w/ C++, wchar, threads, atomic intrinsics" +comment "intl support needs a toolchain w/ C++, wchar, threads" depends on !BR2_BINFMT_FLAT - depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS \ - || !BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS + depends on BR2_ARCH_HAS_ATOMICS + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS comment "Image processing"
package/qt5/qt5base/Config.in +1 -4
@@ -241,15 +241,12 @@ config BR2_PACKAGE_QT5BASE_DBUS config BR2_PACKAGE_QT5BASE_ICU bool "Enable ICU support" select BR2_PACKAGE_ICU - depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS # icu + depends on BR2_ARCH_HAS_ATOMICS # icu depends on !BR2_BINFMT_FLAT # icu help This option enables ICU support in Qt5. This is for example needed for Qt5Webkit. -comment "icu needs a toolchain w/ atomic intrinsics" - depends on !BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS - config BR2_PACKAGE_QT5BASE_TSLIB bool "Enable Tslib support" depends on !BR2_PREFER_STATIC_LIB # dlopen
Signature · 1 line
1.9.1
PATCH v5 3/24 package/libtorrent: use the new ARCH_HAS_ATOMICS as dependency
In reply to Yann E. MORINAnd propagate to the reverse dependencies of libtorrent
--- package/libtorrent/Config.in | 8 ++++---- package/rtorrent/Config.in | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-)
package/libtorrent/Config.in +4 -4
@@ -2,13 +2,13 @@ config BR2_PACKAGE_LIBTORRENT bool "libtorrent" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS - depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS + depends on BR2_ARCH_HAS_ATOMICS select BR2_PACKAGE_LIBSIGC help BitTorrent library written in C++ for *nix http://libtorrent.rakshasa.no/ -comment "libtorrent needs a toolchain w/ C++, threads, atomic intrinsics" - depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \ - || !BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS +comment "libtorrent needs a toolchain w/ C++, threads" + depends on BR2_ARCH_HAS_ATOMICS + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
package/rtorrent/Config.in +4 -4
@@ -4,7 +4,7 @@ config BR2_PACKAGE_RTORRENT depends on BR2_USE_WCHAR depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU # fork() - depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS # libtorrent + depends on BR2_ARCH_HAS_ATOMICS # libtorrent select BR2_PACKAGE_LIBCURL select BR2_PACKAGE_LIBSIGC select BR2_PACKAGE_LIBTORRENT
@@ -15,7 +15,7 @@ config BR2_PACKAGE_RTORRENT http://libtorrent.rakshasa.no/ -comment "rtorrent needs a toolchain w/ C++, threads, wchar, atomic intrinsics" +comment "rtorrent needs a toolchain w/ C++, threads, wchar" depends on BR2_USE_MMU - depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR && BR2_TOOLCHAIN_HAS_THREADS \ - && BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS) + depends on BR2_ARCH_HAS_ATOMICS + depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR && BR2_TOOLCHAIN_HAS_THREADS)
Signature · 1 line
1.9.1
PATCH v5 4/24 package/jack2: use the new ARCH_HAS_ATOMICS as dependency
In reply to Yann E. MORIN--- package/jack2/Config.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
package/jack2/Config.in +4 -3
@@ -4,7 +4,7 @@ config BR2_PACKAGE_JACK2 depends on BR2_TOOLCHAIN_HAS_THREADS # alsa-lib depends on BR2_USE_MMU # fork() depends on BR2_INSTALL_LIBSTDCPP - depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS + depends on BR2_ARCH_HAS_ATOMICS select BR2_PACKAGE_LIBSAMPLERATE select BR2_PACKAGE_LIBSNDFILE select BR2_PACKAGE_ALSA_LIB
@@ -21,7 +21,8 @@ config BR2_PACKAGE_JACK2 http://jackaudio.org/ -comment "jack2 needs a toolchain w/ largefile, threads, C++, atomic intrinsics" +comment "jack2 needs a toolchain w/ largefile, threads, C++" depends on BR2_USE_MMU + depends on BR2_ARCH_HAS_ATOMICS depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS || \ - !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS + !BR2_INSTALL_LIBSTDCPP
Signature · 1 line
1.9.1
PATCH v5 5/24 package/thrift: use the new ARCH_HAS_ATOMICS as dependency
In reply to Yann E. MORIN--- package/thrift/Config.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
package/thrift/Config.in +4 -4
@@ -4,7 +4,7 @@ config BR2_PACKAGE_THRIFT depends on BR2_USE_WCHAR depends on BR2_LARGEFILE depends on BR2_TOOLCHAIN_HAS_THREADS - depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS + depends on BR2_ARCH_HAS_ATOMICS select BR2_PACKAGE_BOOST select BR2_PACKAGE_LIBEVENT select BR2_PACKAGE_OPENSSL
@@ -19,7 +19,7 @@ config BR2_PACKAGE_THRIFT http://thrift.apache.org/ -comment "thrift needs a toolchain w/ C++, largefile, wchar, threads, atomic intrinsics" +comment "thrift needs a toolchain w/ C++, largefile, wchar, threads" + depends on BR2_ARCH_HAS_ATOMICS depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || \ - !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \ - !BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS + !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP
Signature · 1 line
1.9.1
PATCH v5 6/24 toolchain: drop the now-unused old BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS
In reply to Yann E. MORINIt's now been replaced with BR2_ARCH_HAS_ATOMICS, annd all packages have been changed to use that instead.
--- arch/Config.in | 1 - toolchain/toolchain-common.in | 3 --- 2 files changed, 4 deletions(-)
arch/Config.in +0 -1
@@ -254,7 +254,6 @@ config BR2_GCC_TARGET_MODE config BR2_ARCH_HAS_ATOMICS bool default y if !BR2_arc - select BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS # Set up target binary format choice
toolchain/toolchain-common.in +0 -3
@@ -44,9 +44,6 @@ config BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS config BR2_TOOLCHAIN_HAS_SSP bool -config BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS - bool - config BR2_ENABLE_LOCALE_PURGE bool "Purge unwanted locales" help
Signature · 1 line
1.9.1
PATCH v5 7/24 manual: document dependencies on atomic operations
In reply to Yann E. MORINFrom: Anton Kolesov <[email protected]>
Add atomic operations to the list of generic dependencies.
Since this is an architecture option, there is no comment string to be added.
--- docs/manual/adding-packages-directory.txt | 5 +++++ 1 file changed, 5 insertions(+)
docs/manual/adding-packages-directory.txt +5 -0
@@ -219,6 +219,11 @@ use in the comment. ** Dependency symbol: +BR2_USE_MMU+ ** Comment string: no comment to be added +* Atomic instructions (whereby the architecture has instructions to + perform some operations atomically, like LOCKCMPXCHG on x86) +** Dependency symbol: +BR2_ARCH_HAS_ATOMICS+ +** Comment string: no comment to be added + * Kernel headers ** Dependency symbol: +BR2_TOOLCHAIN_HEADERS_AT_LEAST_X_Y+, (replace +X_Y+ with the proper version, see +toolchain/toolchain-common.in+)
Signature · 1 line
1.9.1
PATCH v5 8/24 cairo: add dependency on atomic operations
In reply to Yann E. MORINFrom: Anton Kolesov <[email protected]>
This fixes:
http://autobuild.buildroot.net/results/fadfaa9916724d310d0dda555a1db31bee1601d0/
[yann.morin.1998 at free.fr: use the new symbol; remove comment strings;
fix weston's comment]
--- package/cairo/Config.in | 1 + package/efl/libevas-generic-loaders/Config.in | 2 ++ package/gstreamer/gst-plugins-good/Config.in | 1 + package/gstreamer1/gst1-plugins-good/Config.in | 1 + package/libgtk2/Config.in | 2 ++ package/librsvg/Config.in | 2 ++ package/libsvg-cairo/Config.in | 1 + package/pango/Config.in | 2 ++ package/webkit/Config.in | 2 ++ package/weston/Config.in | 2 ++ 10 files changed, 16 insertions(+)
package/cairo/Config.in +1 -0
@@ -1,5 +1,6 @@ config BR2_PACKAGE_CAIRO bool "cairo" + depends on BR2_ARCH_HAS_ATOMICS select BR2_PACKAGE_PIXMAN select BR2_PACKAGE_FONTCONFIG select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
package/efl/libevas-generic-loaders/Config.in +2 -0
@@ -17,10 +17,12 @@ config BR2_PACKAGE_LIBEVAS_GENERIC_LOADERS_SVG depends on BR2_USE_WCHAR # librsvg -> glib2 depends on BR2_TOOLCHAIN_HAS_THREADS # librsvg -> glib2 depends on BR2_INSTALL_LIBSTDCPP # librsvg -> pango + depends on BR2_ARCH_HAS_ATOMICS # cairo help This option enables the Evas generic SVG loader comment "SVG loader needs a toolchain w/ wchar, threads, C++" + depends on BR2_ARCH_HAS_ATOMICS depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP endif
package/gstreamer/gst-plugins-good/Config.in +1 -0
@@ -178,6 +178,7 @@ config BR2_PACKAGE_GST_PLUGINS_GOOD_PLUGIN_ANNODEX config BR2_PACKAGE_GST_PLUGINS_GOOD_PLUGIN_CAIRO bool "cairo" + depends on BR2_ARCH_HAS_ATOMICS # cairo select BR2_PACKAGE_CAIRO select BR2_PACKAGE_CAIRO_PNG
package/gstreamer1/gst1-plugins-good/Config.in +1 -0
@@ -278,6 +278,7 @@ comment "v4l2 needs toolchain w/ headers >= 3.0" config BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_CAIRO bool "cairo" + depends on BR2_ARCH_HAS_ATOMICS # cairo select BR2_PACKAGE_CAIRO select BR2_PACKAGE_CAIRO_PNG help
package/libgtk2/Config.in +2 -0
@@ -17,6 +17,7 @@ config BR2_PACKAGE_LIBGTK2 depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 depends on BR2_USE_MMU # glib2 depends on BR2_INSTALL_LIBSTDCPP # pango + depends on BR2_ARCH_HAS_ATOMICS # cairo help The GTK+ version 2 graphical user interface library
@@ -34,6 +35,7 @@ endif comment "libgtk2 needs a toolchain w/ wchar, threads, C++" depends on BR2_USE_MMU + depends on BR2_ARCH_HAS_ATOMICS depends on BR2_PACKAGE_XORG7 depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP || \ !BR2_TOOLCHAIN_HAS_THREADS
package/librsvg/Config.in +2 -0
@@ -10,6 +10,7 @@ config BR2_PACKAGE_LIBRSVG depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 depends on BR2_USE_MMU # glib2 depends on BR2_INSTALL_LIBSTDCPP # pango + depends on BR2_ARCH_HAS_ATOMICS # cairo help The rsvg library is an efficient renderer for Scalable Vector Graphics (SVG) pictures.
@@ -18,4 +19,5 @@ config BR2_PACKAGE_LIBRSVG comment "librsvg needs a toolchain w/ wchar, threads, C++" depends on BR2_USE_MMU + depends on BR2_ARCH_HAS_ATOMICS # cairo depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP
package/libsvg-cairo/Config.in +1 -0
@@ -1,5 +1,6 @@ config BR2_PACKAGE_LIBSVG_CAIRO bool "libsvg-cairo" + depends on BR2_ARCH_HAS_ATOMICS # cairo select BR2_PACKAGE_CAIRO select BR2_PACKAGE_CAIRO_SVG select BR2_PACKAGE_LIBSVG
package/pango/Config.in +2 -0
@@ -4,6 +4,7 @@ config BR2_PACKAGE_PANGO depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 depends on BR2_USE_MMU # glib2 depends on BR2_INSTALL_LIBSTDCPP # freetype support + depends on BR2_ARCH_HAS_ATOMICS # cairo select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_EXPAT select BR2_PACKAGE_CAIRO
@@ -23,5 +24,6 @@ config BR2_PACKAGE_PANGO comment "pango needs a toolchain w/ wchar, threads, C++" depends on BR2_USE_MMU + depends on BR2_ARCH_HAS_ATOMICS depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \ !BR2_INSTALL_LIBSTDCPP
package/webkit/Config.in +2 -0
@@ -17,6 +17,7 @@ config BR2_PACKAGE_WEBKIT depends on BR2_PACKAGE_LIBGTK2 depends on BR2_PACKAGE_WEBKIT_ARCH_SUPPORTS depends on !BR2_BINFMT_FLAT # icu + depends on BR2_ARCH_HAS_ATOMICS # cairo select BR2_PACKAGE_CAIRO select BR2_PACKAGE_CAIRO_PNG select BR2_PACKAGE_ENCHANT
@@ -44,6 +45,7 @@ config BR2_PACKAGE_WEBKIT comment "webkit needs libgtk2 and a toolchain w/ C++, wchar, threads" depends on BR2_PACKAGE_WEBKIT_ARCH_SUPPORTS + depends on BR2_ARCH_HAS_ATOMICS # cairo depends on !BR2_PACKAGE_LIBGTK2 || !BR2_INSTALL_LIBSTDCPP || \ !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU
package/weston/Config.in +2 -0
@@ -1,5 +1,6 @@ comment "weston needs udev and a toolchain w/ threads, headers >= 3.0" depends on !BR2_avr32 + depends on BR2_ARCH_HAS_ATOMICS depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 config BR2_PACKAGE_WESTON
@@ -15,6 +16,7 @@ config BR2_PACKAGE_WESTON depends on !BR2_avr32 # wayland depends on BR2_TOOLCHAIN_HAS_THREADS # wayland depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 + depends on BR2_ARCH_HAS_ATOMICS # cairo # Runtime dependency select BR2_PACKAGE_XKEYBOARD_CONFIG # Make sure at least one compositor is selected.
Signature · 1 line
1.9.1
PATCH v5 9/24 pulseaudio: add dependency on atomic operations
In reply to Yann E. MORINFrom: Anton Kolesov <[email protected]>
This fixes:
http://autobuild.buildroot.net/results/d463f3bf730a600a07ed6cd33695bf45e9fd3540/
--- package/gstreamer/gst-plugins-good/Config.in | 6 ++++++ package/gstreamer1/gst1-plugins-good/Config.in | 6 ++++++ package/mpd/Config.in | 2 ++ package/pulseaudio/Config.in | 2 ++ 4 files changed, 16 insertions(+)
package/gstreamer/gst-plugins-good/Config.in +6 -0
@@ -209,9 +209,15 @@ config BR2_PACKAGE_GST_PLUGINS_GOOD_PLUGIN_PULSE depends on BR2_TOOLCHAIN_HAS_THREADS # pulseaudio depends on BR2_LARGEFILE # pulseaudio -> libsndfile depends on BR2_USE_MMU # pulseaudio + depends on BR2_ARCH_HAS_ATOMICS # pulseaudio select BR2_PACKAGE_PULSEAUDIO bool "pulseaudio" +comment "pulseaudio support needs a toolchain w/ largefile, threads" + depends on BR2_USE_MMU + depends on BR2_ARCH_HAS_ATOMICS + depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS + config BR2_PACKAGE_GST_PLUGINS_GOOD_PLUGIN_SOUPHTTPSRC bool "souphttpsrc (http client)" depends on BR2_USE_WCHAR # libsoup -> glib2
package/gstreamer1/gst1-plugins-good/Config.in +6 -0
@@ -309,11 +309,17 @@ config BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_PULSE depends on BR2_TOOLCHAIN_HAS_THREADS # pulseaudio depends on BR2_LARGEFILE # pulseaudio -> libsndfile depends on BR2_USE_MMU # pulseaudio + depends on BR2_ARCH_HAS_ATOMICS # pulseaudio select BR2_PACKAGE_PULSEAUDIO bool "pulseaudio" help PulseAudio plugin library +comment "pulseaudio support needs a toolchain w/ largefile, threads" + depends on BR2_USE_MMU + depends on BR2_ARCH_HAS_ATOMICS + depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS + config BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_SOUPHTTPSRC bool "souphttpsrc (http client)" depends on BR2_USE_WCHAR # libsoup -> glib2
package/mpd/Config.in +2 -0
@@ -45,11 +45,13 @@ config BR2_PACKAGE_MPD_AUDIOFILE config BR2_PACKAGE_MPD_PULSEAUDIO bool "pulseaudio" depends on BR2_LARGEFILE # pulseaudio -> libsndfile + depends on BR2_ARCH_HAS_ATOMICS # pulseaudio select BR2_PACKAGE_PULSEAUDIO help Enable pulseaudio output support. comment "pulseaudio support needs a toolchain w/ largefile" + depends on BR2_ARCH_HAS_ATOMICS depends on !BR2_LARGEFILE config BR2_PACKAGE_MPD_BZIP2
package/pulseaudio/Config.in +2 -0
@@ -8,6 +8,7 @@ config BR2_PACKAGE_PULSEAUDIO select BR2_PACKAGE_SPEEX depends on BR2_LARGEFILE depends on BR2_USE_MMU # fork() + depends on BR2_ARCH_HAS_ATOMICS help PulseAudio is a sound system for POSIX OSes, meaning that it is a proxy for your sound applications. It allows you to do
@@ -32,4 +33,5 @@ endif comment "pulseaudio needs a toolchain w/ wchar, largefile, threads" depends on BR2_USE_MMU + depends on BR2_ARCH_HAS_ATOMICS depends on !BR2_USE_WCHAR || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
Signature · 1 line
1.9.1
PATCH v5 10/24 libftdi: add dependency on atomic operations
In reply to Yann E. MORINFrom: Anton Kolesov <[email protected]>
This fixes:
http://autobuild.buildroot.net/results/6cb25ed954840109c9d0e582e922b0ba9d07e174/
--- package/libftdi/Config.in | 2 ++ package/openocd/Config.in | 1 + 2 files changed, 3 insertions(+)
package/libftdi/Config.in +2 -0
@@ -1,6 +1,7 @@ config BR2_PACKAGE_LIBFTDI bool "libftdi" depends on BR2_TOOLCHAIN_HAS_THREADS # libusb + depends on BR2_ARCH_HAS_ATOMICS select BR2_PACKAGE_LIBUSB select BR2_PACKAGE_LIBUSB_COMPAT help
@@ -19,4 +20,5 @@ config BR2_PACKAGE_LIBTFDI_CPP endif # BR2_PACKAGE_LIBFTDI comment "libftdi needs a toolchain w/ threads" + depends on BR2_ARCH_HAS_ATOMICS depends on !BR2_TOOLCHAIN_HAS_THREADS
package/openocd/Config.in +1 -0
@@ -14,6 +14,7 @@ comment "Adapters" config BR2_PACKAGE_OPENOCD_FT2XXX bool "FT2xxx/FT4xxx Based JTAG Programmer" + depends on BR2_ARCH_HAS_ATOMICS # libftdi select BR2_PACKAGE_LIBFTDI help Enable building support for FT2232 based devices
Signature · 1 line
1.9.1
PATCH v5 11/24 msgpack: add dependency on atomic operations
In reply to Yann E. MORINFrom: Anton Kolesov <[email protected]>
This fixes:
http://autobuild.buildroot.net/results/44849a386cefb8899f4560296bfbbd8ea19ee910/
--- package/msgpack/Config.in | 4 ++-- package/python-msgpack/Config.in | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
package/msgpack/Config.in +2 -2
@@ -1,7 +1,7 @@ config BR2_PACKAGE_MSGPACK bool "msgpack" depends on BR2_INSTALL_LIBSTDCPP - depends on !BR2_arc # atomic builtins + depends on BR2_ARCH_HAS_ATOMICS help MessagePack is an efficient binary serialization format.
@@ -11,5 +11,5 @@ config BR2_PACKAGE_MSGPACK http://msgpack.org/ comment "msgpack needs a toolchain w/ C++" + depends on BR2_ARCH_HAS_ATOMICS depends on !BR2_INSTALL_LIBSTDCPP - depends on !BR2_arc
package/python-msgpack/Config.in +2 -2
@@ -3,7 +3,7 @@ config BR2_PACKAGE_PYTHON_MSGPACK depends on BR2_PACKAGE_PYTHON select BR2_PACKAGE_MSGPACK depends on BR2_INSTALL_LIBSTDCPP # msgpack - depends on !BR2_arc # msgpack - atomic builtins + depends on BR2_ARCH_HAS_ATOMICS # msgpack help MessagePack (http://msgpack.org/) is a fast, compact binary serialization format, suitable for similar data to JSON.
@@ -13,6 +13,6 @@ config BR2_PACKAGE_PYTHON_MSGPACK https://pypi.python.org/pypi/msgpack-python/ comment "python-msgpack needs a toolchain w/ C++" + depends on BR2_ARCH_HAS_ATOMICS depends on BR2_PACKAGE_PYTHON depends on !BR2_INSTALL_LIBSTDCPP - depends on !BR2_arc
Signature · 1 line
1.9.1
PATCH v5 12/24 arch/arm: always has atomic ops
In reply to Yann E. MORINarmv6 and above all have one sort of atomic ops or another. For armv5 and below, they are emulated, either as a kernel trap, a kernel VDSO, or compiler intrinsics.
Aarch64 is just armv8, so make it a single commit. ;-)
--- arch/Config.in.aarch64 | 3 +++ arch/Config.in.arm | 3 +++ 2 files changed, 6 insertions(+)
arch/Config.in.aarch64 +3 -0
@@ -3,3 +3,6 @@ config BR2_ARCH config BR2_ENDIAN default "LITTLE" + +config BR2_ARCH_HAS_ATOMICS + default y
arch/Config.in.arm +3 -0
@@ -340,6 +340,9 @@ config BR2_ENDIAN default "LITTLE" if BR2_arm default "BIG" if BR2_armeb +config BR2_ARCH_HAS_ATOMICS + default y + config BR2_GCC_TARGET_CPU default "arm920" if BR2_arm920 default "arm920t" if BR2_arm920t
Signature · 1 line
1.9.1
PATCH v5 13/24 arch/avr32: always has atomic ops
In reply to Yann E. MORIN--- arch/Config.in.avr32 | 3 +++ 1 file changed, 3 insertions(+)
arch/Config.in.avr32 +3 -0
@@ -6,3 +6,6 @@ config BR2_ENDIAN config BR2_GCC_TARGET_ARCH default "ap" + +config BR2_ARCH_HAS_ATOMICS + default y
Signature · 1 line
1.9.1
PATCH v5 14/24 arch/bfin: always has atomic ops
In reply to Yann E. MORIN--- arch/Config.in.bfin | 3 +++ 1 file changed, 3 insertions(+)
arch/Config.in.bfin +3 -0
@@ -68,6 +68,9 @@ config BR2_ARCH config BR2_ENDIAN default "LITTLE" +config BR2_ARCH_HAS_ATOMICS + default y + config BR2_GCC_TARGET_CPU default bf606 if BR2_bf606 default bf607 if BR2_bf607
Signature · 1 line
1.9.1
PATCH v5 15/24 arch/m68k: always has atomic ops
In reply to Yann E. MORIN--- arch/Config.in.m68k | 3 +++ 1 file changed, 3 insertions(+)
arch/Config.in.m68k +3 -0
@@ -4,6 +4,9 @@ config BR2_ARCH config BR2_ENDIAN default "BIG" +config BR2_ARCH_HAS_ATOMICS + default y + config BR2_GCC_TARGET_TUNE default "68000" if BR2_m68k_68000 default "68010" if BR2_m68k_68010
Signature · 1 line
1.9.1
PATCH v5 16/24 arch/microblaze: always has atomic ops
In reply to Yann E. MORIN--- arch/Config.in.microblaze | 3 +++ 1 file changed, 3 insertions(+)
arch/Config.in.microblaze +3 -0
@@ -9,3 +9,6 @@ config BR2_ENDIAN config BR2_microblaze bool default y if BR2_microblazeel || BR2_microblazebe + +config BR2_ARCH_HAS_ATOMICS + default y
Signature · 1 line
1.9.1
PATCH v5 17/24 arch/mips: always has atomic ops
In reply to Yann E. MORIN--- arch/Config.in.mips | 3 +++ 1 file changed, 3 insertions(+)
arch/Config.in.mips +3 -0
@@ -73,6 +73,9 @@ config BR2_ENDIAN default "LITTLE" if BR2_mipsel || BR2_mips64el default "BIG" if BR2_mips || BR2_mips64 +config BR2_ARCH_HAS_ATOMICS + default y + config BR2_GCC_TARGET_ARCH default "mips1" if BR2_mips_1 default "mips2" if BR2_mips_2
Signature · 1 line
1.9.1
PATCH v5 18/24 arch/nios2: always has atomic ops
In reply to Yann E. MORIN--- arch/Config.in.nios2 | 3 +++ 1 file changed, 3 insertions(+)
arch/Config.in.nios2 +3 -0
@@ -3,3 +3,6 @@ config BR2_ARCH config BR2_ENDIAN default "LITTLE" + +config BR2_ARCH_HAS_ATOMICS + default y
Signature · 1 line
1.9.1
PATCH v5 19/24 arch/powerpc: always has atomic ops
In reply to Yann E. MORIN--- arch/Config.in.powerpc | 3 +++ 1 file changed, 3 insertions(+)
arch/Config.in.powerpc +3 -0
@@ -157,6 +157,9 @@ config BR2_ENDIAN default "BIG" if BR2_powerpc || BR2_powerpc64 default "LITTLE" if BR2_powerpc64le +config BR2_ARCH_HAS_ATOMICS + default y + config BR2_GCC_TARGET_TUNE default "401" if BR2_powerpc_401 default "403" if BR2_powerpc_403
Signature · 1 line
1.9.1
PATCH v5 20/24 arch/sh: always has atomic ops
In reply to Yann E. MORIN--- arch/Config.in.sh | 3 +++ 1 file changed, 3 insertions(+)
arch/Config.in.sh +3 -0
@@ -28,3 +28,6 @@ config BR2_ARCH config BR2_ENDIAN default "LITTLE" if BR2_sh4 || BR2_sh4a || BR2_sh64 default "BIG" if BR2_sh2a || BR2_sh4eb || BR2_sh4aeb + +config BR2_ARCH_HAS_ATOMICS + default y
Signature · 1 line
1.9.1
PATCH v5 21/24 arch/sparc: always has atomic ops
In reply to Yann E. MORIN--- arch/Config.in.sparc | 3 +++ 1 file changed, 3 insertions(+)
arch/Config.in.sparc +3 -0
@@ -23,6 +23,9 @@ config BR2_ARCH config BR2_ENDIAN default "BIG" +config BR2_ARCH_HAS_ATOMICS + default y + config BR2_GCC_TARGET_TUNE default "v8" if BR2_sparc_v8
Signature · 1 line
1.9.1
PATCH v5 22/24 arch/x86: all x86 but i386 has atomics operations
In reply to Yann E. MORIN--- arch/Config.in.x86 | 3 +++ 1 file changed, 3 insertions(+)
arch/Config.in.x86 +3 -0
@@ -202,6 +202,9 @@ config BR2_ARCH config BR2_ENDIAN default "LITTLE" +config BR2_ARCH_HAS_ATOMICS + default y if !BR2_x86_i386 + config BR2_GCC_TARGET_TUNE default "i386" if BR2_x86_i386 default "i486" if BR2_x86_i486
Signature · 1 line
1.9.1
PATCH v5 23/24 arch/xtensa: always has atomic ops
In reply to Yann E. MORIN--- arch/Config.in.xtensa | 3 +++ 1 file changed, 3 insertions(+)
arch/Config.in.xtensa +3 -0
@@ -35,3 +35,6 @@ config BR2_XTENSA_OVERLAY_DIR config BR2_ARCH default "xtensa" if BR2_xtensa + +config BR2_ARCH_HAS_ATOMICS + default y
Signature · 1 line
1.9.1
PATCH v5 24/24 arch: remove no-longer default on atomics option
In reply to Yann E. MORINNow that all architectures explicitly select this option when it makes sense, there is no need to have a default value.
--- arch/Config.in | 1 - 1 file changed, 1 deletion(-)
arch/Config.in +0 -1
@@ -253,7 +253,6 @@ config BR2_GCC_TARGET_MODE # If the architecture has atomic operations, select this: config BR2_ARCH_HAS_ATOMICS bool - default y if !BR2_arc # Set up target binary format choice
Signature · 1 line
1.9.1
v5 cover arch: move atomics to arch, not toolchain (branch yem/atomics)
In reply to Yann E. MORINQuoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
Hello All!
This series is a follow-up to, and includes Anton's series, to introduce awareness of atomic operations, so pacjages can be hidden-away on architectures that do not provide atomic operations.We've discussed this with Thomas on IRC and on the list, and although this comes late in the cycle, we both consider this to be materials for the *current* release.
I tried to cover all bases here, but there are architectures I have close-to-zero knowledge of, so please speak up if you disagree on my proposal.
The series is split in thre parts:
- patches 1..7 renames the option, and moves it out of toolchain and
to an architecture option, and add the option to the manual;- patches 8..11 hides more packages due to their requiring atomics
Quoted 8 lines
- patches 12..24 convert all our architectures to selectively declare their (non-)support for atomic ops, to finally get rid of the generic default value.
Changes v4 -> v5:
- enhance the manual (Thomas DS)
- misc typoes (Thomas DS)
Committed series, thanks all!
Signature · 1 line
Bye, Peter Korsgaard