From ced8fe0cb698a95b5f5aa35e2393fd5961a3d1f0 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Thu, 12 Jan 2023 07:47:39 +0100 Subject: [PATCH] vc/amd/pi: Fix "No such file or directory" Fix: cc1: error: src/vendorcode/amd/pi/00670F00: No such file or directory [-Werror=missing-include-dirs] cc1: error: src/vendorcode/amd/pi/00670F00/binaryPI: No such file or directory [-Werror=missing-include-dirs] cc1: error: src/vendorcode/amd/pi/00670F00/Include: No such file or directory [-Werror=missing-include-dirs] cc1: error: src/vendorcode/amd/pi/00670F00/Proc: No such file or directory [-Werror=missing-include-dirs] cc1: error: src/vendorcode/amd/pi/00670F00/Proc/Common: No such file or directory [-Werror=missing-include-dirs] cc1: error: src/vendorcode/amd/pi/00670F00/Proc/CPU: No such file or directory [-Werror=missing-include-dirs] cc1: error: src/vendorcode/amd/pi/00670F00/Proc/CPU/Family: No such file or directory [-Werror=missing-include-dirs] cc1: error: src/vendorcode/amd/pi/00670F00/Proc/Fch: No such file or directory [-Werror=missing-include-dirs] cc1: error: src/vendorcode/amd/pi/00670F00/Proc/Fch/Common: No such file or directory [-Werror=missing-include-dirs] Change-Id: I745f4fc421c91c413fe0d3155d3494ed9704eeb6 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/71855 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai Reviewed-by: Martin L Roth --- src/vendorcode/amd/pi/00670F00/Makefile.inc | 24 ------------------ src/vendorcode/amd/pi/Makefile.inc | 27 +++++++++++++++++++++ 2 files changed, 27 insertions(+), 24 deletions(-) diff --git a/src/vendorcode/amd/pi/00670F00/Makefile.inc b/src/vendorcode/amd/pi/00670F00/Makefile.inc index 2ac4987e00..a7eba30606 100644 --- a/src/vendorcode/amd/pi/00670F00/Makefile.inc +++ b/src/vendorcode/amd/pi/00670F00/Makefile.inc @@ -25,30 +25,6 @@ #***************************************************************************** ifeq ($(CONFIG_SOC_AMD_STONEYRIDGE),y) -# AGESA V5 Files - -AGESA_ROOT = $(call strip_quotes,$(CONFIG_AGESA_BINARY_PI_VENDORCODE_PATH)) - -BINARY_PI_INC = -I$(AGESA_ROOT) -BINARY_PI_INC += -I$(AGESA_ROOT)/binaryPI -BINARY_PI_INC += -I$(AGESA_ROOT)/Include -BINARY_PI_INC += -I$(AGESA_ROOT)/Proc -BINARY_PI_INC += -I$(AGESA_ROOT)/Proc/Common -BINARY_PI_INC += -I$(AGESA_ROOT)/Proc/CPU -BINARY_PI_INC += -I$(AGESA_ROOT)/Proc/CPU/Family -BINARY_PI_INC += -I$(AGESA_ROOT)/Proc/Fch -BINARY_PI_INC += -I$(AGESA_ROOT)/Proc/Fch/Common - -AGESA_INC = -I$(obj) -AGESA_INC += $(BINARY_PI_INC) - -AGESA_INC += -I$(src)/soc/amd/stoneyridge/include -AGESA_INC += -I$(src)/soc/amd/common/block/include - -AGESA_INC += -I$(src)/arch/x86/include -AGESA_INC += -I$(src)/include -AGESA_INC += -I$(src)/commonlib/include -AGESA_INC += -I$(VBOOT_SOURCE)/firmware/include AGESA_CFLAGS += -march=amdfam10 -fno-strict-aliasing -D__LIBAGESA__ diff --git a/src/vendorcode/amd/pi/Makefile.inc b/src/vendorcode/amd/pi/Makefile.inc index d36671a06f..e62abab9cd 100644 --- a/src/vendorcode/amd/pi/Makefile.inc +++ b/src/vendorcode/amd/pi/Makefile.inc @@ -30,6 +30,33 @@ subdirs-y += 00670F00 +ifeq ($(CONFIG_SOC_AMD_STONEYRIDGE),y) +# AGESA V5 Files + +AGESA_ROOT = $(top)/$(call strip_quotes,$(CONFIG_AGESA_BINARY_PI_VENDORCODE_PATH)) + +BINARY_PI_INC = -I$(AGESA_ROOT) +BINARY_PI_INC += -I$(AGESA_ROOT)/binaryPI +BINARY_PI_INC += -I$(AGESA_ROOT)/Include +BINARY_PI_INC += -I$(AGESA_ROOT)/Proc +BINARY_PI_INC += -I$(AGESA_ROOT)/Proc/Common +BINARY_PI_INC += -I$(AGESA_ROOT)/Proc/CPU +BINARY_PI_INC += -I$(AGESA_ROOT)/Proc/CPU/Family +BINARY_PI_INC += -I$(AGESA_ROOT)/Proc/Fch +BINARY_PI_INC += -I$(AGESA_ROOT)/Proc/Fch/Common + +AGESA_INC = -I$(obj) +AGESA_INC += $(BINARY_PI_INC) + +AGESA_INC += -I$(src)/soc/amd/stoneyridge/include +AGESA_INC += -I$(src)/soc/amd/common/block/include + +AGESA_INC += -I$(src)/arch/x86/include +AGESA_INC += -I$(src)/include +AGESA_INC += -I$(src)/commonlib/include +AGESA_INC += -I$(VBOOT_SOURCE)/firmware/include +endif + ifeq ($(CONFIG_CPU_AMD_PI_00730F01),y) # AGESA V5 Files