Subject: Re: build.sh and xen?
To: None <reed@reedmedia.net>
From: Greg Troxel <gdt@ir.bbn.com>
List: port-xen
Date: 07/23/2006 10:18:37
--=-=-=
Content-Transfer-Encoding: quoted-printable


reed@reedmedia.net writes:

> How to build kernel modules for xen?
>
> Xen kernel is built with DEBUG and DIAGNOSTIC and the kernel modules are=
=20
> not so they conflict.
>
> So I want to build modules with those options. But I don't see any=20
> build.sh config for building just modules.

I think this is really a general problem of lkm vs kernel options and
not about xen, except that xen kenrels have DEBUG/DIAGNOSTIC set.

I added

CPPFLAGS+=3D      -DDIAGNOSTIC

to /usr/src/sys/lkm/Makefile.inc

and then build.sh builds lkms with DIAGNOSTIC.  Of course, they then
don't work with non-DIAGNOSTIC kernels.

I think what is needed is either

1) treat lkms needing a flag as a bug and fix them.  This is probably
   too hard.

2) Enumerate the n flags that matter in some config file, and build
   2^n flavors of lkms with build.sh, or perhaps just have a way to
   configure the requested sets.

3) Stop using lkms.

=2D-=20
    Greg Troxel <gdt@ir.bbn.com>

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (NetBSD)

iD8DBQFEw4VB+vesoDJhHiURAvU3AJ9SdOBzf7bd0FSr42JuIM5+tFGAcQCgiXNb
PIJwL232AJofdg4NTUW1/jM=
=D55M
-----END PGP SIGNATURE-----
--=-=-=--