kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* which "make" target simply builds the scripts/dtc/dtc executable?
@ 2020-03-13 18:13 rpjday
  2020-03-14  9:43 ` Stefan Wahren
  0 siblings, 1 reply; 3+ messages in thread
From: rpjday @ 2020-03-13 18:13 UTC (permalink / raw)
  To: kernelnewbies

   colleague has a kernel-compile infrastructure which builds the
kernel just fine, but croaks trying to compile .dts files, complaining
that there is no "./scripts/dtc/dtc" file.

   ok, so that sounds like whatever it is that compiles dtc.c (and
friends) into dtc is being omitted. i just want to test whatever
make target would normally compile that, but i'm having trouble
figuring which make processing does that.

   is there a top-level target that wanders into scripts/dtc, and
compiles that?

rday

p.s. i'm testing this on x86, which typically doesn't use dtb files,
and there are no .dts files, so i'm looking for the target that
would normally compile into "dtc", even though there's nothing
that really needs it, if that makes a difference.

i thought "make scripts_dtc" would do it, but that didn't seem to
make any difference. thoughts?



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: which "make" target simply builds the scripts/dtc/dtc executable?
  2020-03-13 18:13 which "make" target simply builds the scripts/dtc/dtc executable? rpjday
@ 2020-03-14  9:43 ` Stefan Wahren
  2020-03-18  7:47   ` Robert P. J. Day
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Wahren @ 2020-03-14  9:43 UTC (permalink / raw)
  To: rpjday, kernelnewbies

Hi,

Am 13.03.20 um 19:13 schrieb rpjday@crashcourse.ca:
>   colleague has a kernel-compile infrastructure which builds the
> kernel just fine, but croaks trying to compile .dts files, complaining
> that there is no "./scripts/dtc/dtc" file.
>
>   ok, so that sounds like whatever it is that compiles dtc.c (and
> friends) into dtc is being omitted. i just want to test whatever
> make target would normally compile that, but i'm having trouble
> figuring which make processing does that.
>
>   is there a top-level target that wanders into scripts/dtc, and
> compiles that?

for a ARM target you could try to (PowerPC or MIPS should work too)

export ARCH=arm
make mxs_defconfig # random arm defconfig
make dtbs

this should build the devicetree compiler and the devicetree sources,
but AFAIK newer kernel versions uses the dtc from the Host system. So
it's possible that the dtc is omitted.

Regards

>
> rday
>
> p.s. i'm testing this on x86, which typically doesn't use dtb files,
> and there are no .dts files, so i'm looking for the target that
> would normally compile into "dtc", even though there's nothing
> that really needs it, if that makes a difference.
>
> i thought "make scripts_dtc" would do it, but that didn't seem to
> make any difference. thoughts?
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: which "make" target simply builds the scripts/dtc/dtc executable?
  2020-03-14  9:43 ` Stefan Wahren
@ 2020-03-18  7:47   ` Robert P. J. Day
  0 siblings, 0 replies; 3+ messages in thread
From: Robert P. J. Day @ 2020-03-18  7:47 UTC (permalink / raw)
  To: Stefan Wahren; +Cc: kernelnewbies

[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]

On Sat, 14 Mar 2020, Stefan Wahren wrote:

> Hi,
>
> Am 13.03.20 um 19:13 schrieb rpjday@crashcourse.ca:
> >   colleague has a kernel-compile infrastructure which builds the
> > kernel just fine, but croaks trying to compile .dts files, complaining
> > that there is no "./scripts/dtc/dtc" file.
> >
> >   ok, so that sounds like whatever it is that compiles dtc.c (and
> > friends) into dtc is being omitted. i just want to test whatever
> > make target would normally compile that, but i'm having trouble
> > figuring which make processing does that.
> >
> >   is there a top-level target that wanders into scripts/dtc, and
> > compiles that?
>
> for a ARM target you could try to (PowerPC or MIPS should work too)
>
> export ARCH=arm
> make mxs_defconfig # random arm defconfig
> make dtbs
>
> this should build the devicetree compiler and the devicetree sources,
> but AFAIK newer kernel versions uses the dtc from the Host system. So
> it's possible that the dtc is omitted.

  ah, i had completely missed that newer kernels use the host dtc.

rday

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-18  7:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-13 18:13 which "make" target simply builds the scripts/dtc/dtc executable? rpjday
2020-03-14  9:43 ` Stefan Wahren
2020-03-18  7:47   ` Robert P. J. Day

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).