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:
@@ -14,7 +14,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <compiler.h>
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <delay.h>
|
||||
|
@@ -17,8 +17,6 @@
|
||||
#ifndef _INTEL_ME_H
|
||||
#define _INTEL_ME_H
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
#define ME_RETRY 100000 /* 1 second */
|
||||
#define ME_DELAY 10 /* 10 us */
|
||||
|
||||
|
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
#include <commonlib/helpers.h>
|
||||
#include <compiler.h>
|
||||
#include <stdint.h>
|
||||
#include "vendorcode/google/chromeos/gnvs.h"
|
||||
|
||||
|
@@ -17,7 +17,6 @@
|
||||
#define INTEL_COMMON_GPIO_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <compiler.h>
|
||||
|
||||
/* ICH7 GPIOBASE */
|
||||
#define GPIO_USE_SEL 0x00
|
||||
|
@@ -17,7 +17,6 @@
|
||||
#include <types.h>
|
||||
#include <arch/io.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <compiler.h>
|
||||
#include <console/console.h>
|
||||
#include <cpu/x86/cache.h>
|
||||
#include <device/pci_def.h>
|
||||
|
@@ -19,7 +19,6 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <compiler.h>
|
||||
#include <bootstate.h>
|
||||
#include <commonlib/helpers.h>
|
||||
#include <delay.h>
|
||||
|
@@ -17,8 +17,6 @@
|
||||
#ifndef INTEL_BD82X6X_GPIO_H
|
||||
#define INTEL_BD82X6X_GPIO_H
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
#define GPIO_MODE_NATIVE 0
|
||||
#define GPIO_MODE_GPIO 1
|
||||
#define GPIO_MODE_NONE 1
|
||||
|
@@ -17,8 +17,6 @@
|
||||
#ifndef _INTEL_ME_H
|
||||
#define _INTEL_ME_H
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
#define ME_RETRY 100000 /* 1 second */
|
||||
#define ME_DELAY 10 /* 10 us */
|
||||
|
||||
|
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
#include <commonlib/helpers.h>
|
||||
#include <compiler.h>
|
||||
#include "vendorcode/google/chromeos/gnvs.h"
|
||||
|
||||
typedef struct global_nvs_t {
|
||||
|
@@ -17,8 +17,6 @@
|
||||
#ifndef INTEL_I89XX_GPIO_H
|
||||
#define INTEL_I89XX_GPIO_H
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
#define GPIO_MODE_NATIVE 0
|
||||
#define GPIO_MODE_GPIO 1
|
||||
#define GPIO_MODE_NONE 1
|
||||
|
@@ -17,8 +17,6 @@
|
||||
#ifndef _INTEL_ME_H
|
||||
#define _INTEL_ME_H
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
#define ME_RETRY 100000 /* 1 second */
|
||||
#define ME_DELAY 10 /* 10 us */
|
||||
|
||||
|
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
#include <commonlib/helpers.h>
|
||||
#include <compiler.h>
|
||||
#include "vendorcode/google/chromeos/gnvs.h"
|
||||
|
||||
typedef struct global_nvs_t {
|
||||
|
@@ -17,8 +17,6 @@
|
||||
#ifndef INTEL_RANGELEY_GPIO_H
|
||||
#define INTEL_RANGELEY_GPIO_H
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
#define GPIO_MODE_NATIVE 0
|
||||
#define GPIO_MODE_GPIO 1
|
||||
#define GPIO_MODE_NONE 1
|
||||
|
@@ -14,8 +14,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
typedef struct {
|
||||
/* Miscellaneous */
|
||||
u16 osys; /* 0x00 - Operating System */
|
||||
|
@@ -17,7 +17,6 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <compiler.h>
|
||||
#include <commonlib/helpers.h>
|
||||
#include <delay.h>
|
||||
#include <arch/io.h>
|
||||
|
@@ -13,8 +13,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
typedef struct {
|
||||
/* Miscellaneous */
|
||||
u16 osys; /* 0x00 - Operating System */
|
||||
|
@@ -13,8 +13,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
typedef struct {
|
||||
/* Miscellaneous */
|
||||
u16 osys; /* 0x00 - Operating System */
|
||||
|
@@ -13,8 +13,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
typedef struct {
|
||||
/* Miscellaneous */
|
||||
u16 osys; /* 0x00 - Operating System */
|
||||
|
@@ -13,8 +13,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
typedef struct {
|
||||
/* Miscellaneous */
|
||||
u16 osys; /* 0x00 - Operating System */
|
||||
|
@@ -17,8 +17,6 @@
|
||||
#ifndef _INTEL_ME_H
|
||||
#define _INTEL_ME_H
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
#define ME_RETRY 100000 /* 1 second */
|
||||
#define ME_DELAY 10 /* 10 us */
|
||||
|
||||
|
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
#include <commonlib/helpers.h>
|
||||
#include <compiler.h>
|
||||
#include "vendorcode/google/chromeos/gnvs.h"
|
||||
|
||||
typedef struct global_nvs_t {
|
||||
|
@@ -16,8 +16,6 @@
|
||||
#ifndef INTEL_LYNXPOINT_LP_GPIO_H
|
||||
#define INTEL_LYNXPOINT_LP_GPIO_H
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
/* LynxPoint LP GPIOBASE Registers */
|
||||
#define GPIO_OWNER(set) (0x00 + ((set) * 4))
|
||||
#define GPIO_PIRQ_APIC_EN 0x10
|
||||
|
@@ -17,8 +17,6 @@
|
||||
#ifndef _INTEL_ME_H
|
||||
#define _INTEL_ME_H
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
#define ME_RETRY 100000 /* 1 second */
|
||||
#define ME_DELAY 10 /* 10 us */
|
||||
|
||||
|
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
#include <commonlib/helpers.h>
|
||||
#include <compiler.h>
|
||||
#include "vendorcode/google/chromeos/gnvs.h"
|
||||
|
||||
typedef struct global_nvs_t {
|
||||
|
@@ -17,7 +17,6 @@
|
||||
/* rl5c476 routines and defines*/
|
||||
|
||||
|
||||
#include <compiler.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user