bionic: Fix toupper() command

It had its logic inverted.

Signed-off-by: Sean Cross <xobs@kosagi.com>
cmd-spi: Add spi_raw command

These commands are needed to get flashrom support.

Signed-off-by: Sean Cross <xobs@kosagi.com>
fernly: Remove serial loader

Everything is done via USB now, so it is no longer needed.

Signed-off-by: Sean Cross <xobs@kosagi.com>
vsprintf: Fix build warning for %t

Signed-off-by: Sean Cross <xobs@kosagi.com>
main: Fix build warning on serial_get_char()

Signed-off-by: Sean Cross <xobs@kosagi.com>
Makefile: Remove loader, fix objcopy

Signed-off-by: Sean Cross <xobs@kosagi.com>
bionic: Rename _memcpy() to memcpy()

We properly replicate the standard function prototype, so use the real name.

Signed-off-by: Sean Cross <xobs@kosagi.com>
serial: Disable optimization to fix code

Building with -O2 or -Os causes serial to not work.

Signed-off-by: Sean Cross <xobs@kosagi.com>
spi: use memcpy() and not _memcpy()

We renamed it to match the standard name.

Signed-off-by: Sean Cross <xobs@kosagi.com>
bionic: Use serial functions for puts() / putchar()

gcc will automatically use these functions for certain operations.  Don't
punt and use printf(), instead call serial_putc and serial_puts.

Signed-off-by: Sean Cross <xobs@kosagi.com>
main: Use serial_putc() for one-character prints

Signed-off-by: Sean Cross <xobs@kosagi.com>
serial: Add \r when \n is printed

Signed-off-by: Sean Cross <xobs@kosagi.com>