Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | # N1SDP specific SCP configurations and build instructions |
| 2 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 3 | COMPATIBLE_MACHINE:n1sdp = "n1sdp" |
| 4 | |
Andrew Geissler | 23e0279 | 2023-07-21 09:06:10 -0500 | [diff] [blame] | 5 | SCP_LOG_LEVEL = "INFO" |
| 6 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 7 | DEPENDS += "fiptool-native" |
| 8 | DEPENDS += "trusted-firmware-a" |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 9 | DEPENDS += "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 |
| 13 | EXTRA_OECMAKE:append = " \ |
| 14 | -DSCP_N1SDP_SENSOR_LIB_PATH=${RECIPE_SYSROOT}/n1sdp-board-firmware_source/LIB/sensor.a \ |
| 15 | " |
Andrew Geissler | 2edf064 | 2023-09-11 08:24:07 -0400 | [diff] [blame] | 16 | # scp-firmware version aligning to Arm Reference Solutions N1SDP-2023.06.22 Release |
| 17 | SRCREV = "543ae8ca3c9e38da3058311118fa3ceef1da47f7" |
| 18 | PV .= "+git" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 19 | |
| 20 | do_install:append() { |
| 21 | fiptool \ |
| 22 | create \ |
| 23 | --scp-fw "${D}/firmware/scp_ramfw.bin" \ |
| 24 | --blob uuid=cfacc2c4-15e8-4668-82be-430a38fad705,file="${RECIPE_SYSROOT}/firmware/bl1.bin" \ |
| 25 | "scp_fw.bin" |
| 26 | |
| 27 | # This UUID is FIP_UUID_MCP_BL2 in SCP-Firmware. |
| 28 | fiptool \ |
| 29 | create \ |
| 30 | --blob uuid=54464222-a4cf-4bf8-b1b6-cee7dade539e,file="${D}/firmware/mcp_ramfw.bin" \ |
| 31 | "mcp_fw.bin" |
| 32 | |
| 33 | install "scp_fw.bin" "${D}/firmware/scp_fw.bin" |
| 34 | install "mcp_fw.bin" "${D}/firmware/mcp_fw.bin" |
| 35 | |
| 36 | ln -sf "scp_romfw.bin" "${D}/firmware/scp_rom.bin" |
| 37 | ln -sf "mcp_romfw.bin" "${D}/firmware/mcp_rom.bin" |
| 38 | } |