How to make .dtb from .dts file (how to set include path for #include .. ?)
ckim at etri.re.kr
ckim at etri.re.kr
Tue Feb 23 23:54:29 EST 2021
Hello Ahmad,
Thanks for the kind reply.
I've checked adding a .dts file in the directory and adding it in the
Makefile there, and doing "make dts" at the build top does the job. As you
said, I think I can just do with this method.
Thank you!
Best regards,
Chan
> -----Original Message-----
> From: Ahmad Fatoum <a.fatoum at pengutronix.de>
> Sent: Tuesday, February 23, 2021 6:28 PM
> To: ckim at etri.re.kr; kernelnewbies at kernelnewbies.org
> Subject: Re: How to make .dtb from .dts file (how to set include path for
> #include .. ?)
>
> Hello Chan,
>
> On 23.02.21 09:37, ckim at etri.re.kr wrote:
> > I don't know how I should let the preprocessing kick in.
> >
> > I tried (because there is
> > include/dt-bindings/interrupt-controller/arm-gic.h)
> >
> > $ dtc -i include -I dts -O dtb -o juno.dtb
> > arch/arm64/boot/dts/arm/juno.dts
> >
> > But it doesn't work.
>
> dtc only handles /include/. #include is expanded by a C preprocessor
> that's explicitly run beforehand. Run make V=1 dtbs if you are curious to
> see the commands executed.
>
> > How can I use dtc program to make juno.dtb?
> >
> > Or if I have to use Makefile, what is the command?
>
> What reason for doing this by hand?
>
> Cheers,
> Ahmad
>
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Chan Kim
> >
> >
> >
> > _______________________________________________
> > Kernelnewbies mailing list
> > Kernelnewbies at kernelnewbies.org
> > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >
>
> --
> Pengutronix e.K. | |
> Steuerwalder Str. 21 | http://www.pengutronix.de/ |
> 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the Kernelnewbies
mailing list