mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 17:10:11 +00:00
dtoc: make generated platdata structs const
The platdata initialization structs are currently generated into .rwdata. Make sure the are put into .rodata by generating them as const. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
d667090999
commit
7d05d3a8e3
1 changed files with 1 additions and 1 deletions
|
@ -461,7 +461,7 @@ class DtbPlatdata(object):
|
||||||
"""
|
"""
|
||||||
struct_name, _ = get_compat_name(node)
|
struct_name, _ = get_compat_name(node)
|
||||||
var_name = conv_name_to_c(node.name)
|
var_name = conv_name_to_c(node.name)
|
||||||
self.buf('static struct %s%s %s%s = {\n' %
|
self.buf('static const struct %s%s %s%s = {\n' %
|
||||||
(STRUCT_PREFIX, struct_name, VAL_PREFIX, var_name))
|
(STRUCT_PREFIX, struct_name, VAL_PREFIX, var_name))
|
||||||
for pname, prop in node.props.items():
|
for pname, prop in node.props.items():
|
||||||
if pname in PROP_IGNORE_LIST or pname[0] == '#':
|
if pname in PROP_IGNORE_LIST or pname[0] == '#':
|
||||||
|
|
Loading…
Reference in a new issue