zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1 | #***************************************************************************** |
| 2 | # |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 3 | # 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 |
| 28 | AGESA_ROOT = src/vendorcode/amd/agesa/f15tn |
| 29 | |
Kyösti Mälkki | 3a19a1c | 2017-08-29 20:17:39 +0300 | [diff] [blame] | 30 | AGESA_AUTOINCLUDES := $(shell find $(AGESA_ROOT)/Proc -type d -exec echo -n "-I"{}" " \;) |
| 31 | |
Kyösti Mälkki | 1210026 | 2017-09-10 08:48:11 +0300 | [diff] [blame] | 32 | AGESA_INC = -I$(src)/vendorcode/amd/include |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 33 | AGESA_INC += -I$(AGESA_ROOT) |
Edward O'Callaghan | 63ebb24 | 2014-11-28 22:26:45 +1100 | [diff] [blame] | 34 | AGESA_INC += -I$(AGESA_ROOT)/../common |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 35 | AGESA_INC += -I$(AGESA_ROOT)/Include |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 36 | |
Kyösti Mälkki | 1210026 | 2017-09-10 08:48:11 +0300 | [diff] [blame] | 37 | BUILDOPTS_INCLUDES = -I$(AGESA_ROOT)/Config $(AGESA_INC) $(AGESA_AUTOINCLUDES) |
Kyösti Mälkki | c8e4742 | 2017-08-31 08:52:12 +0300 | [diff] [blame] | 38 | |
Kyösti Mälkki | 1210026 | 2017-09-10 08:48:11 +0300 | [diff] [blame] | 39 | # These are invalid, coreboot proper should not require |
| 40 | # use of AGESA internal header files. |
| 41 | CPPFLAGS_x86_ANY = |
Kyösti Mälkki | 1210026 | 2017-09-10 08:48:11 +0300 | [diff] [blame] | 42 | |
| 43 | CPPFLAGS_x86_ANY += -I$(AGESA_ROOT)/Proc/Fch # FchPlatform.h |
| 44 | CPPFLAGS_x86_ANY += -I$(AGESA_ROOT)/Proc/Fch/Common # FchCommonCfg.h |
| 45 | CPPFLAGS_x86_ANY += -I$(AGESA_ROOT)/Proc/Common # AmdFch.h |
| 46 | |
| 47 | CPPFLAGS_x86_32 += $(AGESA_INC) $(CPPFLAGS_x86_ANY) |
| 48 | CPPFLAGS_x86_64 += $(AGESA_INC) $(CPPFLAGS_x86_ANY) |
| 49 | |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 50 | ####################################################################### |
Alexandru Gagniuc | ee905a8 | 2014-03-29 13:15:18 -0500 | [diff] [blame] | 51 | |
Kyösti Mälkki | 24b631a | 2017-08-29 10:59:39 +0300 | [diff] [blame] | 52 | subdirs-y += Legacy/Proc |
| 53 | subdirs-y += $(dir $(shell cd $(dir); find Proc -name Makefile.inc)) |