Cannot remove "NET" library from the build

Posted on
  • I was trying to build Espruino 2v08 for ESP32 with reduced libraries. I managed to remove all libraries from ESP32 in the file, but "NET" was the only one I could not remove. (the build failed after removing it)

    Here is my from boards/

       'optimizeflags' : '-Og',
       'libraries' : [
       'makefile' : [
         'DEFINES+=-DJSVAR_MALLOC', # Allocate space for variables at jsvInit time

    Here is the error message from build:

    targets/esp32/jshardware.c:48:34: fatal error: jswrap_esp32_network.h: No such file or directory
    compilation terminated.
    Makefile:777: recipe for target 'targets/esp32/jshardware.o' failed
    make: *** [targets/esp32/jshardware.o] Error 1
    make: *** Waiting for unfinished jobs....
    make: *** wait: No child processes.  Stop.

    I tried to remove the #include <jswrap_esp32_network.h> from jshardware.c but there are still other dependencies broken. Am I doing anything wrong?

    Any help will be appreciated.

  • Honestly, I think on ESP32 the running of the software and WiFi are so intertwined it might be quite hard to pull them out.

    On most other boards you're right though, you can just remove NET and it'll build fine without it

  • Understood. Thank you :)

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

Cannot remove "NET" library from the build

Posted by Avatar for Ragtime @Ragtime