Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/rt-tests: fix Kconfig syntax
@ 2014-02-23 17:29 Yann E. MORIN
  2014-02-23 17:42 ` Thomas Petazzoni
  2014-02-23 17:54 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Yann E. MORIN @ 2014-02-23 17:29 UTC (permalink / raw)
  To: buildroot

From: "Yann E. MORIN" <yann.morin.1998@free.fr>

Fixes:
    $ make menuconfig
    [...]
    package/rt-tests/Config.in:10: syntax error
    package/rt-tests/Config.in:9: invalid option
    package/rt-tests/Config.in:36: syntax error
    package/rt-tests/Config.in:35: invalid option
    make[1]: *** [oldconfig] Error 1
    make: *** [_all] Error 2

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Ryan Barnett <rjbarnet@rockwellcollins.com>
---
 package/rt-tests/Config.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/rt-tests/Config.in b/package/rt-tests/Config.in
index ff4284e..605635c 100644
--- a/package/rt-tests/Config.in
+++ b/package/rt-tests/Config.in
@@ -6,8 +6,8 @@ config BR2_PACKAGE_RT_TESTS
 	# no NPTL for these archs
 	depends on !BR2_avr32 && !BR2_xtensa && !BR2_arc && !BR2_bfin
 	# no _tid field in 'struct sigevent'
-	depends on !BR2_TOOLCHAIN_USES_UCLIBC if (BR2_mips || BR2_mipsel || \
-		BR2_mips64 || BR2_mips64el)
+	depends on ! ( BR2_TOOLCHAIN_USES_UCLIBC && (BR2_mips || BR2_mipsel || \
+		BR2_mips64 || BR2_mips64el) )
 	help
 	  Set of utilities for testing the real-time behaviour of a
 	  Linux system.
@@ -32,5 +32,5 @@ comment "rt-tests needs a toolchain w/ threads"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS
 
 comment "rt-tests needs an (e)glibc toolchain"
-	depends on BR2_TOOLCHAIN_USES_UCLIBC if (BR2_mips || BR2_mipsel || \
+	depends on BR2_TOOLCHAIN_USES_UCLIBC && (BR2_mips || BR2_mipsel || \
 		BR2_mips64 || BR2_mips64el)
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] package/rt-tests: fix Kconfig syntax
  2014-02-23 17:29 [Buildroot] [PATCH] package/rt-tests: fix Kconfig syntax Yann E. MORIN
@ 2014-02-23 17:42 ` Thomas Petazzoni
  2014-02-23 17:54 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2014-02-23 17:42 UTC (permalink / raw)
  To: buildroot

Dear Yann E. MORIN,

On Sun, 23 Feb 2014 18:29:47 +0100, Yann E. MORIN wrote:

> diff --git a/package/rt-tests/Config.in b/package/rt-tests/Config.in
> index ff4284e..605635c 100644
> --- a/package/rt-tests/Config.in
> +++ b/package/rt-tests/Config.in
> @@ -6,8 +6,8 @@ config BR2_PACKAGE_RT_TESTS
>  	# no NPTL for these archs
>  	depends on !BR2_avr32 && !BR2_xtensa && !BR2_arc && !BR2_bfin
>  	# no _tid field in 'struct sigevent'
> -	depends on !BR2_TOOLCHAIN_USES_UCLIBC if (BR2_mips || BR2_mipsel || \
> -		BR2_mips64 || BR2_mips64el)
> +	depends on ! ( BR2_TOOLCHAIN_USES_UCLIBC && (BR2_mips || BR2_mipsel || \
> +		BR2_mips64 || BR2_mips64el) )

I know it's nitpicking, but I must say I personally dislike these
spaces between !, parenthesis and the rest. I very much prefer:

	depends on !(BR2_TOOLCHAIN_USES_UCLIBC && (BR2_mips || BR2_mipsel || \
		BR2_mips64 || BR2_mips64el))

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] package/rt-tests: fix Kconfig syntax
  2014-02-23 17:29 [Buildroot] [PATCH] package/rt-tests: fix Kconfig syntax Yann E. MORIN
  2014-02-23 17:42 ` Thomas Petazzoni
@ 2014-02-23 17:54 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2014-02-23 17:54 UTC (permalink / raw)
  To: buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 > From: "Yann E. MORIN" <yann.morin.1998@free.fr>
 > Fixes:
 >     $ make menuconfig
 >     [...]
 >     package/rt-tests/Config.in:10: syntax error
 >     package/rt-tests/Config.in:9: invalid option
 >     package/rt-tests/Config.in:36: syntax error
 >     package/rt-tests/Config.in:35: invalid option
 >     make[1]: *** [oldconfig] Error 1
 >     make: *** [_all] Error 2

 > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
 > Cc: Ryan Barnett <rjbarnet@rockwellcollins.com>

Sorry, I already fixed it myself (in the same way) before I saw your
patch.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-23 17:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-23 17:29 [Buildroot] [PATCH] package/rt-tests: fix Kconfig syntax Yann E. MORIN
2014-02-23 17:42 ` Thomas Petazzoni
2014-02-23 17:54 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox