summaryrefslogtreecommitdiff
path: root/core/arch/arm/plat-s5p6818/platform_flags.mk
blob: 60fb57603f19a1447ff81a3dd8d2297183d0491b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 32-bit flags
arm32-platform-cpuarch	:= cortex-a53
arm32-platform-cflags	+= -mcpu=$(arm32-platform-cpuarch)
arm32-platform-cflags	+= -pipe
arm32-platform-cflags	+= -fno-short-enums -fno-common
arm32-platform-aflags	+= -mcpu=$(arm32-platform-cpuarch)
arm32-platform-aflags	+= -mfpu=neon

# 64-bit flags
arm64-platform-cflags	+= -mstrict-align

platform-cflags += -ffunction-sections -fdata-sections

DEBUG		?= 1
ifeq ($(DEBUG),1)
platform-cflags += -O0
else
platform-cflags += -Os
endif

platform-cflags += -g
platform-aflags += -g

CFG_ARM32_user_ta := y
user_ta-platform-cflags += $(arm32-platform-cflags)
user_ta-platform-cflags += -fpie
user_ta-platform-cppflags += $(arm32-platform-cppflags)
user_ta-platform-aflags += $(arm32-platform-aflags)