Hello again,
I noticed some additional commits fixed the problem I encountered above. I pulled the latest and built a new image with the headers installed. Unfortunately it seems the build directory under the kernel headers is missing some key files required for DKMS to build properly. Here are the steps I took on a new debian image:
sudo apt update && sudo apt dist-upgrade && sudo apt install wireguard
The first time it looks like the DKMS build failed because it tried to run before g++ was fully setup. I attempted to re-run the setup using "sudo apt-get -f install" which tried to rebuild wireguard-dkms but failed:
usbarmory@usbarmory:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up wireguard-dkms (1.0.20201221-1~bpo10+1) ...
Removing old wireguard-1.0.20201221 DKMS files...
------------------------------
Deleting module version: 1.0.20201221
completely from the DKMS tree.
------------------------------
Done.
Loading new wireguard-1.0.20201221 DKMS files...
It is likely that 5.4.87-0 belongs to a chroot's host
Building for 5.4.87-0
Building initial module for 5.4.87-0
Error! Bad return status for module build on kernel: 5.4.87-0 (armv7l)
Consult /var/lib/dkms/wireguard/1.0.20201221/build/make.log for more information.
dpkg: error processing package wireguard-dkms (--configure):
installed wireguard-dkms package post-installation script subprocess returned error exit status 10
Here's the contents of
/var/lib/dkms/wireguard/1.0.20201221/build/make.log
DKMS make.log for wireguard-1.0.20201221 for kernel 5.4.87-0 (armv7l)
Wed 13 Jan 2021 07:12:26 PM UTC
make: Entering directory '/usr/lib/modules/5.4.87-0/build'
make: *** No targets specified and no makefile found. Stop.
make: Leaving directory '/usr/lib/modules/5.4.87-0/build'