Skip to content

Commit edc6266

Browse files
lulingarbtashton
authored andcommitted
Optionally disable the DOUT flash mode
1 parent dde6cd9 commit edc6266

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker/linux/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,16 @@ RUN bash -c "\
104104
cd esp-idf && \
105105
./install.sh"
106106

107+
# Provide an option for disabling DOUT mode, so that the default one,
108+
# DIO, can be used (for instance, for flashing a DevKitC module)
109+
ARG FLASH_DOUT_ENABLED=y
107110
# We run this is generate the default bootloader and partition table binaries
108111
RUN bash -c "\
109112
cd esp-idf && \
110113
source ./export.sh && \
111114
cd examples/get-started/hello_world && \
112115
make defconfig && \
116+
if [[ '${FLASH_DOUT_ENABLED}' == y ]]; then echo 'CONFIG_ESPTOOLPY_FLASHMODE_DOUT=y' >> sdkconfig; fi && \
113117
idf.py bootloader partition_table"
114118

115119
RUN mkdir /tools/blobs

0 commit comments

Comments
 (0)