summaryrefslogtreecommitdiffstats
path: root/src/makefile
diff options
context:
space:
mode:
authorMarty Gloff <mgloff@us.ibm.com>2015-12-17 16:18:46 -0600
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2016-03-03 22:03:29 -0500
commitbcafb757808072be63d2ec0c2e61bca63bcf866e (patch)
tree1a59ace2ec084b9f7e287cd59c051d626e107daf /src/makefile
parent97f5d0db8ff37ebfd16220b368aea5f5b2da0c10 (diff)
downloadblackbird-hostboot-bcafb757808072be63d2ec0c2e61bca63bcf866e.tar.gz
blackbird-hostboot-bcafb757808072be63d2ec0c2e61bca63bcf866e.zip
Deliver bootloader to fsp and pnor
Minimal load application -- Create the main bootloader application that drives the load, verification, and relocation of the HBB image and that branches execution to the beginning of the HBB memory. Bootloader Stack Space -- Implement option of allocating stack space in main store apart from the bootloader image so as to not use up image space and to allow sufficient stack space. Deliver the HBBL (HostBoot BootLoader) image out to FIPS. Create an HBBL partition in the PNOR. Change-Id: I659f19428a8588c4b9bea13338efd46c70caaf43 RTC:137932 Depends-on:I740f6f8a707760756a261535e62e2d0a849324f8 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/809 Tested-by: Jenkins Server Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/makefile')
-rw-r--r--src/makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/makefile b/src/makefile
index 3771245d6..406a04128 100644
--- a/src/makefile
+++ b/src/makefile
@@ -37,7 +37,7 @@ SUBDIRS += runtime.d
# Reducing HB extended img size for VPO by disabling certain libs using
# CONFIG_VPO_COMPILE option
-IMGS += bootloader
+IMGS += hbibl
IMGS += hbicore
IMGS += hbicore_test
IMGS += hbirt
@@ -64,6 +64,8 @@ BL_BASE_OBJECTS += bl_builtins.o
BOOTLDR_OBJECTS += bl_start.o
BOOTLDR_OBJECTS += bootloader.o
+BOOTLDR_OBJECTS += bl_pnorAccess.o
+BOOTLDR_OBJECTS += bl_pnor_utils.o
BOOTLDR_OBJECTS += bl_pnor_ecc.o
DIRECT_BOOT_OBJECTS += start.o
@@ -281,9 +283,9 @@ RUNTIME_TESTCASE_MODULES += testpnor_rt
RELOCATABLE_IMAGE_LDFLAGS = -pie --export-dynamic
-bootloader_OBJECTS += ${BL_BASE_OBJECTS}
-bootloader_OBJECTS += ${BOOTLDR_OBJECTS}
-bootloader_LDFILE = bootloader.ld
+hbibl_OBJECTS += ${BL_BASE_OBJECTS}
+hbibl_OBJECTS += ${BOOTLDR_OBJECTS}
+hbibl_LDFILE = bootloader.ld
hbicore_OBJECTS += ${BASE_OBJECTS}
hbicore_OBJECTS += ${DIRECT_BOOT_OBJECTS}
@@ -337,6 +339,12 @@ $(IMGDIR)/hbotStringFile : $(IMAGES)
#make sure base image isn't over 508k (512K - 4K for secure header)
#PROCESS: get size of hbicore.bin, sort with respect to 508k (520192), then see if
#last word is 508k. If not, the base image is too big.
+#make sure bootloader image isn't over 32k (32K = 12K for exception vectors +
+#20K for bootloader code and data)
+#PROCESS: get size of hbibl.bin, sort with respect to 32k (32768),
+#then see if last word is 32k. If not, the bootloader image is too big.
MAX_BASE_SIZE = 520192
-imgsizecheck: ${IMGDIR}/hbicore.bin
+MAX_BTLDR_SIZE = 32768
+imgsizecheck: ${IMGDIR}/hbicore.bin ${IMGDIR}/hbibl.bin
$(if $(findstring $(shell (stat -c%s ${IMGDIR}/hbicore.bin; echo $(MAX_BASE_SIZE)) | sort -n | tail -n1), $(MAX_BASE_SIZE)),true, @echo ERROR: ${IMGDIR}/hbicore.bin too large. Max allowed size is $(MAX_BASE_SIZE); false)
+ $(if $(findstring $(shell (stat -c%s ${IMGDIR}/hbibl.bin; echo $(MAX_BTLDR_SIZE)) | sort -n | tail -n1), $(MAX_BTLDR_SIZE)),true, @echo ERROR: ${IMGDIR}/hbibl.bin too large. Max allowed size is $(MAX_BTLDR_SIZE); false)
OpenPOWER on IntegriCloud