blob: 6769ecb1c775bf3497b460ec6da0e2cde4201289 [file] [log] [blame]
zbao7d94cf92012-07-02 14:19:14 +08001#*****************************************************************************
2#
zbao7d94cf92012-07-02 14:19:14 +08003# Redistribution and use in source and binary forms, with or without
4# modification, are permitted provided that the following conditions are met:
5# * Redistributions of source code must retain the above copyright
6# notice, this list of conditions and the following disclaimer.
7# * Redistributions in binary form must reproduce the above copyright
8# notice, this list of conditions and the following disclaimer in the
9# documentation and/or other materials provided with the distribution.
10# * Neither the name of Advanced Micro Devices, Inc. nor the names of
11# its contributors may be used to endorse or promote products derived
12# from this software without specific prior written permission.
13#
14# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17# DISCLAIMED. IN NO EVENT SHALL ADVANCED MICRO DEVICES, INC. BE LIABLE FOR ANY
18# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24#
25#*****************************************************************************
26
27# AGESA V5 Files
28AGESA_ROOT = src/vendorcode/amd/agesa/f15tn
29
Kyösti Mälkki3a19a1c2017-08-29 20:17:39 +030030AGESA_AUTOINCLUDES := $(shell find $(AGESA_ROOT)/Proc -type d -exec echo -n "-I"{}" " \;)
31
Kyösti Mälkki12100262017-09-10 08:48:11 +030032AGESA_INC = -I$(src)/vendorcode/amd/include
zbao7d94cf92012-07-02 14:19:14 +080033AGESA_INC += -I$(AGESA_ROOT)
Edward O'Callaghan63ebb242014-11-28 22:26:45 +110034AGESA_INC += -I$(AGESA_ROOT)/../common
zbao7d94cf92012-07-02 14:19:14 +080035AGESA_INC += -I$(AGESA_ROOT)/Include
zbao7d94cf92012-07-02 14:19:14 +080036
Kyösti Mälkki12100262017-09-10 08:48:11 +030037BUILDOPTS_INCLUDES = -I$(AGESA_ROOT)/Config $(AGESA_INC) $(AGESA_AUTOINCLUDES)
Kyösti Mälkkic8e47422017-08-31 08:52:12 +030038
Kyösti Mälkki12100262017-09-10 08:48:11 +030039# These are invalid, coreboot proper should not require
40# use of AGESA internal header files.
41CPPFLAGS_x86_ANY =
Kyösti Mälkki12100262017-09-10 08:48:11 +030042
43CPPFLAGS_x86_ANY += -I$(AGESA_ROOT)/Proc/Fch # FchPlatform.h
44CPPFLAGS_x86_ANY += -I$(AGESA_ROOT)/Proc/Fch/Common # FchCommonCfg.h
45CPPFLAGS_x86_ANY += -I$(AGESA_ROOT)/Proc/Common # AmdFch.h
46
47CPPFLAGS_x86_32 += $(AGESA_INC) $(CPPFLAGS_x86_ANY)
48CPPFLAGS_x86_64 += $(AGESA_INC) $(CPPFLAGS_x86_ANY)
49
zbao7d94cf92012-07-02 14:19:14 +080050#######################################################################
Alexandru Gagniucee905a82014-03-29 13:15:18 -050051
Kyösti Mälkki24b631a2017-08-29 10:59:39 +030052subdirs-y += Legacy/Proc
53subdirs-y += $(dir $(shell cd $(dir); find Proc -name Makefile.inc))