[GH-ISSUE #35] Patching in AWG into a full kernel build does not work #18

Open
opened 2026-10-13 21:05:15 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @romanrm on GitHub (Oct 15, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/35

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

Originally created by @romanrm on GitHub (Oct 15, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/35 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
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-linux-kernel-module#18
No description provided.