-
-
Notifications
You must be signed in to change notification settings - Fork 207
/
Copy pathanalyze_elf.py
25 lines (20 loc) · 1.01 KB
/
analyze_elf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Import("env")
#env.AddCustomTarget("my_test", None, 'python C:\Users\fvanroie\.platformio\packages\toolchain-xtensa32\bin\elf-size-analyze.py -a -H -w 120 $BUILD_DIR\${PROGNAME} -F -m 250')
# Add custom target to explorer
env.AddTarget(
name = "analyze_ram",
dependencies = "$BUILD_DIR\${PROGNAME}${PROGSUFFIX}",
actions = 'python $PROJECT_DIR/tools/elf-size-analyze.py $BUILD_DIR\${PROGNAME}${PROGSUFFIX} -t $PROJECT_PACKAGES_DIR\\toolchain-xtensa32\\bin\\xtensa-esp32-elf- -a -H -w 120 -R -m 512',
title = "Analyze RAM",
description = "Build and analyze",
group="Analyze"
)
env.AddTarget(
name = "analyze_flash",
dependencies = "$BUILD_DIR\${PROGNAME}${PROGSUFFIX}",
actions = 'python $PROJECT_DIR/tools/elf-size-analyze.py $BUILD_DIR\${PROGNAME}${PROGSUFFIX} -t $PROJECT_PACKAGES_DIR\\toolchain-xtensa32\\bin\\xtensa-esp32-elf- -a -H -w 120 -F -m 512',
title = "Analyze Flash",
description = "Build and analyze",
group="Analyze"
)
print('=====================================')