summaryrefslogtreecommitdiffstats
path: root/util/manibuilder/Dockerfile.djgpp
blob: 970ceb440811b7a0f9d4cc80ba3394283dd5a924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM anibali/djgpp:6.1.0

USER root
RUN \
	userdel appuser && \
	useradd -p locked -m mani && \
	zypper -q install -y tar make git ccache

USER mani
RUN cd && \
	mkdir .ccache && chown mani:users .ccache && \
	git clone https://review.coreboot.org/flashrom.git && \
	git clone https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git && \
	cd pciutils && \
		git checkout v3.5.6 && \
		curl https://flashrom.org/images/6/6a/Pciutils-3.5.6.patch.gz | zcat | git apply && \
		make ZLIB=no DNS=no HOST=i386-djgpp-djgpp \
			CROSS_COMPILE=i586-pc-msdosdjgpp- \
			PREFIX=/ DESTDIR=$PWD/../ \
			STRIP="--strip-program=i586-pc-msdosdjgpp-strip -s" \
			install install-lib && \
		cd ../ && \
	curl https://flashrom.org/images/3/3d/Libgetopt.tar.gz | zcat | tar x && \
	cd libgetopt && \
		make && cp libgetopt.a ../lib/ && cp getopt.h ../include/

ENV DEVSHELL /bin/bash
COPY mani-wrapper.sh /home/mani/
ENTRYPOINT ["/bin/sh", "/home/mani/mani-wrapper.sh"]