build kernel as 32-bit ELF for now so GRUB can recognize it as multiboot

This commit is contained in:
Josh Holtrop 2020-10-15 19:46:53 -04:00
parent 0adc6e395c
commit 6053745ee9
5 changed files with 7 additions and 7 deletions

10
.gitignore vendored
View File

@ -5,9 +5,9 @@
*.map
*.bin
/.rscons*
/x86_64-cross/.rscons*
/x86_64-cross/build*/
/x86_64-cross/*.xz
/x86_64-cross/binutils-*/
/x86_64-cross/gcc-*/
/cross/.rscons*
/cross/build*/
/cross/*.xz
/cross/binutils-*/
/cross/gcc-*/
/build/

View File

@ -1,5 +1,5 @@
configure do
check_c_compiler "x86_64-elf-gcc", on_fail: "Install cross compiler from x86_64-cross directory"
check_c_compiler "i686-elf-gcc"
check_program "genext2fs"
check_program "grub-mkstandalone"
check_program "mformat", on_fail: "Install the mtools package"

View File

@ -32,7 +32,7 @@ if [ ! -d gcc-${GCC_VERSION} ]; then
fi
export PREFIX="$HOME/.local"
export TARGET="x86_64-elf"
export TARGET="i686-elf"
export PATH="$PREFIX/bin:$PATH"
function build_binutils()