Signed-off-by: Denys Dmytriyenko <[email protected]>
---
v2 - use public location for sysfw image gen tool

 .../ti-sci-fw/ti-sci-fw_2018.08b.bb           | 58 +++++++++++++++++++
 1 file changed, 58 insertions(+)
 create mode 100644 
meta-arago-distro/recipes-bsp/ti-sci-fw/ti-sci-fw_2018.08b.bb

diff --git a/meta-arago-distro/recipes-bsp/ti-sci-fw/ti-sci-fw_2018.08b.bb 
b/meta-arago-distro/recipes-bsp/ti-sci-fw/ti-sci-fw_2018.08b.bb
new file mode 100644
index 00000000..bf340312
--- /dev/null
+++ b/meta-arago-distro/recipes-bsp/ti-sci-fw/ti-sci-fw_2018.08b.bb
@@ -0,0 +1,58 @@
+SUMMARY = "TI SCI firmware"
+
+LICENSE = "TI-TFL"
+LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=b5aebf0668bdf95621259288c4a46d76"
+
+DEPENDS = "openssl-native u-boot-mkimage-native dtc-native"
+
+CLEANBROKEN = "1"
+
+COMPATIBLE_MACHINE = "k3"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+SRCREV = "463b1b4a50e8e361fa333f87caf74d2e05bc0a82"
+
+BRANCH ?= "ti-linux-firmware-4.1.y"
+
+SRC_URI = " \
+       
git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}
 \
+       
git://git.ti.com/processor-firmware/system-firmware-image-gen.git;protocol=git;branch=master;destsuffix=imggen;name=imggen
 \
+"
+
+SRCREV_imggen = "8641afac31fae30472edcef797d17d66a335f960"
+SRCREV_FORMAT = "imggen"
+
+S = "${WORKDIR}/git"
+
+SYSFW_TISCI_am65xx-evm = "ti-sci-firmware-am65x-gp.bin"
+SYSFW_BINARY = "sysfw.itb"
+SYSFW_IMAGE = "sysfw-${PV}.itb"
+
+CROSS_COMPILE_V7 = "${ELT_TARGET_SYS_ARMV7}-"
+PATH_prepend = "${TOOLCHAIN_PATH_ARMV7}/bin:"
+
+do_compile() {
+       cp ${S}/ti-sysfw/${SYSFW_TISCI} ${WORKDIR}/imggen/
+       cd ${WORKDIR}/imggen/
+       oe_runmake SYSFW_DL_URL=""
+}
+
+do_install() {
+       install -d ${D}/boot
+       install -m 644 ${WORKDIR}/imggen/${SYSFW_BINARY} 
${D}/boot/${SYSFW_IMAGE}
+       ln -sf ${SYSFW_IMAGE} ${D}/boot/${SYSFW_BINARY}
+}
+
+FILES_${PN} = "/boot"
+
+inherit deploy
+
+do_deploy () {
+       install -d ${DEPLOYDIR}
+       install -m 644 ${WORKDIR}/imggen/${SYSFW_BINARY} 
${DEPLOYDIR}/${SYSFW_IMAGE}
+       rm -f ${DEPLOYDIR}/${SYSFW_BINARY}
+       ln -sf ${SYSFW_IMAGE} ${DEPLOYDIR}/${SYSFW_BINARY}
+}
+
+addtask deploy before do_build after do_compile
-- 
2.17.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to