Skip to content

Commit 4bfa56d

Browse files
author
Brett Forsyth
committed
Merge remote-tracking branch 'upstream/master'
2 parents d498023 + 9036908 commit 4bfa56d

File tree

6 files changed

+35
-34
lines changed

6 files changed

+35
-34
lines changed

.github/workflows/cron.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v1
2727
- name: Install dependencies
28-
run: sudo apt-get install git wget curl libssl-dev libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-click python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache
29-
- name: Install Python Wheel
30-
run: pip install wheel
28+
run: bash ./tools/prepare-ci.sh
3129
- name: Build
3230
env:
3331
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}

.github/workflows/push.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v1
1616
- name: Install dependencies
17-
run: sudo apt-get install git wget curl libssl-dev libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-click python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache
18-
- name: Install Python Wheel
19-
run: pip install wheel
17+
run: bash ./tools/prepare-ci.sh
2018
- name: Build Arduino Libs
2119
run: bash ./build.sh
2220
- name: Upload archive

.github/workflows/repository_dispatch.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v1
1111
- name: Install dependencies
12-
run: sudo apt-get install git wget curl libssl-dev libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-click python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache
13-
- name: Install Python Wheel
14-
run: pip install wheel
12+
run: bash ./tools/prepare-ci.sh
1513
- name: Handle Event
1614
env:
1715
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}

sdkconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=1024
613613
CONFIG_FREERTOS_ISR_STACKSIZE=1536
614614
CONFIG_FREERTOS_LEGACY_HOOKS=
615615
CONFIG_FREERTOS_MAX_TASK_NAME_LEN=16
616-
CONFIG_SUPPORT_STATIC_ALLOCATION=
616+
CONFIG_SUPPORT_STATIC_ALLOCATION=y
617617
CONFIG_TIMER_TASK_PRIORITY=1
618618
CONFIG_TIMER_TASK_STACK_DEPTH=2048
619619
CONFIG_TIMER_QUEUE_LENGTH=10

tools/prepare-ci.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
sudo apt-get install -y git wget curl libssl-dev libncurses-dev flex bison gperf python3 cmake ninja-build ccache
4+
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py && \
5+
pip3 install setuptools pyserial click future wheel cryptography pyparsing pyelftools

tools/prepare-libs.sh

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,33 @@ echo " CPPPATH=[" >> "$AR_PLATFORMIO_PY" && echo " join(FRAMEWORK_DIR,
2121
while [ "$1" != "" ]; do
2222
cpath=$1
2323
cname=$(echo $cpath| cut -d'/' -f 1)
24-
if [ -d "$AR_COMPS/$cpath" ]; then
25-
full_cpath="$AR_COMPS/$cpath"
26-
else
27-
full_cpath="$IDF_COMPS/$cpath"
24+
if [ "$cname" != "nimble" ]; then
25+
if [ -d "$AR_COMPS/$cpath" ]; then
26+
full_cpath="$AR_COMPS/$cpath"
27+
else
28+
full_cpath="$IDF_COMPS/$cpath"
29+
fi
30+
out_cpath="$AR_SDK/include/$cname"
31+
if [ ! -d $out_cpath ]; then
32+
#first encounter of this component
33+
AR_INC+=" \"-I{compiler.sdk.path}/include/$cname\""
34+
echo " join(FRAMEWORK_DIR, \"tools\", \"sdk\", \"include\", \"$cname\")," >> "$AR_PLATFORMIO_PY"
35+
fi
36+
for f in `find $full_cpath -name '*.h'`; do
37+
rel_f=${f#*$cpath/}
38+
full_f=/$rel_f
39+
rel_p=${full_f%/*}
40+
mkdir -p "$out_cpath$rel_p"
41+
cp -f $f "$out_cpath$rel_p/"
42+
done
43+
for f in `find $full_cpath -name '*.hpp'`; do
44+
rel_f=${f#*$cpath/}
45+
full_f=/$rel_f
46+
rel_p=${full_f%/*}
47+
mkdir -p "$out_cpath$rel_p"
48+
cp -f $f "$out_cpath$rel_p/"
49+
done
2850
fi
29-
out_cpath="$AR_SDK/include/$cname"
30-
if [ ! -d $out_cpath ]; then
31-
#first encounter of this component
32-
AR_INC+=" \"-I{compiler.sdk.path}/include/$cname\""
33-
echo " join(FRAMEWORK_DIR, \"tools\", \"sdk\", \"include\", \"$cname\")," >> "$AR_PLATFORMIO_PY"
34-
fi
35-
for f in `find $full_cpath -name '*.h'`; do
36-
rel_f=${f#*$cpath/}
37-
full_f=/$rel_f
38-
rel_p=${full_f%/*}
39-
mkdir -p "$out_cpath$rel_p"
40-
cp -f $f "$out_cpath$rel_p/"
41-
done
42-
for f in `find $full_cpath -name '*.hpp'`; do
43-
rel_f=${f#*$cpath/}
44-
full_f=/$rel_f
45-
rel_p=${full_f%/*}
46-
mkdir -p "$out_cpath$rel_p"
47-
cp -f $f "$out_cpath$rel_p/"
48-
done
4951
shift
5052
done
5153
echo " join(FRAMEWORK_DIR, \"cores\", env.BoardConfig().get(\"build.core\"))" >> "$AR_PLATFORMIO_PY"

0 commit comments

Comments
 (0)