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:
parent
6e1a335447
commit
80f4b5db21
|
@ -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}>
|
||||
|
|
2
doc/build/cmake/build-postprocess-2.svg
generated
vendored
2
doc/build/cmake/build-postprocess-2.svg
generated
vendored
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
4
doc/build/cmake/index.rst
vendored
4
doc/build/cmake/index.rst
vendored
|
@ -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: """
|
||||
|
||||
|
|
|
@ -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
|
||||
|
Loading…
Reference in a new issue