From: Mike Frysinger Date: Tue, 5 Feb 2008 00:26:54 +0000 (-0500) Subject: fix building on Blackfin as the assembler supports the .set syntax, not the = syntax... X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=4087bc88cebec75c432a7fe9f6afb545b0919831;p=u-boot.git fix building on Blackfin as the assembler supports the .set syntax, not the = syntax, for assigning symbols Signed-off-by: Mike Frysinger --- diff --git a/common/environment.c b/common/environment.c index 24257f7c52..3b9914f498 100644 --- a/common/environment.c +++ b/common/environment.c @@ -70,11 +70,16 @@ /* * Macros to generate global absolutes. */ +#if defined(__bfin__) +# define GEN_SET_VALUE(name, value) asm (".set " GEN_SYMNAME(name) ", " GEN_VALUE(value)) +#else +# define GEN_SET_VALUE(name, value) asm (GEN_SYMNAME(name) " = " GEN_VALUE(value)) +#endif #define GEN_SYMNAME(str) SYM_CHAR #str #define GEN_VALUE(str) #str #define GEN_ABS(name, value) \ asm (".globl " GEN_SYMNAME(name)); \ - asm (GEN_SYMNAME(name) " = " GEN_VALUE(value)) + GEN_SET_VALUE(name, value) /* * Macros to transform values