build: configure: make sure we can include C headers in assembly

Set ASSEMBLY when we are building .S files so that C headers can
be included.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2018-01-22 23:31:24 +00:00
parent 9053e0455f
commit cc9fba353e
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,10 @@ AC_CANONICAL_HOST
# General compiler flags
CFLAGS="${CFLAGS:+$CFLAGS } -O2 -g -Wall -Werror -Wl,-EL -fno-inline-functions -nostdlib -Wmissing-prototypes"
# General assembler flags
ASFLAGS="-DASSEMBLY"
AC_SUBST(ASFLAGS)
# Cross compiler tool libgcc and headers
AC_ARG_WITH([root-dir],
AS_HELP_STRING([--with-root-dir], [Specify location of cross gcc libraries and headers]),

View File

@ -23,6 +23,7 @@ libreset_a_SOURCES = \
libreset_a_CCASFLAGS = \
$(ARCH_INCDIR) \
$(ASFLAGS) \
$(ARCH_ASFLAGS) \
$(PLATFORM_INCDIR) \
-mtext-section-literals
@ -42,6 +43,7 @@ reef_CFLAGS = \
reef_CCASFLAGS = \
$(ARCH_INCDIR) \
$(ASFLAGS) \
$(ARCH_ASFLAGS) \
$(PLATFORM_INCDIR)