]> git.baikalelectronics.ru Git - uboot.git/commit
spl: ti: Avoid serial calls when serial support is disabled
authorAlex Kiernan <alex.kiernan@gmail.com>
Thu, 19 Apr 2018 04:32:53 +0000 (04:32 +0000)
committerTom Rini <trini@konsulko.com>
Sat, 28 Apr 2018 22:32:23 +0000 (18:32 -0400)
commit02a30fd3dce2ef5d708d99ac276be110c85119da
treee101584f003defaea05ecaa5e2abfcfc209c21c2
parentdec13604fb9cc4c8d416e0fc3315f6512dec5b77
spl: ti: Avoid serial calls when serial support is disabled

If CONFIG_SPL_SERIAL_SUPPORT is not set, then the build will fail:

board/ti/am335x/built-in.o: In function `spl_start_uboot':
board/ti/am335x/board.c:247: undefined reference to `serial_tstc'
board/ti/am335x/board.c:247: undefined reference to `serial_getc'

Avoid the calls to the serial functions in that case.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
board/ti/am335x/board.c