]>
Commit | Line | Data |
---|---|---|
8ed96046 WD |
1 | # |
2 | # (C) Copyright 2002 | |
792a09eb | 3 | # Gary Jennejohn, DENX Software Engineering, <garyj@denx.de> |
8ed96046 | 4 | # |
1a459660 | 5 | # SPDX-License-Identifier: GPL-2.0+ |
8ed96046 | 6 | # |
d72871e1 | 7 | PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float |
8ed96046 | 8 | |
289f932c | 9 | # Make ARMv5 to allow more compilers to work, even though its v6. |
1820d4c7 WD |
10 | PLATFORM_CPPFLAGS += -march=armv5 |
11 | # ========================================================================= | |
12 | # | |
13 | # Supply options according to compiler version | |
14 | # | |
15 | # ========================================================================= | |
cca4e4ae WD |
16 | PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) |
17 | PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT) | |
8b7cd098 BT |
18 | |
19 | ifneq ($(CONFIG_IMX_CONFIG),) | |
20 | ifdef CONFIG_SPL | |
a3cbc396 SB |
21 | ifdef CONFIG_SPL_BUILD |
22 | ALL-y += $(OBJTREE)/SPL | |
23 | endif | |
8b7cd098 BT |
24 | else |
25 | ALL-y += $(obj)u-boot.imx | |
26 | endif | |
27 | endif |