Use new version of qemu to avoid problems when changing to long mode

This commit is contained in:
Thomas Lovén 2017-11-14 21:26:36 +01:00
parent a44876fd2e
commit aee015eebc
3 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
FROM alpine
FROM alpine:3.6
ADD build-toolchain.sh /opt/build-toolchain.sh

View File

@ -5,7 +5,8 @@ apk add gmp-dev mpfr-dev mpc1-dev
apk add make
apk add grub-bios xorriso
apk add qemu-system-x86_64 gdb
apk add gdb
apk --update add qemu-system-x86_64 --repository http://dl-cdn.alpinelinux.org/alpine/v3.7/main
rm -rf /var/cache/apk/*
@ -24,7 +25,7 @@ mkdir binutils-build && cd binutils-build
--disable-werror \
--with-sysroot \
make
make -j 4
make install
cd /opt
@ -37,7 +38,7 @@ mkdir gcc-build && cd gcc-build
--enable-languages=c \
--without-headers \
make all-gcc all-target-libgcc
make all-gcc all-target-libgcc -j 4
make install-gcc install-target-libgcc
apk del build-base

View File

@ -2,4 +2,4 @@
if [ -z ${MITTOS64+x} ]; then >&2 echo "Unsupported environment! See README"; exit 1; fi
/usr/bin/gdb -q -x ${BUILDROOT}toolchain/gdbinit
/usr/bin/gdb -q -x ${BUILDROOT}toolchain/gdbinit -se ${BUILDROOT}sysroot/kernel