Move compiler.h to commonlib
Its spreading copies got out of sync. And as it is not a standard header but used in commonlib code, it belongs into commonlib. While we are at it, always include it via GCC's `-include` switch. Some Windows and BSD quirk handling went into the util copies. We always guard from redefinitions now to prevent further issues. Change-Id: I850414e6db1d799dce71ff2dc044e6a000ad2552 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/28927 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
#include <cbmem.h>
|
||||
#include <cpu/amd/car.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <compiler.h>
|
||||
#include <console/console.h>
|
||||
#include <halt.h>
|
||||
#include <program_loading.h>
|
||||
|
@@ -21,7 +21,6 @@
|
||||
#include <bootstate.h>
|
||||
#include <cbfs.h>
|
||||
#include <cbmem.h>
|
||||
#include <compiler.h>
|
||||
|
||||
#include <northbridge/amd/agesa/state_machine.h>
|
||||
#include <northbridge/amd/agesa/agesa_helper.h>
|
||||
|
@@ -18,7 +18,6 @@
|
||||
#include <pc80/mc146818rtc.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <compiler.h>
|
||||
#include <elog.h>
|
||||
|
||||
/*
|
||||
|
@@ -16,7 +16,6 @@
|
||||
#ifndef ELOG_INTERNAL_H_
|
||||
#define ELOG_INTERNAL_H_
|
||||
|
||||
#include <compiler.h>
|
||||
/* ELOG header */
|
||||
struct elog_header {
|
||||
u32 magic;
|
||||
|
@@ -13,9 +13,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <compiler.h>
|
||||
#include <arch/io.h>
|
||||
#include <compiler.h>
|
||||
#include <console/console.h>
|
||||
#include <cpu/x86/smm.h>
|
||||
#include <elog.h>
|
||||
|
@@ -16,7 +16,6 @@
|
||||
#ifndef __DRIVERS_I2C_DESIGNWARE_I2C_H__
|
||||
#define __DRIVERS_I2C_DESIGNWARE_I2C_H__
|
||||
|
||||
#include <compiler.h>
|
||||
#include <device/device.h>
|
||||
#include <device/i2c.h>
|
||||
#include <stdint.h>
|
||||
|
@@ -31,7 +31,6 @@
|
||||
|
||||
#include <arch/early_variables.h>
|
||||
#include <commonlib/endian.h>
|
||||
#include <compiler.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <types.h>
|
||||
|
@@ -14,7 +14,6 @@
|
||||
|
||||
#include <arch/early_variables.h>
|
||||
#include <stdint.h>
|
||||
#include <compiler.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <commonlib/endian.h>
|
||||
|
@@ -15,7 +15,6 @@
|
||||
|
||||
#include <types.h>
|
||||
#include <string.h>
|
||||
#include <compiler.h>
|
||||
#include <console/console.h>
|
||||
#include <bootstate.h>
|
||||
#include <cbmem.h>
|
||||
|
@@ -16,7 +16,6 @@
|
||||
#ifndef FSP_UTIL_H
|
||||
#define FSP_UTIL_H
|
||||
|
||||
#include <compiler.h>
|
||||
#include <chipset_fsp_util.h>
|
||||
#include "fsp_values.h"
|
||||
|
||||
|
@@ -14,7 +14,6 @@
|
||||
*/
|
||||
|
||||
#include <arch/early_variables.h>
|
||||
#include <compiler.h>
|
||||
#include <console/console.h>
|
||||
#include <fsp/car.h>
|
||||
#include <fsp/util.h>
|
||||
|
@@ -14,7 +14,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <compiler.h>
|
||||
#include <bootstate.h>
|
||||
#include <cbmem.h>
|
||||
#include <console/console.h>
|
||||
|
@@ -15,7 +15,6 @@
|
||||
|
||||
#include <arch/acpi.h>
|
||||
#include <cbmem.h>
|
||||
#include <compiler.h>
|
||||
#include <console/console.h>
|
||||
#include <fsp/memmap.h>
|
||||
#include <fsp/romstage.h>
|
||||
|
@@ -18,7 +18,6 @@
|
||||
#include <arch/acpi.h>
|
||||
#include <cbmem.h>
|
||||
#include <cbfs.h>
|
||||
#include <compiler.h>
|
||||
#include <console/console.h>
|
||||
#include <fsp/memmap.h>
|
||||
#include <fsp/ramstage.h>
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#include <arch/cbfs.h>
|
||||
#include <arch/early_variables.h>
|
||||
#include <assert.h>
|
||||
#include <compiler.h>
|
||||
#include <console/console.h>
|
||||
#include <cbmem.h>
|
||||
#include <cpu/intel/microcode.h>
|
||||
|
@@ -10,7 +10,6 @@
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include <compiler.h>
|
||||
#include <cbfs.h>
|
||||
#include <console/console.h>
|
||||
#include <fsp/util.h>
|
||||
|
@@ -9,7 +9,6 @@
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include <compiler.h>
|
||||
#include <console/console.h>
|
||||
#include <fsp/util.h>
|
||||
|
||||
|
@@ -12,8 +12,6 @@
|
||||
#ifndef _FSP2_0_UPD_H_
|
||||
#define _FSP2_0_UPD_H_
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
struct FSP_UPD_HEADER {
|
||||
///
|
||||
/// UPD Region Signature. This signature will be
|
||||
|
@@ -13,7 +13,6 @@
|
||||
#ifndef _FSP2_0_UTIL_H_
|
||||
#define _FSP2_0_UTIL_H_
|
||||
|
||||
#include <compiler.h>
|
||||
#include <boot/coreboot_tables.h>
|
||||
#include <commonlib/region.h>
|
||||
#include <arch/cpu.h>
|
||||
|
@@ -11,7 +11,6 @@
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
#include <compiler.h>
|
||||
#include <security/vboot/antirollback.h>
|
||||
#include <arch/io.h>
|
||||
#include <arch/cpu.h>
|
||||
|
@@ -12,7 +12,6 @@
|
||||
|
||||
#include <arch/cpu.h>
|
||||
#include <bootstate.h>
|
||||
#include <compiler.h>
|
||||
#include <console/console.h>
|
||||
#include <fsp/util.h>
|
||||
#include <soc/intel/common/util.h>
|
||||
|
@@ -10,7 +10,6 @@
|
||||
*/
|
||||
|
||||
#include <arch/cpu.h>
|
||||
#include <compiler.h>
|
||||
#include <console/console.h>
|
||||
#include <fsp/util.h>
|
||||
#include <lib.h>
|
||||
|
@@ -28,8 +28,6 @@
|
||||
#ifndef _I830_BIOS_H_
|
||||
#define _I830_BIOS_H_
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
struct vbt_header {
|
||||
u8 signature[20]; /**< Always starts with 'VBT$' */
|
||||
u16 version; /**< decimal */
|
||||
|
@@ -19,7 +19,6 @@
|
||||
#define _COMMON_GMA_H_
|
||||
|
||||
#include <types.h>
|
||||
#include <compiler.h>
|
||||
#include <commonlib/helpers.h>
|
||||
|
||||
/* IGD PCI Configuration register */
|
||||
|
@@ -17,7 +17,6 @@
|
||||
#define __INTEL_MIPI_CAMERA_CHIP_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <compiler.h>
|
||||
|
||||
#define MAX_PWDB_ENTRIES 12
|
||||
|
||||
|
@@ -15,7 +15,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <compiler.h>
|
||||
#include <arch/acpi_device.h>
|
||||
#include <arch/acpigen.h>
|
||||
#include <console/console.h>
|
||||
|
@@ -13,7 +13,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <compiler.h>
|
||||
#include <string.h>
|
||||
#include <boot_device.h>
|
||||
#include <bootstate.h>
|
||||
|
@@ -16,8 +16,6 @@
|
||||
#ifndef _SIEMENS_NC_FPGA_H_
|
||||
#define _SIEMENS_NC_FPGA_H_
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
#define NC_MAGIC_OFFSET 0x020
|
||||
#define NC_FPGA_MAGIC 0x4E433746
|
||||
#define NC_CAP1_OFFSET 0x080
|
||||
|
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include <compiler.h>
|
||||
#include <spi-generic.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@@ -17,7 +17,6 @@
|
||||
|
||||
#include <arch/early_variables.h>
|
||||
#include <assert.h>
|
||||
#include <compiler.h>
|
||||
#include <commonlib/endian.h>
|
||||
#include <console/console.h>
|
||||
#include <delay.h>
|
||||
|
@@ -19,8 +19,6 @@
|
||||
#ifndef EHCI_H
|
||||
#define EHCI_H
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
/* EHCI register interface, corresponds to EHCI Revision 0.95 specification */
|
||||
|
||||
/* Section 2.2 Host Controller Capability Registers */
|
||||
|
@@ -17,8 +17,6 @@
|
||||
#ifndef USB_CH9_H
|
||||
#define USB_CH9_H
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
#define USB_DIR_OUT 0 /* to device */
|
||||
#define USB_DIR_IN 0x80 /* to host */
|
||||
|
||||
|
@@ -9,7 +9,6 @@
|
||||
#ifndef __LIB_VPD_TABLES_H__
|
||||
#define __LIB_VPD_TABLES_H__
|
||||
|
||||
#include <compiler.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#define VPD_ENTRY_MAGIC "_SM_"
|
||||
|
Reference in New Issue
Block a user