From: Dirk Behme <dirk.behme@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] ARM preprocessor error generating assembly dependencies
Date: Mon, 31 Aug 2009 10:39:24 +0200 [thread overview]
Message-ID: <4A9B8C3C.7080807@googlemail.com> (raw)
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
next reply other threads:[~2009-08-31 8:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-31 8:39 Dirk Behme [this message]
2009-08-31 10:40 ` [U-Boot] ARM preprocessor error generating assembly dependencies 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A9B8C3C.7080807@googlemail.com \
--to=dirk.behme@googlemail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.