misc: Misc adjustments

This commit is contained in:
mintsuki 2021-02-25 06:12:32 +01:00
parent 8ff991f14a
commit 7e786cee81
4 changed files with 8 additions and 16 deletions

6
.gitignore vendored
View File

@ -1,6 +1,5 @@
bin /bin
/**/*.gen /toolchain
/**/*.map
/**/*.o /**/*.o
/**/*.d /**/*.d
/**/*.a /**/*.a
@ -13,6 +12,5 @@ bin
/bochsout.txt /bochsout.txt
/bx_enh_dbg.ini /bx_enh_dbg.ini
.vscode .vscode
/limine-install
/stivale /stivale
/test_image /test_image

View File

@ -33,14 +33,13 @@ bootloader: | decompressor stage23
bootloader-clean: stage23-clean decompressor-clean bootloader-clean: stage23-clean decompressor-clean
distclean: clean bootloader-clean test-clean distclean: clean bootloader-clean test-clean
rm -rf bin stivale rm -rf bin stivale toolchain
tinf-clean: tinf-clean:
cd tinf && rm -rf *.o *.d cd tinf && rm -rf *.o *.d
stivale: stivale:
git clone https://github.com/stivale/stivale.git git clone https://github.com/stivale/stivale.git
cd stivale && git checkout d0a7ca5642d89654f8d688c2481c2771a8653c99
stage23: tinf-clean stivale stage23: tinf-clean stivale
$(MAKE) -C stage23 all $(MAKE) -C stage23 all
@ -59,7 +58,7 @@ test-clean:
rm -rf test_image test.hdd test.iso rm -rf test_image test.hdd test.iso
toolchain: toolchain:
cd toolchain && ./make_toolchain.sh -j`nproc` ./make_toolchain.sh ./toolchain -j`nproc`
test.hdd: test.hdd:
rm -f test.hdd rm -f test.hdd
@ -76,7 +75,6 @@ echfs-test: | test-clean test.hdd bootloader all
echfs-utils -g -p0 test.hdd import test/test.elf boot/test.elf echfs-utils -g -p0 test.hdd import test/test.elf boot/test.elf
echfs-utils -g -p0 test.hdd import test/bg.bmp boot/bg.bmp echfs-utils -g -p0 test.hdd import test/bg.bmp boot/bg.bmp
echfs-utils -g -p0 test.hdd import bin/limine.sys boot/limine.sys echfs-utils -g -p0 test.hdd import bin/limine.sys boot/limine.sys
echfs-utils -g -p0 test.hdd import bin/limine.map boot/limine.map
bin/limine-install test.hdd bin/limine-install test.hdd
qemu-system-x86_64 -net none -smp 4 -enable-kvm -cpu host -hda test.hdd -debugcon stdio qemu-system-x86_64 -net none -smp 4 -enable-kvm -cpu host -hda test.hdd -debugcon stdio

View File

@ -3,17 +3,16 @@
set -e set -e
set -x set -x
PREFIX="$(pwd)"
TARGET=i386-elf TARGET=i386-elf
BINUTILSVERSION=2.36.1 BINUTILSVERSION=2.36.1
GCCVERSION=10.2.0 GCCVERSION=10.2.0
NASMVERSION=2.15.05 NASMVERSION=2.15.05
GZIPVERSION=1.10 GZIPVERSION=1.10
if [ -z "$MAKEFLAGS" ]; then mkdir -p "$1" && cd "$1"
MAKEFLAGS="$1" PREFIX="$(pwd)"
fi
export MAKEFLAGS export MAKEFLAGS="$2"
export PATH="$PREFIX/bin:$PATH" export PATH="$PREFIX/bin:$PATH"

View File

@ -1,3 +0,0 @@
*
!.gitignore
!make_toolchain.sh