u-boot/test/py
Jerome Forissier 6c171f7a18 common: board: make initcalls static
Change board_init_f(), board_init_f_r() and board_init_r() to make
static calls instead of iterating over the init_sequence_f,
init_sequence_f_r and init_sequence_r arrays, respectively. This makes
the code a simpler (and even more so when initcall_run_list() is
later removed) and it reduces the binary size as well. Tested with
xilinx_zynqmp_kria_defconfig; bloat-o-meter results:

- With LTO
add/remove: 106/196 grow/shrink: 10/28 up/down: 31548/-33829 (-2281)
Total: Before=1070471, After=1068190, chg -0.21%
- Without LTO
add/remove: 0/54 grow/shrink: 3/0 up/down: 2322/-2832 (-510)
Total: Before=1121723, After=1121213, chg -0.05%

Execution time does not change in a noticeable way.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
2025-04-14 08:59:39 -06:00
..
tests common: board: make initcalls static 2025-04-14 08:59:39 -06:00
.gitignore test/py: Implement pytest infrastructure 2016-01-20 19:06:23 -07:00
conftest.py test/py: Drop u_boot_ prefix on test files 2025-03-15 11:02:04 +00:00
console_base.py test/py: Drop u_boot_ prefix on test files 2025-03-15 11:02:04 +00:00
console_board.py test/py: Drop u_boot_ prefix on test files 2025-03-15 11:02:04 +00:00
console_sandbox.py test/py: Drop u_boot_ prefix on test files 2025-03-15 11:02:04 +00:00
multiplexed_log.css SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
multiplexed_log.py test: Add a way to set the environment for a pytest 2023-02-14 09:43:27 -07:00
pytest.ini test/py: Allow tests to be marked single-threaded only 2022-09-12 18:06:36 -04:00
requirements.txt python: Recreate test/py and tools/buildman requirements.txt files 2025-02-14 17:11:35 -06:00
spawn.py test/py: Drop u_boot_ prefix on test files 2025-03-15 11:02:04 +00:00
test.py test: remove unused import from pkg_resources 2024-04-12 08:53:31 -06:00
utils.py test/py: Drop u_boot_ prefix on test files 2025-03-15 11:02:04 +00:00