> On May 27, 2016, at 12:13 , Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> wrote: > > Having dashes as a separator in the DTB name is a quite common practice. > > However, the current code to generate objects from DTBs assumes the > separator is an underscore, leading to a compilation error when building a > device tree with dashes. > > Replace all the dashes in the DTB name to generate the symbols name, which > should solve this issue. > > Signed-off-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx> > --- > scripts/Makefile.lib | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib > index ad1d9b5d7dd2..df1b5a7b4150 100644 > --- a/scripts/Makefile.lib > +++ b/scripts/Makefile.lib > @@ -275,11 +275,11 @@ cmd_dt_S_dtb= \ > ( \ > echo '.section .dtb.init.rodata,"a"'; \ > echo '.balign 16'; \ > - echo '.global __dtb_$(*F)_begin'; \ > - echo '__dtb_$(*F)_begin:'; \ > + echo '.global __dtb_$(subst -,_,$(*F))_begin'; \ > + echo '__dtb_$(subst -,_,$(*F))_begin:'; \ > echo '.incbin "$<" '; \ > - echo '__dtb_$(*F)_end:'; \ > - echo '.global __dtb_$(*F)_end'; \ > + echo '__dtb_$(subst -,_,$(*F))_end:'; \ > + echo '.global __dtb_$(subst -,_,$(*F))_end'; \ > echo '.balign 16'; \ > ) > $@ > > -- > 2.8.2 > Acked-by: Pantelis Antoniou <pantelis.antoniou@xxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe devicetree-compiler" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html