mirror of https://github.com/tailix/cross.git
Initial commit
This commit is contained in:
commit
b7315b7fd4
|
@ -0,0 +1,20 @@
|
||||||
|
/src/*
|
||||||
|
!/src/.keep
|
||||||
|
|
||||||
|
/root/*
|
||||||
|
!/root/.keep
|
||||||
|
|
||||||
|
/build/i386/binutils/*
|
||||||
|
!/build/i386/binutils/.keep
|
||||||
|
/build/i386/gcc/*
|
||||||
|
!/build/i386/gcc/.keep
|
||||||
|
|
||||||
|
/build/riscv64/binutils/*
|
||||||
|
!/build/riscv64/binutils/.keep
|
||||||
|
/build/riscv64/gcc/*
|
||||||
|
!/build/riscv64/gcc/.keep
|
||||||
|
|
||||||
|
/build/x86_64/binutils/*
|
||||||
|
!/build/x86_64/binutils/.keep
|
||||||
|
/build/x86_64/gcc/*
|
||||||
|
!/build/x86_64/gcc/.keep
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2022 Alex Kotov
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
REPO="$(realpath "$(dirname "$(realpath "$0")")/../..")"
|
||||||
|
|
||||||
|
ARCH='i386'
|
||||||
|
TARGET="$ARCH-elf"
|
||||||
|
|
||||||
|
ROOT="$REPO/root"
|
||||||
|
PATH="$ROOT/bin:$PATH"
|
||||||
|
|
||||||
|
if [ -z "$J" ]; then J='1'; fi
|
||||||
|
|
||||||
|
cd "$REPO/build/$ARCH/binutils"
|
||||||
|
"$REPO/src/binutils-2.37/configure" --target="$TARGET" --prefix="$ROOT" --with-sysroot --disable-nls --disable-werror
|
||||||
|
make -j"$J"
|
||||||
|
make install
|
||||||
|
|
||||||
|
cd "$REPO/build/$ARCH/gcc"
|
||||||
|
"$REPO/src/gcc-11.2.0/configure" --target="$TARGET" --prefix="$ROOT" --disable-nls --enable-languages=c,c++ --without-headers
|
||||||
|
make -j"$J" all-gcc all-target-libgcc
|
||||||
|
make install-gcc install-target-libgcc
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
REPO="$(realpath "$(dirname "$(realpath "$0")")/../..")"
|
||||||
|
|
||||||
|
ARCH='riscv64'
|
||||||
|
TARGET="$ARCH-elf"
|
||||||
|
|
||||||
|
ROOT="$REPO/root"
|
||||||
|
PATH="$ROOT/bin:$PATH"
|
||||||
|
|
||||||
|
if [ -z "$J" ]; then J='1'; fi
|
||||||
|
|
||||||
|
cd "$REPO/build/$ARCH/binutils"
|
||||||
|
"$REPO/src/binutils-2.37/configure" --target="$TARGET" --prefix="$ROOT" --with-sysroot --disable-nls --disable-werror
|
||||||
|
make -j"$J"
|
||||||
|
make install
|
||||||
|
|
||||||
|
cd "$REPO/build/$ARCH/gcc"
|
||||||
|
"$REPO/src/gcc-11.2.0/configure" --target="$TARGET" --prefix="$ROOT" --disable-nls --enable-languages=c,c++ --without-headers
|
||||||
|
make -j"$J" all-gcc all-target-libgcc
|
||||||
|
make install-gcc install-target-libgcc
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
REPO="$(realpath "$(dirname "$(realpath "$0")")/../..")"
|
||||||
|
|
||||||
|
ARCH='x86_64'
|
||||||
|
TARGET="$ARCH-elf"
|
||||||
|
|
||||||
|
ROOT="$REPO/root"
|
||||||
|
PATH="$ROOT/bin:$PATH"
|
||||||
|
|
||||||
|
if [ -z "$J" ]; then J='1'; fi
|
||||||
|
|
||||||
|
cd "$REPO/build/$ARCH/binutils"
|
||||||
|
"$REPO/binutils-2.37/configure" --target="$TARGET" --prefix="$ROOT" --with-sysroot --disable-nls --disable-werror
|
||||||
|
make -j"$J"
|
||||||
|
make install
|
||||||
|
|
||||||
|
cd "$REPO/build/$ARCH/gcc"
|
||||||
|
"$REPO/gcc-11.2.0/configure" --target="$TARGET" --prefix="$ROOT" --disable-nls --enable-languages=c,c++ --without-headers
|
||||||
|
make -j"$J" all-gcc all-target-libgcc
|
||||||
|
make install-gcc install-target-libgcc
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
REPO="$(realpath "$(dirname "$(realpath "$0")")")"
|
||||||
|
|
||||||
|
cd "$REPO"
|
||||||
|
|
||||||
|
SRC="$REPO/src"
|
||||||
|
|
||||||
|
wget -nc -i 'wget.txt' -P "$SRC"
|
||||||
|
sha256sum -c 'sha256sums.txt'
|
||||||
|
|
||||||
|
tar -xf "$SRC/binutils-2.37.tar.xz" -C "$SRC"
|
||||||
|
tar -xf "$SRC/gcc-11.2.0.tar.xz" -C "$SRC"
|
|
@ -0,0 +1,2 @@
|
||||||
|
820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c src/binutils-2.37.tar.xz
|
||||||
|
d08edc536b54c372a1010ff6619dd274c0f1603aa49212ba20f7aa2cda36fa8b src/gcc-11.2.0.tar.xz
|
Loading…
Reference in New Issue