parent
9bbf8f43fb
commit
51fabc7439
23
.travis.yml
23
.travis.yml
|
@ -5,30 +5,15 @@ addons:
|
|||
packages:
|
||||
- python-serial
|
||||
- srecord
|
||||
- gperf
|
||||
cache:
|
||||
directories:
|
||||
- cache
|
||||
install:
|
||||
- export PATH=$PWD/tools/toolchains/esp8266/bin:$PWD/tools/toolchains/esp32/bin:$PATH
|
||||
script:
|
||||
- exit 0
|
||||
- export BUILD_DATE=$(date +%Y%m%d)
|
||||
- make EXTRA_CCFLAGS="-DBUILD_DATE='\"'$BUILD_DATE'\"'" all
|
||||
- cd bin/esp8266
|
||||
- file_name_float="nodemcu_float_${TRAVIS_TAG}.bin"
|
||||
- srec_cat -output ${file_name_float} -binary 0x00000.bin -binary -fill 0xff 0x00000 0x10000 0x10000.bin -binary -offset 0x10000
|
||||
- cd ../..
|
||||
- make clean
|
||||
- make EXTRA_CCFLAGS="-DLUA_NUMBER_INTEGRAL -DBUILD_DATE='\"'$BUILD_DATE'\"'"
|
||||
- cd bin/esp8266
|
||||
- file_name_integer="nodemcu_integer_${TRAVIS_TAG}.bin"
|
||||
- srec_cat -output ${file_name_integer} -binary 0x00000.bin -binary -fill 0xff 0x00000 0x10000 0x10000.bin -binary -offset 0x10000
|
||||
- cd ../..
|
||||
- make clean
|
||||
- make HW=ESP32 EXTRA_CCFLAGS="-DBUILD_DATE='\"'$BUILD_DATE'\"'" all
|
||||
- mv bin/esp32 bin/esp32-float
|
||||
- make clean
|
||||
- make HW=ESP32 EXTRA_CCFLAGS="-DLUA_NUMBER_INTEGRAL -DBUILD_DATE='\"'$BUILD_DATE'\"'"
|
||||
- mv bin/esp32 bin/esp32-integer
|
||||
- env BUILD_DIR_BASE=build/float make MORE_CFLAGS="-DBUILD_DATE='\"'$BUILD_DATE'\"'" defconfig all
|
||||
- env BUILD_DIR_BASE=build/integer make MORE_CFLAGS="-DLUA_NUMBER_INTEGRAL -DBUILD_DATE='\"'$BUILD_DATE'\"'" defconfig all
|
||||
# http://docs.travis-ci.com/user/environment-variables/#Convenience-Variables
|
||||
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "$TRAVIS_BUILD_DIR"/tools/pr-build.sh; fi
|
||||
#- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash "$TRAVIS_BUILD_DIR"/tools/pr-build.sh; fi
|
||||
|
|
2
Makefile
2
Makefile
|
@ -25,6 +25,6 @@ LUA_LTR_DEFINES=\
|
|||
-DMIN_OPT_LEVEL=2 \
|
||||
|
||||
# Ensure these overrides are always used
|
||||
CC:=$(CC) $(BASIC_TYPES) $(LUA_LTR_DEFINES) -D__ESP32__
|
||||
CC:=$(CC) $(BASIC_TYPES) $(LUA_LTR_DEFINES) -D__ESP32__ $(MORE_CFLAGS)
|
||||
|
||||
endif
|
||||
|
|
|
@ -128,7 +128,7 @@ static int docall (lua_State *L, int narg, int clear) {
|
|||
|
||||
|
||||
static void print_version (lua_State *L) {
|
||||
lua_pushliteral (L, "\n" NODE_VERSION " build " BUILD_DATE " powered by " LUA_RELEASE " on RTOS-SDK ");
|
||||
lua_pushliteral (L, NODE_VERSION " build " BUILD_DATE " powered by " LUA_RELEASE " on ESP32 IDF ");
|
||||
lua_pushstring (L, system_get_sdk_version ());
|
||||
lua_concat (L, 2);
|
||||
const char *msg = lua_tostring (L, -1);
|
||||
|
|
Loading…
Reference in New Issue