linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Someone broke my allmodconfig build
@ 2007-07-21 14:12 Stephen Rothwell
  2007-07-22  0:37 ` Paul Mackerras
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen Rothwell @ 2007-07-21 14:12 UTC (permalink / raw)
  To: ppc-dev

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

Hi all,

At the end of a powerpc allmodconfig build, I get this (after the header
checks):

  LD      vmlinux
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
strip -s -R .comment vmlinux -o vmlinux.strip
strip -s -R .comment vmlinux -o arch/powerpc/boot/zImage.iseries
  WRAP    arch/powerpc/boot/zImage.pseries
  WRAP    arch/powerpc/boot/zImage.pmac
  WRAP    arch/powerpc/boot/zImage.ps3
/home/sfr/kernels/linus/arch/powerpc/boot/wrapper: line 113: dtc: command not found
make[2]: *** [arch/powerpc/boot/zImage.ps3] Error 1
make[2]: *** Waiting for unfinished jobs....
  Building modules, stage 2.
make[1]: *** [zImage] Error 2
make[1]: *** Waiting for unfinished jobs....
  MODPOST 1794 modules
ERROR: "pmu_batteries" [drivers/power/pmu_battery.ko] undefined!
ERROR: "pmu_battery_count" [drivers/power/pmu_battery.ko] undefined!
ERROR: "pmu_power_flags" [drivers/power/pmu_battery.ko] undefined!
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make: *** [_all] Error 2

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Someone broke my allmodconfig build
  2007-07-21 14:12 Someone broke my allmodconfig build Stephen Rothwell
@ 2007-07-22  0:37 ` Paul Mackerras
  2007-07-22  1:53   ` Stephen Rothwell
  2007-07-22  2:04   ` Josh Boyer
  0 siblings, 2 replies; 10+ messages in thread
From: Paul Mackerras @ 2007-07-22  0:37 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: ppc-dev

Stephen Rothwell writes:

>   WRAP    arch/powerpc/boot/zImage.ps3
> /home/sfr/kernels/linus/arch/powerpc/boot/wrapper: line 113: dtc: command not found
> make[2]: *** [arch/powerpc/boot/zImage.ps3] Error 1

Hmmm, we should be shipping .dtb files with the tree, so people don't
have to have dtc installed.

> ERROR: "pmu_batteries" [drivers/power/pmu_battery.ko] undefined!
> ERROR: "pmu_battery_count" [drivers/power/pmu_battery.ko] undefined!
> ERROR: "pmu_power_flags" [drivers/power/pmu_battery.ko] undefined!

I'd say CONFIG_BATTERY_PMU needs to depend on PPC32.  There are no
battery-powered ppc64 machines with an Apple PMU, and we can say
pretty confidently there never will be.

Paul.

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

* Re: Someone broke my allmodconfig build
  2007-07-22  0:37 ` Paul Mackerras
@ 2007-07-22  1:53   ` Stephen Rothwell
  2007-07-23 13:15     ` Timur Tabi
  2007-07-22  2:04   ` Josh Boyer
  1 sibling, 1 reply; 10+ messages in thread
From: Stephen Rothwell @ 2007-07-22  1:53 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: ppc-dev

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

On Sun, 22 Jul 2007 10:37:06 +1000 Paul Mackerras <paulus@samba.org> wrote:
>
> Stephen Rothwell writes:
> 
> >   WRAP    arch/powerpc/boot/zImage.ps3
> > /home/sfr/kernels/linus/arch/powerpc/boot/wrapper: line 113: dtc: command not found
> > make[2]: *** [arch/powerpc/boot/zImage.ps3] Error 1
> 
> Hmmm, we should be shipping .dtb files with the tree, so people don't
> have to have dtc installed.

Unless, of course, we ship dtc ...

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Someone broke my allmodconfig build
  2007-07-22  0:37 ` Paul Mackerras
  2007-07-22  1:53   ` Stephen Rothwell
@ 2007-07-22  2:04   ` Josh Boyer
  2007-07-23  1:43     ` David Gibson
  1 sibling, 1 reply; 10+ messages in thread
From: Josh Boyer @ 2007-07-22  2:04 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: Stephen Rothwell, ppc-dev

