Re: [PATCH 00/11] Atari Ethernet/USB patch series - for upstream and debian-kernel

Christian T. Steigies
2013-03-29T22:47:37Z

On Fri, Mar 29, 2013 at 09:38:31PM +0000, Thorsten Glaser wrote:
>
> Avoiding gotos for the purpose of avoiding gotos is absolutely
> silly (as the compiler translates them to jumps, which are the
> same in asm) and positively harmful (for the legibility of the
> code; I wish I had goto in mksh???).

>From my Commodore Basic days I still know gotos and spaghetti. I know it
will be translated to jumps, but I thought we are programming in C and not
asm, because the readability is better. But maybe I just read too much about
python recently ;-)

> >I managed to build an amiga kernel from linux-source-3.8 (in experimental)
> >with this command:
> >
> >make KBUILD_DEBARCH=m68k ARCH=m68k CROSS_COMPILE=m68k-linux-gnu- deb-pkg
>
> You can just run dpkg-buildpackage -am68k???

Because linux-source, just like linux-m68k git, does not contain a debian
directory. The linux source package (note the missing dash) does contain a
debian directory, but that fails because gencontrol.py does not run on my
box (OSError: missing file or directory with no hint what file is missing).

> >With this is should be easy to (cross-) build kernel-images for m68k with
> >additional patches and minimized config, since this does not use Debian's
> >gencontrol.py. Maybe I will try to understand that later.
>
> I don???t think that???s a good thing. And patches can be added to the
> normal process with not too much difficulty??? but YMMV, and it???s up
> to the person doing the work.

You are right, that this is not the way to build official debian kernels,
but as far as I understand it is the correct way to build local kernels from
linux-source. This has the nice benefit, that it works identically with the
linux-m68k source, and it does not run gencontrol.py.

> IMHO we should try to get to as close to the normal Debian processes
> as possible though. I???d wager a guess and say that, if you ask, for
> example, waldi or bwh in IRC, they???d be happy to help (as opposed to
> see you doing some n??n-standard stuff).

The kernels I am building are not for official use, only for testing of new
patches. In the long run I want to understand how the offical Debian images
are built again, but unfortunately my vacation comes to an end and the new
semester is starting... it will be at least a month before I will have time
to study the Debian processes again. I may try to get crest running again
with the IDE disk before that.

Christian