FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 02-09-2009, 05:14 AM
Manoj Srivastava
 
Default Forthcoming changes in kernel-package

Hi,

This is a heads up for a major change in kernel-package, the
tool to create user packaged kernel images and headers; which will
make the make-kpkg script far less error prone, and far more
deterministic.

a. Every invocation of kernel-package will remove ./debian directory,
and regenerate the changelog and control files. This will get rid
of any remaining issues with the ./debian directory getting out of
sync with the kernel sources; and will allow people to make small
tweaks to the kernel sources and have make-kpkg reflect those
changes.
b. make-kpkg will no longer have special case code to run boot
loaders and init ram fs creator invocations. Instead, it will pay
attention to scripts dropped into the directories
/etc/kernel/{src_,header_,}{pre,post}{inst,rm}.d/
This is far more flexible, and allows all kinds of packages to
drop in scripts there
c. his means there will be no need for /etc/kernel-img.conf file any
more.
d. The make-kpkg infrastructure will try to leverage the KBUILD
system far more than it has done in the past, which will make it
more robust against upstream kernel changes.

Since make-kpkg has been deprecated by the kernel team, and thei
advice has been to not use kernel package for kernel image building,
this should have no impact on official kernels.

manoj
--
Apples have meant trouble since eden. MaDsen Wikholm,
mwikholm@at8.abo.fi
Manoj Srivastava <srivasta@debian.org> <http://www.debian.org/~srivasta/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-09-2009, 05:14 AM
Manoj Srivastava
 
Default Forthcoming changes in kernel-package

Hi,

This is a heads up for a major change in kernel-package, the
tool to create user packaged kernel images and headers; which will
make the make-kpkg script far less error prone, and far more
deterministic.

a. Every invocation of kernel-package will remove ./debian directory,
and regenerate the changelog and control files. This will get rid
of any remaining issues with the ./debian directory getting out of
sync with the kernel sources; and will allow people to make small
tweaks to the kernel sources and have make-kpkg reflect those
changes.
b. make-kpkg will no longer have special case code to run boot
loaders and init ram fs creator invocations. Instead, it will pay
attention to scripts dropped into the directories
/etc/kernel/{src_,header_,}{pre,post}{inst,rm}.d/
This is far more flexible, and allows all kinds of packages to
drop in scripts there
c. his means there will be no need for /etc/kernel-img.conf file any
more.
d. The make-kpkg infrastructure will try to leverage the KBUILD
system far more than it has done in the past, which will make it
more robust against upstream kernel changes.

Since make-kpkg has been deprecated by the kernel team, and thei
advice has been to not use kernel package for kernel image building,
this should have no impact on official kernels.

manoj
--
Apples have meant trouble since eden. MaDsen Wikholm,
mwikholm@at8.abo.fi
Manoj Srivastava <srivasta@debian.org> <http://www.debian.org/~srivasta/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-09-2009, 08:33 AM
Michael Tautschnig
 
Default Forthcoming changes in kernel-package

[...]
> c. his means there will be no need for /etc/kernel-img.conf file any
> more.

[...]

Isn't this file also read in the postinst of the "official" kernels? In FAI we
had several issues when kernel-img.conf was missing or hadn't had the proper
values in there.

Best,
Michael
 
Old 02-09-2009, 08:33 AM
Michael Tautschnig
 
Default Forthcoming changes in kernel-package

[...]
> c. his means there will be no need for /etc/kernel-img.conf file any
> more.

[...]

Isn't this file also read in the postinst of the "official" kernels? In FAI we
had several issues when kernel-img.conf was missing or hadn't had the proper
values in there.

Best,
Michael
 
Old 02-09-2009, 10:15 AM
Stefan Lippers-Hollmann
 
Default Forthcoming changes in kernel-package

Hi

On Montag, 9. Februar 2009, Michael Tautschnig wrote:
> [...]
> > c. his means there will be no need for /etc/kernel-img.conf file any
> > more.
>
> [...]
>
> Isn't this file also read in the postinst of the "official" kernels? In FAI we
> had several issues when kernel-img.conf was missing or hadn't had the proper
> values in there.
[...]

As of yet kernel-package is still used in the official kernel builds[1],
by using make-kpkg to build and create the linux-image packages
(linux-headers is assembled manually).

linux-2.6/debian/rules.real
[...]
kpkg_image := $(setup_env)
ifdef DEBIAN_KERNEL_JOBS
kpkg_image += CONCURRENCY_LEVEL=$(DEBIAN_KERNEL_JOBS)
endif
kpkg_image += make-kpkg --arch '$(firstword $(KPKG_ARCH) $(ARCH))' --cross-compile=- --stem linux --config silentoldconfig
ifneq ($(INITRAMFS),False)
kpkg_image += --initrd
endif
ifdef KPKG_SUBARCH
kpkg_image += --subarch '$(KPKG_SUBARCH)'
endif
[...]

Which is called from the following targets:
$(STAMPS_DIR)/setup_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_kernel-package:
[...]$(kpkg_image) configure
[...]

$(STAMPS_DIR)/build_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_kernel-package:
[...]$(kpkg_image) build
[...]

install-image_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_kernel-package:
[...]$(kpkg_image) kernel-image
[...]

Due to this, the bootloader setup relies on postinst_hook/ postrm_hook and
do_initrd in /etc/kernel-img.conf and honours the rest of the settings.

Regards
Stefan Lippers-Hollmann

[1] http://svn.debian.org/viewsvn/kernel/dists/trunk/linux-2.6/debian/rules.real?view=markup
 
