Re: [PATCH v1 3/4] device_tree: add qemu_fdt_setprop_string_array helper

2020-10-23 Thread Alistair Francis
On Wed, Oct 21, 2020 at 10:11 AM Alex Bennée wrote: > > A string array in device tree is simply a series of \0 terminated > strings next to each other. As libfdt doesn't support that directly > we need to build it ourselves. > > Signed-off-by: Alex Bennée Reviewed-by: Alistair Francis Alistair

[PATCH v1 3/4] device_tree: add qemu_fdt_setprop_string_array helper

2020-10-21 Thread Alex Bennée
A string array in device tree is simply a series of \0 terminated strings next to each other. As libfdt doesn't support that directly we need to build it ourselves. Signed-off-by: Alex Bennée --- include/sysemu/device_tree.h | 17 + softmmu/device_tree.c| 26 +