aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2019-10-09 02:07:15 +0000
committerDenys Dmytriyenko <denys@ti.com>2019-10-08 19:57:56 +0000
commitafd226010cfb1a94f1bbad8fb2a89f83f52e59bc (patch)
tree648e795f9673aa02a07276d0d6ba5cb41a8d961d
parente0d82a65273e289404dbfbde747a9ffb05e8dae3 (diff)
downloadmeta-ti-afd226010cfb1a94f1bbad8fb2a89f83f52e59bc.tar.gz
meta-ti-afd226010cfb1a94f1bbad8fb2a89f83f52e59bc.tar.bz2
meta-ti-afd226010cfb1a94f1bbad8fb2a89f83f52e59bc.zip
pru-pwm-fw: add PRU PWM Firmware recipe
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
-rw-r--r--recipes-bsp/pru/pru-pwm-fw_git.bb40
1 files changed, 40 insertions, 0 deletions
diff --git a/recipes-bsp/pru/pru-pwm-fw_git.bb b/recipes-bsp/pru/pru-pwm-fw_git.bb
new file mode 100644
index 000000000..0fe79879b
--- /dev/null
+++ b/recipes-bsp/pru/pru-pwm-fw_git.bb
@@ -0,0 +1,40 @@
+SUMMARY = "Programmable Real-time Unit PWM Firmware"
+LICENSE = "BSD-3-Clause"
+
+LIC_FILES_CHKSUM = "file://main.c;beginline=1;endline=32;md5=893d6a0cf1644338ea96642c0db97f59"
+
+require recipes-ti/includes/ti-paths.inc
+
+COMPATIBLE_MACHINE = "am65xx"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+# Below commit ID corresponds to "DEV.PRUSS_LLD.01.00.00.15B"
+SRCREV = "989f802266d52f50a6db8f2be6967eacd9d2b409"
+
+PV = "01.00.00.15B"
+
+BRANCH = "master"
+SRC_URI = "git://git.ti.com/keystone-rtos/pruss-lld.git;protocol=git;branch=${BRANCH}"
+
+DEPENDS = "ti-cgt-pru-native pru-icss common-csl-ip-rtos"
+
+S = "${WORKDIR}/git/example/apps/icssg_pwm/firmware/src"
+
+EXTRA_OEMAKE += " \
+ PRU_CGT="${TI_CGT_PRU_INSTALL_DIR}" \
+ PRU_SSP="${STAGING_DIR_TARGET}/usr" \
+ PDK_INSTALL_DIR="${STAGING_DATADIR}/ti/ti-pdk-tree/packages" \
+"
+
+do_compile() {
+ oe_runmake
+}
+
+do_install() {
+ install -d ${D}/lib/firmware/ti-pruss
+ install -m 0644 ${S}/gen/pwm.out ${D}/lib/firmware/ti-pruss/am65x-pru0-pwm-fw.elf
+}
+
+FILES_${PN} = "/lib/firmware"
+
+INSANE_SKIP_${PN} = "arch"