Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 1 | # Common part of all Trusted Services SPs recipes |
| 2 | |
| 3 | TS_ENV = "opteesp" |
| 4 | |
| 5 | require trusted-services.inc |
| 6 | require ts-uuid.inc |
| 7 | |
| 8 | DEPENDS += "dtc-native ts-newlib" |
| 9 | |
| 10 | FILES:${PN}-dev = "${TS_INSTALL}" |
| 11 | |
| 12 | # Secure Partition DTS file might be updated in bbapend files |
| 13 | SP_DTS_FILE ?= "${D}${TS_INSTALL}/manifest/${SP_UUID}.dts" |
| 14 | |
| 15 | do_install:append() { |
| 16 | # Generate SP DTB which will be included automatically by optee-os build process |
| 17 | dtc -I dts -O dtb -o ${D}${TS_INSTALL}/manifest/${SP_UUID}.dtb ${SP_DTS_FILE} |
| 18 | |
| 19 | # We do not need libs and headers |
| 20 | rm -r --one-file-system ${D}${TS_INSTALL}/lib |
| 21 | rm -r --one-file-system ${D}${TS_INSTALL}/include |
| 22 | } |
| 23 | |
| 24 | # Use Yocto debug prefix maps for compiling assembler. |
| 25 | EXTRA_OECMAKE += '-DCMAKE_ASM_FLAGS="${DEBUG_PREFIX_MAP}"' |
| 26 | |
| 27 | # Ignore that SP stripped.elf does not have GNU_HASH |
| 28 | # Older versions of optee support SYSV hash only. |
| 29 | INSANE_SKIP:${PN}-dev += "ldflags" |