I am trying to build a kernel in Ubuntu-18.04 WSL2 with this tutorial: https://www.frakkingsweet.com/running-pi-gen-on-wsl2/
Configuring worked all fine. But while building it with:
make KCONFIG_CONFIG=Microsoft/config-wsl.new -j4
this error appeared:
drivers/hyperv/dxgkrnl/dxgmodule.c:422:39: error: initializer element is not constant const int DXGK_VMBUS_VERSION_OFFSET = DXGK_VMBUS_CHANNEL_ID_OFFSET +
The dxgmodule file in which the error occurs is a C-file. Content of the file:
419: /* vGPU VM bus channel instance ID */
420: const int DXGK_VMBUS_CHANNEL_ID_OFFSET = 192;
421: /* DXGK_VMBUS_INTERFACE_VERSION (u32) */
422: const int DXGK_VMBUS_VERSION_OFFSET = DXGK_VMBUS_CHANNEL_ID_OFFSET +
423: sizeof(guid_t);
How do I change the code, so that the compiler reads the initializer expression as constant?