blob: 75ddab37d1263cc8a22879c4a27a15b1834b56c1 [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001# Common part of all Trusted Services SPs recipes
2
3TS_ENV = "opteesp"
4
5require trusted-services.inc
6require ts-uuid.inc
7
8DEPENDS += "dtc-native ts-newlib"
9
10FILES:${PN}-dev = "${TS_INSTALL}"
11
12# Secure Partition DTS file might be updated in bbapend files
13SP_DTS_FILE ?= "${D}${TS_INSTALL}/manifest/${SP_UUID}.dts"
14
15do_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.
25EXTRA_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.
29INSANE_SKIP:${PN}-dev += "ldflags"
Patrick Williams2194f502022-10-16 14:26:09 -050030
31# Trusted Services SPs do not compile with clang
32TOOLCHAIN = "gcc"