All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] ARM preprocessor error generating assembly dependencies
@ 2009-08-31  8:39 Dirk Behme
  2009-08-31 10:40 ` Wolfgang Denk
  0 siblings, 1 reply; 9+ messages in thread
From: Dirk Behme @ 2009-08-31  8:39 UTC (permalink / raw)
  To: u-boot

Hi,

for ARM I'm including

include/asm-arm/assembler.h

in an assembly file. Doing this, I get preprocessor error message

include/asm/assembler.h:17:2: error: #error "Only include this from 
assembly code"

This is due to __ASSEMBLY__ not defined, but It seems to me that this 
message comes from *dependency* generation, not from compilation.

For compilation,  -D__ASSEMBLY__ is set and it compiles fine.

Doing

#define __ASSEMBLY__
#include <asm/assembler.h>

in assembly file fixes the error while generating dependencies, but 
results in __ASSEMBLY__ redefined message while compilation.

Any expert here could have look to which options are taken for ARM's 
assembly dependency generation? It seems to me that -D__ASSEMBLY__ is 
missing there?

Many thanks and best regards

Dirk

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

end of thread, other threads:[~2009-09-01  7:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-31  8:39 [U-Boot] ARM preprocessor error generating assembly dependencies Dirk Behme
2009-08-31 10:40 ` Wolfgang Denk
2009-08-31 12:51   ` Dirk Behme
2009-08-31 13:00     ` Dirk Behme
2009-09-01  6:13       ` Dirk Behme
2009-09-01  6:38         ` Wolfgang Denk
2009-09-01  6:46           ` Dirk Behme
2009-09-01  7:34             ` Wolfgang Denk
2009-09-01  7:57               ` Dirk Behme

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.