From abe2f27acfbfaff81be4b9ff5750aa3b057ba0d0 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Wed, 20 Mar 2019 22:58:57 +0100 Subject: nvidia/tegra{124,210}/lp0: Directly include `stdint.h` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the compiler's `-include` switch to include `stdint.h` instead of adding coreboot's include paths. This avoids leaking other coreboot header files into lp0. Change-Id: I321c0a2fc4a2b3941990804db4e1a691e1bed8c6 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/coreboot/+/32005 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes Reviewed-by: Julius Werner Reviewed-by: Kyösti Mälkki --- src/soc/nvidia/tegra124/lp0/Makefile | 2 +- src/soc/nvidia/tegra124/lp0/tegra_lp0_resume.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/soc/nvidia/tegra124/lp0') diff --git a/src/soc/nvidia/tegra124/lp0/Makefile b/src/soc/nvidia/tegra124/lp0/Makefile index 66af1f55da..884f8b2768 100644 --- a/src/soc/nvidia/tegra124/lp0/Makefile +++ b/src/soc/nvidia/tegra124/lp0/Makefile @@ -34,7 +34,7 @@ all: tegra_lp0_resume.fw tegra_lp0_resume.elf: tegra_lp0_resume.ld tegra_lp0_resume.c $(CC) -marm -march=armv4t -mno-unaligned-access -nostdlib -static \ -Os -fpie -Wl,--build-id=none -ggdb3 -T tegra_lp0_resume.ld \ - -I ../../../../include -I ../../../../arch/arm/include \ + -include ../../../../arch/arm/include/stdint.h \ -include ../../../../commonlib/include/commonlib/compiler.h \ -o $@ $(filter %.c,$+) diff --git a/src/soc/nvidia/tegra124/lp0/tegra_lp0_resume.c b/src/soc/nvidia/tegra124/lp0/tegra_lp0_resume.c index 7cc320405a..e00dbd1039 100644 --- a/src/soc/nvidia/tegra124/lp0/tegra_lp0_resume.c +++ b/src/soc/nvidia/tegra124/lp0/tegra_lp0_resume.c @@ -14,8 +14,6 @@ * GNU General Public License for more details. */ -#include - /* Function unit addresses. */ enum { UP_TAG_BASE = 0X60000000, -- cgit v1.2.3