gcc: add multilib m4/m4-nofpu config for sh4
authorZoltan HERPAI <wigyori@uid0.hu>
Sun, 30 Jan 2022 12:47:12 +0000 (13:47 +0100)
committerZoltan HERPAI <wigyori@uid0.hu>
Mon, 31 Jan 2022 17:50:55 +0000 (18:50 +0100)
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
toolchain/gcc/common.mk

index 424e3ab10c5f41cdf415369c0db1207a00742d32..bc98e5f3d9e4d8a7909c072ad0280a0340105336 100644 (file)
@@ -80,7 +80,9 @@ else
   GRAPHITE_CONFIGURE:= --without-isl --without-cloog
 endif
 
-DISABLE_MULTILIB:=--disable-multilib
+ifneq ($(CONFIG_sh4),y)
+       DISABLE_MULTILIB:=--disable-multilib
+endif
 
 GCC_CONFIGURE:= \
        SHELL="$(BASH)" \
@@ -145,6 +147,11 @@ ifdef CONFIG_sparc
                --with-long-double-128
 endif
 
+ifdef CONFIG_sh4
+  GCC_CONFIGURE+= \
+       --with-multilib-list=m4,m4-nofpu
+endif
+
 ifneq ($(GCC_ARCH),)
   GCC_CONFIGURE+= --with-arch=$(GCC_ARCH)
 endif