summaryrefslogtreecommitdiffstats
path: root/src/build/buildpnor/makefile
blob: dd2d002907fe44d2f9a79cf77cdf98b136ef2d48 (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
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/build/buildpnor/makefile $
#
# IBM CONFIDENTIAL
#
# COPYRIGHT International Business Machines Corp. 2012,2014
#
# p1
#
# Object Code Only (OCO) source materials
# Licensed Internal Code Source Materials
# IBM HostBoot Licensed Internal Code
#
# The source code for this program is not published or otherwise
# divested of its trade secrets, irrespective of what has been
# deposited with the U.S. Copyright Office.
#
# Origin: 30
#
# 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))))
OpenPOWER on IntegriCloud