Changeset 14473


Ignorieren:
Zeitstempel:
21.10.2017 20:01:08 (vor 9 Monaten)
Autor:
er13
Nachricht:

FREETZ_GCC_ABI/FREETZ_GCC_FLOAT_ABI symbols:

  • do not set ABI/FLOAT_ABI related compiler flags if the values these symbols contain are empty
  • this makes it possible to leave these symbols empty for architectures not supporting them
  • by f_666
  • refs #2862, refs https://github.com/Freetz/freetz/pull/20
Ort:
trunk
Dateien:
2 bearbeitet

Legende:

Unverändert
Hinzugefügt
Entfernt
  • trunk/make/Makefile.in

    r14378 r14473  
    4141# binutils-2.25 require "-Wa,...", this however might break compilation of some packages (e.g. libffi) 
    4242TARGET_CFLAGS_ARCH_CPU_TUNE := -march=$(call qstrip,$(FREETZ_GCC_TUNE)) -mtune=$(call qstrip,$(FREETZ_GCC_TUNE)) 
    43 TARGET_CFLAGS_FLOAT_ABI     := -m$(call qstrip,$(FREETZ_GCC_FLOAT_ABI))-float 
     43TARGET_CFLAGS_FLOAT_ABI     := $(if $(call qstrip,$(FREETZ_GCC_FLOAT_ABI)),-m$(call qstrip,$(FREETZ_GCC_FLOAT_ABI))-float) 
    4444#TARGET_CFLAGS_ARCH_CPU_TUNE := -march=$(call qstrip,$(FREETZ_GCC_ARCH)) -mtune=$(call qstrip,$(FREETZ_GCC_TUNE)) 
    45 #TARGET_CFLAGS_FLOAT_ABI     := -m$(call qstrip,$(FREETZ_GCC_FLOAT_ABI))-float -Wa,-m$(call qstrip,$(FREETZ_GCC_FLOAT_ABI))-float 
     45#TARGET_CFLAGS_FLOAT_ABI     := $(if $(call qstrip,$(FREETZ_GCC_FLOAT_ABI)),-m$(call qstrip,$(FREETZ_GCC_FLOAT_ABI))-float -Wa,-m$(call qstrip,$(FREETZ_GCC_FLOAT_ABI))-float) 
    4646ifneq ($(filter -march=% -mcpu=% -mtune=% -m%-float,$(call qstrip,$(FREETZ_TARGET_CFLAGS))),) 
    4747$(error Please remove any CPU and architecture related flags (-march/-mcpu/-mtune/-m*-float) \ 
  • trunk/toolchain/make/toolchain-common.in

    r14458 r14473  
    1616 
    1717GCC_COMMON_CONFIGURE_OPTIONS_ARCH_ABI:=--with-arch=$(call qstrip,$(FREETZ_GCC_ARCH)) 
    18 GCC_COMMON_CONFIGURE_OPTIONS_ARCH_ABI+=--with-abi=$(call qstrip,$(FREETZ_GCC_ABI)) 
    19 GCC_COMMON_CONFIGURE_OPTIONS_ARCH_ABI+=--with-float=$(call qstrip,$(FREETZ_GCC_FLOAT_ABI)) 
     18GCC_COMMON_CONFIGURE_OPTIONS_ARCH_ABI+=$(if $(call qstrip,$(FREETZ_GCC_ABI)),--with-abi=$(call qstrip,$(FREETZ_GCC_ABI))) 
     19GCC_COMMON_CONFIGURE_OPTIONS_ARCH_ABI+=$(if $(call qstrip,$(FREETZ_GCC_FLOAT_ABI)),--with-float=$(call qstrip,$(FREETZ_GCC_FLOAT_ABI))) 
    2020 
    2121BINUTILS_BINARIES_BIN := addr2line ar as c++filt elfedit gprof ld nm objcopy objdump ranlib readelf size strings strip 
Hinweis: Hilfe zur Verwendung der Changeset-Ansicht finden Sie unter TracChangeset.