Patchwork [2/2] tvheadend: disable on avr32

login
register
mail settings
Submitter Thomas Petazzoni
Date Feb. 3, 2013, 12:15 p.m.
Message ID <1359893728-4345-2-git-send-email-thomas.petazzoni@free-electrons.com>
Download mbox | patch
Permalink /patch/217746/
State Accepted
Commit ca83edc9af7af33b985f2175396b34857b774fbc
Headers show

Comments

Thomas Petazzoni - Feb. 3, 2013, 12:15 p.m.
tvheadend requires an atomic_add operation. Either you have a gcc >=
4.3 toolchain and it uses the gcc intrinsics, or it has special code
for x86, x86-64, PPC and ARM. So in the context of Buildroot, the only
really problematic architecture is avr32, which uses gcc 4.2.

Fixes http://autobuild.buildroot.org/results/f015b1888d739c383aca61609059aa7675a4da7d/build-end.log

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/tvheadend/Config.in |    6 ++++++
 1 file changed, 6 insertions(+)
Yann E. MORIN - Feb. 3, 2013, 12:50 p.m.
Thomas, All,

Quoting Thomas Petazzoni <thomas.petazzoni@free-electrons.com>:
> tvheadend requires an atomic_add operation. Either you have a gcc >=
> 4.3 toolchain and it uses the gcc intrinsics, or it has special code
> for x86, x86-64, PPC and ARM. So in the context of Buildroot, the only
> really problematic architecture is avr32, which uses gcc 4.2.
>
> Fixes
>
http://autobuild.buildroot.org/results/f015b1888d739c383aca61609059aa7675a4da7d/build-end.log
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

Patch

diff --git a/package/tvheadend/Config.in b/package/tvheadend/Config.in
index 899b160..19ab276 100644
--- a/package/tvheadend/Config.in
+++ b/package/tvheadend/Config.in
@@ -4,6 +4,12 @@  comment "tvheadend requires a toolchain with LARGEFILE and IPv6 support"
 config BR2_PACKAGE_TVHEADEND
 	bool "tvheadend"
 	depends on BR2_LARGEFILE && BR2_INET_IPV6
+	# tvheadend requires an atomic_add operation. Either you have
+	# a gcc >= 4.3 toolchain and it uses the gcc intrinsics, or it
+	# has special code for x86, x86-64, PPC and ARM. So in the
+	# context of Buildroot, the only really problematic
+	# architecture is avr32, which uses gcc 4.2.
+	depends on !BR2_avr32
 	select BR2_PACKAGE_DVB_APPS
 	select BR2_PACKAGE_OPENSSL
 	help