File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,13 @@ PIO_LD_FLAGS=""
71
71
PIO_LD_FUNCS=" "
72
72
PIO_LD_SCRIPTS=" "
73
73
74
+ TOOLCHAIN_PREFIX=" "
75
+ if [ " $IS_XTENSA " = " y" ]; then
76
+ TOOLCHAIN=" xtensa-$IDF_TARGET -elf"
77
+ else
78
+ TOOLCHAIN=" riscv32-esp-elf"
79
+ fi
80
+
74
81
# collect includes, defines and c-flags
75
82
str=` cat build/compile_commands.json | grep arduino-lib-builder-gcc.c | grep command | cut -d' :' -f2 | cut -d' ,' -f1`
76
83
str=" ${str: 2: ${# str} -1} " # remove leading space and quotes
@@ -523,6 +530,13 @@ for item; do
523
530
done
524
531
done
525
532
533
+ for lib in " openthread" " espressif__esp-tflite-micro" " bt" ; do
534
+ if [ -f " $AR_SDK /lib/lib$lib .a" ]; then
535
+ echo " Stripping $AR_SDK /lib/lib$lib .a"
536
+ " $TOOLCHAIN -strip" -g " $AR_SDK /lib/lib$lib .a"
537
+ fi
538
+ done
539
+
526
540
# Handle Mem Variants
527
541
mkdir -p " $AR_SDK /$MEMCONF /include"
528
542
mv " $PWD /build/config/sdkconfig.h" " $AR_SDK /$MEMCONF /include/sdkconfig.h"
You can’t perform that action at this time.
0 commit comments