On Sun, Jul 22, 2007 at 10:37:06AM +1000, Paul Mackerras wrote:
> Stephen Rothwell writes:
> 
> >   WRAP    arch/powerpc/boot/zImage.ps3
> > /home/sfr/kernels/linus/arch/powerpc/boot/wrapper: line 113: dtc: command not found
> > make[2]: *** [arch/powerpc/boot/zImage.ps3] Error 1
> 
> Hmmm, we should be shipping .dtb files with the tree, so people don't
> have to have dtc installed.

Really?  I don't think we're quite ready for that.  Particularly for the
embedded boards.  Those DTS files still get lots of churn, and having to
update both the .dts and .dtb at the same time seems a bit fragile.

josh

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

* Re: Someone broke my allmodconfig build
  2007-07-22  2:04   ` Josh Boyer
@ 2007-07-23  1:43     ` David Gibson
  2007-07-23 15:24       ` Mark A. Greer
  0 siblings, 1 reply; 10+ messages in thread
From: David Gibson @ 2007-07-23  1:43 UTC (permalink / raw)
  To: Josh Boyer; +Cc: Stephen Rothwell, Paul Mackerras, ppc-dev

On Sat, Jul 21, 2007 at 09:04:13PM -0500, Josh Boyer wrote:
> On Sun, Jul 22, 2007 at 10:37:06AM +1000, Paul Mackerras wrote:
> > Stephen Rothwell writes:
> > 
> > >   WRAP    arch/powerpc/boot/zImage.ps3
> > > /home/sfr/kernels/linus/arch/powerpc/boot/wrapper: line 113: dtc: command not found
> > > make[2]: *** [arch/powerpc/boot/zImage.ps3] Error 1
> > 
> > Hmmm, we should be shipping .dtb files with the tree, so people don't
> > have to have dtc installed.
> 
> Really?  I don't think we're quite ready for that.  Particularly for the
> embedded boards.  Those DTS files still get lots of churn, and having to
> update both the .dts and .dtb at the same time seems a bit fragile.

I sort of prefer this option in theory, but it's basically
impossible.  People updating dts files by patch would also have to
update the dtb, which can't be done in a normal patch, since they're
binary.

I'm working with sfr now on importing dtc into the kernel tree.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

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

* Re: Someone broke my allmodconfig build
  2007-07-22  1:53   ` Stephen Rothwell
@ 2007-07-23 13:15     ` Timur Tabi
  2007-07-23 15:07       ` Grant Likely
  0 siblings, 1 reply; 10+ messages in thread
From: Timur Tabi @ 2007-07-23 13:15 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: ppc-dev, Paul Mackerras

Stephen Rothwell wrote:

>> Hmmm, we should be shipping .dtb files with the tree, so people don't
>> have to have dtc installed.
> 
> Unless, of course, we ship dtc ...

I like that idea.

I don't know much about the kernel build process, but is it normal to ship C files and have kbuild build them and then use the executables to build the rest of the kernel?

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

* Re: Someone broke my allmodconfig build
  2007-07-23 13:15     ` Timur Tabi
@ 2007-07-23 15:07       ` Grant Likely
  2007-07-23 15:17         ` Josh Boyer
  2007-07-23 15:47         ` Timur Tabi
  0 siblings, 2 replies; 10+ messages in thread
From: Grant Likely @ 2007-07-23 15:07 UTC (permalink / raw)
  To: Timur Tabi; +Cc: Stephen Rothwell, Paul Mackerras, ppc-dev

On 7/23/07, Timur Tabi <timur@freescale.com> wrote:
> Stephen Rothwell wrote:
>
> >> Hmmm, we should be shipping .dtb files with the tree, so people don't
> >> have to have dtc installed.
> >
> > Unless, of course, we ship dtc ...
>
> I like that idea.
>
> I don't know much about the kernel build process, but is it normal to ship C files and have kbuild build them and then use the executables to build the rest of the kernel?

That's how Kconfig is built.

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

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

