zephyr/scripts/build
Yuval Peress 36c8b433c8 scripts: Print file causing error for syscalls
I was using a source file provided by TDK for a sensor driver
and the file was (originally) not encoded as UTF-8. When the read()
function was called, the build would fail but I had no idea why.

This change wrapps the 'read()' call and prints the error with
the file name as context.

Signed-off-by: Yuval Peress <peress@google.com>
2023-03-17 11:48:36 +01:00
..
dir_is_writeable.py
elf_parser.py
file2hex.py
gen_app_partitions.py
gen_cfb_font_header.py
gen_handles.py
gen_image_info.py
gen_isr_tables.py
gen_kobject_list.py
gen_kobject_placeholders.py
gen_offset_header.py
gen_relocate_app.py code_relocation: Fix Warning 2023-02-08 12:11:14 +01:00
gen_strerror_table.py
gen_syscalls.py syscalls: skip generating mrsh.c if not userspace 2023-03-11 19:45:23 +01:00
mergehex.py
parse_syscalls.py scripts: Print file causing error for syscalls 2023-03-17 11:48:36 +01:00
process_gperf.py
subfolder_list.py
uf2conv.py
user_wordsize.py