lib/coreboot_tables: Remove weak fill_lb_framebuffer()

Remove the weak function stub fill_lb_framebuffer() and guard with the
new `CONFIG_LINEAR_FRAMEBUFFER` instead.

Change-Id: Ia9e477c2d501b249a632968b5636ac803323895a
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/19807
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
This commit is contained in:
Nico Huber 2017-05-20 20:47:18 +02:00 committed by Martin Roth
parent 6d8266b91d
commit ce768f3baf
1 changed files with 1 additions and 6 deletions

View File

@ -135,17 +135,12 @@ void lb_add_console(uint16_t consoletype, void *data)
console->type = consoletype;
}
int __attribute__((weak)) fill_lb_framebuffer(struct lb_framebuffer *fb)
{
return -1;
}
static void lb_framebuffer(struct lb_header *header)
{
struct lb_framebuffer *framebuffer;
struct lb_framebuffer fb;
if (fill_lb_framebuffer(&fb))
if (!IS_ENABLED(CONFIG_LINEAR_FRAMEBUFFER) || fill_lb_framebuffer(&fb))
return;
framebuffer = (struct lb_framebuffer *)lb_new_record(header);