blob: c89b132ce46ddc52ce0a63c064fa484dca3d889d [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001# N1SDP specific SCP configurations and build instructions
2
Brad Bishopbec4ebc2022-08-03 09:55:16 -04003COMPATIBLE_MACHINE:n1sdp = "n1sdp"
4
Andrew Geissler23e02792023-07-21 09:06:10 -05005SCP_LOG_LEVEL = "INFO"
6
Brad Bishopbec4ebc2022-08-03 09:55:16 -04007DEPENDS += "fiptool-native"
8DEPENDS += "trusted-firmware-a"
Patrick Williams8dd68482022-10-04 07:57:18 -05009DEPENDS += "n1sdp-board-firmware"
10
11# The n1sdp sensor library is needed for building SCP N1SDP Platform
12# https://github.com/ARM-software/SCP-firmware/tree/master/product/n1sdp
13EXTRA_OECMAKE:append = " \
14 -DSCP_N1SDP_SENSOR_LIB_PATH=${RECIPE_SYSROOT}/n1sdp-board-firmware_source/LIB/sensor.a \
15"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040016
17do_install:append() {
18 fiptool \
19 create \
20 --scp-fw "${D}/firmware/scp_ramfw.bin" \
21 --blob uuid=cfacc2c4-15e8-4668-82be-430a38fad705,file="${RECIPE_SYSROOT}/firmware/bl1.bin" \
22 "scp_fw.bin"
23
24 # This UUID is FIP_UUID_MCP_BL2 in SCP-Firmware.
25 fiptool \
26 create \
27 --blob uuid=54464222-a4cf-4bf8-b1b6-cee7dade539e,file="${D}/firmware/mcp_ramfw.bin" \
28 "mcp_fw.bin"
29
30 install "scp_fw.bin" "${D}/firmware/scp_fw.bin"
31 install "mcp_fw.bin" "${D}/firmware/mcp_fw.bin"
32
33 ln -sf "scp_romfw.bin" "${D}/firmware/scp_rom.bin"
34 ln -sf "mcp_romfw.bin" "${D}/firmware/mcp_rom.bin"
35}