summaryrefslogtreecommitdiffstats
path: root/recipes-security
diff options
context:
space:
mode:
authorChunrong Guo <chunrong.guo@nxp.com>2018-01-30 17:09:52 +0800
committerOtavio Salvador <otavio@ossystems.com.br>2018-02-06 09:58:34 -0200
commit47f959f4b664fc3d0ca66c1bd1f32f4a33eceb55 (patch)
tree1b7dc3e44c3428ce659fa7f26da4f13c4c5d0282 /recipes-security
parent67050918d2f44e2a6c03971663a03cec55131f1b (diff)
downloadmeta-freescale-47f959f4b664fc3d0ca66c1bd1f32f4a33eceb55.tar.gz
optee-os: add recipes
*include the following changes: ced7d32 - Merge pull request #2 in DASH/optee_os from ~NXA18717/dash_optee_os:master to master b48ba24 - plat-ls: Add support for armv8 platform flavour 789e38a - core: arm: psci: pass nsec ctx to system_suspend a7337d8 - core: fix allocated object on object creation failure in svc storage 639e5b8 - pta: change DMSG to FMSG for invoke in pta/SDP bc0d271 - make clean: split file list into manageable chunks 8c6a8af - Fix comment in tee_ree_fs.c 6d57389 - Update CHANGELOG.md for 2.6.0 e4a1f58 - entry_std.c: Initialize num_params to fix gcc warning b644907 - thread.c: free rpc arg mobj during cache disabling a3bb288 - Update minor revision to 6 for release tag 2.6.0-rc1 b45ff69 - hikey, hikey960: enable dynamic shared memory 9a85cc0 - core: add v2p/p2v tests in embedded tests 3883028 - core:mmu: privileged land pa2va is not supported in dynamic SHM 0d86665 - core:debug: add verbosity when pa/va do not match 42d91b4 - core:mmu: fix userland pa2va conversion bbed97b - core:mmu: fix userland va2pa conversion def98e2 - core:unwind: check user context on stack print of panicked TAs f98151a - core: map PTA registered shared memory late 430dcbd - core: reimplement mobj_mapped_shm_alloc() 071e702 - core: add mobj_reg_shm_{,un}map() 5c7a19b - core: mobj: remove double physical offset a71af55 - core: mobj: add mobj_get_phys_offs() 8ae8c73 - Add Marvell platform with initial support for ARMADA A7K & A8K ade1412 - Util: add ASM version ROUNDDOWN and ROUNDUP definitions a5ebede - Util: add some useful SIZE definitions ae9fdf9 - plat-stm: support registered shm buffers ae19421 - core:sdp: fix SDP test pseudo-TA against dynamic shm c5d84b7 - plat-rcar: add non-secure DDR configuration d7269cc - plat-rcar: add initial support for salvator-m3 board b369a93 - plat-rcar: force CFG_CORE_LARGE_PHYS_ADDR ae841ed - pager: allow TA unwind when cause of unwind is not abort 785be2e - plat-vexpress: juno: add missing DRAM1 7411e0e - Add comment about CFG_UNWIND 3ff067c - plat-vexpress: fvp: add missing DRAM1 cbe4eae - core: add register_phys_mem_ul() 29ba2e7 - core: trivial large paddr_t fixes dd3afba - Add CFG_CORE_LARGE_PHYS_ADDR for 64bit paddr_t Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-security')
-rw-r--r--recipes-security/optee/optee-os/0001-allow-setting-sysroot-for-libgcc-lookup.patch13
-rw-r--r--recipes-security/optee/optee-os_git.bb67
2 files changed, 80 insertions, 0 deletions
diff --git a/recipes-security/optee/optee-os/0001-allow-setting-sysroot-for-libgcc-lookup.patch b/recipes-security/optee/optee-os/0001-allow-setting-sysroot-for-libgcc-lookup.patch
new file mode 100644
index 00000000..17127d0b
--- /dev/null
+++ b/recipes-security/optee/optee-os/0001-allow-setting-sysroot-for-libgcc-lookup.patch
@@ -0,0 +1,13 @@
1diff --git a/mk/gcc.mk b/mk/gcc.mk
2index fc38c4d..77b8d74 100644
3--- a/mk/gcc.mk
4+++ b/mk/gcc.mk
5@@ -12,7 +12,7 @@ nostdinc$(sm) := -nostdinc -isystem $(shell $(CC$(sm)) \
6 -print-file-name=include 2> /dev/null)
7
8 # Get location of libgcc from gcc
9-libgcc$(sm) := $(shell $(CC$(sm)) $(CFLAGS$(arch-bits-$(sm))) $(comp-cflags$(sm)) \
10+libgcc$(sm) := $(shell $(CC$(sm)) $(LIBGCC_LOCATE_CFLAGS) $(CFLAGS$(arch-bits-$(sm))) $(comp-cflags$(sm)) \
11 -print-libgcc-file-name 2> /dev/null)
12
13 # Define these to something to discover accidental use
diff --git a/recipes-security/optee/optee-os_git.bb b/recipes-security/optee/optee-os_git.bb
new file mode 100644
index 00000000..cda3a69b
--- /dev/null
+++ b/recipes-security/optee/optee-os_git.bb
@@ -0,0 +1,67 @@
1SUMMARY = "OP-TEE Trusted OS"
2DESCRIPTION = "OPTEE OS"
3
4LICENSE = "BSD"
5LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=69663ab153298557a59c67a60a743e5b"
6
7DEPENDS = "python-pycrypto-native"
8
9inherit deploy pythonnative
10
11SRCREV = "ced7d32072c2b350c2090803f6dcfa006057efda"
12SRC_URI = "git://github.com/qoriq-open-source/optee_os.git;nobranch=1 \
13 file://0001-allow-setting-sysroot-for-libgcc-lookup.patch \
14 "
15
16S = "${WORKDIR}/git"
17
18OPTEEMACHINE ?= "${MACHINE}"
19
20EXTRA_OEMAKE = "PLATFORM=ls-${OPTEEMACHINE} CFG_ARM64_core=y \
21 CROSS_COMPILE_core=${HOST_PREFIX} \
22 CROSS_COMPILE_ta_arm64=${HOST_PREFIX} \
23 NOWERROR=1 \
24 ta-targets=ta_arm64 \
25 LDFLAGS= \
26 LIBGCC_LOCATE_CFLAGS=--sysroot=${STAGING_DIR_HOST} \
27 "
28
29OPTEE_ARCH_armv7a = "arm32"
30OPTEE_ARCH_aarch64 = "arm64"
31
32do_compile() {
33 unset LDFLAGS
34 oe_runmake all CFG_TEE_TA_LOG_LEVEL=0
35}
36
37do_install() {
38 #install core on boot directory
39 install -d ${D}/lib/firmware/
40
41 install -m 644 ${B}/out/arm-plat-ls/core/tee.elf ${D}/lib/firmware/tee_${MACHINE}.bin
42 #install TA devkit
43 install -d ${D}/usr/include/optee/export-user_ta/
44
45 for f in ${B}/out/arm-plat-ls/export-ta_${OPTEE_ARCH}/* ; do
46 cp -aR $f ${D}/usr/include/optee/export-user_ta/
47 done
48}
49
50PACKAGE_ARCH = "${MACHINE_ARCH}"
51
52do_deploy() {
53 install -d ${DEPLOYDIR}/optee
54 for f in ${D}/lib/firmware/*; do
55 install -m 644 $f ${DEPLOYDIR}/optee/tee_${MACHINE}.bin
56 done
57}
58
59addtask deploy before do_build after do_install
60
61FILES_${PN} = "/lib/firmware/"
62FILES_${PN}-dev = "/usr/include/optee"
63
64INSANE_SKIP_${PN}-dev = "staticdev"
65
66INHIBIT_PACKAGE_STRIP = "1"
67COMPATIBLE_MACHINE = "(ls1043ardb|ls1046ardb|ls1012ardb)"