BuildYourOwnKernel wiki edit?
Kamal Mostafa
kamal at canonical.com
Mon Mar 21 22:07:53 UTC 2011
On Mon, 2011-03-21 at 22:50 +0100, David Henningsson wrote:
> > Yup, debian/rules just a makefile -- multiple targets works fine. Even
> > something like this works:
> >
> > fakeroot debian/rules clean binary-headers binary-generic
> > ^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^
I'm not actually recommending combining clean with the other targets
(since what's the point? and it seems weird to do) -- just pointing out
that normal Makefile rules apply here.
> Hmm, this seems dangerous to me, at least in combination with the "-j"
> switch. Isn't there a possibility that clean will run in parallel with
> the binary targets, or should this prevented inside the makefiles somehow?
I don't think anything in the debian/rules file(s) protect against it,
so you're probably right that this would be unsafe to use with -j.
FWIW, I never use -j with the kernel build... The build parallelizes
itself very nicely without my help, due to some internal magic that I
haven't looked into very deeply.
-Kamal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20110321/8c2e95a1/attachment.sig>
More information about the kernel-team
mailing list