Don't hardcode paths

This commit is contained in:
Thomas Lovén 2017-10-29 11:31:59 +01:00
parent 177be9dcc5
commit 261cc76e8f
4 changed files with 6 additions and 5 deletions

View File

@ -6,4 +6,5 @@ RUN apk --update add make binutils gcc && \
ENV PATH "/opt/toolchain:$PATH" ENV PATH "/opt/toolchain:$PATH"
ENV MITTOS64 "true" ENV MITTOS64 "true"
ENV BUILDROOT "/opt/"
WORKDIR /opt WORKDIR /opt

View File

@ -2,8 +2,8 @@
if [ -z ${MITTOS64+x} ]; then >&2 echo "Unsupported environment! See README"; exit 1; fi if [ -z ${MITTOS64+x} ]; then >&2 echo "Unsupported environment! See README"; exit 1; fi
iso=/opt/mittos64.iso iso=${BUILDROOT}mittos64.iso
/opt/toolchain/mkiso ${BUILDROOT}toolchain/mkiso
qemu-system-x86_64 -s -S -cdrom ${iso} -curses qemu-system-x86_64 -s -S -cdrom ${iso} -curses

View File

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

View File

@ -2,8 +2,8 @@
if [ -z ${MITTOS64+x} ]; then >&2 echo "Unsupported environment! See README"; exit 1; fi if [ -z ${MITTOS64+x} ]; then >&2 echo "Unsupported environment! See README"; exit 1; fi
sysroot=/opt/sysroot sysroot=${BUILDROOT}sysroot
iso=/opt/mittos64.iso iso=${BUILDROOT}mittos64.iso
mkdir -p ${sysroot} mkdir -p ${sysroot}