summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarouene Boubakri <marouene.boubakri@nxp.com>2021-03-12 14:00:01 +0300
committerAnup Patel <anup@brainfault.org>2021-03-22 13:32:48 +0300
commitbfc85c70e7517dc633b74e33768247b4df6a661c (patch)
tree8495986c0ebfc19121a10e3b1af57c4ea77c7175 /Makefile
parentddad02d62550ca8884a2bd21345dad8c6c216777 (diff)
downloadopensbi-bfc85c70e7517dc633b74e33768247b4df6a661c.tar.xz
include: headers: Replace __ASSEMBLY__ with __ASSEMBLER__
GCC has already a predefined macro __ASSEMBLER__ therefore, it can be used without the need to define a new flag with -D__ASSEMBLY__. This is useful when adding the library to projects having a build system such one can build without the need to make changes. THe build system does not use the Makefile in the sources tree. Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 038cc99..eeffe6b 100644
--- a/Makefile
+++ b/Makefile
@@ -217,7 +217,7 @@ CPPFLAGS += $(GENFLAGS)
CPPFLAGS += $(platform-cppflags-y)
CPPFLAGS += $(firmware-cppflags-y)
-ASFLAGS = -g -Wall -nostdlib -D__ASSEMBLY__
+ASFLAGS = -g -Wall -nostdlib
ASFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
ASFLAGS += -mno-save-restore -mstrict-align
ASFLAGS += -mabi=$(PLATFORM_RISCV_ABI) -march=$(PLATFORM_RISCV_ISA)