You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by bt...@apache.org on 2020/08/05 14:11:12 UTC
[incubator-nuttx-testing] 04/05: Optionally disable the DOUT flash
mode
This is an automated email from the ASF dual-hosted git repository.
btashton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-testing.git
commit edc6266ca1d1220ed40f887d9ede8eb68a1e9554
Author: Luis Linares <lu...@ieee.org>
AuthorDate: Wed Aug 5 15:18:55 2020 +0200
Optionally disable the DOUT flash mode
---
docker/linux/Dockerfile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/docker/linux/Dockerfile b/docker/linux/Dockerfile
index e2d71dc..46c2246 100644
--- a/docker/linux/Dockerfile
+++ b/docker/linux/Dockerfile
@@ -104,12 +104,16 @@ RUN bash -c "\
cd esp-idf && \
./install.sh"
+# Provide an option for disabling DOUT mode, so that the default one,
+# DIO, can be used (for instance, for flashing a DevKitC module)
+ARG FLASH_DOUT_ENABLED=y
# We run this is generate the default bootloader and partition table binaries
RUN bash -c "\
cd esp-idf && \
source ./export.sh && \
cd examples/get-started/hello_world && \
make defconfig && \
+ if [[ '${FLASH_DOUT_ENABLED}' == y ]]; then echo 'CONFIG_ESPTOOLPY_FLASHMODE_DOUT=y' >> sdkconfig; fi && \
idf.py bootloader partition_table"
RUN mkdir /tools/blobs