From 6571b926b198b5c243af3e563a7858fbf3550880 Mon Sep 17 00:00:00 2001 From: jdm-tech <60795638+jdm-tech@users.noreply.github.com> Date: Fri, 7 Feb 2020 21:07:03 +0100 Subject: [PATCH 1/3] Add Docker file to compile this source tree This is a docker file that sets up all the dependencies and compiles qemu with curses. --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..b993dd39e3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +From ubuntu:xenial + +USER root +#Install Dependencies +RUN apt-get update && apt-get install -yq git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev gcc-5 g++-5 git-email libaio-dev libbluetooth-dev libbrlapi-dev libbz2-dev libcap-dev libcap-ng-dev libcurl4-gnutls-dev libgtk-3-dev libibverbs-dev libjpeg8-dev libncurses5-dev libnuma-dev librbd-dev librdmacm-dev libsasl2-dev libsdl1.2-dev libseccomp-dev libsnappy-dev libssh2-1-dev libvde-dev libvdeplug-dev libvte-dev libxen-dev liblzo2-dev valgrind xfslibs-dev libnfs-dev libiscsi-dev ncurses-base ncurses-dev libncursesw5 libncursesw5-dev + +#Add a user and stop being root +RUN useradd -r -m -d /home/quser -u 999 -U quser +USER quser +WORKDIR /home/quser/ + +#Clone the git repo +RUN git clone https://github.com/frederic/qemu-exynos-bootrom.git + +#Build Qemu +RUN cd qemu-exynos-bootrom && mkdir build && cd build && ../configure --enable-curses && make -j + +CMD ["/bin/bash"] From 6e9fac91d357bc160eb1f83e8214128299ff5a15 Mon Sep 17 00:00:00 2001 From: jdm-tech <60795638+jdm-tech@users.noreply.github.com> Date: Fri, 7 Feb 2020 22:10:01 +0100 Subject: [PATCH 2/3] Update Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index b993dd39e3..acf25a57e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ WORKDIR /home/quser/ RUN git clone https://github.com/frederic/qemu-exynos-bootrom.git #Build Qemu +#To speed up the compile with multiple cores add -j# where # is the number of cores on your computer ex. on a 4 core pc -j4. RUN cd qemu-exynos-bootrom && mkdir build && cd build && ../configure --enable-curses && make -j CMD ["/bin/bash"] From 1fddcf86a1df14283b622e3d299f29d9ede5c786 Mon Sep 17 00:00:00 2001 From: jdm-tech <60795638+jdm-tech@users.noreply.github.com> Date: Fri, 7 Feb 2020 22:10:20 +0100 Subject: [PATCH 3/3] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index acf25a57e5..4cc2aaeb9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,6 @@ RUN git clone https://github.com/frederic/qemu-exynos-bootrom.git #Build Qemu #To speed up the compile with multiple cores add -j# where # is the number of cores on your computer ex. on a 4 core pc -j4. -RUN cd qemu-exynos-bootrom && mkdir build && cd build && ../configure --enable-curses && make -j +RUN cd qemu-exynos-bootrom && mkdir build && cd build && ../configure --enable-curses && make CMD ["/bin/bash"]