From b5b71b2423fade6a3d60bb309996877720b1de4e Mon Sep 17 00:00:00 2001 From: Adam Muhle Date: Thu, 8 Nov 2012 09:42:24 -0600 Subject: Skip vbu.pnor build when profiling is enabled. Enabling profiling causes the hostboot extended image to be to big to fit in the VBU pnor layout. Since there's little need to profile in VBU, I'm just disabling building of the image in that environment. Change-Id: If173715b42862230443187c05766826c1a02e919 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2266 Tested-by: Jenkins Server Reviewed-by: Van H. Lee Reviewed-by: Daniel M. Crowell Reviewed-by: A. Patrick Williams III --- src/build/buildpnor/makefile | 5 +++++ src/sys/prof/makefile | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/build/buildpnor/makefile b/src/build/buildpnor/makefile index 458785563..f52a05fbb 100644 --- a/src/build/buildpnor/makefile +++ b/src/build/buildpnor/makefile @@ -35,12 +35,17 @@ PNOR_VBU_TARGETS = vbu 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})) \ diff --git a/src/sys/prof/makefile b/src/sys/prof/makefile index a74d7897c..8ed0a86b2 100644 --- a/src/sys/prof/makefile +++ b/src/sys/prof/makefile @@ -31,7 +31,7 @@ ROOTPATH = ../../.. ifdef HOSTBOOT_PROFILE OBJS = gcov.o -undefine HOSTBOOT_PROFILE +unexport HOSTBOOT_PROFILE endif OBJS += idletask.o -- cgit v1.2.1