Skip to content

Missing entries in tools/mcconfig/[n]make.esp32.mk #129

@lll000111

Description

@lll000111

EDIT: Solved, subject line changed accordingly, see the update comment I made.


This is about esp-idf on the one hand — but on the other hand, I only have the problem from Moddable.

I'm working on the esp32 version of modules/files/file/esp32/modFile.c.

Example file for esp-idf: https://github.com/espressif/esp-idf/blob/release/v3.1/examples/storage/spiffs/main/spiffs_example_main.c

It uses

#include "esp_spiffs.h"

and when I go to esp-idf/examples/storage/spiffs/ I can build the example without issue.

However, the same include does not work from modFile.c.

$ mcconfig -d -m -p esp32
...
# cc modFile.c.o
/home/mha/Projects/moddable/modules/files/file/esp32/modFile.c:26:24: fatal error: esp_spiffs.h: No such file or directory
compilation terminated.
/home/mha/Projects/moddable/build/tmp/esp32/debug/files/makefile:494: recipe for target '/home/mha/Projects/moddable/build/tmp/esp32/debug/files/modFile.c.o' failed
make: *** [/home/mha/Projects/moddable/build/tmp/esp32/debug/files/modFile.c.o] Error 1

Same with esp-idf/components/spiffs/include/spiffs_config.h (in the same include directory), which I need for the max. path/filename length integer constant.

Do you have a tip?

Other than that, the esp32 version seems to be a lot easier than the esp(8266) version — now everything low.level "SPIFFS" is hidden behinid the vfs and we can use regular stdio functions. So it looks more like the Mac version, plus the two "System" info functions (almost unchanged from the esp version).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions