Skip to content

Commit 45370ab

Browse files
committedMar 4, 2021
exclude nimble from the libs
1 parent 1bf7b26 commit 45370ab

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed
 

‎tools/prepare-libs.sh

+26-24
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)
Please sign in to comment.