Hi Laurent!

On Mon, 2023-06-12 at 16:58 +0200, Laurent Vivier wrote:
> These changes to the linux package are needed to create kernel .debs
> and .udebs with all the needed modules for the QEMU m68k virt machine.
> 
> These is also needed to create the debian-installer that will be usable
> with the virt machine.

I played around with the Debian kernel configuration a bit yesterday and
we actually only need a simple kernel configuration file for the -virt
flavor:

glaubitz@nofan:..linux/linux-6.4.4> cat debian/config/m68k/config.virt 
##
## file: arch/m68k/Kconfig.machine
##
CONFIG_VIRT=y
glaubitz@nofan:..linux/linux-6.4.4>

We should actually align the m68k kernel configuration with the one for Alpha
which has one common config file as well as separate configuration files for
both a generic kernel and the smp kernel [1].

We should have the following files in the end:

- config
- config.m68k-generic
- config.m68k-virt

For editing the configuration, it's normally recommended to follow this guide 
[2]
and check the configuration with the kconfigeditor2 script [3].

However, in our case it should be enough to split the configuration items 
specific
to Amiga, Atari and Mac to the config.m68k-generic configuration file, leave the
rest in config and just add CONFIG_VIRT=y to config.m68k-virt as show above.

Adrian

> [1] 
> https://salsa.debian.org/kernel-team/linux/-/tree/master/debian/config/alpha
> [2] 
> https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#id-1.6.6.4
> [3] 
> https://salsa.debian.org/kernel-team/kernel-team/-/tree/master/utils/kconfigeditor2

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply via email to