Source: binutils Version: 2.43.1-5 Severity: normal Tags: patch User: debian-sparc@lists.debian.org Usertags: sparc X-Debbugs-Cc: debian-sparc@lists.debian.org
Hello, I would like to have a basic cross-toolchain for 32-bit sparc in Debian so that I can cross-compile rustc and the kernel for regular testing. The first package which needs to be enabled is binutils. The attached patch just does that, but feel free to adjust it to your needs. Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
diff -Nru binutils/binutils-2.43.1/debian/control.in binutils-sparc/binutils-2.43.1/debian/control.in --- binutils/binutils-2.43.1/debian/control.in 2024-09-18 10:35:40.000000000 +0200 +++ binutils-sparc/binutils-2.43.1/debian/control.in 2024-10-18 21:45:24.869593579 +0200 @@ -21,6 +21,7 @@ g++-powerpc64-linux-gnu [amd64 i386 s390x x32] <!nocheck>, g++-riscv64-linux-gnu [amd64 arm64 i386 ppc64el s390x x32] <!nocheck>, g++-sh4-linux-gnu [amd64 i386 x32] <!nocheck>, + g++-sparc-linux-gnu [amd64 i386 x32] <!nocheck>, g++-sparc64-linux-gnu [amd64 i386 x32] <!nocheck>, g++-i686-linux-gnu [amd64 arm64 ppc64el s390x x32] <!nocheck>, g++-x86-64-linux-gnu [arm64 i386 ppc64el s390x] <!nocheck>, diff -Nru binutils/binutils-2.43.1/debian/rules binutils-sparc/binutils-2.43.1/debian/rules --- binutils/binutils-2.43.1/debian/rules 2024-08-18 13:01:48.000000000 +0200 +++ binutils-sparc/binutils-2.43.1/debian/rules 2024-10-18 16:16:16.122493650 +0200 @@ -104,7 +104,7 @@ NATIVE_ARCHS ?= amd64 i386 arm64 armhf armel ppc64el s390x NATIVE_ARCHS += alpha arc hppa ia64 loong64 m68k powerpc ppc64 \ - riscv64 sh4 sparc64 x32 + riscv64 sh4 sparc sparc64 x32 NATIVE_ARCHS += hurd-amd64 hurd-i386 #NATIVE_ARCHS += nios2 or1k s390 sparc @@ -125,17 +125,17 @@ CROSS_ARCHS ?= amd64 i386 x32 \ s390x ppc64el arm64 armhf armel \ alpha arc hppa loong64 m68k \ - powerpc ppc64 sh4 sparc64 \ + powerpc ppc64 sh4 sparc sparc64 \ ia64 riscv64 \ hurd-amd64 hurd-i386 else ifeq ($(DEB_HOST_ARCH),arm64) CROSS_ARCHS ?= amd64 armel armhf i386 powerpc ppc64el riscv64 s390x \ - alpha arc hppa loong64 m68k sh4 sparc64 x32 + alpha arc hppa loong64 m68k sh4 sparc sparc64 x32 else ifeq ($(DEB_HOST_ARCH),ppc64) CROSS_ARCHS ?= ppc64el else ifeq ($(DEB_HOST_ARCH),ppc64el) CROSS_ARCHS ?= powerpc ppc64 amd64 armel armhf arm64 i386 riscv64 s390x \ - alpha arc hppa loong64 m68k sh4 sparc64 x32 + alpha arc hppa loong64 m68k sh4 sparc sparc64 x32 else ifeq ($(DEB_HOST_ARCH),s390x) CROSS_ARCHS ?= amd64 armhf arm64 i386 riscv64 powerpc ppc64 ppc64el endif @@ -191,6 +191,7 @@ HOST_ARCHS_m68k = amd64 i386 x32 arm64 ppc64el HOST_ARCHS_ppc64 = amd64 i386 x32 ppc64el s390x HOST_ARCHS_sh4 = amd64 i386 x32 arm64 ppc64el +HOST_ARCHS_sparc = amd64 i386 x32 arm64 ppc64el HOST_ARCHS_sparc64 = amd64 i386 x32 arm64 ppc64el HOST_ARCHS_x32 = amd64 arm64 i386 ppc64el