Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jan 2009 16:27:09 +0000
From:      "Andrew Brampton" <brampton+freebsd-hackers@gmail.com>
To:        "Giorgos Keramidas" <keramida@ceid.upatras.gr>
Cc:        hackers@freebsd.org, Eugene Grosbein <eugen@kuzbass.ru>
Subject:   Re: Determine if a kernel is built with a specific option?
Message-ID:  <d41814900901120827v688237a9x7c60e45d988c4e3f@mail.gmail.com>
In-Reply-To: <873afolcrh.fsf@kobe.laptop>
References:  <d41814900901120355h780a3232u14fa1e5da8f280ad@mail.gmail.com> <a31046fc0901120500q5ab31adax903d32279894e23e@mail.gmail.com> <20090112145131.GA4375@svzserv.kemerovo.su> <d41814900901120656s5d6f8f78te714fee01a6dff0f@mail.gmail.com> <873afolcrh.fsf@kobe.laptop>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/1/12 Giorgos Keramidas <keramida@ceid.upatras.gr>:
> On Mon, 12 Jan 2009 14:56:21 +0000, "Andrew Brampton" <brampton+freebsd-hackers@gmail.com> wrote:
>> If you were going to do this, would you make it a configure flag... ie
>> --enable-polling... That way it doesn't matter if the build box is
>> different?
>
> If both choices are available (i.e. no header files are missing, no
> link-time libraries are unavailable, and so on), I'd probably make it a
> runtime option:

That is the problem, if polling is enabled there are some symbols
which are required which are unavailable if running on a GENERIC
kernel. By turning off polling, different #defines are used in the
code, removing any calls to the kernel polling functions. So as much
as I was like to make this a runtime option, I don't think I can.

>
>  * A configure-time flag to set the 'default' and
>
>  * A runtime option to explicitly specify the current preference when
>    the program runs.
>
> This seems a bit more flexible, and does not require an expensive ``go
> back to your vendor, and ask for a special build-time option'' cycle to
> test different setups when a field installation is done.
>

Thanks to everyone that has replied. I think I'm just going to make
this a configure flag, and if the target system doesn't have a
suitable kernel then the software (or kernel) will have to be rebuilt.

thanks for your wisdom
Andrew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d41814900901120827v688237a9x7c60e45d988c4e3f>