scripts: add module size calculate for xtensa supported [2/3]

PD#SWPL-90928

Problem:
add the calculate function in the script.

Solution:
add the calculate function in the script.

Verify:
N/A

Change-Id: I8a0d6128c99f1813a2c1e5403fe32fd34b87fa6f
Signed-off-by: xiaohu.huang <xiaohu.huang@amlogic.com>
1 file changed