blob: 748711761ab7524cb0f2d3480ee6b17a968d9c24 (
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
|
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/build/buildpnor/makefile $
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2012,2015
# [+] 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
#Build PNOR Images for each platform.
#Also builds images which contain the test code.
ROOTPATH = ../../..
##############################################################
#Disabling this as our code size is getting too big for
#fake PNOR. Only commenting out the bare minimum so it's easy
#to revive should the situation arise where we're forced
#to do so. This also keeps the 'make clean' path working
#so people aren't stuck with dead files in their img directory.
#
##############################################################
# Default target to 'buildpnor'. This way you can type make
# in this directory without a target and it will build the
# pnor images. In the standard case, this makefile is called
# from somewhere else with the buildpnor target as well.
.DEFAULT_GOAL := buildpnor
PNOR_VBU_TARGETS = vbu_MURANO vbu_VENICE
define PNOR_vbu_template
$${IMGDIR}/$(1).pnor: $${IMGDIR}/hbicore_extended.bin $${IMGDIR}/$(1)_targeting.bin
#ifdef HOSTBOOT_PROFILE
# @echo " HOSTBOOT_PROFILE enabled."
# @echo " Build of vbu.pnor skipped due to space constraints."
#else
# ./buildpnorOld.pl --pnorLayout ./pnorLayoutVpo.xml \
# --genToc \
# --pnorOutBin $${IMGDIR}/$(1).pnor \
# --binFile_part $${IMGDIR}/$(1)_pnor.toc \
# --binFile_HBI $${IMGDIR}/hbicore_extended.bin \
# --binFile_HBD $${IMGDIR}/$(1)_targeting.bin
#endif
endef
PNOR_VBU_IMAGES = $(addsuffix .pnor, $(addprefix $(IMGDIR)/, ${PNOR_VBU_TARGETS})) \
CLEAN_TARGETS += ${PNOR_VBU_IMAGES}
CLEAN_TARGETS += ${PNOR_VBU_IMAGES:.pnor=_pnor.toc}
include ${ROOTPATH}/config.mk
.PHONY: buildpnor
buildpnor: ${PNOR_VBU_IMAGES}
#VBU Specific images
$(foreach pnor,$(PNOR_VBU_TARGETS),$(eval $(call PNOR_vbu_template,$(pnor))))
|