diff options
author | Vladimir Barinov <vladimir.barinov@cogentembedded.com> | 2018-02-11 00:14:31 +0300 |
---|---|---|
committer | Vladimir Barinov <vladimir.barinov@cogentembedded.com> | 2018-02-26 23:24:54 +0300 |
commit | dcaab1aa0e700cb5bd94a645025fbea8c0c7582e (patch) | |
tree | dcfc9aa887a34f2a61a9f02df933212c9382d780 /meta-rcar-gen3-adas/recipes-bsp/cr7-loader/cr7-loader_git.bb | |
parent | 882bedd218dbe534e260373b5b18dd52b90ff935 (diff) |
V3H: add CR7 Loader
Add CR7 Loader for V3H ES1.0 (support only Condor board DRAM setup)
Diffstat (limited to 'meta-rcar-gen3-adas/recipes-bsp/cr7-loader/cr7-loader_git.bb')
-rw-r--r-- | meta-rcar-gen3-adas/recipes-bsp/cr7-loader/cr7-loader_git.bb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-rcar-gen3-adas/recipes-bsp/cr7-loader/cr7-loader_git.bb b/meta-rcar-gen3-adas/recipes-bsp/cr7-loader/cr7-loader_git.bb new file mode 100644 index 0000000..dde5ec4 --- /dev/null +++ b/meta-rcar-gen3-adas/recipes-bsp/cr7-loader/cr7-loader_git.bb @@ -0,0 +1,42 @@ +DESCRIPTION = "CR7 Loader" + +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://license.md;md5=9b6b96211116d6143a7f1d681d39b13d" + +inherit deploy + +S = "${WORKDIR}/git" + +BRANCH = "rcar_gen3" +SRC_URI = "git://github.com/CogentEmbedded/cr7-loader.git;branch=${BRANCH}" +SRCREV = "9570cd170e876801370560bb0c417816cbfe21d2" + +PV = "v1.0+renesas+git" + +COMPATIBLE_MACHINE = "condor" +PLATFORM = "rcar" + +do_compile() { + wget https://releases.linaro.org/components/toolchain/binaries/5.1-2015.08/arm-eabi/gcc-linaro-5.1-2015.08-x86_64_arm-eabi.tar.xz + tar xfJ gcc-linaro-5.1-2015.08-x86_64_arm-eabi.tar.xz + + CROSS_COMPILE=./gcc-linaro-5.1-2015.08-x86_64_arm-eabi/bin/arm-eabi- make RCAR_DRAM_SPLIT=0 RCAR_KICK_MAIN_CPU=2 LSI=V3H RCAR_SECURE_BOOT=0 clean + CROSS_COMPILE=./gcc-linaro-5.1-2015.08-x86_64_arm-eabi/bin/arm-eabi- make RCAR_DRAM_SPLIT=0 RCAR_KICK_MAIN_CPU=2 LSI=V3H RCAR_SECURE_BOOT=0 +} + +do_deploy() { + # Create deploy folder + install -d ${DEPLOYDIR} + + # Copy CR7 Loader to deploy folder + install -m 0644 ${S}/cr7_loader.elf ${DEPLOYDIR}/cr7-${MACHINE}.elf + install -m 0644 ${S}/cr7_loader.bin ${DEPLOYDIR}/cr7-${MACHINE}.bin + install -m 0644 ${S}/cr7_loader.srec ${DEPLOYDIR}/cr7-${MACHINE}.srec + + install -m 0644 ${S}/bootparam_sa0.srec ${DEPLOYDIR}/bootparam_sa0.bin + install -m 0644 ${S}/bootparam_sa0.srec ${DEPLOYDIR}/bootparam_sa0.srec + + install -m 0644 ${S}/cert_header_sa3.srec ${DEPLOYDIR}/cert_header_sa3.srec +} + +addtask deploy before do_build after do_compile |