On Mon, 26 Mar 2018, Manuel Bouyer wrote:
On Mon, Mar 26, 2018 at 03:11:09PM +0800, Paul Goyette wrote:[...] The opt_* files are only applicable when building kernels, not for building modules.OK, I guess this is what _KERNEL_OPT is for. The I would use -DXEN=1 -DPAE=1, because that's what is in opt_xen.h
Right - which is what I did in my fix-part-1 in PR 53130.The trick is to define it only when building the xen-variant of the module; it needs to remain undefined for building the normal variant.
Anyway, this part has been solved, and moving on to the next part... +------------------+--------------------------+----------------------------+ | 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 | +------------------+--------------------------+----------------------------+