diff options
| author | crgeddes <crgeddes@us.ibm.com> | 2015-12-10 15:55:51 -0600 |
|---|---|---|
| committer | WILLIAM G. HOFFA <wghoffa@us.ibm.com> | 2016-02-26 08:49:33 -0600 |
| commit | 581462957e6df9ea663914fabf65f9f77b4e4bfa (patch) | |
| tree | 26602a2bccd1a3bfdc95d8c935ae74cecd155aed /src/usr/fapi2/fapi2.mk | |
| parent | a9e3b39d8520ff5c0356e85d4ce27ebf8f9a5fef (diff) | |
| download | talos-hostboot-581462957e6df9ea663914fabf65f9f77b4e4bfa.tar.gz talos-hostboot-581462957e6df9ea663914fabf65f9f77b4e4bfa.zip | |
Basic Hostboot platform support for FAPI2
Allows clean compile and link of FAPI2 procedures and a subset of the
platform functional support
RTC:123290
Change-Id: I9faa3bea86d1b43bca0a7eaca3869b45cc0b0d54
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23046
Tested-by: Jenkins Server
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Richard J. Knight <rjknight@us.ibm.com>
Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/fapi2/fapi2.mk')
| -rwxr-xr-x | src/usr/fapi2/fapi2.mk | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/src/usr/fapi2/fapi2.mk b/src/usr/fapi2/fapi2.mk new file mode 100755 index 000000000..4fe67e6b0 --- /dev/null +++ b/src/usr/fapi2/fapi2.mk @@ -0,0 +1,89 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: src/usr/fapi2/fapi2.mk $ +# +# OpenPOWER HostBoot Project +# +# Contributors Listed Below - COPYRIGHT 2015,2016 +# [+] International Business Machines Corp. +# +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. +# +# IBM_PROLOG_END_TAG +# +# @file src/usr/fapi2/fapi2.mk +# +# @brief Makefile for fapi2 module +# + +EXTRAINCDIR += ${ROOTPATH}/src/import/hwpf/fapi2/include/ +EXTRAINCDIR += ${ROOTPATH}/src/include/usr/fapi2/ + +#Hostboot objects +OBJS += plat_utils.o +OBJS += attribute_service.o +OBJS += plat_attribute_service.o +OBJS += plat_attr_override_sync.o +OBJS += plat_hwp_invoker.o + + +#EKB Objects (mirrored in src/import) +OBJS += error_info.o +OBJS += ffdc.o + +#Generated Objects +OBJS += fapi2_attribute_service.o +OBJS += fapi2_chip_ec_feature.o + +#------------------------------------------------------------------------------ +# Set fapi2 build environment +#------------------------------------------------------------------------------ + +# Chip directory +CHIPS += p9 + +FAPI2_ERROR_XML += $(wildcard \ + $(ROOTPATH)/src/import/chips/p9/procedures/xml/error_info/*.xml) +FAPI2_ERROR_XML += $(wildcard \ + $(ROOTPATH)/src/import/hwpf/fapi2/xml/error_info/*.xml) + +# Attribute XML files. +FAPI2_ATTR_XML += $(wildcard \ + $(ROOTPATH)/src/import/hwpf/fapi2/xml/attribute_info/*.xml) +FAPI2_ATTR_XML += $(wildcard \ + $(ROOTPATH)/src/import/chips/p9/procedures/xml/attribute_info/*.xml) + +# Chip SCOM address header files. +FAPI2_PLAT_INCLUDE += $(addsuffix /common/include, \ + $(addprefix $(ROOTPATH)/src/import/chips/$CHIPS)) + +#------------------------------------------------------------------------------ +# The PLAT HWP RC and FFDC parser file generated from Error XML files +#------------------------------------------------------------------------------ +PLAT_HWP_ERR_PARSER = platHwpErrParser.H +GENDIR_PLUGINS = $(ROOTPATH)/obj/genfiles/plugins +GENPLUGINTARGET = $(addprefix $(GENDIR_PLUGINS)/, $(1)) +GENFILES_PLUGINS = ${PLAT_HWP_ERR_PARSER} +$(call GENPLUGINTARGET, ${PLAT_HWP_ERR_PARSER}) : \ + $(ROOTPATH)/src/usr/fapi2/platCreateHwpErrParser.pl ${FAPI2_ERROR_XML} + $< $(dir $@) ${FAPI2_ERROR_XML} + + +# Add targets from 'BUILD_GENERATED' into the Hostboot 'GEN_PASS'. +GEN_PASS_BODY += $(GEN_TARGETS) +CLEAN_TARGETS += $(GEN_TARGETS) + +VPATH += ${ROOTPATH}/src/import/hwpf/fapi2/src/ +VPATH += ${GENPATH} |

