1# 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" 30 31# Trusted Services SPs do not compile with clang 32TOOLCHAIN = "gcc" 33