sanitycheck: update section names in size calculator
Commit 8d7bb8ffd8faba73628e18e4651e20896da9751e refactored
device structures which changed some of the linker sections:
"devconfig" was removed, and "devices" was added. However,
the list in sanitycheck's size calculator was not updated,
which results in sanitycheck complaining about unrecognized
sections when doing footprint.
Also, a few sections have been renamed (with added suffix
"_area") due to introduction of Z_ITERABLE_SECTION_RAM/ROM
macros. There are also some missing section names.
Fixes the issue by adding the missing sections names, and
updating existing ones.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
diff --git a/scripts/sanity_chk/sanitylib.py b/scripts/sanity_chk/sanitylib.py
index 0940793..2c243d0 100644
--- a/scripts/sanity_chk/sanitylib.py
+++ b/scripts/sanity_chk/sanitylib.py
@@ -1006,8 +1006,9 @@
"k_msgq_area",
"k_mbox_area",
"k_pipe_area",
- "net_if",
- "net_if_dev",
+ "net_if_area",
+ "net_if_dev_area",
+ "net_l2_area",
"net_l2_data",
"k_queue_area",
"_net_buf_pool_area",
@@ -1030,7 +1031,9 @@
"priv_stacks_noinit",
"_GCOV_BSS_SECTION_NAME",
"gcov",
- "nocache"
+ "nocache",
+ "devices",
+ "k_heap_area",
]
# These get copied into RAM only on non-XIP
@@ -1042,19 +1045,19 @@
"reset",
"z_object_assignment_area",
"rodata",
- "devconfig",
"net_l2",
"vector",
"sw_isr_table",
"settings_handler_static_area",
- "bt_l2cap_fixed_chan",
- "bt_l2cap_br_fixec_chan",
- "bt_gatt_service_static",
+ "bt_l2cap_fixed_chan_area",
+ "bt_l2cap_br_fixed_chan_area",
+ "bt_gatt_service_static_area",
"vectors",
"net_socket_register_area",
"net_ppp_proto",
"shell_area",
"tracing_backend_area",
+ "ppp_protocol_handler_area",
]
def __init__(self, filename, extra_sections):