From 84770ce75aa5402c29333fb36da2f69e1fbf3a1b Mon Sep 17 00:00:00 2001 From: Chunrong Guo Date: Fri, 11 Jan 2019 03:14:30 +0000 Subject: optee-os-qoriq: update to e93f053 *update to lsdk 1812 tag include the following changes e93f053 - Merge pull request #12 in DASH/optee_os from ~NXA18717/optee_os:optee_3.2.0 to optee_3.2.0 40670fe - plat-ls:add LX2160ARDB platform flavors c4ca171 - Updating MAINTAINERS for NXP LS-RDB Platforms *support ls1012afrwy 512mb and ls1012afrwy 1G Signed-off-by: Chunrong Guo --- recipes-security/optee/optee-os-qoriq_git.bb | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'recipes-security/optee/optee-os-qoriq_git.bb') 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" inherit deploy pythonnative -SRCREV = "5f6c95c085bb0dd750a7f5c464e5ebe6de0a99bd" +SRCREV = "e93f053213c574ec1b97f9e56b2f31692cd3723c" SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/optee_os;nobranch=1 \ file://0001-allow-setting-sysroot-for-libgcc-lookup.patch \ " @@ -31,13 +31,21 @@ OPTEE_ARCH_aarch64 = "arm64" do_compile() { unset LDFLAGS oe_runmake all CFG_TEE_TA_LOG_LEVEL=0 + ${OBJCOPY} -v -O binary ${B}/out/arm-plat-ls/core/tee.elf ${B}/out/arm-plat-ls/core/tee.bin + + if [ ${MACHINE} = ls1012afrwy ]; then + mv ${B}/out/arm-plat-ls/core/tee.bin ${B}/out/arm-plat-ls/core/tee_512mb.bin + oe_runmake CFG_DRAM0_SIZE=0x40000000 all CFG_TEE_TA_LOG_LEVEL=0 + ${OBJCOPY} -v -O binary ${B}/out/arm-plat-ls/core/tee.elf ${B}/out/arm-plat-ls/core/tee.bin + fi } do_install() { #install core on boot directory install -d ${D}/lib/firmware/ - - ${OBJCOPY} -v -O binary ${B}/out/arm-plat-ls/core/tee.elf ${B}/out/arm-plat-ls/core/tee.bin + if [ ${MACHINE} = ls1012afrwy ]; then + install -m 644 ${B}/out/arm-plat-ls/core/tee_512mb.bin ${D}/lib/firmware/tee_${MACHINE}_512mb.bin + fi install -m 644 ${B}/out/arm-plat-ls/core/tee.bin ${D}/lib/firmware/tee_${MACHINE}.bin #install TA devkit install -d ${D}/usr/include/optee/export-user_ta/ @@ -52,7 +60,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" do_deploy() { install -d ${DEPLOYDIR}/optee for f in ${D}/lib/firmware/*; do - install -m 644 $f ${DEPLOYDIR}/optee/tee_${MACHINE}.bin + cp $f ${DEPLOYDIR}/optee/ done } -- cgit v1.2.3-54-g00ecf