summaryrefslogtreecommitdiffstats
path: root/src/build
diff options
context:
space:
mode:
authorspashabk-in <shakeebbk@in.ibm.com>2017-02-03 05:12:05 -0600
committerSachin Gupta <sgupta2m@in.ibm.com>2017-02-03 08:34:14 -0500
commit905dad6aa648f7a3dcb8e2f2591eb09bc36e99a7 (patch)
treedb8144764497cfe428aa07fdae120bd1c2a32a8f /src/build
parent6154a9b89b1904401032db0aced9e16c0209af77 (diff)
downloadtalos-sbe-905dad6aa648f7a3dcb8e2f2591eb09bc36e99a7.tar.gz
talos-sbe-905dad6aa648f7a3dcb8e2f2591eb09bc36e99a7.zip
Array HWP makefiles
Change-Id: I7f625e0e07604f246f55c5702f39fb7eea5d2d31 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35888 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/build')
-rw-r--r--src/build/Makefile6
-rw-r--r--src/build/img_defs.mk8
-rw-r--r--src/build/import_hwp_mk/arrayaccess/Makefile56
-rw-r--r--src/build/import_hwp_mk/arrayaccess/arrayaccessfiles.mk41
4 files changed, 111 insertions, 0 deletions
diff --git a/src/build/Makefile b/src/build/Makefile
index 3d03bb7c..b8156f47 100644
--- a/src/build/Makefile
+++ b/src/build/Makefile
@@ -87,9 +87,15 @@ LIB_DIRS += -L$(OBJDIR-ISTEPCOMMON)
ISTEPCOMMON := $(OBJDIR-ISTEPCOMMON)/libistepcommon.a
LLIBS += -listepcommon
+SUBDIRS += $(ARRAYACCESS_INFRA_DIR)
+LIB_DIRS += -L$(OBJDIR-ARRAYACCESS)
+ARRAYACCESS := $(OBJDIR-ARRAYACCESS)/larrayaccess.a
+
+LLIBS += -larrayaccess
SIMICS_PPE_TAR_FILES += $(IMG_DIR)/$(IMAGE_LOADER_NAME).out
SIMICS_PPE_TAR_FILES += $(IMG_DIR)/$(IMAGE_LOADER_NAME).map
SIMICS_PPE_TAR_FILES += $(IMG_DIR)/$(IMAGE_LOADER_NAME).dis
+
ifeq ($(img), seeprom)
SIMICS_PPE_TAR_FILES += $(IMG_DIR)/sbe_seeprom_*.out
SIMICS_PPE_TAR_FILES += $(IMG_DIR)/sbe_seeprom_*.map
diff --git a/src/build/img_defs.mk b/src/build/img_defs.mk
index 7fc0707e..33260aeb 100644
--- a/src/build/img_defs.mk
+++ b/src/build/img_defs.mk
@@ -122,6 +122,10 @@ ifndef ISTEPCOMMON_INFRA_DIR
export ISTEPCOMMON_INFRA_DIR = $(BUILD_DIR)/import_hwp_mk/istepcommon
endif
+ifndef ARRAYACCESS_INFRA_DIR
+export ARRAYACCESS_INFRA_DIR = $(BUILD_DIR)/import_hwp_mk/arrayaccess
+endif
+
ifndef BOOT_SRCDIR
export BOOT_SRCDIR = $(SBE_SRC_DIR)/boot
endif
@@ -303,6 +307,10 @@ ifndef OBJDIR-ISTEPCOMMON
export OBJDIR-ISTEPCOMMON = $(BASE_OBJDIR)/$(IMPORT_OBJDIR)/istepcommon
endif
+ifndef OBJDIR-ARRAYACCESS
+export OBJDIR-ARRAYACCESS = $(BASE_OBJDIR)/arrayaccess
+endif
+
GCC-TOOL-PATH = $(CTEPATH)/tools/ppetools/prod
# This is used for op-build
diff --git a/src/build/import_hwp_mk/arrayaccess/Makefile b/src/build/import_hwp_mk/arrayaccess/Makefile
new file mode 100644
index 00000000..d78b6741
--- /dev/null
+++ b/src/build/import_hwp_mk/arrayaccess/Makefile
@@ -0,0 +1,56 @@
+# IBM_PROLOG_BEGIN_TAG
+# This is an automatically generated prolog.
+#
+# $Source: src/build/import_hwp_mk/arrayaccess/Makefile $
+#
+# OpenPOWER sbe Project
+#
+# Contributors Listed Below - COPYRIGHT 2016,2017
+#
+#
+# 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
+# This Makefile compiles all of the hardware procedure code. See the
+# "*.mk" file in this directory.
+
+#all generated files from this makefile will end up in obj/*
+export SUB_OBJDIR = /arrayaccess
+
+include img_defs.mk
+include arrayaccessfiles.mk
+
+export VPATH = $(PERV_SRCDIR):$(NEST_SRCDIR):$(CACHE_SRCDIR):$(CORE_SRCDIR):$(PM_SRCDIR):$(INITFILES_SRCDIR):$(LIB_SRCDIR)
+
+GCC-CFLAGS += -mlongcall
+
+OBJSARRAYACCESS := $(addprefix $(OBJDIR-ARRAYACCESS)/, $(ARRAYACCESS_OBJECTS))
+
+.PHONY: clean arrayaccess
+
+libarrayaccess.a: arrayaccess
+ $(AR) crs $(OBJDIR-ARRAYACCESS)/libarrayaccess.a $(OBJDIR-ARRAYACCESS)/*.o
+
+arrayaccess: $(OBJSARRAYACCESS)
+
+$(OBJSARRAYACCESS) $(OBJSARRAYACCESS:.o=.d): | $(OBJDIR-ARRAYACCESS)
+
+$(OBJDIR-ARRAYACCESS):
+ mkdir -p $(OBJDIR-ARRAYACCESS)
+
+clean:
+ rm -fr $(OBJDIR-ARRAYACCESS)
+
+ifneq ($(MAKECMDGOALS),clean)
+include $(OBJSARRAYACCESS:.o=.d)
+endif
diff --git a/src/build/import_hwp_mk/arrayaccess/arrayaccessfiles.mk b/src/build/import_hwp_mk/arrayaccess/arrayaccessfiles.mk
new file mode 100644
index 00000000..aa2023af
--- /dev/null
+++ b/src/build/import_hwp_mk/arrayaccess/arrayaccessfiles.mk
@@ -0,0 +1,41 @@
+# IBM_PROLOG_BEGIN_TAG
+# This is an automatically generated prolog.
+#
+# $Source: src/build/import_hwp_mk/arrayaccess/arrayaccessfiles.mk $
+#
+# OpenPOWER sbe Project
+#
+# Contributors Listed Below - COPYRIGHT 2016,2017
+#
+#
+# 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 arrayaccess.mk
+#
+# @brief mk for including fastarray and tracearray object files
+#
+##########################################################################
+# Object Files
+##########################################################################
+
+ARRAYACCESS-CPP-SOURCES = p9_sbe_tracearray.C
+ARRAYACCESS-CPP-SOURCES += p9_sbe_fastarray_abist_catchup.C
+ARRAYACCESS-CPP-SOURCES += p9_sbe_fastarray_cleanup.C
+ARRAYACCESS-CPP-SOURCES += p9_sbe_fastarray_setup.C
+ARRAYACCESS-C-SOURCES =
+ARRAYACCESS-S-SOURCES =
+
+ARRAYACCESS_OBJECTS += $(ARRAYACCESS-CPP-SOURCES:.C=.o)
+ARRAYACCESS_OBJECTS += $(ARRAYACCESS-C-SOURCES:.c=.o)
+ARRAYACCESS_OBJECTS += $(ARRAYACCESS-S-SOURCES:.S=.o)
OpenPOWER on IntegriCloud