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 scripts: move dir_is_writeable.py to scripts/build 2022-07-12 10:03:45 +02:00
elf_parser.py scripts: build: elf_parser: use node name for Graphviz diagrams 2022-08-04 18:36:35 +02:00
file2hex.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_app_partitions.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_cfb_font_header.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_handles.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_image_info.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_isr_tables.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_kobject_list.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_kobject_placeholders.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_offset_header.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_relocate_app.py code_relocation: Fix Warning 2023-02-08 12:11:14 +01:00
gen_strerror_table.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_syscalls.py syscalls: skip generating mrsh.c if not userspace 2023-03-11 19:45:23 +01:00
mergehex.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
parse_syscalls.py scripts: Print file causing error for syscalls 2023-03-17 11:48:36 +01:00
process_gperf.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
subfolder_list.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
uf2conv.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
user_wordsize.py scripts: move user_wordsize.py to scripts/build/user_wordsize.py 2022-07-12 10:03:45 +02:00