updated file structure
This commit is contained in:
20
.devcontainer/files/src/build-binutils.sh
Normal file
20
.devcontainer/files/src/build-binutils.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
BINUTILS_VERSION=$1
|
||||
|
||||
|
||||
export PREFIX=$2
|
||||
#export TARGET=x86_64-elf
|
||||
export TARGET=i686-elf
|
||||
export PATH="$PREFIX/bin:$PATH"
|
||||
|
||||
cd $PREFIX/src
|
||||
mkdir build-binutils
|
||||
cd build-binutils
|
||||
../binutils-${BINUTILS_VERSION}/configure --target=$TARGET --prefix="$PREFIX" --with-sysroot --disable-nls --disable-werror
|
||||
make -j `nproc`
|
||||
make install
|
||||
|
||||
cd $PREFIX/src
|
||||
#rm -rf build-binutils.sh binutils-${BINUTILS_VERSION}
|
||||
# rm -rf build-binutils
|
||||
24
.devcontainer/files/src/build-gcc.sh
Normal file
24
.devcontainer/files/src/build-gcc.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
GCC_VERSION=$1
|
||||
|
||||
export PREFIX=$2
|
||||
#export TARGET=x86_64-elf
|
||||
export TARGET=i686-elf
|
||||
export PATH="$PREFIX/bin:$PATH"
|
||||
|
||||
cd $PREFIX/src/gcc-${GCC_VERSION}/gcc
|
||||
patch < config.gcc.patch
|
||||
|
||||
cd $PREFIX/src
|
||||
mkdir build-gcc
|
||||
cd build-gcc
|
||||
../gcc-${GCC_VERSION}/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers
|
||||
make -j `nproc` all-gcc
|
||||
make -j `nproc` all-target-libgcc
|
||||
make install-gcc
|
||||
make install-target-libgcc
|
||||
|
||||
cd $PREFIX/src
|
||||
#rm -rf build-gcc.sh gcc-${GCC_VERSION}
|
||||
# rm -rf build-gcc
|
||||
Reference in New Issue
Block a user