chromeos: Move memlayout.h/symbols.h into common directory
Turns out there are uses for memlayout regions not specific to vboot2. Rather than add yet another set of headers for a single region, let's make the vboot2 one common for chromeos. BRANCH=veyron BUG=chrome-os-partner:35705 TEST=Booted Jerry, compiled Blaze, Cosmos, Ryu and Storm. Change-Id: I228e0ffce1ccc792e7f5f5be6facaaca2650d818 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: c6d7aab9f4e6d0cfa12aa0478288e54ec3096d9b Original-Change-Id: I1dd7d9c4b6ab24de695d42a38913b6d9b952d49b Original-Signed-off-by: Julius Werner <jwerner@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/242630 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/9748 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
f97b88bee8
commit
731bfefd78
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <memlayout.h>
|
#include <memlayout.h>
|
||||||
#include <vendorcode/google/chromeos/vboot2/memlayout.h>
|
#include <vendorcode/google/chromeos/memlayout.h>
|
||||||
|
|
||||||
#include <arch/header.ld>
|
#include <arch/header.ld>
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <memlayout.h>
|
#include <memlayout.h>
|
||||||
#include <vendorcode/google/chromeos/vboot2/memlayout.h>
|
#include <vendorcode/google/chromeos/memlayout.h>
|
||||||
|
|
||||||
#include <arch/header.ld>
|
#include <arch/header.ld>
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <memlayout.h>
|
#include <memlayout.h>
|
||||||
#include <vendorcode/google/chromeos/vboot2/memlayout.h>
|
#include <vendorcode/google/chromeos/memlayout.h>
|
||||||
|
|
||||||
#include <arch/header.ld>
|
#include <arch/header.ld>
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <memlayout.h>
|
#include <memlayout.h>
|
||||||
#include <vendorcode/google/chromeos/vboot2/memlayout.h>
|
#include <vendorcode/google/chromeos/memlayout.h>
|
||||||
|
|
||||||
#include <arch/header.ld>
|
#include <arch/header.ld>
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <memlayout.h>
|
#include <memlayout.h>
|
||||||
#include <vendorcode/google/chromeos/vboot2/memlayout.h>
|
#include <vendorcode/google/chromeos/memlayout.h>
|
||||||
|
|
||||||
#include <arch/header.ld>
|
#include <arch/header.ld>
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
|
|
||||||
/* This file contains macro definitions for memlayout.ld linker scripts. */
|
/* This file contains macro definitions for memlayout.ld linker scripts. */
|
||||||
|
|
||||||
#ifndef __CHROMEOS_VBOOT2_MEMLAYOUT_H
|
#ifndef __CHROMEOS_MEMLAYOUT_H
|
||||||
#define __CHROMEOS_VBOOT2_MEMLAYOUT_H
|
#define __CHROMEOS_MEMLAYOUT_H
|
||||||
|
|
||||||
/* Careful: required work buffer size depends on RW properties such as key size
|
/* Careful: required work buffer size depends on RW properties such as key size
|
||||||
* and algorithm -- what works for you might stop working after an update. Do
|
* and algorithm -- what works for you might stop working after an update. Do
|
||||||
|
@ -47,4 +47,4 @@
|
||||||
#define OVERLAP_VERSTAGE_ROMSTAGE(addr, size) ROMSTAGE(addr, size)
|
#define OVERLAP_VERSTAGE_ROMSTAGE(addr, size) ROMSTAGE(addr, size)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __CHROMEOS_VBOOT2_MEMLAYOUT_H */
|
#endif /* __CHROMEOS_MEMLAYOUT_H */
|
|
@ -17,8 +17,8 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CHROMEOS_VBOOT2_SYMBOLS_H
|
#ifndef __CHROMEOS_SYMBOLS_H
|
||||||
#define __CHROMEOS_VBOOT2_SYMBOLS_H
|
#define __CHROMEOS_SYMBOLS_H
|
||||||
|
|
||||||
extern u8 _vboot2_work[];
|
extern u8 _vboot2_work[];
|
||||||
extern u8 _evboot2_work[];
|
extern u8 _evboot2_work[];
|
||||||
|
@ -29,4 +29,4 @@ extern u8 _verstage[];
|
||||||
extern u8 _everstage[];
|
extern u8 _everstage[];
|
||||||
#define _verstage_size (_everstage - _verstage)
|
#define _verstage_size (_everstage - _verstage)
|
||||||
|
|
||||||
#endif /* __CHROMEOS_VBOOT2_SYMBOLS_H */
|
#endif /* __CHROMEOS_SYMBOLS_H */
|
|
@ -21,9 +21,9 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <reset.h>
|
#include <reset.h>
|
||||||
#include "../chromeos.h"
|
#include "../chromeos.h"
|
||||||
|
#include "../symbols.h"
|
||||||
#include "../vboot_handoff.h"
|
#include "../vboot_handoff.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "symbols.h"
|
|
||||||
|
|
||||||
void *vboot_load_stage(int stage_index,
|
void *vboot_load_stage(int stage_index,
|
||||||
struct vboot_region *fw_main,
|
struct vboot_region *fw_main,
|
||||||
|
|
|
@ -23,8 +23,8 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <timestamp.h>
|
#include <timestamp.h>
|
||||||
#include "../chromeos.h"
|
#include "../chromeos.h"
|
||||||
|
#include "../symbols.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "symbols.h"
|
|
||||||
|
|
||||||
static struct vb2_working_data *init_vb2_working_data(void)
|
static struct vb2_working_data *init_vb2_working_data(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue