diff options
Diffstat (limited to 'recipes-security/optee/optee-os-qoriq_git.bb')
-rw-r--r-- | recipes-security/optee/optee-os-qoriq_git.bb | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/recipes-security/optee/optee-os-qoriq_git.bb b/recipes-security/optee/optee-os-qoriq_git.bb index 5a689420..c8ebe2bf 100644 --- a/recipes-security/optee/optee-os-qoriq_git.bb +++ b/recipes-security/optee/optee-os-qoriq_git.bb | |||
@@ -8,7 +8,7 @@ DEPENDS = "python-pycrypto-native" | |||
8 | 8 | ||
9 | inherit deploy pythonnative | 9 | inherit deploy pythonnative |
10 | 10 | ||
11 | SRCREV = "5f6c95c085bb0dd750a7f5c464e5ebe6de0a99bd" | 11 | SRCREV = "e93f053213c574ec1b97f9e56b2f31692cd3723c" |
12 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/optee_os;nobranch=1 \ | 12 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/optee_os;nobranch=1 \ |
13 | file://0001-allow-setting-sysroot-for-libgcc-lookup.patch \ | 13 | file://0001-allow-setting-sysroot-for-libgcc-lookup.patch \ |
14 | " | 14 | " |
@@ -31,13 +31,21 @@ OPTEE_ARCH_aarch64 = "arm64" | |||
31 | do_compile() { | 31 | do_compile() { |
32 | unset LDFLAGS | 32 | unset LDFLAGS |
33 | oe_runmake all CFG_TEE_TA_LOG_LEVEL=0 | 33 | oe_runmake all CFG_TEE_TA_LOG_LEVEL=0 |
34 | ${OBJCOPY} -v -O binary ${B}/out/arm-plat-ls/core/tee.elf ${B}/out/arm-plat-ls/core/tee.bin | ||
35 | |||
36 | if [ ${MACHINE} = ls1012afrwy ]; then | ||
37 | mv ${B}/out/arm-plat-ls/core/tee.bin ${B}/out/arm-plat-ls/core/tee_512mb.bin | ||
38 | oe_runmake CFG_DRAM0_SIZE=0x40000000 all CFG_TEE_TA_LOG_LEVEL=0 | ||
39 | ${OBJCOPY} -v -O binary ${B}/out/arm-plat-ls/core/tee.elf ${B}/out/arm-plat-ls/core/tee.bin | ||
40 | fi | ||
34 | } | 41 | } |
35 | 42 | ||
36 | do_install() { | 43 | do_install() { |
37 | #install core on boot directory | 44 | #install core on boot directory |
38 | install -d ${D}/lib/firmware/ | 45 | install -d ${D}/lib/firmware/ |
39 | 46 | if [ ${MACHINE} = ls1012afrwy ]; then | |
40 | ${OBJCOPY} -v -O binary ${B}/out/arm-plat-ls/core/tee.elf ${B}/out/arm-plat-ls/core/tee.bin | 47 | install -m 644 ${B}/out/arm-plat-ls/core/tee_512mb.bin ${D}/lib/firmware/tee_${MACHINE}_512mb.bin |
48 | fi | ||
41 | install -m 644 ${B}/out/arm-plat-ls/core/tee.bin ${D}/lib/firmware/tee_${MACHINE}.bin | 49 | install -m 644 ${B}/out/arm-plat-ls/core/tee.bin ${D}/lib/firmware/tee_${MACHINE}.bin |
42 | #install TA devkit | 50 | #install TA devkit |
43 | install -d ${D}/usr/include/optee/export-user_ta/ | 51 | install -d ${D}/usr/include/optee/export-user_ta/ |
@@ -52,7 +60,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" | |||
52 | do_deploy() { | 60 | do_deploy() { |
53 | install -d ${DEPLOYDIR}/optee | 61 | install -d ${DEPLOYDIR}/optee |
54 | for f in ${D}/lib/firmware/*; do | 62 | for f in ${D}/lib/firmware/*; do |
55 | install -m 644 $f ${DEPLOYDIR}/optee/tee_${MACHINE}.bin | 63 | cp $f ${DEPLOYDIR}/optee/ |
56 | done | 64 | done |
57 | } | 65 | } |
58 | 66 | ||