Old 02-09-2009, 10:15 AM
Stefan Lippers-Hollmann
 
Default Forthcoming changes in kernel-package

Hi

On Montag, 9. Februar 2009, Michael Tautschnig wrote:
> [...]
> > c. his means there will be no need for /etc/kernel-img.conf file any
> > more.
>
> [...]
>
> Isn't this file also read in the postinst of the "official" kernels? In FAI we
> had several issues when kernel-img.conf was missing or hadn't had the proper
> values in there.
[...]

As of yet kernel-package is still used in the official kernel builds[1],
by using make-kpkg to build and create the linux-image packages
(linux-headers is assembled manually).

linux-2.6/debian/rules.real
[...]
kpkg_image := $(setup_env)
ifdef DEBIAN_KERNEL_JOBS
kpkg_image += CONCURRENCY_LEVEL=$(DEBIAN_KERNEL_JOBS)
endif
kpkg_image += make-kpkg --arch '$(firstword $(KPKG_ARCH) $(ARCH))' --cross-compile=- --stem linux --config silentoldconfig
ifneq ($(INITRAMFS),False)
kpkg_image += --initrd
endif
ifdef KPKG_SUBARCH
kpkg_image += --subarch '$(KPKG_SUBARCH)'
endif
[...]

Which is called from the following targets:
$(STAMPS_DIR)/setup_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_kernel-package:
[...]$(kpkg_image) configure
[...]

$(STAMPS_DIR)/build_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_kernel-package:
[...]$(kpkg_image) build
[...]

install-image_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_kernel-package:
[...]$(kpkg_image) kernel-image
[...]

Due to this, the bootloader setup relies on postinst_hook/ postrm_hook and
do_initrd in /etc/kernel-img.conf and honours the rest of the settings.

Regards
Stefan Lippers-Hollmann

[1] http://svn.debian.org/viewsvn/kernel/dists/trunk/linux-2.6/debian/rules.real?view=markup
 
Old 02-09-2009, 05:06 PM
Manoj Srivastava
 
Default Forthcoming changes in kernel-package

On Mon, Feb 09 2009, Michael Tautschnig wrote:

> [...]
>> c. his means there will be no need for /etc/kernel-img.conf file any
>> more.
>
> [...]
>
> Isn't this file also read in the postinst of the "official" kernels?
> In FAI we had several issues when kernel-img.conf was missing or
> hadn't had the proper values in there.

I think that is a carry over from the days when the official
kernels were based on kernel-package. I am given to understand that is
not how things are supposed to work post lenny.

In any case, I guess what I meant to say was that images created
by kernel-package will stop paying attention to /etc/kernel-img.conf,
and thus there will be no reason to keep that file for the sake of
kernel-package images. kernel-package shall also stop creating the file
if it does not exist.

Another thing going away is the on-th-fly patching of the
sources; the preferred way to patch the sources will be to do so
outside of make-kpkg, before invoking the make-kpkg script to package
the kernel images.

All that convoluted code excised from kernel-package ought to
improve robustness.

manoj
--
Love may laugh at locksmiths, but he has a profound respect for money
bags. Sidney Paternoster, "The Folly of the Wise"
Manoj Srivastava <srivasta@acm.org> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-09-2009, 05:06 PM
Manoj Srivastava
 
Default Forthcoming changes in kernel-package

On Mon, Feb 09 2009, Michael Tautschnig wrote:

> [...]
>> c. his means there will be no need for /etc/kernel-img.conf file any
>> more.
>
> [...]
>
> Isn't this file also read in the postinst of the "official" kernels?
> In FAI we had several issues when kernel-img.conf was missing or
> hadn't had the proper values in there.

I think that is a carry over from the days when the official
kernels were based on kernel-package. I am given to understand that is
not how things are supposed to work post lenny.

In any case, I guess what I meant to say was that images created
by kernel-package will stop paying attention to /etc/kernel-img.conf,
and thus there will be no reason to keep that file for the sake of
kernel-package images. kernel-package shall also stop creating the file
if it does not exist.

Another thing going away is the on-th-fly patching of the
sources; the preferred way to patch the sources will be to do so
outside of make-kpkg, before invoking the make-kpkg script to package
the kernel images.

All that convoluted code excised from kernel-package ought to
improve robustness.

manoj
--
Love may laugh at locksmiths, but he has a profound respect for money
bags. Sidney Paternoster, "The Folly of the Wise"
Manoj Srivastava <srivasta@acm.org> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-13-2009, 01:43 PM
Bernd Zeimetz
 
Default Forthcoming changes in kernel-package

Hi Mano,

> This is a heads up for a major change in kernel-package, the
> tool to create user packaged kernel images and headers; which will
> make the make-kpkg script far less error prone, and far more
> deterministic.

kernel-package works well for me since years now, thanks for for your work!

Bernd

--
Bernd Zeimetz Debian GNU/Linux Developer
GPG Fingerprint: 06C8 C9A2 EAAD E37E 5B2C BE93 067A AD04 C93B FF79


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-13-2009, 01:43 PM
Bernd Zeimetz
 
Default Forthcoming changes in kernel-package

Hi Mano,

> This is a heads up for a major change in kernel-package, the
> tool to create user packaged kernel images and headers; which will
> make the make-kpkg script far less error prone, and far more
> deterministic.

kernel-package works well for me since years now, thanks for for your work!

Bernd

--
Bernd Zeimetz Debian GNU/Linux Developer
GPG Fingerprint: 06C8 C9A2 EAAD E37E 5B2C BE93 067A AD04 C93B FF79


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 07:20 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org