kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: <ckim@etri.re.kr>
To: "'Ahmad Fatoum'" <a.fatoum@pengutronix.de>,
	<kernelnewbies@kernelnewbies.org>
Subject: RE: How to make .dtb from .dts file (how to set include path for #include .. ?)
Date: Wed, 24 Feb 2021 13:54:29 +0900	[thread overview]
Message-ID: <036601d70a69$2248d000$66da7000$@etri.re.kr> (raw)
In-Reply-To: <cd5d5fe2-e117-00a6-34ac-c64ab1709768@pengutronix.de>

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@pengutronix.de>
> Sent: Tuesday, February 23, 2021 6:28 PM
> To: ckim@etri.re.kr; kernelnewbies@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@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@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 |





_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

  reply	other threads:[~2021-02-24  4:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-23  8:37 How to make .dtb from .dts file (how to set include path for #include .. ?) ckim
2021-02-23  9:28 ` Ahmad Fatoum
2021-02-24  4:54   ` ckim [this message]
2021-02-23  9:34 ` Aw: " Martin Herdeis
2021-02-24 17:56   ` linux lover

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='036601d70a69$2248d000$66da7000$@etri.re.kr' \
    --to=ckim@etri.re.kr \
    --cc=a.fatoum@pengutronix.de \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).