x86/boot: Changed error putstr path to match new debug_putstr format

Signed-off-by: Joe Millenbach <jmillenbach@gmail.com>
x86/boot: Switch from flags to conditional compilation

Changed putstr flagging from parameter to conditional compilation for puts, debug_putstr, and error_putstr

Signed-off-by: Joe Millenbach <jmillenbach@gmail.com>
x86/boot: Removed unused debug flag and set code

As we're no longer using the flag we don't need to extract the value from the command line and store it.

Signed-off-by: Joe Millenbach <jmillenbach@gmail.com>
x86/boot: Exclude early_serial_console.c if can't use it.

Removes early_serial_console.c code if we don't have the config option that it influences (EARLY_PRINTK).  Also makes one of the variables obviously zero and not changing to help the optimizer out.

Signed-off-by: Joe Millenbach <jmillenbach@gmail.com>
x86/boot: Exclude cmdline.c if you can't use it

If you've turned off both kconfig options that might need command line
parameters during decompression then we'll exclude the related code to save
space.

Signed-off-by: Joe Millenbach <jmillenbach@gmail.com>
Signed-off-by: Gokul Caushik <caushik1@gmail.com>
x86/boot: Removed quiet flag and switched quiet output to debug flag

There are only 3 uses of the quiet flag and they all protect output that
is only useful for debugging the stub, therefore we switched to using the
debug flag for all extra output.

Signed-off-by: Joe Millenbach <jmillenbach@gmail.com>
Signed-off-by: Gokul Caushik <caushik1@gmail.com>
x86/boot: Replaced if(debug) putstr(...) with debug_putstr(...)

We want to use a function instead of flags for checking the debug option to
potentially save space, by allowing future work on switching to a kconfig entry
instead of a runtime flag.

Signed-off-by: Joe Millenbach <jmillenbach@gmail.com>
Signed-off-by: Gokul Caushik <caushik1@gmail.com>
x86/boot: Changed error putstr path to match new debug_putstr format

For consistency we changed the error output path to match the new debug path.

Signed-off-by: Joe Millenbach <jmillenbach@gmail.com>
Signed-off-by: Gokul Caushik <caushik1@gmail.com>
x86/boot: Switch from flags to conditional compilation

Changed putstr flagging from parameter to conditional compilation for puts,
debug_putstr, and error_putstr. This allows for space savings since most
configurations won't use this feature.

Signed-off-by: Joe Millenbach <jmillenbach@gmail.com>
Signed-off-by: Gokul Caushik <caushik1@gmail.com>
x86/boot: Removed unused debug flag and set code

As we're no longer using the flag we don't need to extract the value from the
command line and store it. This is a step towards removing command line
parameter code.

Signed-off-by: Joe Millenbach <jmillenbach@gmail.com>
Signed-off-by: Gokul Caushik <caushik1@gmail.com>
x86/boot: Exclude early_serial_console.c if can't use it.

Removes early_serial_console.c code if we don't have the config option that it
influences (EARLY_PRINTK). Also makes one of the variables immutable, which
helps the optimizer save space.

Signed-off-by: Joe Millenbach <jmillenbach@gmail.com>
Signed-off-by: Gokul Caushik <caushik1@gmail.com>
x86/boot: Exclude cmdline.c if you can't use it

During decompression if both kconfig options that use command line parameters
are turned off, then we can exclude the related code to save space. This can
result in an estimated space savings of 2240 bytes from the compressed kernel
image.

Signed-off-by: Joe Millenbach <jmillenbach@gmail.com>
Signed-off-by: Gokul Caushik <caushik1@gmail.com>
Merge remote-tracking branch 'joebranch/p1' into patch