622eea7e81
It is silly to have a single header to declare the main() symbol, however some of the arches provided it while lib/bootblock.c relied on the arch headers to declare it. Just move the declaration into its own header file and utilize it. Change-Id: I743b4c286956ae047c17fe46241b699feca73628 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/13681 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins)
26 lines
851 B
C
26 lines
851 B
C
/*
|
|
* This file is part of the coreboot project.
|
|
*
|
|
* Copyright 2014 Google Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; version 2 of the License.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef __BOOTBLOCK_COMMON_H
|
|
#define __BOOTBLOCK_COMMON_H
|
|
|
|
#include <main_decl.h>
|
|
|
|
/* These are defined as weak no-ops that can be overridden by mainboard/SoC. */
|
|
void bootblock_mainboard_early_init(void);
|
|
void bootblock_mainboard_init(void);
|
|
void bootblock_soc_init(void);
|
|
|
|
#endif /* __BOOTBLOCK_COMMON_H */
|