From 20d1ba602b8f56cc396a213f6beecac500af02e2 Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Thu, 14 Oct 2010 16:15:56 +0800 Subject: [PATCH] Explicitly declare assembly only __ASSEMBLY__ macro for assembly source To isolate the assembly-only macros in header files, such as , this patch attempts to declare assembly only __ASSEMBLY__ macro in build system. Change-Id: I081c3e46258a9256b20995e4d0b473c64745444c --- core/binary.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/binary.mk b/core/binary.mk index 2f0a24340d..452fbab508 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -18,6 +18,12 @@ ifeq ($(strip $(LOCAL_NO_FDO_SUPPORT)),) LOCAL_LDFLAGS += $(TARGET_FDO_CFLAGS) endif +########################################################### +## Explicitly declare assembly-only __ASSEMBLY__ macro for +## assembly source +########################################################### +LOCAL_ASFLAGS += -D__ASSEMBLY__ + ########################################################### ## Define PRIVATE_ variables used by multiple module types ###########################################################