diff options
author | Thomas Abraham <thomas.abraham@arm.com> | 2018-10-29 14:49:39 +0530 |
---|---|---|
committer | Arvind Chauhan <arvind.chauhan@arm.com> | 2018-10-30 10:25:38 +0000 |
commit | 6a9f0f25a85498c4f4b2c1097f1f3fe167b8d073 (patch) | |
tree | b243b473d8824ca430e100b59b647fc38b4f01fb /build-scp.sh | |
parent | 0e9a12c4aa0322b77a2de6b467cc6a676a704727 (diff) |
build-scp: fix unconditional access to mcp binary
Commit ed0fed88 ("build-scp: specify target path for mcp rom binary")
adds a unconditional access to MCP binary files. This is incorrect
as MCP binary is built only for SGI platforms. Fix this by adding
a check for presence of MCP build output folder.
Change-Id: Icf60f0f4c10fbc60cb74bfd533d7dba9c086385f
Reported-by: Asha R <asha.r@arm.com>
Signed-off-by: Thomas Abraham <thomas.abraham@arm.com>
Diffstat (limited to 'build-scp.sh')
-rwxr-xr-x | build-scp.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/build-scp.sh b/build-scp.sh index 979e720..4c3123c 100755 --- a/build-scp.sh +++ b/build-scp.sh @@ -93,11 +93,13 @@ do_package () mkdir -p ${OUTDIR}/${plat} cp ./${SCP_PATH}/output/scp_ramfw/${SCP_BUILD_MODE}/bin/firmware.bin ${OUTDIR}/${plat}/scp-ram.bin cp ./${SCP_PATH}/output/scp_romfw/${SCP_BUILD_MODE}/bin/firmware.bin ${OUTDIR}/${plat}/scp-rom.bin - cp ./${SCP_PATH}/output/mcp_romfw/${SCP_BUILD_MODE}/bin/firmware.bin ${OUTDIR}/${plat}/mcp-rom.bin - if [ -d ${TOP_DIR}/${SCP_PATH}/output/${plat}/mcp ]; then - cp ./${SCP_PATH}/output/${plat}/mcp/ramfw.bin ${OUTDIR}/${plat}/mcp-ram.bin - cp ./${SCP_PATH}/output/${plat}/mcp/romfw.bin ${OUTDIR}/${plat}/mcp-rom.bin + if [ -d ${SCP_PATH}/output/mcp_romfw ]; then + cp ./${SCP_PATH}/output/mcp_romfw/${SCP_BUILD_MODE}/bin/firmware.bin ${OUTDIR}/${plat}/mcp-rom.bin + fi + + if [ -d ${SCP_PATH}/output/mcp_ramfw ]; then + cp ./${SCP_PATH}/output/mcp_ramfw/${SCP_BUILD_MODE}/bin/firmware.bin ${OUTDIR}/${plat}/mcp-ram.bin fi if [[ "${SCP_BYPASS_ROM_SUPPORT[$plat]}" = true ]]; then |