I was trying to build Espruino 2v08 for ESP32 with reduced libraries. I managed to remove all libraries from ESP32 in the BOARD.py file, but "NET" was the only one I could not remove. (the build failed after removing it)
Here is my info.build from boards/ESP32.py:
{
'optimizeflags' : '-Og',
'libraries' : [
],
'makefile' : [
'DEFINES+=-DESP_PLATFORM -DESP32=1',
'DEFINES+=-DESP_STACK_SIZE=25000',
'DEFINES+=-DJSVAR_MALLOC', # Allocate space for variables at jsvInit time
'DEFINES+=-DUSE_FONT_6X8',
'ESP32_FLASH_MAX=1572864',
'USE_NETWORK_JS=0',
]
}
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?
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
Tips:
Create headers by underlining text with ==== or ----
To *italicise* text put one asterisk each side of the word
To **bold** text put two asterisks each side of the word
Embed images by entering: ![](https://www.google.co.uk/images/srpr/logo4w.png) That's the hard one: exclamation, square brackets and then the URL to the image in brackets.
* Create lists by starting lines with asterisks
1. Create numbered lists by starting lines with a number and a dot
> Quote text by starting lines with >
Mention another user by @username
For syntax highlighting, surround the code block with three backticks:
```
Your code goes here
```
Just like Github, a blank line must precede a code block.
If you upload more than 5 files we will display all attachments as thumbnails.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I was trying to build Espruino 2v08 for ESP32 with reduced libraries. I managed to remove all libraries from ESP32 in the
BOARD.py
file, but "NET" was the only one I could not remove. (the build failed after removing it)Here is my
info.build
fromboards/ESP32.py
:Here is the error message from build:
I tried to remove the
#include <jswrap_esp32_network.h>
fromjshardware.c
but there are still other dependencies broken. Am I doing anything wrong?Any help will be appreciated.