x86, tools: Consolidate #ifdef code
authorMatt Fleming <matt.fleming@intel.com>
Thu, 1 Aug 2013 13:18:49 +0000 (14:18 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 4 Mar 2014 21:23:35 +0000 (21:23 +0000)
commit993c30a04e205fb239c0875b25b43ddef0499845
tree335934b76f4aa6b2ed1de688033a41d03e6ad62d
parent86134a1b39fd056a7b6778608a5882f0ea1bc705
x86, tools: Consolidate #ifdef code

Instead of littering main() with #ifdef CONFIG_EFI_STUB, move the logic
into separate functions that do nothing if the config option isn't set.
This makes main() much easier to read.

Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/boot/tools/build.c