From 9066d8b96553d849a7d18472c0d458dfe5fa2907 Mon Sep 17 00:00:00 2001 From: Ivan Sokolov Date: Tue, 30 Apr 2019 18:25:51 +0300 Subject: [PATCH 1/4] New package: cross-arm-none-eabi-binutils-2.32 --- srcpkgs/cross-arm-none-eabi-binutils/template | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 srcpkgs/cross-arm-none-eabi-binutils/template diff --git a/srcpkgs/cross-arm-none-eabi-binutils/template b/srcpkgs/cross-arm-none-eabi-binutils/template new file mode 100644 index 00000000000000..3bee321d7c824c --- /dev/null +++ b/srcpkgs/cross-arm-none-eabi-binutils/template @@ -0,0 +1,37 @@ +# Template file for 'cross-${_triplet}-${_pkgname}' +_triplet=arm-none-eabi +_pkgname=binutils +pkgname=cross-${_triplet}-${_pkgname} +version=2.32 +revision=1 +wrksrc="${_pkgname}-${version}" +build_style=gnu-configure +configure_args=" + --disable-nls + --enable-deterministic-archives + --enable-interwork + --enable-ld + --enable-multilib + --enable-plugins + --host=${XBPS_CROSS_TRIPLET} + --prefix=/usr + --target=${_triplet} + --with-gnu-as + --with-gnu-ld + --with-sysroot=/usr/${_triplet} + --with-system-zlib + --without-isl +" +hostmakedepends="autoconf automake bison flex perl" +makedepends="zlib-devel" +short_desc="GNU binary utilities" +maintainer="Ivan Sokolov " +license="GPL-3.0-or-later" +homepage="https://www.gnu.org/software/${_pkgname}/" +distfiles="${GNU_SITE}/${_pkgname}/${_pkgname}-${version}.tar.xz" +checksum=0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04 +nocross=yes + +post_install() { + rm -fr ${DESTDIR}/usr/share/info +} From 2701d8ab367f7d641e36a16e5df6582911206974 Mon Sep 17 00:00:00 2001 From: Ivan Sokolov Date: Mon, 6 May 2019 04:09:29 +0300 Subject: [PATCH 2/4] New package: cross-arm-none-eabi-gcc-8.3.0 --- srcpkgs/cross-arm-none-eabi-gcc/template | 68 ++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 srcpkgs/cross-arm-none-eabi-gcc/template diff --git a/srcpkgs/cross-arm-none-eabi-gcc/template b/srcpkgs/cross-arm-none-eabi-gcc/template new file mode 100644 index 00000000000000..7c26e9fdd66e56 --- /dev/null +++ b/srcpkgs/cross-arm-none-eabi-gcc/template @@ -0,0 +1,68 @@ +# Template file for 'cross-${_triplet}-${_pkgname}' +_triplet=arm-none-eabi +_pkgname=gcc +pkgname=cross-${_triplet}-${_pkgname} +version=8.3.0 +revision=1 +wrksrc="${_pkgname}-${version}" +build_style=gnu-configure +configure_args=" + --disable-decimal-float + --disable-libffi + --disable-libgomp + --disable-libmudflap + --disable-libquadmath + --disable-libssp + --disable-libstdcxx-pch + --disable-nls + --disable-shared + --disable-threads + --disable-tls + --disable-werror + --enable-__cxa_atexit + --enable-c99 + --enable-gnu-indirect-function + --enable-interwork + --enable-languages=c,c++ + --enable-long-long + --enable-multilib + --enable-plugins + --host=${XBPS_CROSS_TRIPLET} + --libdir=/usr/lib + --libexecdir=/usr/lib + --prefix=/usr + --target=${_triplet} + --with-gmp + --with-gnu-as + --with-gnu-ld + --with-headers=/usr/${_triplet}/include + --with-host-libstdcxx='-static-libgcc' + --with-isl + --with-libelf + --with-mpc + --with-mpfr + --with-multilib-list=rmprofile + --with-native-system-header-dir=/include + --with-newlib + --with-python-dir=share/${_pkgname}-${_triplet} + --with-sysroot=/usr/${_triplet} + --with-system-zlib +" +make_build_target="all-gcc" +make_install_target="install-gcc" +hostmakedepends="autoconf automake cross-arm-none-eabi-binutils bison flex perl" +makedepends="gmp-devel isl15-devel libmpc-devel mpfr-devel zlib-devel" +depends="cross-arm-none-eabi-binutils" +short_desc="GNU Compiler Collection" +maintainer="Ivan Sokolov " +license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later" +homepage="https://gcc.gnu.org" +distfiles="${GNU_SITE}/${_pkgname}/${_pkgname}-${version}/${_pkgname}-${version}.tar.xz" +checksum=64baadfe6cc0f4947a84cb12d7f0dfaf45bb58b7e92461639596c21e02d97d2c +alternatives="arm-none-eabi:/usr/bin/arm-none-eabi-cc:/usr/bin/arm-none-eabi-gcc" +nocross=yes +nopie=yes + +post_install() { + rm -fr ${DESTDIR}/usr/share/{info,man/man7} +} From eb0ace9f6e9f857b36307a83d58559102051066e Mon Sep 17 00:00:00 2001 From: Ivan Sokolov Date: Wed, 8 May 2019 23:00:16 +0300 Subject: [PATCH 3/4] New package: cross-arm-none-eabi-newlib-3.1.0.20181231 --- srcpkgs/cross-arm-none-eabi-newlib/template | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/cross-arm-none-eabi-newlib/template diff --git a/srcpkgs/cross-arm-none-eabi-newlib/template b/srcpkgs/cross-arm-none-eabi-newlib/template new file mode 100644 index 00000000000000..076c52c93f3ebf --- /dev/null +++ b/srcpkgs/cross-arm-none-eabi-newlib/template @@ -0,0 +1,28 @@ +# Template file for 'cross-${_triplet}-${_pkgname}' +_triplet=arm-none-eabi +_pkgname=newlib +pkgname=cross-${_triplet}-${_pkgname} +version=3.1.0.20181231 +revision=1 +wrksrc="${_pkgname}-${version}" +build_style=gnu-configure +configure_args=" + --disable-newlib-supplied-syscalls + --disable-nls + --enable-interwork + --enable-newlib-io-long-long + --enable-newlib-register-fini + --host=${XBPS_CROSS_TRIPLET} + --prefix=/usr + --target=${_triplet} + --with-gnu-as + --with-gnu-ld +" +hostmakedepends="cross-arm-none-eabi-binutils cross-arm-none-eabi-gcc" +short_desc="C library intended for use on embedded systems" +maintainer="Ivan Sokolov " +license="GPL-3.0-or-later" +homepage="https://www.sourceware.org/${_pkgname}/" +distfiles="ftp://sources.redhat.com/pub/${_pkgname}/${_pkgname}-${version}.tar.gz" +checksum=9e12fea7297648b114434033ed4458755afe7b9b6c7d58123389e82bd37681c0 +nostrip=yes From 5a0f8c8a323623ab28d710e0c5dd3eb7672acc98 Mon Sep 17 00:00:00 2001 From: Ivan Sokolov Date: Wed, 8 May 2019 23:16:24 +0300 Subject: [PATCH 4/4] New package: cross-arm-none-eabi-gdb-8.2.1 --- srcpkgs/cross-arm-none-eabi-gdb/template | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 srcpkgs/cross-arm-none-eabi-gdb/template diff --git a/srcpkgs/cross-arm-none-eabi-gdb/template b/srcpkgs/cross-arm-none-eabi-gdb/template new file mode 100644 index 00000000000000..6763e0f4283b8e --- /dev/null +++ b/srcpkgs/cross-arm-none-eabi-gdb/template @@ -0,0 +1,43 @@ +# Template file for 'cross-${_triplet}-${_pkgname}' +_triplet=arm-none-eabi +_pkgname=gdb +pkgname=cross-${_triplet}-${_pkgname} +version=8.2.1 +revision=1 +wrksrc="${_pkgname}-${version}" +build_style=gnu-configure +pycompile_dirs="/usr/share/${_pkgname}" +configure_args=" + --disable-gdbserver + --disable-nls + --disable-werror + --host=${XBPS_CROSS_TRIPLE} + --prefix=/usr + --target=${_triplet} + --with-babeltrace + --with-expat + --with-mpfr + --with-system-readline + --with-system-zlib + --without-isl + $(vopt_with guile) + $(vopt_with python) +" +hostmakedepends="autoconf automake bison flex pkg-config" +makedepends="babeltrace-devel expat-devel mpfr-devel ncurses-devel readline-devel zlib-devel $(vopt_if guile guile-devel) $(vopt_if python 'python3-devel gettext-libs')" +short_desc="GNU Debugger" +maintainer="Ivan Sokolov " +license="GPL-3.0-or-later" +homepage="https://www.gnu.org/software/${_pkgname}" +distfiles="${GNU_SITE}/${_pkgname}/${_pkgname}-${version}.tar.xz" +checksum=0a6a432907a03c5c8eaad3c3cffd50c00a40c3a5e3c4039440624bae703f2202 +build_options="guile python" +# don't enable guile and python interfaces until they are moved into +# platform independent packages +build_options_default=" " +nocross=yes + +post_install() { + # resolve conflicts with binutils and native gdb + rm -fr ${DESTDIR}/usr/{share/{locale,gdb,info},include} +}