Allow building of kernel-tools standalone
For CKI and its cross-compile environment, it can not cross compile userspace tools. Instead we will native compiles them.
To allow this split, the kernel.spec needs to support only building userspace stuff and not the kernel itself.
However the userspace tools need some vars defined. This patch creates a new function and sets up those vars.
Also very useful for debugging userspace tools and skipping the hour long kernel build times (like LTO).
To use this effectively, one would use --without_up --without_debug --without_zfcpdump
Original author is Brian Masney bmasney@redhat.com, which I took from his RHEL-8 contribution.
Cc: Brian Masney bmasney@redhat.com Signed-off-by: Don Zickus dzickus@redhat.com