Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 1 | FROM anibali/djgpp:6.1.0 |
| 2 | |
| 3 | USER root |
| 4 | RUN \ |
| 5 | userdel appuser && \ |
| 6 | useradd -p locked -m mani && \ |
| 7 | zypper -q install -y tar make git ccache |
| 8 | |
| 9 | ENV GIT_SSL_NO_VERIFY=1 |
| 10 | USER mani |
| 11 | |
| 12 | ARG ORIGIN=https://review.coreboot.org/flashrom-stable.git |
| 13 | RUN cd && \ |
| 14 | mkdir .ccache && chown mani:users .ccache && \ |
| 15 | git clone ${ORIGIN} flashrom && \ |
| 16 | git clone https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git && \ |
| 17 | cd pciutils && \ |
| 18 | git checkout v3.5.6 && \ |
| 19 | curl --insecure https://flashrom.org/images/6/6a/Pciutils-3.5.6.patch.gz | zcat | git apply && \ |
| 20 | make ZLIB=no DNS=no HOST=i386-djgpp-djgpp \ |
| 21 | CROSS_COMPILE=i586-pc-msdosdjgpp- \ |
| 22 | PREFIX=/ DESTDIR=$PWD/../ \ |
| 23 | STRIP="--strip-program=i586-pc-msdosdjgpp-strip -s" \ |
| 24 | install install-lib && \ |
| 25 | cd ../ && \ |
| 26 | curl --insecure https://flashrom.org/images/3/3d/Libgetopt.tar.gz | zcat | tar x && \ |
| 27 | cd libgetopt && \ |
| 28 | make && cp libgetopt.a ../lib/ && cp getopt.h ../include/ |
| 29 | |
| 30 | ENV DEVSHELL /bin/bash |
| 31 | COPY mani-wrapper.sh /home/mani/ |
| 32 | ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"] |