From a2118a21c9e6a65bd90481f222cb436509b3e0bb Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Thu, 21 Apr 2016 14:02:40 -0500 Subject: [PATCH] arch: introduce architecture dependent common variables Stefan and others have discussed their interest in only including options in Kconfig that are directly associated with building a coreboot image. There are variables that are architecture dependent that are utilized in the coreboot infrastructure. To meet that goal, introduce header file which defines variables for the coreboot infrastructure that are architecture dependent but utilized in common infrastructure. Change-Id: Ic4cb9e81bab042797539dce004db0f7ee8526ea6 Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/14454 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- src/arch/arm/include/arch/cbconfig.h | 26 +++++++++++++++++++++++++ src/arch/arm64/include/arch/cbconfig.h | 26 +++++++++++++++++++++++++ src/arch/mips/include/arch/cbconfig.h | 26 +++++++++++++++++++++++++ src/arch/power8/include/arch/cbconfig.h | 26 +++++++++++++++++++++++++ src/arch/riscv/include/arch/cbconfig.h | 26 +++++++++++++++++++++++++ src/arch/x86/include/arch/cbconfig.h | 26 +++++++++++++++++++++++++ 6 files changed, 156 insertions(+) create mode 100644 src/arch/arm/include/arch/cbconfig.h create mode 100644 src/arch/arm64/include/arch/cbconfig.h create mode 100644 src/arch/mips/include/arch/cbconfig.h create mode 100644 src/arch/power8/include/arch/cbconfig.h create mode 100644 src/arch/riscv/include/arch/cbconfig.h create mode 100644 src/arch/x86/include/arch/cbconfig.h diff --git a/src/arch/arm/include/arch/cbconfig.h b/src/arch/arm/include/arch/cbconfig.h new file mode 100644 index 0000000000..7bf9452562 --- /dev/null +++ b/src/arch/arm/include/arch/cbconfig.h @@ -0,0 +1,26 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2016 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 _ARCH_CBCONFIG_H_ +#define _ARCH_CBCONFIG_H_ + +/* + * Instead of using Kconfig variables for internal coreboot infrastructure + * variables that are architecture dependent land those things in this file. + * If it's not obvious all variables that are used in the common code need + * to have the same name across all architectures. + */ + +#endif diff --git a/src/arch/arm64/include/arch/cbconfig.h b/src/arch/arm64/include/arch/cbconfig.h new file mode 100644 index 0000000000..7bf9452562 --- /dev/null +++ b/src/arch/arm64/include/arch/cbconfig.h @@ -0,0 +1,26 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2016 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 _ARCH_CBCONFIG_H_ +#define _ARCH_CBCONFIG_H_ + +/* + * Instead of using Kconfig variables for internal coreboot infrastructure + * variables that are architecture dependent land those things in this file. + * If it's not obvious all variables that are used in the common code need + * to have the same name across all architectures. + */ + +#endif diff --git a/src/arch/mips/include/arch/cbconfig.h b/src/arch/mips/include/arch/cbconfig.h new file mode 100644 index 0000000000..7bf9452562 --- /dev/null +++ b/src/arch/mips/include/arch/cbconfig.h @@ -0,0 +1,26 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2016 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 _ARCH_CBCONFIG_H_ +#define _ARCH_CBCONFIG_H_ + +/* + * Instead of using Kconfig variables for internal coreboot infrastructure + * variables that are architecture dependent land those things in this file. + * If it's not obvious all variables that are used in the common code need + * to have the same name across all architectures. + */ + +#endif diff --git a/src/arch/power8/include/arch/cbconfig.h b/src/arch/power8/include/arch/cbconfig.h new file mode 100644 index 0000000000..7bf9452562 --- /dev/null +++ b/src/arch/power8/include/arch/cbconfig.h @@ -0,0 +1,26 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2016 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 _ARCH_CBCONFIG_H_ +#define _ARCH_CBCONFIG_H_ + +/* + * Instead of using Kconfig variables for internal coreboot infrastructure + * variables that are architecture dependent land those things in this file. + * If it's not obvious all variables that are used in the common code need + * to have the same name across all architectures. + */ + +#endif diff --git a/src/arch/riscv/include/arch/cbconfig.h b/src/arch/riscv/include/arch/cbconfig.h new file mode 100644 index 0000000000..7bf9452562 --- /dev/null +++ b/src/arch/riscv/include/arch/cbconfig.h @@ -0,0 +1,26 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2016 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 _ARCH_CBCONFIG_H_ +#define _ARCH_CBCONFIG_H_ + +/* + * Instead of using Kconfig variables for internal coreboot infrastructure + * variables that are architecture dependent land those things in this file. + * If it's not obvious all variables that are used in the common code need + * to have the same name across all architectures. + */ + +#endif diff --git a/src/arch/x86/include/arch/cbconfig.h b/src/arch/x86/include/arch/cbconfig.h new file mode 100644 index 0000000000..7bf9452562 --- /dev/null +++ b/src/arch/x86/include/arch/cbconfig.h @@ -0,0 +1,26 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2016 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 _ARCH_CBCONFIG_H_ +#define _ARCH_CBCONFIG_H_ + +/* + * Instead of using Kconfig variables for internal coreboot infrastructure + * variables that are architecture dependent land those things in this file. + * If it's not obvious all variables that are used in the common code need + * to have the same name across all architectures. + */ + +#endif