On Mon, 26 Mar 2018, Manuel Bouyer wrote:
On Mon, Mar 26, 2018 at 08:16:04AM +0800, Paul Goyette wrote:I know there's some magic somewhere in the Makefiles that automatically builds both "normal" and XEN variants of the modules for amd64 (and, for i386, there's a PAE variant, too)! But I can't seem to find the magic! Anyway, it seems to me that, when building the XEN (or PAE) variants of each module, they should be built with -DXEN (or -DPAE) options. There is atI think it has to be in opt_xen.h, not on the command line
The opt_* files are only applicable when building kernels, not for building modules.
In any case, see my just-filed PR kern/53130 for fixing this part of the problem!
+------------------+--------------------------+----------------------------+ | Paul Goyette | PGP Key fingerprint: | E-mail addresses: | | (Retired) | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com | | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org | +------------------+--------------------------+----------------------------+