mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
update HTTPCLIENT_1_1_COMPATIBLE (#5389)
* update HTTPCLIENT_1_1_COMPATIBLE: #if instead if #ifdef, set to 1 by default host emulation updates * host CI: minor simplification * revert -j
This commit is contained in:
committed by
Earle F. Philhower, III
parent
4f86a68b56
commit
116da1881c
@ -134,7 +134,7 @@ function build_docs()
|
||||
function run_host_tests()
|
||||
{
|
||||
pushd host
|
||||
make FORCE32=0 OPTZ=-O0 CI
|
||||
make CI
|
||||
make clean-objects
|
||||
popd
|
||||
}
|
||||
|
@ -120,8 +120,10 @@ DEBUG += -DDEBUG_ESP_PORT=Serial
|
||||
DEBUG += -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_ESP_MDNS
|
||||
endif
|
||||
|
||||
FLAGS += $(DEBUG) -Wall -Werror -coverage $(OPTZ) -fno-common -g $(M32)
|
||||
FLAGS += $(DEBUG) -Wall -coverage $(OPTZ) -fno-common -g $(M32)
|
||||
FLAGS += -DHTTPCLIENT_1_1_COMPATIBLE=0
|
||||
FLAGS += -DLWIP_IPV6=0
|
||||
FLAGS += $(MKFLAGS)
|
||||
CXXFLAGS += -std=c++11 $(FLAGS)
|
||||
CFLAGS += -std=c99 $(FLAGS)
|
||||
LDFLAGS += -coverage $(OPTZ) -g $(M32)
|
||||
@ -145,7 +147,10 @@ COVERAGE_FILES = $(OBJECTS:.o=.gc*)
|
||||
|
||||
all: help
|
||||
|
||||
CI: build-info $(OUTPUT_BINARY) valgrind test gcov # run CI
|
||||
CI:
|
||||
$(MAKE) -f $(MAKEFILE) MKFLAGS=-Werror FORCE32=0 OPTZ=-O0 doCI
|
||||
|
||||
doCI: build-info $(OUTPUT_BINARY) valgrind test gcov # run CI
|
||||
|
||||
test: $(OUTPUT_BINARY) # run host test for CI
|
||||
$(OUTPUT_BINARY)
|
||||
@ -203,6 +208,7 @@ ARDUINO_LIBS := \
|
||||
$(addprefix $(CORE_PATH)/,\
|
||||
IPAddress.cpp \
|
||||
Updater.cpp \
|
||||
base64.cpp \
|
||||
) \
|
||||
$(addprefix ../../libraries/,\
|
||||
$(addprefix ESP8266WiFi/src/,\
|
||||
@ -263,6 +269,7 @@ ULIBPATHS = $(shell echo $(ULIBDIRS) | sed 's,:, ,g')
|
||||
USERLIBDIRS = $(shell test -z "$(ULIBPATHS)" || for d in $(ULIBPATHS); do for dd in $$d $$d/src; do test -d $$dd && { echo -I$$dd; echo "userlib: using directory '$$dd'" 1>&2; } done; done)
|
||||
USERLIBSRCS = $(shell test -z "$(ULIBPATHS)" || for d in $(ULIBPATHS); do for ss in $$d/*.cpp $$d/src/*.cpp; do test -r $$ss && echo $$ss; done; done)
|
||||
INC_PATHS += $(USERLIBDIRS)
|
||||
INC_PATHS += -I$(INODIR)/..
|
||||
CPP_OBJECTS_CORE_EMU = $(CPP_SOURCES_CORE_EMU:.cpp=.cpp.o) $(USERLIBSRCS:.cpp=.cpp.o)
|
||||
|
||||
bin/fullcore.a: $(C_OBJECTS) $(CPP_OBJECTS_CORE_EMU)
|
||||
@ -279,18 +286,18 @@ ifeq ($(INO),)
|
||||
|
||||
%: %.ino
|
||||
@# recursive 'make' with paths
|
||||
$(MAKE) -f $(MAKEFILE) INODIR=$(dir $@) INO=$(notdir $@) $(BINDIR)/$(notdir $@)/$(notdir $@)
|
||||
$(MAKE) -f $(MAKEFILE) MKFLAGS=-Wextra INODIR=$(dir $@) INO=$(notdir $@) $(BINDIR)/$(notdir $@)/$(notdir $@)
|
||||
@# see below the new build rule with fixed output path outside from core location
|
||||
|
||||
#####################
|
||||
# recursive call on ino targer
|
||||
# recursive call on ino target
|
||||
else
|
||||
|
||||
$(BINDIR)/$(INO)/$(INO).ino.cpp:
|
||||
@# arduino builder would come around here (.ino -> .ino.cpp)
|
||||
@mkdir -p $(BINDIR)/$(INO); \
|
||||
( \
|
||||
echo "#include \"$(INODIR)/$(INO).ino\""; \
|
||||
echo "#include <$(INODIR)/$(INO).ino>"; \
|
||||
for i in $(INODIR)/*.ino; do \
|
||||
test "$$i" = $(INODIR)/$(INO).ino || echo "#include \"$$i\""; \
|
||||
done; \
|
||||
|
@ -118,4 +118,16 @@ class InterruptLock { };
|
||||
|
||||
//
|
||||
|
||||
#define D0 0
|
||||
#define D1 1
|
||||
#define D2 3
|
||||
#define D3 3
|
||||
#define D4 4
|
||||
#define D5 5
|
||||
#define D6 6
|
||||
#define D7 7
|
||||
#define D8 8
|
||||
|
||||
//
|
||||
|
||||
#endif // __cplusplus
|
||||
|
Reference in New Issue
Block a user