Change AMD vendorcode build
[coreboot.git] / src / vendorcode / amd / agesa / f10 / Makefile.inc
1 #
2 # This file is part of the coreboot project.
3 #
4 # Copyright (C) 2011 Advanced Micro Devices, Inc.
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; version 2 of the License.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
18 #
19
20 ## ABSOLUTE AGESA V5 ROOT PATH ##
21 AGESA_ROOT = src/vendorcode/amd/agesa/f10
22
23 AGESA_INC ?= -I$(src)/mainboard/$(MAINBOARDDIR)
24 AGESA_INC += -I$(AGESA_ROOT)
25 AGESA_INC += -I$(AGESA_ROOT)/Include
26 AGESA_INC += -I$(AGESA_ROOT)/Lib
27 AGESA_INC += -I$(AGESA_ROOT)/Legacy
28 AGESA_INC += -I$(AGESA_ROOT)/Proc/Common
29 AGESA_INC += -I$(AGESA_ROOT)/Proc/HT
30 AGESA_INC += -I$(AGESA_ROOT)/Proc/HT/NbCommon
31 AGESA_INC += -I$(AGESA_ROOT)/Proc/CPU
32 AGESA_INC += -I$(AGESA_ROOT)/Proc/CPU/Feature
33 AGESA_INC += -I$(AGESA_ROOT)/Proc/CPU/Family
34 AGESA_INC += -I$(AGESA_ROOT)/Proc/CPU/Family/0x10
35 AGESA_INC += -I$(AGESA_ROOT)/Proc/Mem
36 AGESA_INC += -I$(AGESA_ROOT)/Proc/Mem/Feat/IDENDIMM/
37 AGESA_INC += -I$(AGESA_ROOT)/Proc/Mem/NB/HY
38 AGESA_INC += -I$(AGESA_ROOT)/Proc/Mem/Main
39 AGESA_INC += -I$(AGESA_ROOT)/Proc/IDS
40 AGESA_INC += -I$(AGESA_ROOT)/Proc/IDS/Family
41 AGESA_INC += -I$(AGESA_ROOT)/Proc/IDS/Family/0x10
42 AGESA_INC += -I$(AGESA_ROOT)/Proc/Recovery/CPU
43 AGESA_INC += -I$(AGESA_ROOT)/Proc/Recovery/Mem
44
45 ## AGESA need sse feature ##
46 AGESA_CFLAGS = -msse3 -fno-zero-initialized-in-bss -fno-strict-aliasing
47
48 export AGESA_ROOT
49 export AGESA_INC
50 export AGESA_CFLAGS
51 CC := $(CC) $(AGESA_INC) $(AGESA_CFLAGS)
52