Makefile.inc: Add separate bootblock.raw.elf with allocatable BSS
commit1ca26664e60372cb66104b4c448a442a472f7b8a
authorJulius Werner <jwerner@chromium.org>
Wed, 16 May 2018 00:36:59 +0000 (15 17:36 -0700)
committerJulius Werner <jwerner@chromium.org>
Tue, 22 May 2018 02:38:57 +0000 (22 02:38 +0000)
tree602050476135b0a7814f8ee7add6801a34a25f33
parent88f4e08acf1dc39367aaa4bc121386c899193253
Makefile.inc: Add separate bootblock.raw.elf with allocatable BSS

This patch moves the objcopy invocation that changes the bootblock's
section flags to make sure .data and .bss are preserved in the binary
image from the generation of bootblock.raw.bin into a separate
bootblock.raw.elf file. Some SoCs (like SDM845) like to have an ELF
rather than a raw binary as input to their masked ROM wrapper
generation script.

Also move those objcopy flags out into a variable because I'll need them
again in a later patch.

Change-Id: I9557b184df7f753a442c7e0ceb58e81c5e19f2c5
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/26338
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Makefile.inc