]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fix building on Blackfin as the assembler supports the .set syntax, not the = syntax...
authorMike Frysinger <vapier@gentoo.org>
Tue, 5 Feb 2008 00:26:54 +0000 (19:26 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 5 Feb 2008 00:26:54 +0000 (19:26 -0500)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
common/environment.c

index 24257f7c527b40282e99f1271c95c436a73a7fa9..3b9914f49846c1421178e3fe34f1e9a0a7e10d83 100644 (file)
 /*
  * 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