From: Subrata M. <su...@li...> - 2008-04-01 11:50:36
|
On Tue, 2008-04-01 at 11:50 +0200, Robert Schwebel wrote: > On Tue, Apr 01, 2008 at 03:07:14PM +0530, Chirag Jog wrote: > > Hi Subrata, > > This patch should solve the problem for now. > > No, sorry, this is crap. > > > It just avoids the compilation of realtime tests on a non (x86,ppc) > > arch. > > > > Assumption: uname -m doesn't contain 86/ppc on any arch except the x86 and ppc. > > > > Signed-Off-By: Chirag <ch...@li...> Chirag, Can we have something on the lines as suggested by Sripathi like: static inline int atomic_add(int i, atomic_t *v) { #if defined(__x86_64__) || defined(__i386__) int __i; <snip> return i + __i; #elif defined(__powerpc__) #define ISYNC_ON_SMP "\n\tisync\n" #define LWSYNC_ON_SMP __stringify(LWSYNC) "\n" int t; asm volatile( <snip> : "cc", "memory"); return t; #else #error <======= #endif } Regards-- Subrata > > > > diff --git a/testcases/Makefile b/testcases/Makefile > > index 0a2e9c0..68fad61 100644 > > --- a/testcases/Makefile > > +++ b/testcases/Makefile > > @@ -1,6 +1,10 @@ > > -SUBDIRS = `ls */Makefile | sed "s/Makefile//g" | grep -v open | grep -v pounder | grep -v DOTS | grep -v kdump` > > -UCLINUX_SUBDIRS = kernel > > +ifeq ($(shell uname -m |grep -c -e "86" -e "ppc"), 1) > > rsc@thebe:~$ uname -m > i686 > > I cross compile for ARM - what now? A fix has to take care of the cross > scenario! > > Robert |