|
|
|
@ -17,9 +17,9 @@
|
|
|
|
|
# - Change RC path to use plugin
|
|
|
|
|
# 3.00 - Update toolchains
|
|
|
|
|
# - Add support for ARM and AARCH64 to CLANGDWARF
|
|
|
|
|
# - Remove VS2008, VS2010, VS2012, VS2013, CLANG35, CLANG38, EBC
|
|
|
|
|
# - Remove VS2008, VS2010, VS2012, VS2013, CLANG35, CLANG38, EBC, GCC48, GCC49
|
|
|
|
|
# - Add GCC and GCCNOLTO
|
|
|
|
|
# - Deprecate GCC48, GCC49 and GCC5.
|
|
|
|
|
# - Deprecate GCC5.
|
|
|
|
|
#
|
|
|
|
|
#!VERSION=3.00
|
|
|
|
|
|
|
|
|
@ -77,9 +77,6 @@ DEFINE VS2019_BIN_AARCH64 = DEF(VS2019_BIN)\HostDEF(VS_HOST)\arm64
|
|
|
|
|
#
|
|
|
|
|
DEFINE RC_PATH = ENV(WINSDK_PATH_FOR_RC_EXE)\rc.exe
|
|
|
|
|
|
|
|
|
|
DEFINE WINSDK_BIN = ENV(WINSDK_PREFIX)
|
|
|
|
|
DEFINE WINSDKx86_BIN = ENV(WINSDKx86_PREFIX)
|
|
|
|
|
|
|
|
|
|
# Microsoft Visual Studio 2015 Professional Edition
|
|
|
|
|
DEFINE WINSDK81_BIN = ENV(WINSDK81_PREFIX)x86\
|
|
|
|
|
DEFINE WINSDK81x86_BIN = ENV(WINSDK81x86_PREFIX)x64
|
|
|
|
@ -98,12 +95,6 @@ DEFINE CYGWIN_BIN = c:/cygwin/bin
|
|
|
|
|
DEFINE CYGWIN_BINIA32 = c:/cygwin/opt/tiano/i386-tiano-pe/i386-tiano-pe/bin/
|
|
|
|
|
DEFINE CYGWIN_BINX64 = c:/cygwin/opt/tiano/x86_64-pc-mingw64/x86_64-pc-mingw64/bin/
|
|
|
|
|
|
|
|
|
|
DEFINE GCC48_IA32_PREFIX = ENV(GCC48_BIN)
|
|
|
|
|
DEFINE GCC48_X64_PREFIX = ENV(GCC48_BIN)
|
|
|
|
|
|
|
|
|
|
DEFINE GCC49_IA32_PREFIX = ENV(GCC49_BIN)
|
|
|
|
|
DEFINE GCC49_X64_PREFIX = ENV(GCC49_BIN)
|
|
|
|
|
|
|
|
|
|
DEFINE GCCNOLTO_IA32_PREFIX = ENV(GCCNOLTO_BIN)
|
|
|
|
|
DEFINE GCCNOLTO_X64_PREFIX = ENV(GCCNOLTO_BIN)
|
|
|
|
|
|
|
|
|
@ -218,18 +209,6 @@ DEFINE DTC_BIN = ENV(DTC_PREFIX)dtc
|
|
|
|
|
#
|
|
|
|
|
# Deprecated Tool Chains
|
|
|
|
|
# ======================
|
|
|
|
|
# GCC48 -Linux,Windows- Requires:
|
|
|
|
|
# GCC 4.8 targeting x86_64-linux-gnu, aarch64-linux-gnu, or arm-linux-gnueabi
|
|
|
|
|
# Optional:
|
|
|
|
|
# Required to build platforms or ACPI tables:
|
|
|
|
|
# Intel(r) ACPI Compiler from
|
|
|
|
|
# https://acpica.org/downloads
|
|
|
|
|
# GCC49 -Linux,Windows- Requires:
|
|
|
|
|
# GCC 4.9 targeting x86_64-linux-gnu, aarch64-linux-gnu, or arm-linux-gnueabi
|
|
|
|
|
# Optional:
|
|
|
|
|
# Required to build platforms or ACPI tables:
|
|
|
|
|
# Intel(r) ACPI Compiler from
|
|
|
|
|
# https://acpica.org/downloads
|
|
|
|
|
# GCC5 -Linux,Windows- Requires:
|
|
|
|
|
# GCC 5 with LTO support, targeting x86_64-linux-gnu, aarch64-linux-gnu, arm-linux-gnueabi, riscv64-linux-gnu or loongarch64-linux-gnu
|
|
|
|
|
# Optional:
|
|
|
|
@ -765,20 +744,16 @@ DEFINE GCC_ARM_CC_XIPFLAGS = -mno-unaligned-access
|
|
|
|
|
DEFINE GCC_AARCH64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mlittle-endian -fno-short-enums -fverbose-asm -funsigned-char -ffunction-sections -fdata-sections -Wno-address -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-pic -fno-pie -ffixed-x18
|
|
|
|
|
DEFINE GCC_AARCH64_CC_XIPFLAGS = -mstrict-align -mgeneral-regs-only
|
|
|
|
|
DEFINE GCC_RISCV64_CC_XIPFLAGS = -mstrict-align -mgeneral-regs-only
|
|
|
|
|
DEFINE GCC_DLINK_FLAGS_COMMON = -nostdlib --pie
|
|
|
|
|
DEFINE GCC_DLINK2_FLAGS_COMMON = -Wl,--defsym=ALIGNED_PE_HEADER_SIZE=0x400 DEF(DLINK_SCRIPT)
|
|
|
|
|
DEFINE GCC_IA32_X64_DLINK_COMMON = DEF(GCC_DLINK_FLAGS_COMMON) --gc-sections
|
|
|
|
|
DEFINE GCC_ARM_AARCH64_DLINK_COMMON= -Wl,--emit-relocs -nostdlib -Wl,--gc-sections -u $(IMAGE_ENTRY_POINT) -Wl,-e,$(IMAGE_ENTRY_POINT),-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map -no-pie
|
|
|
|
|
DEFINE GCC_LOONGARCH64_DLINK_COMMON= -Wl,--emit-relocs -nostdlib -Wl,--gc-sections -u $(IMAGE_ENTRY_POINT) -Wl,-e,$(IMAGE_ENTRY_POINT),-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map
|
|
|
|
|
DEFINE GCC_ARM_DLINK_FLAGS = DEF(GCC_ARM_AARCH64_DLINK_COMMON) DEF(GCC_ALIGN) -Wl,--pic-veneer
|
|
|
|
|
DEFINE GCC_AARCH64_DLINK_FLAGS = DEF(GCC_ARM_AARCH64_DLINK_COMMON) DEF(GCC_ALIGN)
|
|
|
|
|
DEFINE GCC_LOONGARCH64_DLINK_FLAGS = DEF(GCC_LOONGARCH64_DLINK_COMMON) DEF(GCC_ALIGN)
|
|
|
|
|
DEFINE GCC_ARM_AARCH64_ASLDLINK_FLAGS = DEF(GCC_DLINK2_FLAGS_COMMON) DEF(GCC_ALIGN)
|
|
|
|
|
DEFINE GCC_IA32_X64_ASLDLINK_FLAGS = DEF(GCC_IA32_X64_DLINK_COMMON) --entry _ReferenceAcpiTable -u $(IMAGE_ENTRY_POINT)
|
|
|
|
|
DEFINE GCC_ARM_ASLDLINK_FLAGS = DEF(GCC_ARM_DLINK_FLAGS) -Wl,--entry,ReferenceAcpiTable -u $(IMAGE_ENTRY_POINT) DEF(GCC_ARM_AARCH64_ASLDLINK_FLAGS)
|
|
|
|
|
DEFINE GCC_AARCH64_ASLDLINK_FLAGS = DEF(GCC_AARCH64_DLINK_FLAGS) -Wl,--entry,ReferenceAcpiTable -u $(IMAGE_ENTRY_POINT) DEF(GCC_ARM_AARCH64_ASLDLINK_FLAGS)
|
|
|
|
|
DEFINE GCC_LOONGARCH64_ASLDLINK_FLAGS = DEF(GCC_LOONGARCH64_DLINK_FLAGS) -Wl,--entry,ReferenceAcpiTable -u $(IMAGE_ENTRY_POINT)
|
|
|
|
|
DEFINE GCC_IA32_X64_DLINK_FLAGS = DEF(GCC_IA32_X64_DLINK_COMMON) --entry _$(IMAGE_ENTRY_POINT) --file-alignment 0x20 --section-alignment 0x20 -Map $(DEST_DIR_DEBUG)/$(BASE_NAME).map
|
|
|
|
|
DEFINE GCC_ASM_FLAGS = -c -x assembler -imacros AutoGen.h
|
|
|
|
|
DEFINE GCC_PP_FLAGS = -E -x assembler-with-cpp -include AutoGen.h
|
|
|
|
|
DEFINE GCC_VFRPP_FLAGS = -x c -E -P -DVFRCOMPILE --include $(MODULE_NAME)StrDefs.h
|
|
|
|
@ -790,75 +765,27 @@ DEFINE GCC_DTCPP_FLAGS = -E -x assembler-with-cpp -imacros AutoGen.h
|
|
|
|
|
# GCC Build Flag for included header file list generation
|
|
|
|
|
DEFINE GCC_DEPS_FLAGS = -MMD -MF $@.deps
|
|
|
|
|
|
|
|
|
|
DEFINE GCC48_ALL_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -ffunction-sections -fdata-sections -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings
|
|
|
|
|
DEFINE GCC48_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-n,-q,--gc-sections DEF(GCC_ALIGN)
|
|
|
|
|
DEFINE GCC48_IA32_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -fno-omit-frame-pointer
|
|
|
|
|
DEFINE GCC48_X64_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) -m64 -fno-stack-protector "-DEFIAPI=__attribute__((ms_abi))" -maccumulate-outgoing-args -mno-red-zone -Wno-address -mcmodel=small -fpie -fno-asynchronous-unwind-tables -Wno-address -fno-omit-frame-pointer
|
|
|
|
|
DEFINE GCC48_IA32_X64_ASLDLINK_FLAGS = DEF(GCC48_IA32_X64_DLINK_COMMON) -Wl,--entry,ReferenceAcpiTable -u ReferenceAcpiTable
|
|
|
|
|
DEFINE GCC48_IA32_X64_DLINK_FLAGS = DEF(GCC48_IA32_X64_DLINK_COMMON) -Wl,--entry,$(IMAGE_ENTRY_POINT) -u $(IMAGE_ENTRY_POINT) -Wl,-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map,--whole-archive
|
|
|
|
|
DEFINE GCC48_IA32_DLINK2_FLAGS = DEF(GCC_DLINK2_FLAGS_COMMON)
|
|
|
|
|
DEFINE GCC48_X64_DLINK_FLAGS = DEF(GCC48_IA32_X64_DLINK_FLAGS) -Wl,-melf_x86_64,--oformat=elf64-x86-64,-pie
|
|
|
|
|
DEFINE GCC48_X64_DLINK2_FLAGS = DEF(GCC_DLINK2_FLAGS_COMMON)
|
|
|
|
|
DEFINE GCC48_ASM_FLAGS = DEF(GCC_ASM_FLAGS)
|
|
|
|
|
DEFINE GCC48_ARM_ASM_FLAGS = DEF(GCC_ASM_FLAGS) -mlittle-endian -march=armv7-a
|
|
|
|
|
DEFINE GCC48_AARCH64_ASM_FLAGS = DEF(GCC_ASM_FLAGS) -mlittle-endian
|
|
|
|
|
DEFINE GCC48_ARM_CC_FLAGS = DEF(GCC_ARM_CC_FLAGS) -fstack-protector -mword-relocations
|
|
|
|
|
DEFINE GCC48_ARM_CC_XIPFLAGS = DEF(GCC_ARM_CC_XIPFLAGS)
|
|
|
|
|
DEFINE GCC48_AARCH64_CC_FLAGS = -mcmodel=large DEF(GCC_AARCH64_CC_FLAGS)
|
|
|
|
|
DEFINE GCC48_AARCH64_CC_XIPFLAGS = DEF(GCC_AARCH64_CC_XIPFLAGS)
|
|
|
|
|
DEFINE GCC48_ARM_DLINK_FLAGS = DEF(GCC_ARM_DLINK_FLAGS) -Wl,--oformat=elf32-littlearm
|
|
|
|
|
DEFINE GCC48_ARM_DLINK2_FLAGS = DEF(GCC_DLINK2_FLAGS_COMMON)
|
|
|
|
|
DEFINE GCC48_AARCH64_DLINK_FLAGS = DEF(GCC_AARCH64_DLINK_FLAGS)
|
|
|
|
|
DEFINE GCC48_AARCH64_DLINK2_FLAGS = DEF(GCC_DLINK2_FLAGS_COMMON)
|
|
|
|
|
DEFINE GCC48_ARM_ASLDLINK_FLAGS = DEF(GCC_ARM_ASLDLINK_FLAGS) -Wl,--oformat=elf32-littlearm
|
|
|
|
|
DEFINE GCC48_AARCH64_ASLDLINK_FLAGS = DEF(GCC_AARCH64_ASLDLINK_FLAGS)
|
|
|
|
|
DEFINE GCC48_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS)
|
|
|
|
|
|
|
|
|
|
DEFINE GCC49_IA32_CC_FLAGS = DEF(GCC48_IA32_CC_FLAGS) -fno-pic -fno-pie
|
|
|
|
|
DEFINE GCC49_X64_CC_FLAGS = DEF(GCC48_X64_CC_FLAGS)
|
|
|
|
|
DEFINE GCC49_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-n,-q,--gc-sections DEF(GCC_ALIGN)
|
|
|
|
|
DEFINE GCC49_IA32_X64_ASLDLINK_FLAGS = DEF(GCC49_IA32_X64_DLINK_COMMON) DEF(GCC_DLINK2_FLAGS_COMMON) -Wl,--entry,ReferenceAcpiTable -u ReferenceAcpiTable
|
|
|
|
|
DEFINE GCC49_IA32_X64_DLINK_FLAGS = DEF(GCC49_IA32_X64_DLINK_COMMON) -Wl,--entry,$(IMAGE_ENTRY_POINT) -u $(IMAGE_ENTRY_POINT) -Wl,-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map,--whole-archive
|
|
|
|
|
DEFINE GCC49_IA32_DLINK2_FLAGS = DEF(GCC48_IA32_DLINK2_FLAGS)
|
|
|
|
|
DEFINE GCC49_X64_DLINK_FLAGS = DEF(GCC49_IA32_X64_DLINK_FLAGS) -Wl,-melf_x86_64,--oformat=elf64-x86-64,-pie
|
|
|
|
|
DEFINE GCC49_X64_DLINK2_FLAGS = DEF(GCC48_X64_DLINK2_FLAGS)
|
|
|
|
|
DEFINE GCC49_ASM_FLAGS = DEF(GCC48_ASM_FLAGS)
|
|
|
|
|
DEFINE GCC49_ARM_ASM_FLAGS = DEF(GCC48_ARM_ASM_FLAGS)
|
|
|
|
|
DEFINE GCC49_AARCH64_ASM_FLAGS = DEF(GCC48_AARCH64_ASM_FLAGS)
|
|
|
|
|
DEFINE GCC49_ARM_CC_FLAGS = DEF(GCC48_ARM_CC_FLAGS)
|
|
|
|
|
DEFINE GCC49_ARM_CC_XIPFLAGS = DEF(GCC48_ARM_CC_XIPFLAGS)
|
|
|
|
|
DEFINE GCC49_AARCH64_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) DEF(GCC_AARCH64_CC_FLAGS) -mcmodel=small
|
|
|
|
|
DEFINE GCC49_AARCH64_CC_XIPFLAGS = DEF(GCC48_AARCH64_CC_XIPFLAGS)
|
|
|
|
|
DEFINE GCC49_ARM_DLINK_FLAGS = DEF(GCC48_ARM_DLINK_FLAGS)
|
|
|
|
|
DEFINE GCC49_ARM_DLINK2_FLAGS = DEF(GCC48_ARM_DLINK2_FLAGS)
|
|
|
|
|
DEFINE GCC49_AARCH64_DLINK_FLAGS = DEF(GCC48_AARCH64_DLINK_FLAGS) DEF(GCC_ALIGN)
|
|
|
|
|
DEFINE GCC49_AARCH64_DLINK2_FLAGS = DEF(GCC48_AARCH64_DLINK2_FLAGS)
|
|
|
|
|
DEFINE GCC49_ARM_ASLDLINK_FLAGS = DEF(GCC48_ARM_ASLDLINK_FLAGS)
|
|
|
|
|
DEFINE GCC49_AARCH64_ASLDLINK_FLAGS = DEF(GCC48_AARCH64_ASLDLINK_FLAGS)
|
|
|
|
|
DEFINE GCC49_ASLCC_FLAGS = DEF(GCC48_ASLCC_FLAGS)
|
|
|
|
|
|
|
|
|
|
DEFINE GCC5_IA32_CC_FLAGS = DEF(GCC49_IA32_CC_FLAGS)
|
|
|
|
|
DEFINE GCC5_X64_CC_FLAGS = DEF(GCC49_X64_CC_FLAGS)
|
|
|
|
|
DEFINE GCC5_IA32_X64_DLINK_COMMON = DEF(GCC49_IA32_X64_DLINK_COMMON)
|
|
|
|
|
DEFINE GCC5_IA32_X64_ASLDLINK_FLAGS = DEF(GCC49_IA32_X64_ASLDLINK_FLAGS)
|
|
|
|
|
DEFINE GCC5_IA32_X64_DLINK_FLAGS = DEF(GCC49_IA32_X64_DLINK_FLAGS)
|
|
|
|
|
DEFINE GCC5_IA32_DLINK2_FLAGS = DEF(GCC49_IA32_DLINK2_FLAGS) -Wno-error
|
|
|
|
|
DEFINE GCC5_X64_DLINK_FLAGS = DEF(GCC49_X64_DLINK_FLAGS)
|
|
|
|
|
DEFINE GCC5_X64_DLINK2_FLAGS = DEF(GCC49_X64_DLINK2_FLAGS) -Wno-error
|
|
|
|
|
DEFINE GCC5_ASM_FLAGS = DEF(GCC49_ASM_FLAGS)
|
|
|
|
|
DEFINE GCC5_ARM_ASM_FLAGS = DEF(GCC49_ARM_ASM_FLAGS)
|
|
|
|
|
DEFINE GCC5_AARCH64_ASM_FLAGS = DEF(GCC49_AARCH64_ASM_FLAGS)
|
|
|
|
|
DEFINE GCC5_ARM_CC_FLAGS = DEF(GCC49_ARM_CC_FLAGS)
|
|
|
|
|
DEFINE GCC5_ARM_CC_XIPFLAGS = DEF(GCC49_ARM_CC_XIPFLAGS)
|
|
|
|
|
DEFINE GCC5_AARCH64_CC_FLAGS = DEF(GCC49_AARCH64_CC_FLAGS)
|
|
|
|
|
DEFINE GCC5_AARCH64_CC_XIPFLAGS = DEF(GCC49_AARCH64_CC_XIPFLAGS)
|
|
|
|
|
DEFINE GCC5_ARM_DLINK_FLAGS = DEF(GCC49_ARM_DLINK_FLAGS)
|
|
|
|
|
DEFINE GCC5_ARM_DLINK2_FLAGS = DEF(GCC49_ARM_DLINK2_FLAGS) -Wno-error
|
|
|
|
|
DEFINE GCC5_AARCH64_DLINK_FLAGS = DEF(GCC49_AARCH64_DLINK_FLAGS)
|
|
|
|
|
DEFINE GCC5_AARCH64_DLINK2_FLAGS = DEF(GCC49_AARCH64_DLINK2_FLAGS) -Wno-error
|
|
|
|
|
DEFINE GCC5_ARM_ASLDLINK_FLAGS = DEF(GCC49_ARM_ASLDLINK_FLAGS)
|
|
|
|
|
DEFINE GCC5_AARCH64_ASLDLINK_FLAGS = DEF(GCC49_AARCH64_ASLDLINK_FLAGS)
|
|
|
|
|
DEFINE GCC5_ASLCC_FLAGS = DEF(GCC49_ASLCC_FLAGS) -fno-lto
|
|
|
|
|
DEFINE GCC5_ALL_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -ffunction-sections -fdata-sections -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings
|
|
|
|
|
DEFINE GCC5_IA32_CC_FLAGS = DEF(GCC5_ALL_CC_FLAGS) -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -fno-omit-frame-pointer -fno-pic -fno-pie
|
|
|
|
|
DEFINE GCC5_X64_CC_FLAGS = DEF(GCC5_ALL_CC_FLAGS) -m64 -fno-stack-protector "-DEFIAPI=__attribute__((ms_abi))" -maccumulate-outgoing-args -mno-red-zone -Wno-address -mcmodel=small -fpie -fno-asynchronous-unwind-tables -Wno-address -fno-omit-frame-pointer
|
|
|
|
|
DEFINE GCC5_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-n,--gc-sections DEF(GCC_ALIGN)
|
|
|
|
|
DEFINE GCC5_IA32_X64_ASLDLINK_FLAGS = DEF(GCC5_IA32_X64_DLINK_COMMON) DEF(GCC_DLINK2_FLAGS_COMMON) -Wl,--entry,ReferenceAcpiTable -u ReferenceAcpiTable
|
|
|
|
|
DEFINE GCC5_IA32_X64_DLINK_FLAGS = DEF(GCC5_IA32_X64_DLINK_COMMON) -Wl,--entry,$(IMAGE_ENTRY_POINT) -u $(IMAGE_ENTRY_POINT) -Wl,-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map,--whole-archive
|
|
|
|
|
DEFINE GCC5_IA32_DLINK2_FLAGS = DEF(GCC_DLINK2_FLAGS_COMMON) -Wno-error
|
|
|
|
|
DEFINE GCC5_X64_DLINK_FLAGS = DEF(GCC5_IA32_X64_DLINK_FLAGS) -Wl,-melf_x86_64,--oformat=elf64-x86-64,-pie
|
|
|
|
|
DEFINE GCC5_X64_DLINK2_FLAGS = DEF(GCC_DLINK2_FLAGS_COMMON) -Wno-error
|
|
|
|
|
DEFINE GCC5_ASM_FLAGS = DEF(GCC_ASM_FLAGS)
|
|
|
|
|
DEFINE GCC5_ARM_ASM_FLAGS = DEF(GCC_ASM_FLAGS) -mlittle-endian -march=armv7-a
|
|
|
|
|
DEFINE GCC5_AARCH64_ASM_FLAGS = DEF(GCC_ASM_FLAGS) -mlittle-endian
|
|
|
|
|
DEFINE GCC5_ARM_CC_FLAGS = DEF(GCC_ARM_CC_FLAGS) -fstack-protector -mword-relocations
|
|
|
|
|
DEFINE GCC5_AARCH64_CC_FLAGS = DEF(GCC5_ALL_CC_FLAGS) DEF(GCC_AARCH64_CC_FLAGS) -mcmodel=small
|
|
|
|
|
DEFINE GCC5_ARM_DLINK_FLAGS = DEF(GCC_ARM_DLINK_FLAGS) -Wl,--oformat=elf32-littlearm
|
|
|
|
|
DEFINE GCC5_ARM_DLINK2_FLAGS = DEF(GCC_DLINK2_FLAGS_COMMON) -Wno-error
|
|
|
|
|
DEFINE GCC5_AARCH64_DLINK_FLAGS = DEF(GCC_AARCH64_DLINK_FLAGS) DEF(GCC_ALIGN)
|
|
|
|
|
DEFINE GCC5_AARCH64_DLINK2_FLAGS = DEF(GCC_DLINK2_FLAGS_COMMON) -Wno-error
|
|
|
|
|
DEFINE GCC5_ARM_ASLDLINK_FLAGS = DEF(GCC_ARM_ASLDLINK_FLAGS) -Wl,--oformat=elf32-littlearm
|
|
|
|
|
DEFINE GCC5_AARCH64_ASLDLINK_FLAGS = DEF(GCC_AARCH64_ASLDLINK_FLAGS)
|
|
|
|
|
DEFINE GCC5_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS) -fno-lto
|
|
|
|
|
|
|
|
|
|
DEFINE GCC5_RISCV_ALL_CC_FLAGS = -g -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -ffunction-sections -fdata-sections -include AutoGen.h -fno-common -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings -msmall-data-limit=0
|
|
|
|
|
DEFINE GCC5_RISCV_ALL_DLINK_COMMON = -nostdlib -Wl,-n,-q,--gc-sections DEF(GCC_ALIGN)
|
|
|
|
@ -883,279 +810,6 @@ DEFINE GCC5_LOONGARCH64_ASLDLINK_FLAGS = DEF(GCC_LOONGARCH64_ASLDLINK_FLAGS)
|
|
|
|
|
DEFINE GCC5_LOONGARCH64_ASM_FLAGS = -x assembler-with-cpp -mabi=lp64d -march=loongarch64 -fno-builtin -c -Wall -mno-explicit-relocs
|
|
|
|
|
DEFINE GCC5_LOONGARCH64_PP_FLAGS = -mabi=lp64d -march=loongarch64 DEF(GCC_PP_FLAGS)
|
|
|
|
|
|
|
|
|
|
####################################################################################
|
|
|
|
|
#
|
|
|
|
|
# GCC 4.8 - This configuration is used to compile under Linux to produce
|
|
|
|
|
# PE/COFF binaries using GCC 4.8.
|
|
|
|
|
#
|
|
|
|
|
####################################################################################
|
|
|
|
|
*_GCC48_*_*_FAMILY = GCC
|
|
|
|
|
|
|
|
|
|
*_GCC48_*_MAKE_PATH = DEF(GCC_HOST_PREFIX)make
|
|
|
|
|
*_GCC48_*_*_DLL = ENV(GCC48_DLL)
|
|
|
|
|
*_GCC48_*_ASL_PATH = DEF(UNIX_IASL_BIN)
|
|
|
|
|
|
|
|
|
|
*_GCC48_*_PP_FLAGS = DEF(GCC_PP_FLAGS)
|
|
|
|
|
*_GCC48_*_ASLPP_FLAGS = DEF(GCC_ASLPP_FLAGS)
|
|
|
|
|
*_GCC48_*_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS)
|
|
|
|
|
*_GCC48_*_VFRPP_FLAGS = DEF(GCC_VFRPP_FLAGS)
|
|
|
|
|
*_GCC48_*_APP_FLAGS =
|
|
|
|
|
*_GCC48_*_ASL_FLAGS = DEF(IASL_FLAGS)
|
|
|
|
|
*_GCC48_*_ASL_OUTFLAGS = DEF(IASL_OUTFLAGS)
|
|
|
|
|
*_GCC48_*_DEPS_FLAGS = DEF(GCC_DEPS_FLAGS)
|
|
|
|
|
|
|
|
|
|
##################
|
|
|
|
|
# GCC48 IA32 definitions
|
|
|
|
|
##################
|
|
|
|
|
*_GCC48_IA32_OBJCOPY_PATH = DEF(GCC48_IA32_PREFIX)objcopy
|
|
|
|
|
*_GCC48_IA32_CC_PATH = DEF(GCC48_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC48_IA32_SLINK_PATH = DEF(GCC48_IA32_PREFIX)ar
|
|
|
|
|
*_GCC48_IA32_DLINK_PATH = DEF(GCC48_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC48_IA32_ASLDLINK_PATH = DEF(GCC48_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC48_IA32_ASM_PATH = DEF(GCC48_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC48_IA32_PP_PATH = DEF(GCC48_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC48_IA32_VFRPP_PATH = DEF(GCC48_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC48_IA32_ASLCC_PATH = DEF(GCC48_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC48_IA32_ASLPP_PATH = DEF(GCC48_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC48_IA32_RC_PATH = DEF(GCC48_IA32_PREFIX)objcopy
|
|
|
|
|
|
|
|
|
|
*_GCC48_IA32_ASLCC_FLAGS = DEF(GCC48_ASLCC_FLAGS) -m32
|
|
|
|
|
*_GCC48_IA32_ASLDLINK_FLAGS = DEF(GCC48_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_i386
|
|
|
|
|
*_GCC48_IA32_ASM_FLAGS = DEF(GCC48_ASM_FLAGS) -m32 -march=i386
|
|
|
|
|
*_GCC48_IA32_DLINK_FLAGS = DEF(GCC48_IA32_X64_DLINK_FLAGS) -Wl,-m,elf_i386,--oformat=elf32-i386
|
|
|
|
|
*_GCC48_IA32_DLINK2_FLAGS = DEF(GCC48_IA32_DLINK2_FLAGS)
|
|
|
|
|
*_GCC48_IA32_RC_FLAGS = DEF(GCC_IA32_RC_FLAGS)
|
|
|
|
|
*_GCC48_IA32_NASM_FLAGS = -f elf32 -DRODATA_SECTION_NAME=.rodata
|
|
|
|
|
|
|
|
|
|
DEBUG_GCC48_IA32_CC_FLAGS = DEF(GCC48_IA32_CC_FLAGS)
|
|
|
|
|
RELEASE_GCC48_IA32_CC_FLAGS = DEF(GCC48_IA32_CC_FLAGS) -Wno-unused-but-set-variable
|
|
|
|
|
NOOPT_GCC48_IA32_CC_FLAGS = DEF(GCC48_IA32_CC_FLAGS) -O0
|
|
|
|
|
|
|
|
|
|
##################
|
|
|
|
|
# GCC48 X64 definitions
|
|
|
|
|
##################
|
|
|
|
|
*_GCC48_X64_OBJCOPY_PATH = DEF(GCC48_X64_PREFIX)objcopy
|
|
|
|
|
*_GCC48_X64_CC_PATH = DEF(GCC48_X64_PREFIX)gcc
|
|
|
|
|
*_GCC48_X64_SLINK_PATH = DEF(GCC48_X64_PREFIX)ar
|
|
|
|
|
*_GCC48_X64_DLINK_PATH = DEF(GCC48_X64_PREFIX)gcc
|
|
|
|
|
*_GCC48_X64_ASLDLINK_PATH = DEF(GCC48_X64_PREFIX)gcc
|
|
|
|
|
*_GCC48_X64_ASM_PATH = DEF(GCC48_X64_PREFIX)gcc
|
|
|
|
|
*_GCC48_X64_PP_PATH = DEF(GCC48_X64_PREFIX)gcc
|
|
|
|
|
*_GCC48_X64_VFRPP_PATH = DEF(GCC48_X64_PREFIX)gcc
|
|
|
|
|
*_GCC48_X64_ASLCC_PATH = DEF(GCC48_X64_PREFIX)gcc
|
|
|
|
|
*_GCC48_X64_ASLPP_PATH = DEF(GCC48_X64_PREFIX)gcc
|
|
|
|
|
*_GCC48_X64_RC_PATH = DEF(GCC48_X64_PREFIX)objcopy
|
|
|
|
|
|
|
|
|
|
*_GCC48_X64_ASLCC_FLAGS = DEF(GCC48_ASLCC_FLAGS) -m64
|
|
|
|
|
*_GCC48_X64_ASLDLINK_FLAGS = DEF(GCC48_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_x86_64
|
|
|
|
|
*_GCC48_X64_ASM_FLAGS = DEF(GCC48_ASM_FLAGS) -m64
|
|
|
|
|
*_GCC48_X64_DLINK_FLAGS = DEF(GCC48_X64_DLINK_FLAGS)
|
|
|
|
|
*_GCC48_X64_DLINK2_FLAGS = DEF(GCC48_X64_DLINK2_FLAGS)
|
|
|
|
|
*_GCC48_X64_RC_FLAGS = DEF(GCC_X64_RC_FLAGS)
|
|
|
|
|
*_GCC48_X64_NASM_FLAGS = -f elf64 -DRODATA_SECTION_NAME=.rodata
|
|
|
|
|
|
|
|
|
|
DEBUG_GCC48_X64_CC_FLAGS = DEF(GCC48_X64_CC_FLAGS)
|
|
|
|
|
RELEASE_GCC48_X64_CC_FLAGS = DEF(GCC48_X64_CC_FLAGS) -Wno-unused-but-set-variable
|
|
|
|
|
NOOPT_GCC48_X64_CC_FLAGS = DEF(GCC48_X64_CC_FLAGS) -O0
|
|
|
|
|
|
|
|
|
|
##################
|
|
|
|
|
# GCC48 ARM definitions
|
|
|
|
|
##################
|
|
|
|
|
*_GCC48_ARM_CC_PATH = ENV(GCC48_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC48_ARM_SLINK_PATH = ENV(GCC48_ARM_PREFIX)ar
|
|
|
|
|
*_GCC48_ARM_DLINK_PATH = ENV(GCC48_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC48_ARM_ASLDLINK_PATH = ENV(GCC48_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC48_ARM_ASM_PATH = ENV(GCC48_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC48_ARM_PP_PATH = ENV(GCC48_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC48_ARM_VFRPP_PATH = ENV(GCC48_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC48_ARM_ASLCC_PATH = ENV(GCC48_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC48_ARM_ASLPP_PATH = ENV(GCC48_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC48_ARM_RC_PATH = ENV(GCC48_ARM_PREFIX)objcopy
|
|
|
|
|
|
|
|
|
|
*_GCC48_ARM_ASLCC_FLAGS = DEF(GCC48_ASLCC_FLAGS)
|
|
|
|
|
*_GCC48_ARM_ASLDLINK_FLAGS = DEF(GCC48_ARM_ASLDLINK_FLAGS)
|
|
|
|
|
*_GCC48_ARM_ASM_FLAGS = DEF(GCC48_ARM_ASM_FLAGS)
|
|
|
|
|
*_GCC48_ARM_DLINK_FLAGS = DEF(GCC48_ARM_DLINK_FLAGS)
|
|
|
|
|
*_GCC48_ARM_DLINK2_FLAGS = DEF(GCC48_ARM_DLINK2_FLAGS)
|
|
|
|
|
*_GCC48_ARM_DTCPP_FLAGS = DEF(GCC_DTCPP_FLAGS)
|
|
|
|
|
*_GCC48_ARM_PP_FLAGS = DEF(GCC_PP_FLAGS) -mthumb -march=armv7-a
|
|
|
|
|
*_GCC48_ARM_RC_FLAGS = DEF(GCC_ARM_RC_FLAGS)
|
|
|
|
|
*_GCC48_ARM_VFRPP_FLAGS = DEF(GCC_VFRPP_FLAGS) -mthumb -march=armv7-a
|
|
|
|
|
*_GCC48_ARM_CC_XIPFLAGS = DEF(GCC48_ARM_CC_XIPFLAGS)
|
|
|
|
|
|
|
|
|
|
DEBUG_GCC48_ARM_CC_FLAGS = DEF(GCC48_ARM_CC_FLAGS) -O0
|
|
|
|
|
RELEASE_GCC48_ARM_CC_FLAGS = DEF(GCC48_ARM_CC_FLAGS) -Wno-unused-but-set-variable
|
|
|
|
|
NOOPT_GCC48_ARM_CC_FLAGS = DEF(GCC48_ARM_CC_FLAGS) -O0
|
|
|
|
|
|
|
|
|
|
##################
|
|
|
|
|
# GCC48 AARCH64 definitions
|
|
|
|
|
##################
|
|
|
|
|
*_GCC48_AARCH64_CC_PATH = ENV(GCC48_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC48_AARCH64_SLINK_PATH = ENV(GCC48_AARCH64_PREFIX)ar
|
|
|
|
|
*_GCC48_AARCH64_DLINK_PATH = ENV(GCC48_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC48_AARCH64_ASLDLINK_PATH = ENV(GCC48_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC48_AARCH64_ASM_PATH = ENV(GCC48_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC48_AARCH64_PP_PATH = ENV(GCC48_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC48_AARCH64_VFRPP_PATH = ENV(GCC48_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC48_AARCH64_ASLCC_PATH = ENV(GCC48_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC48_AARCH64_ASLPP_PATH = ENV(GCC48_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC48_AARCH64_RC_PATH = ENV(GCC48_AARCH64_PREFIX)objcopy
|
|
|
|
|
|
|
|
|
|
*_GCC48_AARCH64_ASLCC_FLAGS = DEF(GCC48_ASLCC_FLAGS)
|
|
|
|
|
*_GCC48_AARCH64_ASLDLINK_FLAGS = DEF(GCC48_AARCH64_ASLDLINK_FLAGS)
|
|
|
|
|
*_GCC48_AARCH64_ASM_FLAGS = DEF(GCC48_AARCH64_ASM_FLAGS)
|
|
|
|
|
*_GCC48_AARCH64_DLINK_FLAGS = DEF(GCC48_AARCH64_DLINK_FLAGS)
|
|
|
|
|
*_GCC48_AARCH64_DLINK2_FLAGS = DEF(GCC48_AARCH64_DLINK2_FLAGS)
|
|
|
|
|
*_GCC48_AARCH64_DTCPP_FLAGS = DEF(GCC_DTCPP_FLAGS)
|
|
|
|
|
*_GCC48_AARCH64_PP_FLAGS = DEF(GCC_PP_FLAGS)
|
|
|
|
|
*_GCC48_AARCH64_RC_FLAGS = DEF(GCC_AARCH64_RC_FLAGS)
|
|
|
|
|
*_GCC48_AARCH64_VFRPP_FLAGS = DEF(GCC_VFRPP_FLAGS)
|
|
|
|
|
*_GCC48_AARCH64_CC_XIPFLAGS = DEF(GCC48_AARCH64_CC_XIPFLAGS)
|
|
|
|
|
|
|
|
|
|
DEBUG_GCC48_AARCH64_CC_FLAGS = DEF(GCC48_AARCH64_CC_FLAGS) -O0
|
|
|
|
|
RELEASE_GCC48_AARCH64_CC_FLAGS = DEF(GCC48_AARCH64_CC_FLAGS) -Wno-unused-but-set-variable
|
|
|
|
|
NOOPT_GCC48_AARCH64_CC_FLAGS = DEF(GCC48_AARCH64_CC_FLAGS) -O0
|
|
|
|
|
|
|
|
|
|
####################################################################################
|
|
|
|
|
#
|
|
|
|
|
# GCC 4.9 - This configuration is used to compile under Linux to produce
|
|
|
|
|
# PE/COFF binaries using GCC 4.9.
|
|
|
|
|
#
|
|
|
|
|
####################################################################################
|
|
|
|
|
*_GCC49_*_*_FAMILY = GCC
|
|
|
|
|
|
|
|
|
|
*_GCC49_*_MAKE_PATH = DEF(GCC_HOST_PREFIX)make
|
|
|
|
|
*_GCC49_*_*_DLL = ENV(GCC49_DLL)
|
|
|
|
|
*_GCC49_*_ASL_PATH = DEF(UNIX_IASL_BIN)
|
|
|
|
|
|
|
|
|
|
*_GCC49_*_PP_FLAGS = DEF(GCC_PP_FLAGS)
|
|
|
|
|
*_GCC49_*_ASLPP_FLAGS = DEF(GCC_ASLPP_FLAGS)
|
|
|
|
|
*_GCC49_*_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS)
|
|
|
|
|
*_GCC49_*_VFRPP_FLAGS = DEF(GCC_VFRPP_FLAGS)
|
|
|
|
|
*_GCC49_*_APP_FLAGS =
|
|
|
|
|
*_GCC49_*_ASL_FLAGS = DEF(IASL_FLAGS)
|
|
|
|
|
*_GCC49_*_ASL_OUTFLAGS = DEF(IASL_OUTFLAGS)
|
|
|
|
|
*_GCC49_*_DEPS_FLAGS = DEF(GCC_DEPS_FLAGS)
|
|
|
|
|
|
|
|
|
|
##################
|
|
|
|
|
# GCC49 IA32 definitions
|
|
|
|
|
##################
|
|
|
|
|
*_GCC49_IA32_OBJCOPY_PATH = DEF(GCC49_IA32_PREFIX)objcopy
|
|
|
|
|
*_GCC49_IA32_CC_PATH = DEF(GCC49_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC49_IA32_SLINK_PATH = DEF(GCC49_IA32_PREFIX)ar
|
|
|
|
|
*_GCC49_IA32_DLINK_PATH = DEF(GCC49_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC49_IA32_ASLDLINK_PATH = DEF(GCC49_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC49_IA32_ASM_PATH = DEF(GCC49_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC49_IA32_PP_PATH = DEF(GCC49_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC49_IA32_VFRPP_PATH = DEF(GCC49_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC49_IA32_ASLCC_PATH = DEF(GCC49_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC49_IA32_ASLPP_PATH = DEF(GCC49_IA32_PREFIX)gcc
|
|
|
|
|
*_GCC49_IA32_RC_PATH = DEF(GCC49_IA32_PREFIX)objcopy
|
|
|
|
|
|
|
|
|
|
*_GCC49_IA32_ASLCC_FLAGS = DEF(GCC49_ASLCC_FLAGS) -m32
|
|
|
|
|
*_GCC49_IA32_ASLDLINK_FLAGS = DEF(GCC49_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_i386
|
|
|
|
|
*_GCC49_IA32_ASM_FLAGS = DEF(GCC49_ASM_FLAGS) -m32 -march=i386
|
|
|
|
|
*_GCC49_IA32_DLINK_FLAGS = DEF(GCC49_IA32_X64_DLINK_FLAGS) -Wl,-m,elf_i386,--oformat=elf32-i386
|
|
|
|
|
*_GCC49_IA32_DLINK2_FLAGS = DEF(GCC49_IA32_DLINK2_FLAGS)
|
|
|
|
|
*_GCC49_IA32_RC_FLAGS = DEF(GCC_IA32_RC_FLAGS)
|
|
|
|
|
*_GCC49_IA32_NASM_FLAGS = -f elf32 -DRODATA_SECTION_NAME=.rodata
|
|
|
|
|
|
|
|
|
|
DEBUG_GCC49_IA32_CC_FLAGS = DEF(GCC49_IA32_CC_FLAGS)
|
|
|
|
|
RELEASE_GCC49_IA32_CC_FLAGS = DEF(GCC49_IA32_CC_FLAGS) -Wno-unused-but-set-variable -Wno-unused-const-variable
|
|
|
|
|
NOOPT_GCC49_IA32_CC_FLAGS = DEF(GCC49_IA32_CC_FLAGS) -O0
|
|
|
|
|
|
|
|
|
|
##################
|
|
|
|
|
# GCC49 X64 definitions
|
|
|
|
|
##################
|
|
|
|
|
*_GCC49_X64_OBJCOPY_PATH = DEF(GCC49_X64_PREFIX)objcopy
|
|
|
|
|
*_GCC49_X64_CC_PATH = DEF(GCC49_X64_PREFIX)gcc
|
|
|
|
|
*_GCC49_X64_SLINK_PATH = DEF(GCC49_X64_PREFIX)ar
|
|
|
|
|
*_GCC49_X64_DLINK_PATH = DEF(GCC49_X64_PREFIX)gcc
|
|
|
|
|
*_GCC49_X64_ASLDLINK_PATH = DEF(GCC49_X64_PREFIX)gcc
|
|
|
|
|
*_GCC49_X64_ASM_PATH = DEF(GCC49_X64_PREFIX)gcc
|
|
|
|
|
*_GCC49_X64_PP_PATH = DEF(GCC49_X64_PREFIX)gcc
|
|
|
|
|
*_GCC49_X64_VFRPP_PATH = DEF(GCC49_X64_PREFIX)gcc
|
|
|
|
|
*_GCC49_X64_ASLCC_PATH = DEF(GCC49_X64_PREFIX)gcc
|
|
|
|
|
*_GCC49_X64_ASLPP_PATH = DEF(GCC49_X64_PREFIX)gcc
|
|
|
|
|
*_GCC49_X64_RC_PATH = DEF(GCC49_X64_PREFIX)objcopy
|
|
|
|
|
|
|
|
|
|
*_GCC49_X64_ASLCC_FLAGS = DEF(GCC49_ASLCC_FLAGS) -m64
|
|
|
|
|
*_GCC49_X64_ASLDLINK_FLAGS = DEF(GCC49_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_x86_64
|
|
|
|
|
*_GCC49_X64_ASM_FLAGS = DEF(GCC49_ASM_FLAGS) -m64
|
|
|
|
|
*_GCC49_X64_DLINK_FLAGS = DEF(GCC49_X64_DLINK_FLAGS)
|
|
|
|
|
*_GCC49_X64_DLINK2_FLAGS = DEF(GCC49_X64_DLINK2_FLAGS)
|
|
|
|
|
*_GCC49_X64_RC_FLAGS = DEF(GCC_X64_RC_FLAGS)
|
|
|
|
|
*_GCC49_X64_NASM_FLAGS = -f elf64 -DRODATA_SECTION_NAME=.rodata
|
|
|
|
|
|
|
|
|
|
DEBUG_GCC49_X64_CC_FLAGS = DEF(GCC49_X64_CC_FLAGS)
|
|
|
|
|
RELEASE_GCC49_X64_CC_FLAGS = DEF(GCC49_X64_CC_FLAGS) -Wno-unused-but-set-variable -Wno-unused-const-variable
|
|
|
|
|
NOOPT_GCC49_X64_CC_FLAGS = DEF(GCC49_X64_CC_FLAGS) -O0
|
|
|
|
|
|
|
|
|
|
##################
|
|
|
|
|
# GCC49 ARM definitions
|
|
|
|
|
##################
|
|
|
|
|
*_GCC49_ARM_CC_PATH = ENV(GCC49_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC49_ARM_SLINK_PATH = ENV(GCC49_ARM_PREFIX)ar
|
|
|
|
|
*_GCC49_ARM_DLINK_PATH = ENV(GCC49_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC49_ARM_ASLDLINK_PATH = ENV(GCC49_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC49_ARM_ASM_PATH = ENV(GCC49_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC49_ARM_PP_PATH = ENV(GCC49_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC49_ARM_VFRPP_PATH = ENV(GCC49_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC49_ARM_ASLCC_PATH = ENV(GCC49_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC49_ARM_ASLPP_PATH = ENV(GCC49_ARM_PREFIX)gcc
|
|
|
|
|
*_GCC49_ARM_RC_PATH = ENV(GCC49_ARM_PREFIX)objcopy
|
|
|
|
|
|
|
|
|
|
*_GCC49_ARM_ASLCC_FLAGS = DEF(GCC49_ASLCC_FLAGS)
|
|
|
|
|
*_GCC49_ARM_ASLDLINK_FLAGS = DEF(GCC49_ARM_ASLDLINK_FLAGS)
|
|
|
|
|
*_GCC49_ARM_ASM_FLAGS = DEF(GCC49_ARM_ASM_FLAGS)
|
|
|
|
|
*_GCC49_ARM_DLINK_FLAGS = DEF(GCC49_ARM_DLINK_FLAGS)
|
|
|
|
|
*_GCC49_ARM_DLINK2_FLAGS = DEF(GCC49_ARM_DLINK2_FLAGS)
|
|
|
|
|
*_GCC49_ARM_DTCPP_FLAGS = DEF(GCC_DTCPP_FLAGS)
|
|
|
|
|
*_GCC49_ARM_PP_FLAGS = DEF(GCC_PP_FLAGS) -mthumb -march=armv7-a
|
|
|
|
|
*_GCC49_ARM_RC_FLAGS = DEF(GCC_ARM_RC_FLAGS)
|
|
|
|
|
*_GCC49_ARM_VFRPP_FLAGS = DEF(GCC_VFRPP_FLAGS) -mthumb -march=armv7-a
|
|
|
|
|
*_GCC49_ARM_CC_XIPFLAGS = DEF(GCC49_ARM_CC_XIPFLAGS)
|
|
|
|
|
|
|
|
|
|
DEBUG_GCC49_ARM_CC_FLAGS = DEF(GCC49_ARM_CC_FLAGS) -O0
|
|
|
|
|
RELEASE_GCC49_ARM_CC_FLAGS = DEF(GCC49_ARM_CC_FLAGS) -Wno-unused-but-set-variable -Wno-unused-const-variable
|
|
|
|
|
NOOPT_GCC49_ARM_CC_FLAGS = DEF(GCC49_ARM_CC_FLAGS) -O0
|
|
|
|
|
|
|
|
|
|
##################
|
|
|
|
|
# GCC49 AARCH64 definitions
|
|
|
|
|
##################
|
|
|
|
|
*_GCC49_AARCH64_CC_PATH = ENV(GCC49_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC49_AARCH64_SLINK_PATH = ENV(GCC49_AARCH64_PREFIX)ar
|
|
|
|
|
*_GCC49_AARCH64_DLINK_PATH = ENV(GCC49_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC49_AARCH64_ASLDLINK_PATH = ENV(GCC49_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC49_AARCH64_ASM_PATH = ENV(GCC49_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC49_AARCH64_PP_PATH = ENV(GCC49_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC49_AARCH64_VFRPP_PATH = ENV(GCC49_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC49_AARCH64_ASLCC_PATH = ENV(GCC49_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC49_AARCH64_ASLPP_PATH = ENV(GCC49_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCC49_AARCH64_RC_PATH = ENV(GCC49_AARCH64_PREFIX)objcopy
|
|
|
|
|
|
|
|
|
|
*_GCC49_AARCH64_ASLCC_FLAGS = DEF(GCC49_ASLCC_FLAGS)
|
|
|
|
|
*_GCC49_AARCH64_ASLDLINK_FLAGS = DEF(GCC49_AARCH64_ASLDLINK_FLAGS)
|
|
|
|
|
*_GCC49_AARCH64_ASM_FLAGS = DEF(GCC49_AARCH64_ASM_FLAGS)
|
|
|
|
|
*_GCC49_AARCH64_DLINK2_FLAGS = DEF(GCC49_AARCH64_DLINK2_FLAGS)
|
|
|
|
|
*_GCC49_AARCH64_DTCPP_FLAGS = DEF(GCC_DTCPP_FLAGS)
|
|
|
|
|
*_GCC49_AARCH64_PP_FLAGS = DEF(GCC_PP_FLAGS)
|
|
|
|
|
*_GCC49_AARCH64_RC_FLAGS = DEF(GCC_AARCH64_RC_FLAGS)
|
|
|
|
|
*_GCC49_AARCH64_VFRPP_FLAGS = DEF(GCC_VFRPP_FLAGS)
|
|
|
|
|
*_GCC49_AARCH64_CC_XIPFLAGS = DEF(GCC49_AARCH64_CC_XIPFLAGS)
|
|
|
|
|
|
|
|
|
|
DEBUG_GCC49_AARCH64_CC_FLAGS = DEF(GCC49_AARCH64_CC_FLAGS) -O0
|
|
|
|
|
DEBUG_GCC49_AARCH64_DLINK_FLAGS = DEF(GCC49_AARCH64_DLINK_FLAGS)
|
|
|
|
|
DEBUG_GCC49_AARCH64_DLINK_XIPFLAGS = DEF(GCC_ALIGN)
|
|
|
|
|
|
|
|
|
|
RELEASE_GCC49_AARCH64_CC_FLAGS = DEF(GCC49_AARCH64_CC_FLAGS) -Wno-unused-but-set-variable -Wno-unused-const-variable
|
|
|
|
|
RELEASE_GCC49_AARCH64_DLINK_FLAGS = DEF(GCC49_AARCH64_DLINK_FLAGS)
|
|
|
|
|
RELEASE_GCC49_AARCH64_DLINK_XIPFLAGS = DEF(GCC_ALIGN)
|
|
|
|
|
|
|
|
|
|
NOOPT_GCC49_AARCH64_CC_FLAGS = DEF(GCC49_AARCH64_CC_FLAGS) -O0
|
|
|
|
|
NOOPT_GCC49_AARCH64_DLINK_FLAGS = DEF(GCC49_AARCH64_DLINK_FLAGS) -O0
|
|
|
|
|
NOOPT_GCC49_AARCH64_DLINK_XIPFLAGS = DEF(GCC_ALIGN) -O0
|
|
|
|
|
|
|
|
|
|
####################################################################################
|
|
|
|
|
#
|
|
|
|
|
# GCC NOLTO - This configuration is used to compile under Linux to produce
|
|
|
|
@ -1192,18 +846,17 @@ RELEASE_GCC49_AARCH64_DLINK_XIPFLAGS = DEF(GCC_ALIGN)
|
|
|
|
|
*_GCCNOLTO_IA32_ASLPP_PATH = DEF(GCCNOLTO_IA32_PREFIX)gcc
|
|
|
|
|
*_GCCNOLTO_IA32_RC_PATH = DEF(GCCNOLTO_IA32_PREFIX)objcopy
|
|
|
|
|
|
|
|
|
|
*_GCCNOLTO_IA32_ASLCC_FLAGS = DEF(GCC49_ASLCC_FLAGS) -m32
|
|
|
|
|
*_GCCNOLTO_IA32_ASLDLINK_FLAGS = DEF(GCC49_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_i386
|
|
|
|
|
*_GCCNOLTO_IA32_ASM_FLAGS = DEF(GCC49_ASM_FLAGS) -m32 -march=i386
|
|
|
|
|
*_GCCNOLTO_IA32_DLINK_FLAGS = DEF(GCC49_IA32_X64_DLINK_FLAGS) -Wl,-m,elf_i386,--oformat=elf32-i386
|
|
|
|
|
*_GCCNOLTO_IA32_DLINK2_FLAGS = DEF(GCC49_IA32_DLINK2_FLAGS)
|
|
|
|
|
*_GCCNOLTO_IA32_RC_FLAGS = DEF(GCC_IA32_RC_FLAGS)
|
|
|
|
|
*_GCCNOLTO_IA32_ASLCC_FLAGS = DEF(GCC5_ASLCC_FLAGS) -m32
|
|
|
|
|
*_GCCNOLTO_IA32_ASLDLINK_FLAGS = DEF(GCC5_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_i386
|
|
|
|
|
*_GCCNOLTO_IA32_ASM_FLAGS = DEF(GCC5_ASM_FLAGS) -m32 -march=i386
|
|
|
|
|
*_GCCNOLTO_IA32_DLINK_FLAGS = DEF(GCC5_IA32_X64_DLINK_FLAGS) -Wl,-m,elf_i386,--oformat=elf32-i386
|
|
|
|
|
*_GCCNOLTO_IA32_DLINK2_FLAGS = DEF(GCC5_IA32_DLINK2_FLAGS)
|
|
|
|
|
*_GCCNOLTO_IA32_OBJCOPY_FLAGS =
|
|
|
|
|
*_GCCNOLTO_IA32_NASM_FLAGS = -f elf32
|
|
|
|
|
|
|
|
|
|
DEBUG_GCCNOLTO_IA32_CC_FLAGS = DEF(GCC49_IA32_CC_FLAGS)
|
|
|
|
|
RELEASE_GCCNOLTO_IA32_CC_FLAGS = DEF(GCC49_IA32_CC_FLAGS) -Wno-unused-but-set-variable -Wno-unused-const-variable
|
|
|
|
|
NOOPT_GCCNOLTO_IA32_CC_FLAGS = DEF(GCC49_IA32_CC_FLAGS) -O0
|
|
|
|
|
DEBUG_GCCNOLTO_IA32_CC_FLAGS = DEF(GCC5_IA32_CC_FLAGS)
|
|
|
|
|
RELEASE_GCCNOLTO_IA32_CC_FLAGS = DEF(GCC5_IA32_CC_FLAGS) -Wno-unused-but-set-variable -Wno-unused-const-variable
|
|
|
|
|
NOOPT_GCCNOLTO_IA32_CC_FLAGS = DEF(GCC5_IA32_CC_FLAGS) -O0
|
|
|
|
|
|
|
|
|
|
##################
|
|
|
|
|
# GCCNOLTO X64 definitions
|
|
|
|
@ -1220,18 +873,17 @@ RELEASE_GCCNOLTO_IA32_CC_FLAGS = DEF(GCC49_IA32_CC_FLAGS) -Wno-unused-but-
|
|
|
|
|
*_GCCNOLTO_X64_ASLPP_PATH = DEF(GCCNOLTO_X64_PREFIX)gcc
|
|
|
|
|
*_GCCNOLTO_X64_RC_PATH = DEF(GCCNOLTO_X64_PREFIX)objcopy
|
|
|
|
|
|
|
|
|
|
*_GCCNOLTO_X64_ASLCC_FLAGS = DEF(GCC49_ASLCC_FLAGS) -m64
|
|
|
|
|
*_GCCNOLTO_X64_ASLDLINK_FLAGS = DEF(GCC49_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_x86_64
|
|
|
|
|
*_GCCNOLTO_X64_ASM_FLAGS = DEF(GCC49_ASM_FLAGS) -m64
|
|
|
|
|
*_GCCNOLTO_X64_DLINK_FLAGS = DEF(GCC49_X64_DLINK_FLAGS)
|
|
|
|
|
*_GCCNOLTO_X64_DLINK2_FLAGS = DEF(GCC49_X64_DLINK2_FLAGS)
|
|
|
|
|
*_GCCNOLTO_X64_RC_FLAGS = DEF(GCC_X64_RC_FLAGS)
|
|
|
|
|
*_GCCNOLTO_X64_ASLCC_FLAGS = DEF(GCC5_ASLCC_FLAGS) -m64
|
|
|
|
|
*_GCCNOLTO_X64_ASLDLINK_FLAGS = DEF(GCC5_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_x86_64
|
|
|
|
|
*_GCCNOLTO_X64_ASM_FLAGS = DEF(GCC5_ASM_FLAGS) -m64
|
|
|
|
|
*_GCCNOLTO_X64_DLINK_FLAGS = DEF(GCC5_X64_DLINK_FLAGS)
|
|
|
|
|
*_GCCNOLTO_X64_DLINK2_FLAGS = DEF(GCC5_X64_DLINK2_FLAGS)
|
|
|
|
|
*_GCCNOLTO_X64_OBJCOPY_FLAGS =
|
|
|
|
|
*_GCCNOLTO_X64_NASM_FLAGS = -f elf64
|
|
|
|
|
|
|
|
|
|
DEBUG_GCCNOLTO_X64_CC_FLAGS = DEF(GCC49_X64_CC_FLAGS)
|
|
|
|
|
RELEASE_GCCNOLTO_X64_CC_FLAGS = DEF(GCC49_X64_CC_FLAGS) -Wno-unused-but-set-variable -Wno-unused-const-variable
|
|
|
|
|
NOOPT_GCCNOLTO_X64_CC_FLAGS = DEF(GCC49_X64_CC_FLAGS) -O0
|
|
|
|
|
DEBUG_GCCNOLTO_X64_CC_FLAGS = DEF(GCC5_X64_CC_FLAGS)
|
|
|
|
|
RELEASE_GCCNOLTO_X64_CC_FLAGS = DEF(GCC5_X64_CC_FLAGS) -Wno-unused-but-set-variable -Wno-unused-const-variable
|
|
|
|
|
NOOPT_GCCNOLTO_X64_CC_FLAGS = DEF(GCC5_X64_CC_FLAGS) -O0
|
|
|
|
|
|
|
|
|
|
##################
|
|
|
|
|
# GCCNOLTO ARM definitions
|
|
|
|
@ -1247,21 +899,20 @@ RELEASE_GCCNOLTO_X64_CC_FLAGS = DEF(GCC49_X64_CC_FLAGS) -Wno-unused-but-se
|
|
|
|
|
*_GCCNOLTO_ARM_ASLPP_PATH = ENV(GCCNOLTO_ARM_PREFIX)gcc
|
|
|
|
|
*_GCCNOLTO_ARM_RC_PATH = ENV(GCCNOLTO_ARM_PREFIX)objcopy
|
|
|
|
|
|
|
|
|
|
*_GCCNOLTO_ARM_ASLCC_FLAGS = DEF(GCC49_ASLCC_FLAGS)
|
|
|
|
|
*_GCCNOLTO_ARM_ASLDLINK_FLAGS = DEF(GCC49_ARM_ASLDLINK_FLAGS)
|
|
|
|
|
*_GCCNOLTO_ARM_ASM_FLAGS = DEF(GCC49_ARM_ASM_FLAGS)
|
|
|
|
|
*_GCCNOLTO_ARM_DLINK_FLAGS = DEF(GCC49_ARM_DLINK_FLAGS)
|
|
|
|
|
*_GCCNOLTO_ARM_DLINK2_FLAGS = DEF(GCC49_ARM_DLINK2_FLAGS)
|
|
|
|
|
*_GCCNOLTO_ARM_ASLCC_FLAGS = DEF(GCC5_ASLCC_FLAGS)
|
|
|
|
|
*_GCCNOLTO_ARM_ASLDLINK_FLAGS = DEF(GCC5_ARM_ASLDLINK_FLAGS)
|
|
|
|
|
*_GCCNOLTO_ARM_ASM_FLAGS = DEF(GCC5_ARM_ASM_FLAGS)
|
|
|
|
|
*_GCCNOLTO_ARM_DLINK_FLAGS = DEF(GCC5_ARM_DLINK_FLAGS)
|
|
|
|
|
*_GCCNOLTO_ARM_DLINK2_FLAGS = DEF(GCC5_ARM_DLINK2_FLAGS)
|
|
|
|
|
*_GCCNOLTO_ARM_DTCPP_FLAGS = DEF(GCC_DTCPP_FLAGS)
|
|
|
|
|
*_GCCNOLTO_ARM_PLATFORM_FLAGS = -march=armv7-a
|
|
|
|
|
*_GCCNOLTO_ARM_PP_FLAGS = $(PLATFORM_FLAGS) DEF(GCC_PP_FLAGS)
|
|
|
|
|
*_GCCNOLTO_ARM_RC_FLAGS = DEF(GCC_ARM_RC_FLAGS)
|
|
|
|
|
*_GCCNOLTO_ARM_VFRPP_FLAGS = $(PLATFORM_FLAGS) DEF(GCC_VFRPP_FLAGS)
|
|
|
|
|
*_GCCNOLTO_ARM_CC_XIPFLAGS = DEF(GCC49_ARM_CC_XIPFLAGS)
|
|
|
|
|
*_GCCNOLTO_ARM_CC_XIPFLAGS = DEF(GCC5_ARM_CC_XIPFLAGS)
|
|
|
|
|
|
|
|
|
|
DEBUG_GCCNOLTO_ARM_CC_FLAGS = DEF(GCC49_ARM_CC_FLAGS) -O0
|
|
|
|
|
RELEASE_GCCNOLTO_ARM_CC_FLAGS = DEF(GCC49_ARM_CC_FLAGS) -Wno-unused-but-set-variable -Wno-unused-const-variable
|
|
|
|
|
NOOPT_GCCNOLTO_ARM_CC_FLAGS = DEF(GCC49_ARM_CC_FLAGS) -O0
|
|
|
|
|
DEBUG_GCCNOLTO_ARM_CC_FLAGS = DEF(GCC5_ARM_CC_FLAGS) -O0
|
|
|
|
|
RELEASE_GCCNOLTO_ARM_CC_FLAGS = DEF(GCC5_ARM_CC_FLAGS) -Wno-unused-but-set-variable -Wno-unused-const-variable
|
|
|
|
|
NOOPT_GCCNOLTO_ARM_CC_FLAGS = DEF(GCC5_ARM_CC_FLAGS) -O0
|
|
|
|
|
|
|
|
|
|
##################
|
|
|
|
|
# GCCNOLTO AARCH64 definitions
|
|
|
|
@ -1277,27 +928,26 @@ RELEASE_GCCNOLTO_ARM_CC_FLAGS = DEF(GCC49_ARM_CC_FLAGS) -Wno-unused-but-se
|
|
|
|
|
*_GCCNOLTO_AARCH64_ASLPP_PATH = ENV(GCCNOLTO_AARCH64_PREFIX)gcc
|
|
|
|
|
*_GCCNOLTO_AARCH64_RC_PATH = ENV(GCCNOLTO_AARCH64_PREFIX)objcopy
|
|
|
|
|
|
|
|
|
|
*_GCCNOLTO_AARCH64_ASLCC_FLAGS = DEF(GCC49_ASLCC_FLAGS)
|
|
|
|
|
*_GCCNOLTO_AARCH64_ASLDLINK_FLAGS = DEF(GCC49_AARCH64_ASLDLINK_FLAGS)
|
|
|
|
|
*_GCCNOLTO_AARCH64_ASM_FLAGS = DEF(GCC49_AARCH64_ASM_FLAGS)
|
|
|
|
|
*_GCCNOLTO_AARCH64_DLINK2_FLAGS = DEF(GCC49_AARCH64_DLINK2_FLAGS)
|
|
|
|
|
*_GCCNOLTO_AARCH64_ASLCC_FLAGS = DEF(GCC5_ASLCC_FLAGS)
|
|
|
|
|
*_GCCNOLTO_AARCH64_ASLDLINK_FLAGS = DEF(GCC5_AARCH64_ASLDLINK_FLAGS)
|
|
|
|
|
*_GCCNOLTO_AARCH64_ASM_FLAGS = DEF(GCC5_AARCH64_ASM_FLAGS)
|
|
|
|
|
*_GCCNOLTO_AARCH64_DLINK2_FLAGS = DEF(GCC5_AARCH64_DLINK2_FLAGS)
|
|
|
|
|
*_GCCNOLTO_AARCH64_DTCPP_FLAGS = DEF(GCC_DTCPP_FLAGS)
|
|
|
|
|
*_GCCNOLTO_AARCH64_PLATFORM_FLAGS =
|
|
|
|
|
*_GCCNOLTO_AARCH64_PP_FLAGS = $(PLATFORM_FLAGS) DEF(GCC_PP_FLAGS)
|
|
|
|
|
*_GCCNOLTO_AARCH64_RC_FLAGS = DEF(GCC_AARCH64_RC_FLAGS)
|
|
|
|
|
*_GCCNOLTO_AARCH64_VFRPP_FLAGS = $(PLATFORM_FLAGS) DEF(GCC_VFRPP_FLAGS)
|
|
|
|
|
*_GCCNOLTO_AARCH64_CC_XIPFLAGS = DEF(GCC49_AARCH64_CC_XIPFLAGS)
|
|
|
|
|
*_GCCNOLTO_AARCH64_CC_XIPFLAGS = DEF(GCC5_AARCH64_CC_XIPFLAGS)
|
|
|
|
|
|
|
|
|
|
DEBUG_GCCNOLTO_AARCH64_CC_FLAGS = DEF(GCC49_AARCH64_CC_FLAGS) -O0
|
|
|
|
|
DEBUG_GCCNOLTO_AARCH64_DLINK_FLAGS = DEF(GCC49_AARCH64_DLINK_FLAGS)
|
|
|
|
|
DEBUG_GCCNOLTO_AARCH64_CC_FLAGS = DEF(GCC5_AARCH64_CC_FLAGS) -O0
|
|
|
|
|
DEBUG_GCCNOLTO_AARCH64_DLINK_FLAGS = DEF(GCC5_AARCH64_DLINK_FLAGS)
|
|
|
|
|
DEBUG_GCCNOLTO_AARCH64_DLINK_XIPFLAGS = -z common-page-size=0x20
|
|
|
|
|
|
|
|
|
|
RELEASE_GCCNOLTO_AARCH64_CC_FLAGS = DEF(GCC49_AARCH64_CC_FLAGS) -Wno-unused-but-set-variable -Wno-unused-const-variable
|
|
|
|
|
RELEASE_GCCNOLTO_AARCH64_DLINK_FLAGS = DEF(GCC49_AARCH64_DLINK_FLAGS)
|
|
|
|
|
RELEASE_GCCNOLTO_AARCH64_CC_FLAGS = DEF(GCC5_AARCH64_CC_FLAGS) -Wno-unused-but-set-variable -Wno-unused-const-variable
|
|
|
|
|
RELEASE_GCCNOLTO_AARCH64_DLINK_FLAGS = DEF(GCC5_AARCH64_DLINK_FLAGS)
|
|
|
|
|
RELEASE_GCCNOLTO_AARCH64_DLINK_XIPFLAGS = -z common-page-size=0x20
|
|
|
|
|
|
|
|
|
|
NOOPT_GCCNOLTO_AARCH64_CC_FLAGS = DEF(GCC49_AARCH64_CC_FLAGS) -O0
|
|
|
|
|
NOOPT_GCCNOLTO_AARCH64_DLINK_FLAGS = DEF(GCC49_AARCH64_DLINK_FLAGS) -O0
|
|
|
|
|
NOOPT_GCCNOLTO_AARCH64_CC_FLAGS = DEF(GCC5_AARCH64_CC_FLAGS) -O0
|
|
|
|
|
NOOPT_GCCNOLTO_AARCH64_DLINK_FLAGS = DEF(GCC5_AARCH64_DLINK_FLAGS) -O0
|
|
|
|
|
NOOPT_GCCNOLTO_AARCH64_DLINK_XIPFLAGS = -z common-page-size=0x20 -O0
|
|
|
|
|
|
|
|
|
|
####################################################################################
|
|
|
|
@ -1337,19 +987,19 @@ RELEASE_GCCNOLTO_AARCH64_DLINK_XIPFLAGS = -z common-page-size=0x20
|
|
|
|
|
*_GCC5_IA32_RC_PATH = DEF(GCC5_IA32_PREFIX)objcopy
|
|
|
|
|
|
|
|
|
|
*_GCC5_IA32_ASLCC_FLAGS = DEF(GCC5_ASLCC_FLAGS) -m32
|
|
|
|
|
*_GCC5_IA32_ASLDLINK_FLAGS = DEF(GCC5_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_i386 -no-pie
|
|
|
|
|
*_GCC5_IA32_ASLDLINK_FLAGS = DEF(GCC5_IA32_X64_ASLDLINK_FLAGS) -Wl,-q,-m,elf_i386 -no-pie
|
|
|
|
|
*_GCC5_IA32_ASM_FLAGS = DEF(GCC5_ASM_FLAGS) -m32 -march=i386
|
|
|
|
|
*_GCC5_IA32_DLINK2_FLAGS = DEF(GCC5_IA32_DLINK2_FLAGS) -no-pie
|
|
|
|
|
*_GCC5_IA32_NASM_FLAGS = -f elf32 -DRODATA_SECTION_NAME=.rodata
|
|
|
|
|
|
|
|
|
|
DEBUG_GCC5_IA32_CC_FLAGS = DEF(GCC5_IA32_CC_FLAGS) -flto
|
|
|
|
|
DEBUG_GCC5_IA32_DLINK_FLAGS = DEF(GCC5_IA32_X64_DLINK_FLAGS) -flto -Os -Wl,-m,elf_i386,--oformat=elf32-i386
|
|
|
|
|
DEBUG_GCC5_IA32_CC_FLAGS = DEF(GCC5_IA32_CC_FLAGS) -flto -Os
|
|
|
|
|
DEBUG_GCC5_IA32_DLINK_FLAGS = DEF(GCC5_IA32_X64_DLINK_FLAGS) -flto -Os -Wl,-q,-m,elf_i386,--oformat=elf32-i386
|
|
|
|
|
|
|
|
|
|
RELEASE_GCC5_IA32_CC_FLAGS = DEF(GCC5_IA32_CC_FLAGS) -flto -Wno-unused-but-set-variable -Wno-unused-const-variable
|
|
|
|
|
RELEASE_GCC5_IA32_DLINK_FLAGS = DEF(GCC5_IA32_X64_DLINK_FLAGS) -flto -Os -Wl,-m,elf_i386,--oformat=elf32-i386
|
|
|
|
|
RELEASE_GCC5_IA32_CC_FLAGS = DEF(GCC5_IA32_CC_FLAGS) -flto -Os -Wno-unused-but-set-variable -Wno-unused-const-variable
|
|
|
|
|
RELEASE_GCC5_IA32_DLINK_FLAGS = DEF(GCC5_IA32_X64_DLINK_FLAGS) -flto -Os -Wl,-q,-m,elf_i386,--oformat=elf32-i386
|
|
|
|
|
|
|
|
|
|
NOOPT_GCC5_IA32_CC_FLAGS = DEF(GCC5_IA32_CC_FLAGS) -O0
|
|
|
|
|
NOOPT_GCC5_IA32_DLINK_FLAGS = DEF(GCC5_IA32_X64_DLINK_FLAGS) -Wl,-m,elf_i386,--oformat=elf32-i386 -O0
|
|
|
|
|
NOOPT_GCC5_IA32_DLINK_FLAGS = DEF(GCC5_IA32_X64_DLINK_FLAGS) -Wl,-q,-m,elf_i386,--oformat=elf32-i386 -O0
|
|
|
|
|
|
|
|
|
|
##################
|
|
|
|
|
# GCC5 X64 definitions
|
|
|
|
@ -1743,7 +1393,7 @@ DEFINE CLANGPDB_IA32_TARGET = -target i686-unknown-windows-gnu
|
|
|
|
|
DEFINE CLANGPDB_X64_TARGET = -target x86_64-unknown-windows-gnu
|
|
|
|
|
|
|
|
|
|
DEFINE CLANGPDB_WARNING_OVERRIDES = -Wno-parentheses-equality -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empty-body -Wno-unused-const-variable -Wno-varargs -Wno-unknown-warning-option -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-unaligned-access -Wno-microsoft-enum-forward-reference
|
|
|
|
|
DEFINE CLANGPDB_ALL_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) DEF(CLANGPDB_WARNING_OVERRIDES) -fno-stack-protector -funsigned-char -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang -Wno-address -Wno-shift-negative-value -Wno-unknown-pragmas -Wno-incompatible-library-redeclaration -Wno-null-dereference -mno-implicit-float -mms-bitfields -mno-stack-arg-probe -nostdlib -nostdlibinc -fseh-exceptions
|
|
|
|
|
DEFINE CLANGPDB_ALL_CC_FLAGS = DEF(GCC5_ALL_CC_FLAGS) DEF(CLANGPDB_WARNING_OVERRIDES) -fno-stack-protector -funsigned-char -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang -Wno-address -Wno-shift-negative-value -Wno-unknown-pragmas -Wno-incompatible-library-redeclaration -Wno-null-dereference -mno-implicit-float -mms-bitfields -mno-stack-arg-probe -nostdlib -nostdlibinc -fseh-exceptions
|
|
|
|
|
|
|
|
|
|
###########################
|
|
|
|
|
# CLANGPDB IA32 definitions
|
|
|
|
@ -1826,23 +1476,27 @@ NOOPT_CLANGPDB_X64_DLINK2_FLAGS =
|
|
|
|
|
*_CLANGDWARF_*_APP_FLAGS =
|
|
|
|
|
*_CLANGDWARF_*_ASL_FLAGS = DEF(IASL_FLAGS)
|
|
|
|
|
*_CLANGDWARF_*_ASL_OUTFLAGS = DEF(IASL_OUTFLAGS)
|
|
|
|
|
*_CLANGDWARF_*_DEPS_FLAGS = DEF(GCC_DEPS_FLAGS)
|
|
|
|
|
*_CLANGDWARF_*_DTCPP_FLAGS = DEF(GCC_DTCPP_FLAGS)
|
|
|
|
|
|
|
|
|
|
DEFINE CLANGDWARF_IA32_PREFIX = ENV(CLANG_BIN)
|
|
|
|
|
DEFINE CLANGDWARF_X64_PREFIX = ENV(CLANG_BIN)
|
|
|
|
|
DEFINE CLANGDWARF_ARM_PREFIX = ENV(CLANG_BIN)
|
|
|
|
|
DEFINE CLANGDWARF_AARCH64_PREFIX = ENV(CLANG_BIN)
|
|
|
|
|
|
|
|
|
|
DEFINE CLANGDWARF_IA32_TARGET = -target i686-pc-linux-gnu
|
|
|
|
|
DEFINE CLANGDWARF_X64_TARGET = -target x86_64-pc-linux-gnu
|
|
|
|
|
DEFINE CLANGDWARF_ARM_TARGET = -target arm-linux-gnueabi
|
|
|
|
|
DEFINE CLANGDWARF_AARCH64_TARGET = -target aarch64-linux-gnu
|
|
|
|
|
|
|
|
|
|
# LLVM/CLANG doesn't support -n link option. So, it can't share the same IA32_X64_DLINK_COMMON flag.
|
|
|
|
|
DEFINE CLANGDWARF_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-q,--gc-sections DEF(GCC_ALIGN) -Wl,-z,notext,--defsym=ALIGNED_PE_HEADER_SIZE=0x400 DEF(DLINK_SCRIPT)
|
|
|
|
|
DEFINE CLANGDWARF_IA32_X64_DLINK_COMMON = -nostdlib -Wl,--gc-sections DEF(GCC_ALIGN) -Wl,-z,notext,--defsym=ALIGNED_PE_HEADER_SIZE=0x400 DEF(DLINK_SCRIPT)
|
|
|
|
|
DEFINE CLANGDWARF_IA32_X64_ASLDLINK_FLAGS = DEF(CLANGDWARF_IA32_X64_DLINK_COMMON) -Wl,--entry,ReferenceAcpiTable -u ReferenceAcpiTable
|
|
|
|
|
DEFINE CLANGDWARF_IA32_X64_DLINK_FLAGS = DEF(CLANGDWARF_IA32_X64_DLINK_COMMON) -Wl,--entry,$(IMAGE_ENTRY_POINT) -u $(IMAGE_ENTRY_POINT) -Wl,-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map,--whole-archive
|
|
|
|
|
DEFINE CLANGDWARF_IA32_DLINK2_FLAGS = -no-pie
|
|
|
|
|
|
|
|
|
|
DEFINE CLANGDWARF_IA32_TARGET = -target i686-pc-linux-gnu
|
|
|
|
|
DEFINE CLANGDWARF_X64_TARGET = -target x86_64-pc-linux-gnu
|
|
|
|
|
|
|
|
|
|
DEFINE CLANGDWARF_WARNING_OVERRIDES = -Wno-parentheses-equality -Wno-empty-body -Wno-unused-const-variable -Wno-varargs -Wno-unknown-warning-option -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-unaligned-access -Wno-unneeded-internal-declaration
|
|
|
|
|
DEFINE CLANGDWARF_ALL_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) DEF(CLANGDWARF_WARNING_OVERRIDES) -fno-stack-protector -mms-bitfields -Wno-address -Wno-shift-negative-value -Wno-unknown-pragmas -Wno-incompatible-library-redeclaration -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -msoft-float -mno-implicit-float -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang -funsigned-char -fno-ms-extensions -Wno-null-dereference
|
|
|
|
|
DEFINE CLANGDWARF_WARNING_OVERRIDES = -Wno-parentheses-equality -Wno-empty-body -Wno-unused-const-variable -Wno-varargs -Wno-unknown-warning-option -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-unaligned-access -Wno-unneeded-internal-declaration
|
|
|
|
|
DEFINE CLANGDWARF_ALL_CC_FLAGS = DEF(GCC5_ALL_CC_FLAGS) DEF(CLANGDWARF_WARNING_OVERRIDES) -fno-stack-protector -mms-bitfields -Wno-address -Wno-shift-negative-value -Wno-unknown-pragmas -Wno-incompatible-library-redeclaration -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -msoft-float -mno-implicit-float -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang -funsigned-char -fno-ms-extensions -Wno-null-dereference
|
|
|
|
|
|
|
|
|
|
###########################
|
|
|
|
|
# CLANGDWARF IA32 definitions
|
|
|
|
@ -1860,7 +1514,7 @@ DEFINE CLANGDWARF_ALL_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) DEF(CLANGDWARF_
|
|
|
|
|
*_CLANGDWARF_IA32_RC_PATH = DEF(CLANGDWARF_IA32_PREFIX)llvm-objcopy
|
|
|
|
|
|
|
|
|
|
*_CLANGDWARF_IA32_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS) -m32 -fno-lto DEF(CLANGDWARF_IA32_TARGET)
|
|
|
|
|
*_CLANGDWARF_IA32_ASLDLINK_FLAGS = DEF(CLANGDWARF_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_i386 -fuse-ld=lld -no-pie
|
|
|
|
|
*_CLANGDWARF_IA32_ASLDLINK_FLAGS = DEF(CLANGDWARF_IA32_X64_ASLDLINK_FLAGS) -Wl,-q,-m,elf_i386 -fuse-ld=lld -no-pie
|
|
|
|
|
*_CLANGDWARF_IA32_ASM_FLAGS = DEF(GCC5_ASM_FLAGS) -m32 -march=i386 DEF(CLANGDWARF_IA32_TARGET)
|
|
|
|
|
*_CLANGDWARF_IA32_NASM_FLAGS = -f elf32 -DRODATA_SECTION_NAME=.rodata
|
|
|
|
|
*_CLANGDWARF_IA32_PP_FLAGS = DEF(GCC_PP_FLAGS) DEF(CLANGDWARF_IA32_TARGET)
|
|
|
|
@ -1868,20 +1522,20 @@ DEFINE CLANGDWARF_ALL_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) DEF(CLANGDWARF_
|
|
|
|
|
*_CLANGDWARF_IA32_VFRPP_FLAGS = DEF(GCC_VFRPP_FLAGS) DEF(CLANGDWARF_IA32_TARGET)
|
|
|
|
|
|
|
|
|
|
DEBUG_CLANGDWARF_IA32_CC_FLAGS = DEF(CLANGDWARF_ALL_CC_FLAGS) -m32 -malign-double -Oz -flto -march=i586 DEF(CLANGDWARF_IA32_TARGET) -g -fno-pic -fno-pie
|
|
|
|
|
DEBUG_CLANGDWARF_IA32_DLINK_FLAGS = DEF(CLANGDWARF_IA32_X64_DLINK_FLAGS) -flto -Wl,-O3 -Wl,-melf_i386 -Wl,--oformat,elf32-i386
|
|
|
|
|
DEBUG_CLANGDWARF_IA32_DLINK2_FLAGS = DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O3 -fuse-ld=lld -no-pie
|
|
|
|
|
DEBUG_CLANGDWARF_IA32_DLINK_FLAGS = DEF(CLANGDWARF_IA32_X64_DLINK_FLAGS) -flto -Wl,-q,-O3 -Wl,-melf_i386 -Wl,--oformat,elf32-i386
|
|
|
|
|
DEBUG_CLANGDWARF_IA32_DLINK2_FLAGS = DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O3 -fuse-ld=lld
|
|
|
|
|
|
|
|
|
|
RELEASE_CLANGDWARF_IA32_CC_FLAGS = DEF(CLANGDWARF_ALL_CC_FLAGS) -m32 -malign-double -Oz -flto -march=i586 DEF(CLANGDWARF_IA32_TARGET) -fno-pic -fno-pie
|
|
|
|
|
RELEASE_CLANGDWARF_IA32_DLINK_FLAGS = DEF(CLANGDWARF_IA32_X64_DLINK_FLAGS) -flto -Wl,-O3 -Wl,-melf_i386 -Wl,--oformat,elf32-i386
|
|
|
|
|
RELEASE_CLANGDWARF_IA32_DLINK2_FLAGS = DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O3 -fuse-ld=lld -no-pie
|
|
|
|
|
RELEASE_CLANGDWARF_IA32_DLINK_FLAGS = DEF(CLANGDWARF_IA32_X64_DLINK_FLAGS) -flto -Wl,-q,-O3 -Wl,-melf_i386 -Wl,--oformat,elf32-i386
|
|
|
|
|
RELEASE_CLANGDWARF_IA32_DLINK2_FLAGS = DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O3 -fuse-ld=lld
|
|
|
|
|
|
|
|
|
|
NOOPT_CLANGDWARF_IA32_CC_FLAGS = DEF(CLANGDWARF_ALL_CC_FLAGS) -m32 -malign-double -O0 -march=i586 DEF(CLANGDWARF_IA32_TARGET) -g -fno-pic -fno-pie
|
|
|
|
|
NOOPT_CLANGDWARF_IA32_DLINK_FLAGS = DEF(CLANGDWARF_IA32_X64_DLINK_FLAGS) -Wl,-O0 -Wl,-melf_i386 -Wl,--oformat,elf32-i386
|
|
|
|
|
NOOPT_CLANGDWARF_IA32_DLINK2_FLAGS = DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O0 -fuse-ld=lld -no-pie
|
|
|
|
|
NOOPT_CLANGDWARF_IA32_DLINK_FLAGS = DEF(CLANGDWARF_IA32_X64_DLINK_FLAGS) -Wl,-O0 -Wl,-q,-melf_i386 -Wl,--oformat,elf32-i386
|
|
|
|
|
NOOPT_CLANGDWARF_IA32_DLINK2_FLAGS = DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O0 -fuse-ld=lld
|
|
|
|
|
|
|
|
|
|
##########################
|
|
|
|
|
###########################
|
|
|
|
|
# CLANGDWARF X64 definitions
|
|
|
|
|
##########################
|
|
|
|
|
###########################
|
|
|
|
|
*_CLANGDWARF_X64_OBJCOPY_PATH = DEF(CLANGDWARF_X64_PREFIX)llvm-objcopy
|
|
|
|
|
*_CLANGDWARF_X64_CC_PATH = DEF(CLANGDWARF_X64_PREFIX)clang
|
|
|
|
|
*_CLANGDWARF_X64_SLINK_PATH = DEF(CLANGDWARF_X64_PREFIX)llvm-ar
|
|
|
|
@ -1917,7 +1571,6 @@ NOOPT_CLANGDWARF_X64_DLINK2_FLAGS = -O0 -fuse-ld=lld
|
|
|
|
|
##################
|
|
|
|
|
# CLANGDWARF ARM definitions
|
|
|
|
|
##################
|
|
|
|
|
DEFINE CLANGDWARF_ARM_TARGET = -target arm-linux-gnueabi
|
|
|
|
|
DEFINE CLANGDWARF_ARM_CC_FLAGS = DEF(GCC_ARM_CC_FLAGS) DEF(CLANGDWARF_ARM_TARGET) DEF(CLANGDWARF_WARNING_OVERRIDES) -mno-movt
|
|
|
|
|
DEFINE CLANGDWARF_ARM_DLINK_FLAGS = DEF(CLANGDWARF_ARM_TARGET) DEF(GCC_ARM_DLINK_FLAGS) -fuse-ld=lld -Wl,--apply-dynamic-relocs,--no-pie,--no-relax
|
|
|
|
|
|
|
|
|
@ -1959,7 +1612,6 @@ RELEASE_CLANGDWARF_ARM_DLINK_FLAGS = DEF(CLANGDWARF_ARM_DLINK_FLAGS) -flto -Wl,
|
|
|
|
|
##################
|
|
|
|
|
# CLANGDWARF AARCH64 definitions
|
|
|
|
|
##################
|
|
|
|
|
DEFINE CLANGDWARF_AARCH64_TARGET = -target aarch64-linux-gnu
|
|
|
|
|
DEFINE CLANGDWARF_AARCH64_CC_FLAGS = DEF(GCC_AARCH64_CC_FLAGS) DEF(CLANGDWARF_AARCH64_TARGET) -mcmodel=small DEF(CLANGDWARF_WARNING_OVERRIDES)
|
|
|
|
|
DEFINE CLANGDWARF_AARCH64_DLINK_FLAGS = DEF(CLANGDWARF_AARCH64_TARGET) DEF(GCC_AARCH64_DLINK_FLAGS) DEF(GCC_ALIGN) -fuse-ld=lld -Wl,--apply-dynamic-relocs,--no-pie,--no-relax
|
|
|
|
|
|
|
|
|
|