amnezia-vpn / amneziawg-linux-kernel-module

AmneziaWG Linux kernel module
https://www.wireguard.com
GNU General Public License v2.0
80 stars 17 forks source link

Patching in AWG into a full kernel build does not work #35

Open romanrm opened 1 month ago

romanrm commented 1 month ago

Hello,

I compile my own kernel from mainline source and then make a .deb of that. I would like to make it so that this kernel includes the AWG module as a part of its build. In the upstream WireGuard, a script called "jury-rig.sh" was used for that, before WG got included into mainline. AWG also ships this file in the "kernel-tree-scripts" directory. But it appears it has not been edited from "wireguard" to "amneziawg", not touched in any way in 5 years, and does not seem to work. With some manual fixups, all I could reach was:

In file included from net/amneziawg/noise.h:8,
                 from net/amneziawg/device.h:9,
                 from net/amneziawg/main.c:8:
net/amneziawg/messages.h:9:10: fatal error: zinc/curve25519.h: No such file or directory
    9 | #include <zinc/curve25519.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.

Could you try out that script, and ensure it works and could be used for such build process? Or how to achieve the same otherwise? Thanks