arch/arc: fix atomics selection
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 11 Sep 2014 20:46:46 +0000 (22:46 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 11 Sep 2014 20:53:08 +0000 (22:53 +0200)
commit21c8f1e9470d37787b6d7cef10612df56cfdef2a
treecb989d4dbfa2855cc89f6792ebd6fecf73d631f5
parent9581d0d1177d41cc61501e0f93f6089da3c1d4c1
arch/arc: fix atomics selection

Due to a kconfig limitation, we can't select a no-prompt symbol that
gets its dependencies by being conditionally re-defined in one or more
if-blocks, like we currently do for BR2_ARCH_HAS_ATOMICS.

As a workaround to this issue, we just redefine that symbol in the arc
if-block, like we do for all other architectures, except that in the arc
case, the default value is conditional.

Reported-by: Anton Kolesov <Anton.Kolesov@synopsys.com>
[yann.morin.1998@free.fr: indepently re-done a patch similar to the one
 Thomas made on his own]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
arch/Config.in.arc