Update to rscons 2.3.0

Move cross compiler to i686-elf-gcc directory.
Automatically build cross compiler using rscons subsidiary script.
This commit is contained in:
Josh Holtrop 2021-12-08 11:33:03 -05:00
parent 6b1de7c9d4
commit c6ae200a54
9 changed files with 31 additions and 22 deletions

12
.gitignore vendored
View File

@ -4,10 +4,10 @@
*.lst *.lst
*.map *.map
*.bin *.bin
/.rscons* .rscons*
/cross/.rscons* /i686-elf-gcc/build*/
/cross/build*/ /i686-elf-gcc/*.xz
/cross/*.xz /i686-elf-gcc/binutils-*/
/cross/binutils-*/ /i686-elf-gcc/gcc-*/
/cross/gcc-*/ /i686-elf-gcc/i686-elf-gcc/
/build/ /build/

View File

@ -1,4 +1,7 @@
path_prepend "i686-elf-gcc/i686-elf-gcc/bin"
configure do configure do
rscons "i686-elf-gcc"
check_c_compiler "i686-elf-gcc" check_c_compiler "i686-elf-gcc"
check_program "genext2fs" check_program "genext2fs"
check_program "grub-mkstandalone" check_program "grub-mkstandalone"

View File

@ -1,11 +0,0 @@
configure do
check_c_compiler "gcc"
check_program "make"
check_program "bison"
check_program "flex"
check_program "texi2any"
check_program "wget"
check_lib "gmp"
check_lib "mpc"
check_lib "mpfr"
end

2
cross/configure vendored
View File

@ -1,2 +0,0 @@
#!/bin/sh
../rscons configure

17
i686-elf-gcc/Rsconscript Normal file
View File

@ -0,0 +1,17 @@
configure do
check_c_compiler "gcc"
check_program "make"
check_program "bison"
check_program "flex"
check_program "texi2any", on_fail: "Install the texinfo package"
check_program "wget"
check_lib "gmp", on_fail: "Install the libgmp-dev package"
check_lib "mpc", on_fail: "Install the libmpc-dev package"
check_lib "mpfr", on_fail: "Install the libmpfr-dev package"
end
build do
unless File.exist?("i686-elf-gcc")
system("./build.sh")
end
end

View File

@ -31,7 +31,7 @@ if [ ! -d gcc-${GCC_VERSION} ]; then
tar xJf gcc-${GCC_VERSION}.tar.xz tar xJf gcc-${GCC_VERSION}.tar.xz
fi fi
export PREFIX="$HOME/.local" export PREFIX="$PWD/i686-elf-gcc"
export TARGET="i686-elf" export TARGET="i686-elf"
export PATH="$PREFIX/bin:$PATH" export PATH="$PREFIX/bin:$PATH"

2
i686-elf-gcc/configure vendored Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec ../rscons configure

4
rscons

File diff suppressed because one or more lines are too long