Moved common code to functions include. Tested debian kernel package.
Enabled build of deb packages.
Added support for local git sources.
Using tag instead of branch for kernel source git checkout.