blob: 1f9ef6d3404b4b1cf67a7b010679686141b61a37 [file] [log] [blame]
Marc Jones54b8e7a2013-10-29 17:57:30 -06001##
2## This file is part of the coreboot project.
3##
Martin Roth18a40e02014-04-04 11:59:48 -06004## Copyright (C) 2013-2014 Sage Electronic Engineering, LLC.
Marc Jones54b8e7a2013-10-29 17:57:30 -06005##
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##
Marc Jones54b8e7a2013-10-29 17:57:30 -060015
Martin Roth18a40e02014-04-04 11:59:48 -060016ifneq ($(CONFIG_FSP_VENDORCODE_HEADER_PATH),)
Marc Jones54b8e7a2013-10-29 17:57:30 -060017FSP_PATH := $(call strip_quotes,$(CONFIG_FSP_VENDORCODE_HEADER_PATH))
FEI WANG4a145052014-05-31 15:59:46 +010018FSP_SRC_FILES := $(wildcard src/vendorcode/intel/$(FSP_PATH)/srx/*.c)
19FSP_C_INPUTS := $(foreach file, $(FSP_SRC_FILES), $(FSP_PATH)/srx/$(notdir $(file)))
Martin Roth18a40e02014-04-04 11:59:48 -060020ramstage-y += $(FSP_C_INPUTS)
21
FEI WANG4a145052014-05-31 15:59:46 +010022CFLAGS_x86_32 += -Isrc/vendorcode/intel/$(FSP_PATH)/include
Martin Roth18a40e02014-04-04 11:59:48 -060023endif
Aaron Durbin789f2b62015-09-09 17:05:06 -050024
25ifeq ($(CONFIG_UEFI_2_4_BINDING),y)
26# ProccessorBind.h provided in Ia32 directory. Types are derived from ia32.
27# It's possible to provide our own ProcessorBind.h using posix types. However,
28# ProcessorBind.h isn't just about types. There's compiler definitions as well
29# as ABI enforcement. Luckily long is not used in Ia32/ProcessorBind.h for
30# a fixed width type.
31CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/uefi_2.4/MdePkg/Include/Ia32
32CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/uefi_2.4/MdePkg/Include
33endif