Skip to content

Commit c7afbc1

Browse files
committed
experimentally add and build wireguard
I need it temporarily over the next few weeks. Let’s see how much maintenance effort it is to keep it in.
1 parent 4281fc1 commit c7afbc1

File tree

4 files changed

+49056
-1
lines changed

4 files changed

+49056
-1
lines changed

cmd/rtr7-build-kernel/build.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ CONFIG_KEXEC_FILE=y
9191
9292
# For apu2c4 watchdog
9393
CONFIG_SP5100_TCO=y
94+
95+
# For WireGuard
96+
CONFIG_NET_UDP_TUNNEL=y
97+
CONFIG_WIREGUARD=y
9498
`
9599

96100
func downloadKernel() error {

cmd/rtr7-rebuild-kernel/kernel.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ var dockerFileTmpl = template.Must(template.New("dockerfile").
5353
}).
5454
Parse(dockerFileContents))
5555

56-
var patchFiles = []string{}
56+
var patchFiles = []string{
57+
"wireguard.patch",
58+
}
5759

5860
func copyFile(dest, src string) error {
5961
out, err := os.Create(dest)

vmlinuz

84 KB
Binary file not shown.

0 commit comments

Comments
 (0)