blob: 33b2f8172037a545f34872a657d976219193a3d4 [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.
Subrata Banik8b9f2892018-01-25 10:50:39 +05305## Copyright (C) 2018 Intel Corp.
Marc Jones54b8e7a2013-10-29 17:57:30 -06006##
7## This program is free software; you can redistribute it and/or modify
8## it under the terms of the GNU General Public License as published by
9## the Free Software Foundation; version 2 of the License.
10##
11## This program is distributed in the hope that it will be useful,
12## but WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14## GNU General Public License for more details.
15##
Marc Jones54b8e7a2013-10-29 17:57:30 -060016
Martin Roth18a40e02014-04-04 11:59:48 -060017ifneq ($(CONFIG_FSP_VENDORCODE_HEADER_PATH),)
Marc Jones54b8e7a2013-10-29 17:57:30 -060018FSP_PATH := $(call strip_quotes,$(CONFIG_FSP_VENDORCODE_HEADER_PATH))
FEI WANG4a145052014-05-31 15:59:46 +010019FSP_SRC_FILES := $(wildcard src/vendorcode/intel/$(FSP_PATH)/srx/*.c)
20FSP_C_INPUTS := $(foreach file, $(FSP_SRC_FILES), $(FSP_PATH)/srx/$(notdir $(file)))
Martin Roth18a40e02014-04-04 11:59:48 -060021ramstage-y += $(FSP_C_INPUTS)
22
FEI WANG4a145052014-05-31 15:59:46 +010023CFLAGS_x86_32 += -Isrc/vendorcode/intel/$(FSP_PATH)/include
Martin Roth18a40e02014-04-04 11:59:48 -060024endif
Aaron Durbin789f2b62015-09-09 17:05:06 -050025
26ifeq ($(CONFIG_UEFI_2_4_BINDING),y)
27# ProccessorBind.h provided in Ia32 directory. Types are derived from ia32.
28# It's possible to provide our own ProcessorBind.h using posix types. However,
29# ProcessorBind.h isn't just about types. There's compiler definitions as well
30# as ABI enforcement. Luckily long is not used in Ia32/ProcessorBind.h for
31# a fixed width type.
32CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/uefi_2.4/MdePkg/Include/Ia32
33CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/uefi_2.4/MdePkg/Include
Martin Rothac39da42016-09-02 11:09:05 -060034else ifeq ($(CONFIG_UDK_2015_BINDING),y)
Rizwan Qureshie96543e2016-07-12 11:49:25 +053035CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/UDK2015/MdePkg/Include/Ia32
36CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/UDK2015/MdePkg/Include
37CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/UDK2015/IntelFsp2Pkg/Include
Subrata Banik8b9f2892018-01-25 10:50:39 +053038else ifeq ($(CONFIG_UDK_2017_BINDING),y)
39CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/UDK2017/MdePkg/Include/Ia32
40CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/UDK2017/MdePkg/Include
41CPPFLAGS_common += -I$(src)/vendorcode/intel/edk2/UDK2017/IntelFsp2Pkg/Include
Aaron Durbin789f2b62015-09-09 17:05:06 -050042endif