summaryrefslogtreecommitdiffstats
path: root/src/build
diff options
context:
space:
mode:
authorNick Bofferding <bofferdn@us.ibm.com>2017-05-09 21:40:56 -0500
committerMatthew A. Ploetz <maploetz@us.ibm.com>2017-05-10 08:57:13 -0400
commitdc39590d3c177a11f240f512db1367b0d5aa4b2a (patch)
tree08a10bf2b8223968b66e5317c94a8c12a04dba32 /src/build
parent61df1d2f6905be4584d8c6ff76098198a329f45a (diff)
downloadtalos-hostboot-dc39590d3c177a11f240f512db1367b0d5aa4b2a.tar.gz
talos-hostboot-dc39590d3c177a11f240f512db1367b0d5aa4b2a.zip
Force FSP compiled SBE images into recursive mk to defeat build cache
Change-Id: I0ce2d6852b7ecf35cb8b7871ffba5807811b8c9f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40309 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
Diffstat (limited to 'src/build')
-rwxr-xr-xsrc/build/mkrules/hbfw/img/makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/build/mkrules/hbfw/img/makefile b/src/build/mkrules/hbfw/img/makefile
index f900e45d8..e6bfdba07 100755
--- a/src/build/mkrules/hbfw/img/makefile
+++ b/src/build/mkrules/hbfw/img/makefile
@@ -190,7 +190,7 @@ BUILD_SPECIFIC_SBEPART: .SPECTARG ${SBEPART_TARGET}
#@echo BINARIES ${SBEPART_BINS}
#@echo BIN_OPTION ${SBEPART_BIN_OPTION}
-${SBEPART_TARGET}: ${SBEPART_LAYOUT} ${SBEPART_BINS} ${PNOR_BUILD_SCRIPT}
+${SBEPART_TARGET}: ${SBEPART_LAYOUT} ${SBEPART_BINS} ${PNOR_BUILD_SCRIPT} ${GEN_PNOR_IMAGE_SCRIPT}
${SBE_BUILD_SCRIPT} --sbeOutBin ${SBEPART_TARGET} \
${SBEPART_BIN_OPTION}
@@ -259,7 +259,7 @@ SBEC_FINAL_IMG = SBEC.bin
--systemBinFiles ${GEN_NIMBUS_BIN_FILES}
.endif
-gen_system_specific_images: build_sbe_partitions
+gen_system_specific_images_bypass_cache :
# Call script to generate final bin file for system specific images
${GEN_PNOR_IMAGE_SCRIPT} ${SYSTEM_SPECIFIC_PARAMS}
@@ -268,6 +268,13 @@ gen_system_specific_images: build_sbe_partitions
dd if=${${NIMBUS_VPO_HBD_IMG}:P} of=${NIMBUS_HBD_FINAL_IMG} ibs=4k skip=1 conv=sync
.endif
+# build_sbe_partitions build step generates SBE partition files that ODE is
+# unaware of due to the file cache that we cannot disable. To work around that,
+# build the PNOR images under recursive make, which gets a fresh view of the
+# updated file system
+gen_system_specific_images: build_sbe_partitions .PMAKE
+ @${MAKE:T:R} gen_system_specific_images_bypass_cache
+
HOSTBOOT_DEFAULT_SECTIONS = HBBL=${HBBL_FINAL_IMG},HBB=${HBB_FINAL_IMG},HBI=${HBI_FINAL_IMG},HBRT=${HBRT_FINAL_IMG},TEST=${TEST_FINAL_IMG},TESTRO=${TESTRO_FINAL_IMG},HBEL=${HBEL_FINAL_IMG},GUARD=${GUARD_FINAL_IMG},GLOBAL=${GLOBAL_FINAL_IMG},PAYLOAD=${PAYLOAD_FINAL_IMG},CVPD=${CVPD_FINAL_IMG},MVPD=${MVPD_FINAL_IMG},DJVPD=${DJVPD_FINAL_IMG},RINGOVD=${RINGOVD_FINAL_IMG},SBKT=${SBKT_FINAL_IMG},WOFDATA=${WOFDATA_FINAL_IMG}
#@TODO RTC:163810 - Put SBEC back "SBEC=${SBEC_FINAL_IMG},"
NIMBUS_SECT = HBD=${NIMBUS_HBD_FINAL_IMG},SBE=${NIMBUS_SBE_FINAL_IMG},HCODE=${NIMBUS_HCODE_FINAL_IMG},OCC=${NIMBUS_OCC_FINAL_IMG}
OpenPOWER on IntegriCloud