Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 53afef9

Browse files
author
iwahdan88
committed
esp32/Jenkins: Disable OpenThread for FiPy-Pybytes Build
1 parent ec13092 commit 53afef9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Jenkinsfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ def buildVersion
22
def boards_to_build = ["WiPy", "LoPy", "SiPy", "GPy", "FiPy", "LoPy4"]
33
def variants_to_build = [ "BASE", "PYBYTES" ]
44
def boards_to_test = ["1b6fa1", "00ec51"]
5+
def open_thread = 'on'
56

67
node {
78
// get pycom-esp-idf source
@@ -28,7 +29,12 @@ node {
2829
def parallelSteps = [:]
2930
for (variant in variants_to_build) {
3031
board_variant = board + "_" + variant
31-
parallelSteps[board_variant] = boardBuild(board, variant)
32+
// disable openthread in case of FIPY Pybytes build as fw img exceeds memory avialable
33+
if ( variant == 'PYBYTES' && board == 'FiPy')
34+
{
35+
open_thread = 'off'
36+
}
37+
parallelSteps[board_variant] = boardBuild(board, variant, open_thread)
3238
}
3339
parallel parallelSteps
3440
}
@@ -60,7 +66,7 @@ for (variant in variants_to_build) {
6066
}
6167
}
6268

63-
def boardBuild(name, variant) {
69+
def boardBuild(name, variant, open_thread) {
6470
def name_u = name.toUpperCase()
6571
def name_short = name_u.split('_')[0]
6672
def app_bin = name.toLowerCase() + '.bin'
@@ -72,7 +78,7 @@ def boardBuild(name, variant) {
7278

7379
sh '''export PATH=$PATH:/opt/xtensa-esp32-elf/bin;
7480
export IDF_PATH=${WORKSPACE}/esp-idf;
75-
make -C esp32 -j2 release BOARD=''' + name_short + ' BUILD_DIR=build-' + variant + ' RELEASE_DIR=' + release_dir + variant + '/' + ' VARIANT=' + variant
81+
make -C esp32 -j2 release BOARD=''' + name_short + ' BUILD_DIR=build-' + variant + ' RELEASE_DIR=' + release_dir + variant + '/' + ' VARIANT=' + variant + ' OPENTHREAD=' + open_thread
7682

7783
sh 'mv esp32/build-' + variant + '/'+ name_u + '/release/application.elf ' + release_dir + variant + '/' + name + "-" + PYCOM_VERSION + '-application.elf'
7884
}

0 commit comments

Comments
 (0)