Changes to the kernel-package (was: freezing powerpc)
>
> > there is --subarch option that was added for the purpose of Alphas
> > in make-kpkg some months ago.
>
> For the record the original subarch support originates from m68k and
> was added in 3.58 (dated 1998-02).
Yes the --subarch is available in the kernel-package. Right, but it doesn't
work in the way it should.
* linux-2.2 supports more archs then linux-2.0.
* alpha, m68k and powerpc have subarchs
So, it should be possible to fetch the (comming) kernel-source-2.2-2.2
and compiling it in the same way as other debian packages (dpkg-buildpackage -B -rsudo)
and it compiles then all subarchs images on the same platform.
The kernel-package has the .config files in /usr/lib/kernel-package/Config/config.<subarch>
My current kernel-source/debian/rules is this:
#!/usr/bin/make -f
#
# debian/rules file for the Debian/GNU Linux kernel-source package
# Copyright 1998 by Hartmut Koptein <koptein@debian.org>
#export DH_VERBOSE=1
package = kernel-source
architecture=$(shell dpkg --print-architecture)
SUBARCH:=
ifeq ($(architecture), alpha)
SUBARCH=?????????????????????????????
endif
ifeq ($(architecture), m68k)
SUBARCH=amiga atari mac
endif
ifeq ($(architecture), powerpc)
SUBARCH=chrp pmac prep
endif
build:
/usr/sbin/make-kpkg build --subarch=$(SUBARCH)
clean:
/usr/sbin/make-kpkg clean
-rm .config
binary-indep:
/usr/sbin/make-kpkg binary-indep
binary-arch:
/usr/sbin/make-kpkg binary-arch --subarch=$(SUBARCH)
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
--------------------------------------
Ok so far. But now the problems:
* make-kpkg --subarch=<arg1> <arg2> <argn> doesn't work
* make-kpkg --subarch= (the NULL-argument) doesn't work
* make-kpkg must put the correct .config file into the kernel-source directory
* for architectures with subarchs we need different debian/control files
* it is not possible to make all images in one run; it is only possible
to make
image1 + modules1 + pack1 with .config1 and debian/control1
image2 + modules2 + pack2 with .config2 and debian/control2
...
Another problem is that linux-2.2 supports more archs but not all. For some
archs we need extra patches. This must be done before building. But make-kpkg
must know this. What about an extra argument --patch for the subarchs
that need this extra patch ?
All this work must be done before linux-2.2 is ready (~15th - 20th December).
(no! not for slink, for potato). For testing kernel-source-2.1.125-2.1.125 is
available.
Manoj: what about to remove the kernel-package as an extra package and make it
available into the kernel-source/debian/* directory? This is then the
kernel-source*.diff.gz (this make some things easier).
Tips, hints ....
Thanks,
Hartmut
--
Hartmut Koptein EMail:
Friedrich-van-Senden-Str. 7 koptein@et-inf.fho-emden.de
26603 Aurich
Tel.: +49-4941-10390 koptein@debian.org
Reply to: