summaryrefslogtreecommitdiffstats
path: root/src/build/mkrules/hbfw/makefile
blob: 2c2a745bd1403ad6c5e3b09b1b3bbf88655ff24a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/build/mkrules/hbfw/makefile $
#
# OpenPOWER HostBoot Project
#
# COPYRIGHT International Business Machines Corp. 2012,2014
#
# 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

#
# FSP Destination: src/hbfw/makefile
#
# NOTE: Do NOT modify this file in CMVC directly!  It comes from the Hostboot
#       repository and will be overwritten.

# Process the fsp subtree

.if(${CONTEXT:R} == "ppc")

EXPINC_SUBDIRS   += fsp
OBJECTS_SUBDIRS  +=
EXPLIB_SUBDIRS   += fsp
EXPSHLIB_SUBDIRS += fsp
STANDARD_SUBDIRS += fsp img simics
RUNBVT_SUBDIRS   +=

.elseif(${CONTEXT} == "x86.nfp")

EXPINC_SUBDIRS   += fsp
OBJECTS_SUBDIRS  +=
EXPLIB_SUBDIRS   += fsp
EXPSHLIB_SUBDIRS += fsp
STANDARD_SUBDIRS += fsp
RUNBVT_SUBDIRS   +=

.endif

# Directives to expand tar files and ensure expansion before
# subdirectory traversal.
#
# If you add a new tarfile and subdirectory, you must add the
# corresponding _SUBDIR/BUILD/EXPINC/subdir dependency.

TARFILES = fsp.tar simics.tar

VPATH += fsp/hwas/common:

_SUBDIR/BUILD/EXPINC/fsp: expand_tars_fsp.tar
_SUBDIR/BUILD/EXPINC/simics: expand_tars_simics.tar

EXPINC_TARGETS += expand_tars
EXPLIB_TARGETS += epub_check

expand_tars: ${TARFILES:S/^/expand_tars_/g}
expand_tars_%: $${@:S/expand_tars_//}
	@echo Extracting $> to ${*:S/expand_tars_//}
	mkdir -p ${*:S/expand_tars_//}
	@echo "===== src/hbfw/makefile: START EXTRACT of tarball $> :" `date`
	${TAR} -x --file $> -C ${*:S/expand_tars_//}
	@echo "===== src/hbfw/makefile: END EXTRACT of tarball $> :" `date`
# Note that epub_check depends on expand_tars but it will always
# be run first due to force of it in EXPINC.  
epub_check: epubProcedureID_check.pl epub_service_codes.H
	@echo "===== Checking epubProcedureID's Start:" `date`
	${epubProcedureID_check.pl:P} ${epub_service_codes.H:P} ${hwasCallout.H:P}
	@echo "===== Checking epubProcedureID's End:" `date`

.include <${RULES_MK}>
OpenPOWER on IntegriCloud