OSDN Git Service

device_tree: add qemu_fdt_setprop_string_array helper
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 3 Mar 2021 17:36:38 +0000 (17:36 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 10 Mar 2021 15:34:11 +0000 (15:34 +0000)
commit78da6a1bca224a8c1c4b1bdf2ca8ec19c74c6fc1
tree621c3630440505f64f3ac26382cfe2b9e9aa39a3
parentc65d7080d82e932baae97b0ed4cb39ff22635be2
device_tree: add qemu_fdt_setprop_string_array helper

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 <alex.bennee@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20210303173642.3805-4-alex.bennee@linaro.org>
include/sysemu/device_tree.h
softmmu/device_tree.c