mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
toolchain: ARM: Fix toolchain compilation for gcc 8.x
This commit is contained in:
parent
67cd77db04
commit
6b1b71e667
@ -188,26 +188,6 @@ ifeq ($(DUMP),1)
|
|||||||
endif
|
endif
|
||||||
ifneq ($(findstring arm,$(ARCH)),)
|
ifneq ($(findstring arm,$(ARCH)),)
|
||||||
CPU_TYPE ?= xscale
|
CPU_TYPE ?= xscale
|
||||||
CPU_CFLAGS_arm920t = -mcpu=arm920t
|
|
||||||
CPU_CFLAGS_arm926ej-s = -mcpu=arm926ej-s
|
|
||||||
CPU_CFLAGS_arm1136j-s = -mcpu=arm1136j-s
|
|
||||||
CPU_CFLAGS_arm1176jzf-s = -mcpu=arm1176jzf-s
|
|
||||||
CPU_CFLAGS_cortex-a5 = -mcpu=cortex-a5
|
|
||||||
CPU_CFLAGS_cortex-a7 = -mcpu=cortex-a7
|
|
||||||
CPU_CFLAGS_cortex-a8 = -mcpu=cortex-a8
|
|
||||||
CPU_CFLAGS_cortex-a9 = -mcpu=cortex-a9
|
|
||||||
CPU_CFLAGS_cortex-a15 = -mcpu=cortex-a15
|
|
||||||
CPU_CFLAGS_cortex-a53 = -mcpu=cortex-a53
|
|
||||||
CPU_CFLAGS_cortex-a72 = -mcpu=cortex-a72
|
|
||||||
CPU_CFLAGS_fa526 = -mcpu=fa526
|
|
||||||
CPU_CFLAGS_mpcore = -mcpu=mpcore
|
|
||||||
CPU_CFLAGS_xscale = -mcpu=xscale
|
|
||||||
ifeq ($(CONFIG_SOFT_FLOAT),)
|
|
||||||
CPU_CFLAGS_neon = -mfpu=neon
|
|
||||||
CPU_CFLAGS_vfp = -mfpu=vfp
|
|
||||||
CPU_CFLAGS_vfpv3 = -mfpu=vfpv3-d16
|
|
||||||
CPU_CFLAGS_neon-vfpv4 = -mfpu=neon-vfpv4
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(ARCH),powerpc)
|
ifeq ($(ARCH),powerpc)
|
||||||
CPU_CFLAGS_603e:=-mcpu=603e
|
CPU_CFLAGS_603e:=-mcpu=603e
|
||||||
|
@ -114,7 +114,7 @@ define Build/Configure
|
|||||||
-no-opengl \
|
-no-opengl \
|
||||||
-no-directfb \
|
-no-directfb \
|
||||||
-no-xcb \
|
-no-xcb \
|
||||||
-openssl-runtime \
|
-no-openssl \
|
||||||
-qt-zlib \
|
-qt-zlib \
|
||||||
-qt-pcre \
|
-qt-pcre \
|
||||||
-qt-freetype \
|
-qt-freetype \
|
||||||
|
@ -174,9 +174,13 @@ ifneq ($(GCC_ARCH),)
|
|||||||
GCC_CONFIGURE+= --with-arch=$(GCC_ARCH)
|
GCC_CONFIGURE+= --with-arch=$(GCC_ARCH)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(CONFIG_SOFT_FLOAT),y)
|
ifeq ($(CONFIG_arm),y)
|
||||||
ifeq ($(CONFIG_arm),y)
|
GCC_CONFIGURE+= \
|
||||||
|
--with-cpu=$(word 1, $(subst +," ,$(CONFIG_CPU_TYPE)))
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_SOFT_FLOAT),y)
|
||||||
GCC_CONFIGURE+= \
|
GCC_CONFIGURE+= \
|
||||||
|
--with-fpu=$(word 2, $(subst +, ",$(CONFIG_CPU_TYPE))) \
|
||||||
--with-float=hard
|
--with-float=hard
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user