Lines Matching +full:gcc +full:- +full:4

2 # (C) Copyright 2000-2002
5 # SPDX-License-Identifier: GPL-2.0+
16 CFLAGS_NON_EFI := -fno-pic -ffixed-r9 -ffunction-sections -fdata-sections
17 CFLAGS_EFI := -fpic -fshort-wchar
19 LDFLAGS_FINAL += --gc-sections
20 PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections \
21 -fno-common -ffixed-r9
22 PLATFORM_RELFLAGS += $(call cc-option, -msoft-float) \
23 $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
26 LLVMS_RELFLAGS := $(call cc-option,-mllvm,) \
27 $(call cc-option,-target arm-none-eabi,) \
28 $(call cc-option,-arm-use-movt=0,)
31 PLATFORM_CPPFLAGS += -D__ARM__
34 PLATFORM_ELFFLAGS += -B aarch64 -O elf64-littleaarch64
36 PLATFORM_ELFFLAGS += -B arm -O elf32-littlearm
41 AFLAGS_IMPLICIT_IT := $(call as-option,-Wa$(comma)-mimplicit-it=always)
43 $(call cc-option, -mthumb -mthumb-interwork,\
44 $(call cc-option,-marm,)\
45 $(call cc-option,-mno-thumb-interwork,)\
48 PF_CPPFLAGS_ARM := $(call cc-option,-marm,) \
49 $(call cc-option,-mno-thumb-interwork,)
57 @if test "$(call cc-name)" = "gcc" -a \
58 "$(call cc-version)" -lt "0404"; then \
59 echo -n '*** Your GCC does not produce working '; \
69 @if test "$(call cc-name)" = "gcc" -a \
70 "$(call cc-version)" -lt "0600"; then \
71 echo -n '*** Your GCC is older than 6.0 and will not be '; \
78 # - with ELDK 4.2 (EABI supported), use:
79 # -mabi=aapcs-linux
80 # - with ELDK 4.1 (gcc 4.x, no EABI), use:
81 # -mabi=apcs-gnu
82 # - with ELDK 3.1 (gcc 3.x), use:
83 # -mapcs-32
84 PF_CPPFLAGS_ABI := $(call cc-option,\
85 -mabi=aapcs-linux,\
86 $(call cc-option,\
87 -mapcs-32,\
88 $(call cc-option,\
89 -mabi=apcs-gnu,\
96 ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS)))
99 # CONFIG_SPL_BUILD is defined or not. 'filter-out' the existing entry
102 $(filter-out arch/arm/lib/eabi_compat.o, $(PLATFORM_LIBS))
106 LDFLAGS_u-boot += -pie
109 LDFLAGS_u-boot-spl = -pie
111 SPL_LDFLAGS_u-boot-spl =
124 export GAS_BUG_12532:=$(shell if [ $(call binutils-version) -lt 0222 ] ; \
128 PLATFORM_RELFLAGS += -fno-optimize-sibling-calls
134 ALL-y += checkarmreloc
138 PLATFORM_CPPFLAGS += $(call cc-option, -mword-relocations)
139 PLATFORM_CPPFLAGS += $(call cc-option, -fno-pic)
144 OBJCOPYFLAGS += -j .text -j .secure_text -j .secure_data -j .rodata -j .data \
145 -j .u_boot_list -j .rela.dyn -j .got -j .got.plt
147 OBJCOPYFLAGS += -j .text -j .secure_text -j .secure_data -j .rodata -j .hash \
148 -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn \
149 -j .ARM.exidx -j .ARM.extab
156 OBJCOPYFLAGS += -j .dtb.init.rodata
159 OBJCOPYFLAGS += -j .efi_runtime -j .efi_runtime_rel
165 ALL-y += SPL
169 ALL-y += u-boot-dtb.imx
171 ALL-y += u-boot.imx
175 ALL-y += u-boot.vyb