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