mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-02-06 21:18:25 +08:00
5ba1a6e934
* Always build spiffsimg (and make it build) * Make sure that we have the offset before allowing the user to put it into the output filename * Fix the documentation and align the makefile with the docs * Clean up the docs a bit more * Revert to include building the 8mb size (for ESP8285) * Added a spiffsimg target that does what you would expect * Added support for HOSTCC (defaults to gcc)
12 lines
434 B
Makefile
12 lines
434 B
Makefile
SRCS=\
|
|
main.c \
|
|
../../app/spiffs/spiffs_cache.c ../../app/spiffs/spiffs_check.c ../../app/spiffs/spiffs_gc.c ../../app/spiffs/spiffs_hydrogen.c ../../app/spiffs/spiffs_nucleus.c
|
|
|
|
CFLAGS=-g -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -I. -I../../app/spiffs -I../../app/include -DNODEMCU_SPIFFS_NO_INCLUDE --include spiffs_typedefs.h
|
|
|
|
spiffsimg: $(SRCS)
|
|
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@
|
|
|
|
clean:
|
|
rm -f spiffsimg
|