Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
1fae11a7
Commit
1fae11a7
authored
Nov 28, 2017
by
me-no-dev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/espressif/arduino-esp32
parents
823fb8fd
dac7ae75
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
.travis.yml
.travis.yml
+1
-1
tools/platformio-build.py
tools/platformio-build.py
+14
-11
No files found.
.travis.yml
View file @
1fae11a7
...
...
@@ -39,7 +39,7 @@ script:
-
echo -e "travis_fold:start:platformio_test_env_prepare"
-
pip install -U https://github.com/platformio/platformio/archive/develop.zip
-
platformio platform install https://github.com/platformio/platform-espressif32.git#feature/stage
-
sed -i 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' ~/.platformio/platforms/espressif32
_stage
/platform.json
-
sed -i 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' ~/.platformio/platforms/espressif32/platform.json
-
ln -s $TRAVIS_BUILD_DIR ~/.platformio/packages/framework-arduinoespressif32
-
echo -e "travis_fold:end:platformio_test_env_prepare"
-
echo -e "travis_fold:start:platformio_test"
...
...
tools/platformio-build.py
View file @
1fae11a7
...
...
@@ -36,16 +36,19 @@ assert isdir(FRAMEWORK_DIR)
env
.
Prepend
(
CPPDEFINES
=
[
(
"ARDUINO"
,
10610
),
"ARDUINO_ARCH_ESP32"
(
"ARDUINO"
,
10805
),
"ARDUINO_ARCH_ESP32"
,
(
"ARDUINO_BOARD"
,
'
\\
"%s
\\
"'
%
env
.
BoardConfig
().
get
(
"name"
).
replace
(
'"'
,
""
))
],
CFLAGS
=
[
"-Wno-old-style-declaration"
],
CCFLAGS
=
[
"-Wno-error=deprecated-declarations"
,
"-Wno-error=unused-function"
,
"-Wno-unused-parameter"
,
"-Wno-sign-compare"
"-Wno-sign-compare"
,
"-fstack-protector"
],
CPPPATH
=
[
...
...
@@ -115,7 +118,7 @@ def _get_board_flash_mode(env):
env
.
Append
(
__get_board_flash_mode
=
_get_board_flash_mode
,
LIBSOURCE_DIRS
=
[
join
(
FRAMEWORK_DIR
,
"libraries"
)
],
...
...
@@ -130,9 +133,9 @@ env.Append(
],
UPLOADERFLAGS
=
[
"0x1000"
,
'"%s"'
%
join
(
FRAMEWORK_DIR
,
"tools"
,
"sdk"
,
"bin"
,
"bootloader_${BOARD_FLASH_MODE}_${__get_board_f_flash(__env__)}.bin"
),
"0x8000"
,
'"%s"'
%
join
(
"$BUILD_DIR"
,
"partitions.bin"
),
"0xe000"
,
'"%s"'
%
join
(
FRAMEWORK_DIR
,
"tools"
,
"partitions"
,
"boot_app0.bin"
),
"0x1000"
,
join
(
FRAMEWORK_DIR
,
"tools"
,
"sdk"
,
"bin"
,
"bootloader_${BOARD_FLASH_MODE}_${__get_board_f_flash(__env__)}.bin"
),
"0x8000"
,
join
(
"$BUILD_DIR"
,
"partitions.bin"
),
"0xe000"
,
join
(
FRAMEWORK_DIR
,
"tools"
,
"partitions"
,
"boot_app0.bin"
),
"0x10000"
]
)
...
...
@@ -174,11 +177,11 @@ env.Prepend(LIBS=libs)
#
# Generate partition table
#
partition_table
=
env
.
Command
(
join
(
"$BUILD_DIR"
,
"partitions.bin"
),
join
(
FRAMEWORK_DIR
,
"tools"
,
"partitions"
,
"default.csv"
),
env
.
VerboseAction
(
'"$PYTHONEXE" "%s" -q $SOURCE $TARGET'
%
join
(
FRAMEWORK_DIR
,
"tools"
,
"gen_esp32part.py"
),
join
(
FRAMEWORK_DIR
,
"tools"
,
"partitions"
,
"%s.csv"
%
env
.
BoardConfig
().
get
(
"build.partitions"
,
"default"
)),
env
.
VerboseAction
(
'"$PYTHONEXE" "%s" -q $SOURCE $TARGET'
%
join
(
FRAMEWORK_DIR
,
"tools"
,
"gen_esp32part.py"
),
"Generating partitions $TARGET"
))
env
.
Depends
(
"$BUILD_DIR/$PROGNAME$PROGSUFFIX"
,
partition_table
)
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