Need help turning OSMC into the proper build environment for compiling a wireless adapter driver

kernel-package was removed in Debian stretch I assume the build also works without it. So maybe try by removing that from the install line.
Not sure if @sam_nazarko has additional info