blob: c1e0f6f4d1089df8080418ba22bca146cff2f23f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Contributor: Vojtech Horky <vojta . horky at-symbol seznam . cz>
# Contributor: Daniel Hillenbrand < codeworkx at bbqlinux dot org >
# Maintainer: Liao Junxuan <mikeljx at 126 dot com>
pkgname=mipsel-elf-binutils
_pkgname=binutils
_target="mipsel-elf"
pkgver=2.41
pkgrel=1
pkgdesc="A collection of binary tools for baremetal MIPS."
url="http://www.gnu.org/software/binutils/"
arch=('x86_64')
license=('GPL')
#checkdepends=(debuginfod bc)
depends=()
source=("https://ftp.gnu.org/gnu/binutils/${_pkgname}-${pkgver}.tar.xz")
sha256sums=('ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450')
_sysroot="/usr/lib/${_target}"
prepare() {
cd ""$srcdir""/${_pkgname}-${pkgver}
# Hack - see native package for details
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
}
build() {
cd ""$srcdir""/${_pkgname}-${pkgver}
mkdir -p binutils-build && cd binutils-build
../configure \
--prefix=/usr \
--infodir=/usr/share/info/${_target} \
--target="${_target}" --build="$CHOST" --host="$CHOST" \
--disable-werror \
--disable-nls \
--with-gcc --with-gnu-as --with-gnu-ld \
--without-included-gettext
make all
}
# check() {
# cd ""$srcdir""/${_pkgname}-${pkgver}
# cd binutils-build
#
# # From riscv32-elf-binutils
# # unset LDFLAGS as testsuite makes assumptions about which ones are active
# # do not abort on errors - manually check log files
# make LDFLAGS="" -k check || true
# }
package() {
cd ""$srcdir""/${_pkgname}-${pkgver}
cd binutils-build
make DESTDIR="""$pkgdir""" install
rm "$pkgdir"/usr/lib/bfd-plugins/libdep.so
}
|