From 7a9716bb45066795b59b3c82374d0d7c5b8b7062 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Mon, 5 Sep 2022 10:39:21 -0600 Subject: [PATCH] src: remove force-included header rules.h from individual files The header file `rules.h` is automatically included in the build by the top level makefile using the command: `-include src/soc/intel/common/block/scs/early_mmc.c`. Similar to `config.h` and 'kconfig.h`, this file does not need to be included manually, so remove it. Signed-off-by: Martin Roth Change-Id: I23a1876b4b671d8565cf9b391d3babf800c074db Reviewed-on: https://review.coreboot.org/c/coreboot/+/67348 Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) --- src/arch/arm/armv7/cpu.S | 1 - src/arch/arm/include/arch/header.ld | 2 -- src/arch/arm64/include/arch/header.ld | 2 -- src/arch/riscv/include/arch/header.ld | 2 -- src/arch/x86/assembly_entry.S | 2 -- src/arch/x86/include/arch/header.ld | 2 -- src/include/cbfs_glue.h | 1 - src/soc/intel/common/block/cpu/car/cache_as_ram.S | 1 - src/soc/nvidia/tegra210/memlayout.ld | 1 - 9 files changed, 14 deletions(-) diff --git a/src/arch/arm/armv7/cpu.S b/src/arch/arm/armv7/cpu.S index bc3ebd90a0..3459fc6b08 100644 --- a/src/arch/arm/armv7/cpu.S +++ b/src/arch/arm/armv7/cpu.S @@ -6,7 +6,6 @@ */ #include -#include /* * Dcache invalidations by set/way work by passing a [way:sbz:set:sbz:level:0] diff --git a/src/arch/arm/include/arch/header.ld b/src/arch/arm/include/arch/header.ld index cb69ba3fea..b1e1f9dd4b 100644 --- a/src/arch/arm/include/arch/header.ld +++ b/src/arch/arm/include/arch/header.ld @@ -1,7 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include - /* We use ELF as output format. So that we can debug the code in some form. */ OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") OUTPUT_ARCH(arm) diff --git a/src/arch/arm64/include/arch/header.ld b/src/arch/arm64/include/arch/header.ld index 4f371768e4..c6d48e704f 100644 --- a/src/arch/arm64/include/arch/header.ld +++ b/src/arch/arm64/include/arch/header.ld @@ -1,7 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include - /* We use ELF as output format. So that we can debug the code in some form. */ OUTPUT_FORMAT("elf64-littleaarch64", "elf64-littleaarch64", "elf64-littleaarch64") OUTPUT_ARCH(aarch64) diff --git a/src/arch/riscv/include/arch/header.ld b/src/arch/riscv/include/arch/header.ld index d8147728ee..ddb618c293 100644 --- a/src/arch/riscv/include/arch/header.ld +++ b/src/arch/riscv/include/arch/header.ld @@ -1,7 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include - /* We use ELF as output format. So that we can debug the code in some form. */ OUTPUT_ARCH(riscv) diff --git a/src/arch/x86/assembly_entry.S b/src/arch/x86/assembly_entry.S index 6e730273f8..79d6e19502 100644 --- a/src/arch/x86/assembly_entry.S +++ b/src/arch/x86/assembly_entry.S @@ -1,7 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include - /* * This path is for stages that are post bootblock. The gdt is reloaded * to accommodate platforms that are executing out of CAR. In order to diff --git a/src/arch/x86/include/arch/header.ld b/src/arch/x86/include/arch/header.ld index 4e78ae7198..5b380faad5 100644 --- a/src/arch/x86/include/arch/header.ld +++ b/src/arch/x86/include/arch/header.ld @@ -1,7 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include - PHDRS { to_load PT_LOAD; diff --git a/src/include/cbfs_glue.h b/src/include/cbfs_glue.h index 652cf1b805..d4fe367d6c 100644 --- a/src/include/cbfs_glue.h +++ b/src/include/cbfs_glue.h @@ -6,7 +6,6 @@ #include #include #include -#include /* * This flag prevents linking hashing functions into stages where they're not required. We don't diff --git a/src/soc/intel/common/block/cpu/car/cache_as_ram.S b/src/soc/intel/common/block/cpu/car/cache_as_ram.S index 1c905a4c96..552ba15bcd 100644 --- a/src/soc/intel/common/block/cpu/car/cache_as_ram.S +++ b/src/soc/intel/common/block/cpu/car/cache_as_ram.S @@ -7,7 +7,6 @@ #include #include #include -#include #include .section .init, "ax", @progbits diff --git a/src/soc/nvidia/tegra210/memlayout.ld b/src/soc/nvidia/tegra210/memlayout.ld index 42f2164644..d9d7070bc6 100644 --- a/src/soc/nvidia/tegra210/memlayout.ld +++ b/src/soc/nvidia/tegra210/memlayout.ld @@ -1,7 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include -#include #include