make-kpkg is a deprecated command and make deb-pkg should be used which is
maintained by the Kernel developers. Switch to the new command for Kernel
building which eases the transition to Debian Buster.
Exract version by using the included "make kernelversion" instead of writing
a custom grep script that was used before.
VERSION=$(grep '^VERSION' Makefile | grep -Eo '[0-9]{1,4}')
PATCHLEVEL=$(grep '^PATCHLEVEL' Makefile | grep -Eo '[0-9]{1,4}')
SUBLEVEL=$(grep '^SUBLEVEL' Makefile | grep -Eo '[0-9]{1,4}')
$ make kernelversion
4.19.36
Support building individual VyOS packages by this modules. Call
scripts/build-packages -l to list all available packages which will be
build when invoking scripts/build-packages.