Re: config: conditional at clause (was: vio9p vs. GENERIC.local vs. XEN3_DOM[0U])

[email protected] (Michael van Elst)
Newsgroups gmane.os.netbsd.devel.kernel
Organization Serpens User Group
Message-ID <[email protected]>
[email protected] (Edgar =?iso-8859-1?B?RnXf?=) writes:

>> The right level of abstraction is to do something that says
>> 
>>   if there is a virtio bus, add viop* at virtio*
>I have no idea about config's internal workings, but what about
>	viop* at? virtio*


What you can do is e.g.

ifndef xpci
vio9p* at virtio?
endif

The conditional configuration only works on attributes and the various
virtio attributes are currently defined unconditionally.

But the xpci attribute only exists for x86/xen builds.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.