From: Zoltan HERPAI Date: Sun, 30 Jan 2022 12:47:12 +0000 (+0100) Subject: gcc: add multilib m4/m4-nofpu config for sh4 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=d8f428778115a22b4ee1d8431b001605a59b69a9;p=openwrt%2Fstaging%2Fwigyori.git gcc: add multilib m4/m4-nofpu config for sh4 Signed-off-by: Zoltan HERPAI --- diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index 0ccf55bd31..89d7135f0c 100644 --- a/toolchain/gcc/common.mk +++ b/toolchain/gcc/common.mk @@ -89,6 +89,10 @@ else GRAPHITE_CONFIGURE:= --without-isl --without-cloog endif +ifneq ($(CONFIG_sh4),y) + DISABLE_MULTILIB:=--disable-multilib +endif + GCC_CONFIGURE:= \ SHELL="$(BASH)" \ $(HOST_SOURCE_DIR)/configure \ @@ -150,6 +154,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