scripts: move gen_kobject_list.py to scripts/build/gen_kobject_list.py

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:53:29 -04:00 committed by Carles Cufí
parent c36307ea86
commit efbadbb677
10 changed files with 14 additions and 14 deletions

View file

@ -753,12 +753,12 @@ add_custom_command(
OUTPUT ${DRV_VALIDATION}
COMMAND
${PYTHON_EXECUTABLE}
${ZEPHYR_BASE}/scripts/gen_kobject_list.py
${ZEPHYR_BASE}/scripts/build/gen_kobject_list.py
--validation-output ${DRV_VALIDATION}
${gen_kobject_list_include_args}
$<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
DEPENDS
${ZEPHYR_BASE}/scripts/gen_kobject_list.py
${ZEPHYR_BASE}/scripts/build/gen_kobject_list.py
${PARSE_SYSCALLS_TARGET}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
@ -895,7 +895,7 @@ if(CONFIG_USERSPACE)
NO_COVERAGE_FLAGS "${compiler_flags_priv}"
)
set(GEN_KOBJ_LIST ${ZEPHYR_BASE}/scripts/gen_kobject_list.py)
set(GEN_KOBJ_LIST ${ZEPHYR_BASE}/scripts/build/gen_kobject_list.py)
set(PROCESS_GPERF ${ZEPHYR_BASE}/scripts/process_gperf.py)
endif()

View file

@ -701,7 +701,7 @@ scripts/gen_image_info.py @tejlmand
/scripts/ci/ @nashif
/arch/x86/gen_gdt.py @dcpleung @nashif
/arch/x86/gen_idt.py @dcpleung @nashif
/scripts/gen_kobject_list.py @dcpleung @nashif
/scripts/build/gen_kobject_list.py @dcpleung @nashif
/scripts/gen_kobject_placeholders.py @dcpleung
/scripts/gen_syscalls.py @dcpleung @nashif
/scripts/list_boards.py @mbolivar-nordic

View file

@ -1972,7 +1972,7 @@ Userspace:
- include/zephyr/syscall.h
- kernel/userspace*
- scripts/build/gen_app_partitions.py
- scripts/gen_kobject_list.py
- scripts/build/gen_kobject_list.py
- scripts/gen_syscalls.py
- scripts/process_gperf.py
- scripts/gen_relocate_app.py

View file

@ -17,14 +17,14 @@ function(gen_kobj gen_dir_out)
OUTPUT ${KOBJ_TYPES} ${KOBJ_OTYPE} ${KOBJ_SIZE}
COMMAND
${PYTHON_EXECUTABLE}
${ZEPHYR_BASE}/scripts/gen_kobject_list.py
${ZEPHYR_BASE}/scripts/build/gen_kobject_list.py
--kobj-types-output ${KOBJ_TYPES}
--kobj-otype-output ${KOBJ_OTYPE}
--kobj-size-output ${KOBJ_SIZE}
${gen_kobject_list_include_args}
$<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
DEPENDS
${ZEPHYR_BASE}/scripts/gen_kobject_list.py
${ZEPHYR_BASE}/scripts/build/gen_kobject_list.py
${PARSE_SYSCALLS_TARGET}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

View file

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

View file

@ -242,7 +242,7 @@ for creating core kernel objects and new driver subsystems.
Creating New Core Kernel Objects
================================
* In ``scripts/gen_kobject_list.py``, add the name of the struct to the
* In ``scripts/build/gen_kobject_list.py``, add the name of the struct to the
:py:data:`kobjects` list.
Instances of the new struct should now be tracked.
@ -253,7 +253,7 @@ Creating New Driver Subsystem Kernel Objects
All driver instances are :c:struct:`device`. They are differentiated by
what API struct they are set to.
* In ``scripts/gen_kobject_list.py``, add the name of the API struct for the
* In ``scripts/build/gen_kobject_list.py``, add the name of the API struct for the
new subsystem to the :py:data:`subsystems` list.
Driver instances of the new subsystem should now be tracked.

View file

@ -21,7 +21,7 @@ struct z_futex_data;
* @brief Kernel Object Types
*
* This enumeration needs to be kept in sync with the lists of kernel objects
* and subsystems in scripts/gen_kobject_list.py, as well as the otype_to_str()
* and subsystems in scripts/build/gen_kobject_list.py, as well as the otype_to_str()
* function in kernel/userspace.c
*/
enum k_objects {

View file

@ -94,7 +94,7 @@ struct perm_ctx {
};
#ifdef CONFIG_GEN_PRIV_STACKS
/* See write_gperf_table() in scripts/gen_kobject_list.py. The privilege
/* See write_gperf_table() in scripts/build/gen_kobject_list.py. The privilege
* mode stacks are allocated as an array. The base of the array is
* aligned to Z_PRIVILEGE_STACK_ALIGN, and all members must be as well.
*/