aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode/amd/agesa/Makefile.inc
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2016-05-12 12:25:08 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2016-05-18 10:44:22 +0200
commit82171ea0ff9e38462e813b791dd57c8ad95dc768 (patch)
tree123a39b9f4e56ab02ad96a726d682feef81b05fd /src/vendorcode/amd/agesa/Makefile.inc
parentf87275f8216aa230c6f05069eeeb07a17a99ef43 (diff)
AGESA vendorcode: Move compiler class definition
Change-Id: Ia4cef7d584e43f1911db2f81d8b86ed406b75aad Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/14786 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/vendorcode/amd/agesa/Makefile.inc')
-rw-r--r--src/vendorcode/amd/agesa/Makefile.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/vendorcode/amd/agesa/Makefile.inc b/src/vendorcode/amd/agesa/Makefile.inc
index 02d9063cde..3c07bf4d8d 100644
--- a/src/vendorcode/amd/agesa/Makefile.inc
+++ b/src/vendorcode/amd/agesa/Makefile.inc
@@ -5,3 +5,16 @@ subdirs-$(CONFIG_CPU_AMD_AGESA_FAMILY15) += f15
subdirs-$(CONFIG_CPU_AMD_AGESA_FAMILY15_TN) += f15tn
subdirs-$(CONFIG_CPU_AMD_AGESA_FAMILY15_RL) += f15tn
subdirs-$(CONFIG_CPU_AMD_AGESA_FAMILY16_KB) += f16kb
+
+ifeq ($(CONFIG_CPU_AMD_AGESA),y)
+
+classes-y += libagesa
+libagesa-y =
+
+ifeq ($(CONFIG_ARCH_ROMSTAGE_X86_32),y)
+$(eval $(call create_class_compiler,libagesa,x86_32))
+else
+$(eval $(call create_class_compiler,libagesa,x86_64))
+endif
+
+endif