* Re: Someone broke my allmodconfig build
  2007-07-23 15:07       ` Grant Likely
@ 2007-07-23 15:17         ` Josh Boyer
  2007-07-23 15:47         ` Timur Tabi
  1 sibling, 0 replies; 10+ messages in thread
From: Josh Boyer @ 2007-07-23 15:17 UTC (permalink / raw)
  To: Grant Likely; +Cc: Stephen Rothwell, Paul Mackerras, Timur Tabi, ppc-dev

On Mon, 2007-07-23 at 09:07 -0600, Grant Likely wrote:
> On 7/23/07, Timur Tabi <timur@freescale.com> wrote:
> > Stephen Rothwell wrote:
> >
> > >> Hmmm, we should be shipping .dtb files with the tree, so people don't
> > >> have to have dtc installed.
> > >
> > > Unless, of course, we ship dtc ...
> >
> > I like that idea.
> >
> > I don't know much about the kernel build process, but is it normal to ship C files and have kbuild build them and then use the executables to build the rest of the kernel?
> 
> That's how Kconfig is built.

And mktree.

josh

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

* Re: Someone broke my allmodconfig build
  2007-07-23  1:43     ` David Gibson
@ 2007-07-23 15:24       ` Mark A. Greer
  0 siblings, 0 replies; 10+ messages in thread
From: Mark A. Greer @ 2007-07-23 15:24 UTC (permalink / raw)
  To: Josh Boyer, Paul Mackerras, Stephen Rothwell, ppc-dev

On Mon, Jul 23, 2007 at 11:43:37AM +1000, David Gibson wrote:
> On Sat, Jul 21, 2007 at 09:04:13PM -0500, Josh Boyer wrote:
> > On Sun, Jul 22, 2007 at 10:37:06AM +1000, Paul Mackerras wrote:
> > > Stephen Rothwell writes:
> > > 
> > > >   WRAP    arch/powerpc/boot/zImage.ps3
> > > > /home/sfr/kernels/linus/arch/powerpc/boot/wrapper: line 113: dtc: command not found
> > > > make[2]: *** [arch/powerpc/boot/zImage.ps3] Error 1
> > > 
> > > Hmmm, we should be shipping .dtb files with the tree, so people don't
> > > have to have dtc installed.
> > 
> > Really?  I don't think we're quite ready for that.  Particularly for the
> > embedded boards.  Those DTS files still get lots of churn, and having to
> > update both the .dts and .dtb at the same time seems a bit fragile.
> 
> I sort of prefer this option in theory, but it's basically
> impossible.  People updating dts files by patch would also have to
> update the dtb, which can't be done in a normal patch, since they're
> binary.

I agree.  Shipping a magic binary blob, especially ones that haven't
really settled out, will be a real headache for poeple.

> I'm working with sfr now on importing dtc into the kernel tree.

IIRC, this was discussed when dtc first came into existence but it was
pooh-poohed.  I forget why now.

Mark

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

* Re: Someone broke my allmodconfig build
  2007-07-23 15:07       ` Grant Likely
  2007-07-23 15:17         ` Josh Boyer
@ 2007-07-23 15:47         ` Timur Tabi
  1 sibling, 0 replies; 10+ messages in thread
From: Timur Tabi @ 2007-07-23 15:47 UTC (permalink / raw)
  To: Grant Likely; +Cc: Stephen Rothwell, Paul Mackerras, ppc-dev

Grant Likely wrote:
> On 7/23/07, Timur Tabi <timur@freescale.com> wrote:
>> Stephen Rothwell wrote:
>>
>> >> Hmmm, we should be shipping .dtb files with the tree, so people don't
>> >> have to have dtc installed.
>> >
>> > Unless, of course, we ship dtc ...
>>
>> I like that idea.
>>
>> I don't know much about the kernel build process, but is it normal to 
>> ship C files and have kbuild build them and then use the executables 
>> to build the rest of the kernel?
> 
> That's how Kconfig is built.

Then it shouldn't be too hard to refactor the dtc build environment to make it 
Kbuild-compatible, and then Paul can pull from Jon's dtc repo whenever it gets updated.

Jon, what do you think?

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

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

end of thread, other threads:[~2007-07-23 15:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-21 14:12 Someone broke my allmodconfig build Stephen Rothwell
2007-07-22  0:37 ` Paul Mackerras
2007-07-22  1:53   ` Stephen Rothwell
2007-07-23 13:15     ` Timur Tabi
2007-07-23 15:07       ` Grant Likely
2007-07-23 15:17         ` Josh Boyer
2007-07-23 15:47         ` Timur Tabi
2007-07-22  2:04   ` Josh Boyer
2007-07-23  1:43     ` David Gibson
2007-07-23 15:24       ` Mark A. Greer

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