Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
6abc1c32
Commit
6abc1c32
authored
Jun 25, 2016
by
Johny Mattsson
Browse files
Add ESP32 builds to CI, use new toolchains.
parent
79671aa5
Changes
4
Show whitespace changes
Inline
Side-by-side
.gitmodules
View file @
6abc1c32
...
@@ -4,3 +4,6 @@
...
@@ -4,3 +4,6 @@
[submodule "esp32-rtos-sdk"]
[submodule "esp32-rtos-sdk"]
path = sdk/esp32-rtos-sdk
path = sdk/esp32-rtos-sdk
url = https://github.com/espressif/ESP32_RTOS_SDK.git
url = https://github.com/espressif/ESP32_RTOS_SDK.git
[submodule "toolchains"]
path = tools/toolchains
url = https://github.com/jmattsson/nodemcu-prebuilt-toolchains.git
.travis.yml
View file @
6abc1c32
...
@@ -9,8 +9,7 @@ cache:
...
@@ -9,8 +9,7 @@ cache:
directories
:
directories
:
-
cache
-
cache
install
:
install
:
-
tar -zxvf tools/esp-open-sdk.tar.gz
-
export PATH=$PWD/tools/toolchains/esp8266/bin:$PWD/tools/toolchains/esp32/bin:$PATH
-
export PATH=$PATH:$PWD/esp-open-sdk/xtensa-lx106-elf/bin
script
:
script
:
-
export BUILD_DATE=$(date +%Y%m%d)
-
export BUILD_DATE=$(date +%Y%m%d)
-
make EXTRA_CCFLAGS="-DBUILD_DATE='\"'$BUILD_DATE'\"'" all
-
make EXTRA_CCFLAGS="-DBUILD_DATE='\"'$BUILD_DATE'\"'" all
...
@@ -23,5 +22,12 @@ script:
...
@@ -23,5 +22,12 @@ script:
-
cd bin/esp8266
-
cd bin/esp8266
-
file_name_integer="nodemcu_integer_${TRAVIS_TAG}.bin"
-
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
-
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
# http://docs.travis-ci.com/user/environment-variables/#Convenience-Variables
# 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
tools/esp-open-sdk.tar.gz
deleted
100644 → 0
View file @
79671aa5
File deleted
toolchains
@
c43f68cf
Subproject commit c43f68cf04b7881d755feb5377613d93c0d5766b
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment