[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#932394: gcc-defaults-ports: enable riscv64 cross-compilers for arm64



Source: gcc-defaults-ports
Version: 1.182.1
Severity: wishlist
Tags: patch
X-Debbugs-Cc: debian-riscv@lists.debian.org

I don't see cross-compilers for riscv64 on an arm64 system
(e.g. gcc-riscv64-linux-gnu:arm64). It would be useful to me, at
least...

I *think* the following patch enables it, but I haven't done a full
build to verify.

Thanks for considering!


live well,
  vagrant

--- rules.orig	2019-07-18 14:48:02.313081245 -0300
+++ rules	2019-07-18 14:49:24.466493017 -0300
@@ -352,7 +352,7 @@
 HOST_ARCHS_powerpc = amd64 i386 x32 ppc64el
 HOST_ARCHS_ppc64 = amd64 i386 x32 ppc64el
 HOST_ARCHS_ppc64el = amd64 i386 x32 ppc64
-HOST_ARCHS_riscv64 = amd64 i386 x32
+HOST_ARCHS_riscv64 = amd64 arm64 i386 x32
 HOST_ARCHS_s390x = amd64 i386 x32
 HOST_ARCHS_sh4 = amd64 i386 x32
 HOST_ARCHS_sparc64 = amd64 i386 x32
@@ -375,7 +375,7 @@
       CROSS_ARCHS =
     endif
   else # -ports package
-    ifneq (,$(filter $(DEB_HOST_ARCH),amd64 i386 x32))
+    ifneq (,$(filter $(DEB_HOST_ARCH),amd64 arm64 i386 x32))
       CROSS_ARCHS  ?= alpha hppa m68k ppc64 riscv64 sh4 sparc64 \
 		$(if $(filter $(vendor), Ubuntu), mips mipsel mips64el, powerpc) \
 		$(if $(filter $(DEB_HOST_ARCH), amd64 i386), x32)

Attachment: signature.asc
Description: PGP signature


Reply to: