blob: 5fc733829e04ecbc30e1b7f714aba43bd3c3053d [file] [log] [blame]
Nico Huberc0b52db2022-12-15 12:42:32 +00001FROM anibali/djgpp:6.1.0
2
3USER root
4RUN \
5 userdel appuser && \
6 useradd -p locked -m mani && \
7 zypper -q install -y tar make git ccache
8
9ENV GIT_SSL_NO_VERIFY=1
10USER mani
11
12ARG ORIGIN=https://review.coreboot.org/flashrom-stable.git
13RUN 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
30ENV DEVSHELL /bin/bash
31COPY mani-wrapper.sh /home/mani/
32ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]