Explicitly declare assembly only __ASSEMBLY__ macro for assembly source

To isolate the assembly-only macros in header files, such as
<machine/cpu-features.h>, this patch attempts to declare assembly
only __ASSEMBLY__ macro in build system.

Change-Id: I081c3e46258a9256b20995e4d0b473c64745444c
This commit is contained in:
Jim Huang 2010-10-14 16:15:56 +08:00
parent fcab84025e
commit 20d1ba602b

View file

@ -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
###########################################################