coreboot: introduce commonlib

Instead of reaching into src/include and re-writing code
allow for cleaner code sharing within coreboot and its
utilities. The additional thing needed at this point is
for the utilities to provide a printk() declaration within
a <console/console.h> file. That way code which uses printk()
can than be mapped properly to verbosity of utility parameters.

Change-Id: I9e46a279569733336bc0a018aed96bc924c07cdd
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/11592
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
Aaron Durbin
2015-09-08 13:34:43 -05:00
parent 4b93a4f47a
commit dc9f5cd546
85 changed files with 619 additions and 582 deletions

View File

@ -255,7 +255,7 @@
#include <assert.h>
#include <console/console.h>
#include <console/loglevel.h>
#include <commonlib/loglevel.h>
#ifndef NULL
#define NULL (void *)0

View File

@ -272,7 +272,7 @@
#include <assert.h>
#include <console/console.h>
#include <console/loglevel.h>
#include <commonlib/loglevel.h>
#ifndef NULL
#define NULL ((void *)0)

View File

@ -259,7 +259,7 @@
#include <assert.h>
#include <console/console.h>
#include <console/loglevel.h>
#include <commonlib/loglevel.h>
#ifndef NULL
#define NULL (void *)0

View File

@ -50,7 +50,7 @@
#include "amdlib.h"
#include "cbfs.h"
#include <console/console.h>
#include <console/loglevel.h>
#include <commonlib/loglevel.h>
// TODO Add a kconfig option to name the AGESA ROM file in CBFS
#define CONFIG_CBFS_AGESA_NAME "AGESA"

View File

@ -280,7 +280,7 @@
#include <assert.h>
#include <config.h>
#include <console/console.h>
#include <console/loglevel.h>
#include <commonlib/loglevel.h>
#ifndef NULL
#define NULL ((void *)0)

View File

@ -61,6 +61,7 @@ AGESA_INC += -I$(src)/southbridge/amd/pi/hudson
AGESA_INC += -I$(src)/arch/x86/include
AGESA_INC += -I$(src)/include
AGESA_INC += -I$(src)/commonlib/include
AGESA_CFLAGS += -march=amdfam10 -mno-3dnow -fno-zero-initialized-in-bss -fno-strict-aliasing
CFLAGS_x86_32 += $(AGESA_CFLAGS)

View File

@ -20,7 +20,7 @@
#define VBOOT_COMMON_H
#include <stdint.h>
#include <region.h>
#include <commonlib/region.h>
/* The FW areas consist of multiple components. At the beginning of
* each area is the number of total compoments as well as the size and