scripts: move gen_handles.py to scripts/build

Move scripts needed by the build system and not designed to be run
individually or standalone into the build subfolder.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2022-07-11 10:48:04 -04:00 committed by Carles Cufí
parent 6e1a335447
commit 80f4b5db21
4 changed files with 5 additions and 5 deletions

View file

@ -869,7 +869,7 @@ if(CONFIG_HAS_DTS)
OUTPUT dev_handles.c
COMMAND
${PYTHON_EXECUTABLE}
${ZEPHYR_BASE}/scripts/gen_handles.py
${ZEPHYR_BASE}/scripts/build/gen_handles.py
--output-source dev_handles.c
--num-dynamic-devices ${number_of_dynamic_devices}
--kernel $<TARGET_FILE:${ZEPHYR_LINK_STAGE_EXECUTABLE}>

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View file

@ -338,10 +338,10 @@ The following is a detailed description of the scripts used during the build pro
.. _gen_handles.py:
:zephyr_file:`scripts/gen_handles.py`
:zephyr_file:`scripts/build/gen_handles.py`
--------------------------------------
.. include:: ../../../scripts/gen_handles.py
.. include:: ../../../scripts/build/gen_handles.py
:start-after: """
:end-before: """

View file

@ -39,7 +39,7 @@ from elftools.elf.sections import SymbolTableSection
import elftools.elf.enums
# This is needed to load edt.pickle files.
sys.path.insert(0, os.path.join(os.path.dirname(__file__),
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..',
'dts', 'python-devicetree', 'src'))
from devicetree import edtlib # pylint: disable=unused-import