added binutils toolchain build
This commit is contained in:
29
build.sh
29
build.sh
@@ -518,6 +518,32 @@ toolchain_xz() {
|
||||
cd "$SOURCES" && rm -rf xz-$XZ_VERSION
|
||||
}
|
||||
|
||||
toolchain_binutils() {
|
||||
cd "$SOURCES" && tar xf binutils-$BINUTILS_VERSION.tar.xz && cd binutils-$BINUTILS_VERSION
|
||||
|
||||
sed '6031s/$add_dir//' -i ltmain.sh
|
||||
|
||||
mkdir -p build && cd build
|
||||
|
||||
../configure \
|
||||
--prefix=/usr \
|
||||
--build=$(../config.guess) \
|
||||
--host=$TARGET \
|
||||
--disable-nls \
|
||||
--enable-shared \
|
||||
--enable-gprofng=no \
|
||||
--disable-werror \
|
||||
--enable-64-bit-bfd \
|
||||
--enable-new-dtags \
|
||||
--enable-default-hash-style=gnu
|
||||
|
||||
make && make DESTDIR="$SYSROOT" install
|
||||
|
||||
rm "$SYSROOT"/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes,sframe}.{a,la}
|
||||
|
||||
cd "$SOURCES" && rm -rf binutils-$BINUTILS_VERSION
|
||||
}
|
||||
|
||||
#bootstrap_binutils
|
||||
#bootstap_gcc
|
||||
#bootstap_linux
|
||||
@@ -537,4 +563,5 @@ toolchain_xz() {
|
||||
#toolchain_patch
|
||||
#toolchain_sed
|
||||
#toolchain_tar
|
||||
toolchain_xz
|
||||
#toolchain_xz
|
||||
toolchain_binutils
|
||||
Reference in New Issue
Block a user