-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
49 lines (45 loc) · 984 Bytes
/
Dockerfile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
ARG IDF_VERSION
FROM lifesensor/idf/${IDF_VERSION}:latest
RUN sudo -HE apt-get -y install \
bison \
curl \
flex \
gettext \
git \
libcairo2-dev \
libffi-dev \
libglib2.0-dev \
libgsl-dev \
libreadline-dev \
libxml2-dev \
pkg-config \
zlib1g-dev \
;
RUN curl -L \
http://ftp.gnome.org/pub/gnome/sources/glib/2.48/glib-2.48.0.tar.xz \
| unxz | tar -xC /tmp \
&& cd /tmp/glib-2.48.0/ \
&& ./configure \
&& make -j $(grep -ci processor /proc/cpuinfo) \
&& sudo make install \
&& rm -rf /tmp/glib-2.48.0 \
;
ARG QEMU_VERSION
RUN git clone --depth 1 -b ${QEMU_VERSION} \
https://github.com/espressif/qemu.git /tmp/qemu \
&& mkdir -p /tmp/qemu/build \
&& cd /tmp/qemu/build \
&& ../configure \
--target-list=xtensa-softmmu \
--enable-debug \
--enable-sanitizers \
--disable-strip \
--disable-user \
--disable-capstone \
--disable-vnc \
--disable-sdl \
--disable-gtk \
&& make -j $(grep -ci processor /proc/cpuinfo) \
&& sudo make install \
&& rm -rf /tmp/qemu \
;