doc: document python build scripts
We have a collection of python scripts that are part of our build system. This PR collects docstring comments added to these scripts into a summary document. Previous references to just the script name in other documentation are updated to point to this build tool documentation. Some of the scripts needed an update to be processed (via include directives) consistently. Signed-off-by: David B. Kinder <david.b.kinder@intel.com> Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
9055cfe57e
commit
17299f0734
10 changed files with 142 additions and 35 deletions
|
@ -5,22 +5,32 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
# This script will relocate .text, .rodata, .data and .bss sections from required files
|
||||
# and places it in the required memory region. This memory region and file
|
||||
# are given to this python script in the form of a string.
|
||||
# Example of such a string would be:
|
||||
# SRAM2:/home/xyz/zephyr/samples/hello_world/src/main.c,\
|
||||
# SRAM1:/home/xyz/zephyr/samples/hello_world/src/main2.c
|
||||
# To invoke this script:
|
||||
# python3 gen_relocate_app.py -i input_string -o generated_linker -c generated_code
|
||||
# Configuration that needs to be sent to the python script.
|
||||
# if the memory is like SRAM1/SRAM2/CCD/AON then place full object in
|
||||
# the sections
|
||||
# if the memory type is appended with _DATA / _TEXT/ _RODATA/ _BSS only the
|
||||
# selected memory is placed in the required memory region. Others are
|
||||
# ignored.
|
||||
# NOTE: multiple regions can be appended together like SRAM2_DATA_BSS
|
||||
# this will place data and bss inside SRAM2
|
||||
"""
|
||||
This script will relocate .text, .rodata, .data and .bss sections from required files
|
||||
and places it in the required memory region. This memory region and file
|
||||
are given to this python script in the form of a string.
|
||||
|
||||
Example of such a string would be::
|
||||
|
||||
SRAM2:/home/xyz/zephyr/samples/hello_world/src/main.c,\
|
||||
SRAM1:/home/xyz/zephyr/samples/hello_world/src/main2.c
|
||||
|
||||
To invoke this script::
|
||||
|
||||
python3 gen_relocate_app.py -i input_string -o generated_linker -c generated_code
|
||||
|
||||
Configuration that needs to be sent to the python script.
|
||||
|
||||
- If the memory is like SRAM1/SRAM2/CCD/AON then place full object in
|
||||
the sections
|
||||
- If the memory type is appended with _DATA / _TEXT/ _RODATA/ _BSS only the
|
||||
selected memory is placed in the required memory region. Others are
|
||||
ignored.
|
||||
|
||||
Multiple regions can be appended together like SRAM2_DATA_BSS
|
||||
this will place data and bss inside SRAM2.
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import argparse
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue