File tree 12 files changed +648
-0
lines changed
12 files changed +648
-0
lines changed Original file line number Diff line number Diff line change
1
+ BasedOnStyle : WebKit
2
+ AlignTrailingComments : true
3
+ AllowShortFunctionsOnASingleLine : None
4
+ BreakBeforeBraces : Attach
5
+ BreakBeforeTernaryOperators : true
6
+ IndentCaseLabels : true
7
+ SpaceAfterCStyleCast : true
8
+ SpacesBeforeTrailingComments : 4
9
+ CompactNamespaces : true
10
+ FixNamespaceComments : true
11
+ NamespaceIndentation : None
Original file line number Diff line number Diff line change
1
+ FROM espressif/idf
2
+
3
+ ARG DEBIAN_FRONTEND=nointeractive
4
+ ARG CONTAINER_USER=esp
5
+ ARG USER_UID=1050
6
+ ARG USER_GID=$USER_UID
7
+
8
+ RUN apt-get update \
9
+ && apt install -y -q \
10
+ cmake \
11
+ git \
12
+ libglib2.0-0 \
13
+ libnuma1 \
14
+ libpixman-1-0 \
15
+ && rm -rf /var/lib/apt/lists/*
16
+
17
+ # QEMU
18
+ ENV QEMU_REL=esp_develop_8.2.0_20240122
19
+ ENV QEMU_SHA256=e7c72ef5705ad1444d391711088c8717fc89f42e9bf6d1487f9c2a326b8cfa83
20
+ ENV QEMU_DIST=qemu-xtensa-softmmu-${QEMU_REL}-x86_64-linux-gnu.tar.xz
21
+ ENV QEMU_URL=https://github.com/espressif/qemu/releases/download/esp-develop-8.2.0-20240122/${QEMU_DIST}
22
+
23
+ ENV LC_ALL=C.UTF-8
24
+ ENV LANG=C.UTF-8
25
+
26
+ RUN wget --no-verbose ${QEMU_URL} \
27
+ && echo "${QEMU_SHA256} *${QEMU_DIST}" | sha256sum --check --strict - \
28
+ && tar -xf $QEMU_DIST -C /opt \
29
+ && rm ${QEMU_DIST}
30
+
31
+ ENV PATH=/opt/qemu/bin:${PATH}
32
+
33
+ RUN groupadd --gid $USER_GID $CONTAINER_USER \
34
+ && adduser --uid $USER_UID --gid $USER_GID --disabled-password --gecos "" ${CONTAINER_USER} \
35
+ && usermod -a -G root $CONTAINER_USER && usermod -a -G dialout $CONTAINER_USER
36
+
37
+ RUN chmod -R 775 /opt/esp/python_env/
38
+
39
+ USER ${CONTAINER_USER}
40
+ ENV USER=${CONTAINER_USER}
41
+ WORKDIR /home/${CONTAINER_USER}
42
+
43
+ RUN echo "source /opt/esp/idf/export.sh > /dev/null 2>&1" >> ~/.bashrc
44
+
45
+ ENTRYPOINT [ "/opt/esp/entrypoint.sh" ]
46
+
47
+ CMD ["/bin/bash" , "-c" ]
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " ESP-IDF QEMU" ,
3
+ "build" : {
4
+ "dockerfile" : " Dockerfile"
5
+ },
6
+ "customizations" : {
7
+ "vscode" : {
8
+ "settings" : {
9
+ "terminal.integrated.defaultProfile.linux" : " bash" ,
10
+ "idf.espIdfPath" : " /opt/esp/idf" ,
11
+ "idf.customExtraPaths" : " " ,
12
+ "idf.pythonBinPath" : " /opt/esp/python_env/idf5.4_py3.12_env/bin/python" ,
13
+ "idf.toolsPath" : " /opt/esp" ,
14
+ "idf.gitPath" : " /usr/bin/git"
15
+ },
16
+ "extensions" : [
17
+ " espressif.esp-idf-extension"
18
+ ]
19
+ },
20
+ "codespaces" : {
21
+ "settings" : {
22
+ "terminal.integrated.defaultProfile.linux" : " bash" ,
23
+ "idf.espIdfPath" : " /opt/esp/idf" ,
24
+ "idf.customExtraPaths" : " " ,
25
+ "idf.pythonBinPath" : " /opt/esp/python_env/idf5.4_py3.12_env/bin/python" ,
26
+ "idf.toolsPath" : " /opt/esp" ,
27
+ "idf.gitPath" : " /usr/bin/git"
28
+ },
29
+ "extensions" : [
30
+ " espressif.esp-idf-extension" ,
31
+ " espressif.esp-idf-web"
32
+ ]
33
+ }
34
+ },
35
+ "runArgs" : [" --privileged" ]
36
+ }
Original file line number Diff line number Diff line change
1
+ .vscode /
2
+ /build /
3
+ /managed_components /
4
+ sdkconfig
5
+ sdkconfig.old
Original file line number Diff line number Diff line change
1
+ # The following lines of boilerplate have to be in your project's
2
+ # CMakeLists in this exact order for cmake to work correctly
3
+ cmake_minimum_required (VERSION 3.5)
4
+
5
+ include ($ENV{IDF_PATH} /tools/cmake/project.cmake)
6
+ project (esp-arduino-wifi-leak)
You can’t perform that action at this time.
0 commit comments