diff options
| author | Denys Dmytriyenko <denys@konsulko.com> | 2022-02-22 04:13:45 +0000 |
|---|---|---|
| committer | Ryan Eatmon <reatmon@ti.com> | 2022-02-22 12:01:38 -0600 |
| commit | 20f3191aeb592dd889eeaf96a31526297de95306 (patch) | |
| tree | aec879b9855ff8a54df171ee808e30ac26f1c80b /meta-ti-bsp/recipes-bsp | |
| parent | bea4fd2c401af05b866bd6af1c4e501d31b7b420 (diff) | |
| download | meta-ti-20f3191aeb592dd889eeaf96a31526297de95306.tar.gz | |
meta-ti: create a sub-layer meta-ti-bsp from existing content
Extra sub-layers will be created next and relevant content moved across them.
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-bsp/recipes-bsp')
49 files changed, 2211 insertions, 0 deletions
diff --git a/meta-ti-bsp/recipes-bsp/bt-fw/bt-fw_git.bb b/meta-ti-bsp/recipes-bsp/bt-fw/bt-fw_git.bb new file mode 100644 index 00000000..ea42c168 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/bt-fw/bt-fw_git.bb | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | DESCRIPTION = "Firmware files for Bluetooth" | ||
| 2 | LICENSE = "TI-TSPA" | ||
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f39eac9f4573be5b012e8313831e72a9" | ||
| 4 | |||
| 5 | PV = "8.7.1+git${SRCPV}" | ||
| 6 | |||
| 7 | CLEANBROKEN = "1" | ||
| 8 | |||
| 9 | SRCREV = "0ee619b598d023fffc77679f099bc2a4815510e4" | ||
| 10 | BRANCH = "master" | ||
| 11 | SRC_URI = "git://git.ti.com/ti-bt/service-packs.git;branch=${BRANCH}" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/git" | ||
| 14 | |||
| 15 | do_compile() { | ||
| 16 | : | ||
| 17 | } | ||
| 18 | |||
| 19 | do_install() { | ||
| 20 | install -d ${D}${base_libdir}/firmware/ti-connectivity | ||
| 21 | oe_runmake "DEST_DIR=${D}" "BASE_LIB_DIR=${base_libdir}" install | ||
| 22 | } | ||
| 23 | |||
| 24 | FILES:${PN} += "${base_libdir}/firmware/ti-connectivity/*" | ||
diff --git a/meta-ti-bsp/recipes-bsp/cadence-mhdp-fw/cadence-mhdp-fw_git.bb b/meta-ti-bsp/recipes-bsp/cadence-mhdp-fw/cadence-mhdp-fw_git.bb new file mode 100644 index 00000000..c975e8a4 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/cadence-mhdp-fw/cadence-mhdp-fw_git.bb | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | SUMMARY = "Cadence MHDP DP bridge firmware" | ||
| 2 | |||
| 3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
| 4 | |||
| 5 | LICENSE = "BSD-3-Clause | Apache-2.0" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENCE.cadence;md5=009f46816f6956cfb75ede13d3e1cee0" | ||
| 7 | |||
| 8 | PV = "${CADENCE_MHDP_FW_VERSION}" | ||
| 9 | PR = "${INC_PR}.0" | ||
| 10 | |||
| 11 | CLEANBROKEN = "1" | ||
| 12 | |||
| 13 | COMPATIBLE_MACHINE = "j7" | ||
| 14 | |||
| 15 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 16 | |||
| 17 | S = "${WORKDIR}/git" | ||
| 18 | TARGET = "mhdp8546.bin" | ||
| 19 | |||
| 20 | do_install() { | ||
| 21 | install -d ${D}${base_libdir}/firmware/cadence | ||
| 22 | install -m 0644 ${S}/cadence/${TARGET} ${D}${base_libdir}/firmware/cadence/${TARGET} | ||
| 23 | } | ||
| 24 | |||
| 25 | FILES:${PN} = "${base_libdir}/firmware" | ||
diff --git a/meta-ti-bsp/recipes-bsp/cm3-pm-firmware/amx3-cm3_git.bb b/meta-ti-bsp/recipes-bsp/cm3-pm-firmware/amx3-cm3_git.bb new file mode 100644 index 00000000..bd5c3693 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/cm3-pm-firmware/amx3-cm3_git.bb | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | DESCRIPTION = "Cortex-M3 binary blob for suspend-resume" | ||
| 2 | |||
| 3 | LICENSE = "TI-TSPA" | ||
| 4 | LIC_FILES_CHKSUM = "file://License.txt;md5=7bdc54a749ab7a7dea999d25d99a41b8" | ||
| 5 | |||
| 6 | PV = "1.9.2" | ||
| 7 | PR = "r0" | ||
| 8 | |||
| 9 | SRCREV = "fb484c5e54f2e31cf0a338d2927a06a2870bcc2c" | ||
| 10 | BRANCH ?= "ti-v4.1.y" | ||
| 11 | |||
| 12 | SRC_URI = "git://git.ti.com/processor-firmware/ti-amx3-cm3-pm-firmware.git;protocol=git;branch=${BRANCH}" | ||
| 13 | |||
| 14 | S = "${WORKDIR}/git" | ||
| 15 | |||
| 16 | do_compile() { | ||
| 17 | make CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${SECURITY_NOPIE_CFLAGS}" | ||
| 18 | } | ||
| 19 | |||
| 20 | do_install() { | ||
| 21 | install -d ${D}${base_libdir}/firmware | ||
| 22 | install -m 0644 bin/am335x-pm-firmware.elf ${D}${base_libdir}/firmware/ | ||
| 23 | install -m 0644 bin/*-scale-data.bin ${D}${base_libdir}/firmware/ | ||
| 24 | } | ||
| 25 | |||
| 26 | FILES:${PN} += "${base_libdir}/firmware" | ||
| 27 | |||
| 28 | COMPATIBLE_MACHINE = "(ti-soc)" | ||
| 29 | TOOLCHAIN = "gcc" | ||
diff --git a/meta-ti-bsp/recipes-bsp/cmem/cmem-mod_git.bb b/meta-ti-bsp/recipes-bsp/cmem/cmem-mod_git.bb new file mode 100644 index 00000000..f7965593 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/cmem/cmem-mod_git.bb | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | DESCRIPTION = "Kernel module for contiguous memory allocation from userspace" | ||
| 2 | |||
| 3 | include cmem.inc | ||
| 4 | |||
| 5 | # This package builds a kernel module, use kernel PR as base and append a local | ||
| 6 | MACHINE_KERNEL_PR:append = "a" | ||
| 7 | PR = "${MACHINE_KERNEL_PR}" | ||
| 8 | |||
| 9 | inherit module | ||
| 10 | |||
| 11 | EXTRA_OEMAKE += '-f lu.mak KERNEL_INSTALL_DIR="${STAGING_KERNEL_DIR}" TOOLCHAIN_PREFIX="${TOOLCHAIN_PREFIX}" EXEC_DIR="${D}/lib/modules/${KERNEL_VERSION}/extra"' | ||
| 12 | MAKE_TARGETS = "module" | ||
| 13 | |||
| 14 | KERNEL_MODULE_AUTOLOAD += "cmemk" | ||
| 15 | |||
| 16 | do_install:prepend() { | ||
| 17 | cp ${B}/src/cmem/module/Module.symvers ${B}/ || true | ||
| 18 | } | ||
diff --git a/meta-ti-bsp/recipes-bsp/cmem/cmem.inc b/meta-ti-bsp/recipes-bsp/cmem/cmem.inc new file mode 100644 index 00000000..aaed8f06 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/cmem/cmem.inc | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:CMEM" | ||
| 2 | |||
| 3 | LICENSE = "GPLv2" | ||
| 4 | LIC_FILES_CHKSUM = "file://include/ti/cmem.h;beginline=1;endline=30;md5=26be509e4bb413905bda8309e338e2b1" | ||
| 5 | |||
| 6 | BRANCH = "master" | ||
| 7 | # This corresponds to version 4.20.00.01 | ||
| 8 | SRCREV = "86269258a48e0a9008dd9d5ebfae9da7ce843393" | ||
| 9 | |||
| 10 | PV = "4.20.00.01+git${SRCPV}" | ||
| 11 | |||
| 12 | SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}" | ||
| 13 | |||
| 14 | S = "${WORKDIR}/git" | ||
| 15 | COMPATIBLE_HOST ?= "null" | ||
| 16 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
diff --git a/meta-ti-bsp/recipes-bsp/cmem/cmem_git.bb b/meta-ti-bsp/recipes-bsp/cmem/cmem_git.bb new file mode 100644 index 00000000..f69c22fb --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/cmem/cmem_git.bb | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | DESCRIPTION = "The cmem component supports contiguous memory allocation from userspace" | ||
| 2 | |||
| 3 | include cmem.inc | ||
| 4 | |||
| 5 | RDEPENDS:${PN} = "cmem-mod" | ||
| 6 | |||
| 7 | PR = "r0" | ||
| 8 | |||
| 9 | PACKAGES =+ "${PN}-test" | ||
| 10 | |||
| 11 | FILES:${PN}-test = "${bindir}/*" | ||
| 12 | |||
| 13 | inherit autotools | ||
diff --git a/meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb b/meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb new file mode 100755 index 00000000..ed36951f --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | SUMMARY = "R5 PSDK CPSW9G Ethernet Switch Firmware" | ||
| 2 | |||
| 3 | LICENSE = "TI-TFL" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=04ad0a015d4bb63c2b9e7b112debf3db" | ||
| 5 | |||
| 6 | PV = "6.2+git${SRCPV}" | ||
| 7 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 8 | |||
| 9 | inherit deploy | ||
| 10 | inherit update-alternatives | ||
| 11 | |||
| 12 | PROTOCOL = "git" | ||
| 13 | BRANCH = "master" | ||
| 14 | SRCREV = "91f1628507bf7f8716f0bc7cafe88ad7f14c94f5" | ||
| 15 | |||
| 16 | SRC_URI = "git://git.ti.com/glsdk/ti-eth-fw.git;protocol=${PROTOCOL};branch=${BRANCH}" | ||
| 17 | |||
| 18 | S = "${WORKDIR}/git" | ||
| 19 | |||
| 20 | CPSW9G_FW_DIR = "${S}/ethfw" | ||
| 21 | CPSW9G_FW_FILENAME = "app_remoteswitchcfg_server_pdk_mem_map_strip.xer5f" | ||
| 22 | |||
| 23 | # make sure that lib/firmware, and all its contents are part of the package | ||
| 24 | FILES:${PN} += "${base_libdir}/firmware" | ||
| 25 | |||
| 26 | do_install() { | ||
| 27 | install -d ${D}${base_libdir}/firmware | ||
| 28 | # Ethernet firmware to be loaded on Main R5 core(needs read permission) | ||
| 29 | install -m 0644 ${CPSW9G_FW_DIR}/${CPSW9G_FW_FILENAME} ${D}${base_libdir}/firmware | ||
| 30 | } | ||
| 31 | |||
| 32 | TARGET_MAIN_R5FSS0_0 = "j7-main-r5f0_0-fw" | ||
| 33 | ALTERNATIVE:${PN} = "j7-main-r5f0_0-fw" | ||
| 34 | ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" | ||
| 35 | ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${CPSW9G_FW_FILENAME}" | ||
| 36 | ALTERNATIVE_PRIORITY = "17" | ||
| 37 | |||
| 38 | INHIBIT_PACKAGE_STRIP = "1" | ||
| 39 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
| 40 | INSANE_SKIP:${PN} += "arch" | ||
| 41 | |||
| 42 | do_compile[noexec] = "1" | ||
| 43 | do_configure[noexec] = "1" | ||
diff --git a/meta-ti-bsp/recipes-bsp/cuia/cuia_1.0.0.13.bb b/meta-ti-bsp/recipes-bsp/cuia/cuia_1.0.0.13.bb new file mode 100644 index 00000000..1cda366d --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/cuia/cuia_1.0.0.13.bb | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | DESCRIPTION = "TI Unified Instrumentation Architecture in C (cUIA)" | ||
| 2 | LICENSE = "BSD-3-Clause" | ||
| 3 | LIC_FILES_CHKSUM = "file://cuia_${CUIA_PV}_manifest.html;md5=0eea94e3bb94de4ddee77653eba1c7c5" | ||
| 4 | |||
| 5 | CUIA_PV = "1_00_00_13" | ||
| 6 | CUIA_PVExtra = "" | ||
| 7 | |||
| 8 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/UIA/SCMCSDK/cuia_${CUIA_PV}${CUIA_PVExtra}.tar.gz;name=cuia" | ||
| 9 | SRC_URI[cuia.md5sum] = "ef53989ac70c191841cd656cdc8770be" | ||
| 10 | SRC_URI[cuia.sha256sum] = "f16d138a9146fdc7d52cba77bd30596da65835f6ffe4092baf2b33d1c1a4fb0d" | ||
| 11 | |||
| 12 | S = "${WORKDIR}/cuia_${CUIA_PV}${CUIA_PVExtra}" | ||
| 13 | |||
| 14 | CLEANBROKEN = "1" | ||
| 15 | |||
| 16 | do_compile () { | ||
| 17 | cd ${S} | ||
| 18 | oe_runmake clean | ||
| 19 | oe_runmake all | ||
| 20 | } | ||
| 21 | |||
| 22 | do_install() { | ||
| 23 | cd ${S} | ||
| 24 | oe_runmake DESTDIR=${D} libdir=${libdir} includedir=${includedir} install | ||
| 25 | } | ||
| 26 | |||
| 27 | COMPATIBLE_HOST ?= "null" | ||
| 28 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
| 29 | |||
| 30 | INSANE_SKIP:${PN} += "textrel installed-vs-shipped" | ||
diff --git a/meta-ti-bsp/recipes-bsp/dspdce-fw/dspdce-fw_git.bb b/meta-ti-bsp/recipes-bsp/dspdce-fw/dspdce-fw_git.bb new file mode 100644 index 00000000..4e863099 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/dspdce-fw/dspdce-fw_git.bb | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | SUMMARY = "Firmware for DSP for an example application called copycodectest" | ||
| 2 | LICENSE = "TI-TSPA" | ||
| 3 | LIC_FILES_CHKSUM = "file://src/ti/framework/dce/dce.c;startline=1;endline=31;md5=2c6e9aba6ed75f22b1a2b7544b1c809d" | ||
| 4 | |||
| 5 | COMPATIBLE_MACHINE = "dra7xx" | ||
| 6 | |||
| 7 | inherit features_check | ||
| 8 | |||
| 9 | REQUIRED_MACHINE_FEATURES = "dsp" | ||
| 10 | |||
| 11 | SRC_URI = "git://git.ti.com/glsdk/dspdce.git;protocol=git" | ||
| 12 | |||
| 13 | SRCREV = "de6e599f067b25c46cc0c8f74a22cc3b8aafbae8" | ||
| 14 | |||
| 15 | PV = "1.00.00.07" | ||
| 16 | |||
| 17 | S = "${WORKDIR}/git" | ||
| 18 | |||
| 19 | require recipes-ti/includes/ti-paths.inc | ||
| 20 | |||
| 21 | PR = "r4" | ||
| 22 | inherit update-alternatives | ||
| 23 | |||
| 24 | DEPENDS = "ti-xdctools-native ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ipc-rtos ti-osal ti-cgt6x-native" | ||
| 25 | |||
| 26 | export HWVERSION = "ES10" | ||
| 27 | export BIOSTOOLSROOT = "${STAGING_DIR_TARGET}/usr/share/ti" | ||
| 28 | |||
| 29 | export XDCVERSION = "ti-xdctools-tree" | ||
| 30 | export BIOSVERSION = "ti-sysbios-tree" | ||
| 31 | export IPCVERSION = "ti-ipc-tree" | ||
| 32 | export CEVERSION = "ti-codec-engine-tree" | ||
| 33 | export FCVERSION = "ti-framework-components-tree" | ||
| 34 | export XDAISVERSION = "ti-xdais-tree" | ||
| 35 | export OSALVERSION = "ti-osal-tree" | ||
| 36 | |||
| 37 | export IPCSRC = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" | ||
| 38 | export C66XCGTOOLSPATH = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
| 39 | |||
| 40 | do_configure() { | ||
| 41 | cd ${S} | ||
| 42 | make unconfig | ||
| 43 | make vayu_config | ||
| 44 | } | ||
| 45 | |||
| 46 | do_compile() { | ||
| 47 | cd ${S} | ||
| 48 | make dspbin | ||
| 49 | } | ||
| 50 | |||
| 51 | TARGET = "dra7-dsp1-fw.xe66" | ||
| 52 | |||
| 53 | do_install() { | ||
| 54 | install -d ${D}${base_libdir}/firmware | ||
| 55 | install -m 0644 ${S}/dra7xx-c66x-dsp.xe66 ${D}${base_libdir}/firmware/${TARGET}.${BPN} | ||
| 56 | } | ||
| 57 | |||
| 58 | ALTERNATIVE:${PN} = "dra7-dsp1-fw.xe66" | ||
| 59 | ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = "${base_libdir}/firmware/${TARGET}" | ||
| 60 | ALTERNATIVE_TARGET[dra7-dsp1-fw.xe66] = "${base_libdir}/firmware/${TARGET}.${BPN}" | ||
| 61 | ALTERNATIVE_PRIORITY = "10" | ||
| 62 | |||
| 63 | INSANE_SKIP:${PN} = "arch" | ||
| 64 | |||
| 65 | FILES:${PN} += "${base_libdir}/firmware/*" | ||
diff --git a/meta-ti-bsp/recipes-bsp/dsptop/debugss-module-drv_git.bb b/meta-ti-bsp/recipes-bsp/dsptop/debugss-module-drv_git.bb new file mode 100644 index 00000000..a250b825 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/dsptop/debugss-module-drv_git.bb | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | DESCRIPTION = "Debug Sub-System (DebugSS) driver for Keystone and DRA7xx devices" | ||
| 2 | LICENSE = "GPLv2" | ||
| 3 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=9d4316fe434ba450dca4da25348ca5a3" | ||
| 4 | |||
| 5 | # This package builds a kernel module, use kernel PR as base and append a local | ||
| 6 | MACHINE_KERNEL_PR:append = "d" | ||
| 7 | PR = "${MACHINE_KERNEL_PR}" | ||
| 8 | PV:append = "+git${SRCPV}" | ||
| 9 | |||
| 10 | S = "${WORKDIR}/git/debugss_module/debugss-mod" | ||
| 11 | |||
| 12 | inherit module | ||
| 13 | |||
| 14 | PLATFORM = "" | ||
| 15 | PLATFORM:dra7xx = "DRA7xx_PLATFORM" | ||
| 16 | |||
| 17 | EXTRA_OEMAKE = "'PLATFORM=${PLATFORM}' KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}" | ||
| 18 | |||
| 19 | COMPATIBLE_MACHINE = "dra7xx" | ||
| 20 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 21 | |||
| 22 | include dsptop.inc | ||
diff --git a/meta-ti-bsp/recipes-bsp/dsptop/dsptop.inc b/meta-ti-bsp/recipes-bsp/dsptop/dsptop.inc new file mode 100644 index 00000000..31f775e2 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/dsptop/dsptop.inc | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | # This corresponds to version 1.4.0 | ||
| 2 | SRCREV = "816485e68430bbec643eac9498bfa5303eb2c2e1" | ||
| 3 | PV = "1.4.0" | ||
| 4 | INC_PR = "r2" | ||
| 5 | |||
| 6 | SRC_URI = "git://git.ti.com/sdo-emu/dsptop.git;protocol=git;branch=${BRANCH}" | ||
| 7 | |||
| 8 | BRANCH = "master" | ||
diff --git a/meta-ti-bsp/recipes-bsp/dsptop/dsptop_git.bb b/meta-ti-bsp/recipes-bsp/dsptop/dsptop_git.bb new file mode 100644 index 00000000..20818443 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/dsptop/dsptop_git.bb | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | DESCRIPTION = "TI dsptop utility." | ||
| 2 | LICENSE = "BSD" | ||
| 3 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=309825aa8f5edfcf2c44912ac094b979" | ||
| 4 | |||
| 5 | DEPENDS = "libulm ncurses" | ||
| 6 | |||
| 7 | PR = "${INC_PR}.2" | ||
| 8 | |||
| 9 | S = "${WORKDIR}/git/dsptop" | ||
| 10 | |||
| 11 | DEVICE = "" | ||
| 12 | DEVICE:dra7xx = "DRA7xx" | ||
| 13 | |||
| 14 | EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}"" | ||
| 15 | |||
| 16 | do_install() { | ||
| 17 | oe_runmake install DESTDIR=${D} | ||
| 18 | } | ||
| 19 | |||
| 20 | COMPATIBLE_MACHINE = "dra7xx" | ||
| 21 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 22 | |||
| 23 | RDEPENDS:${PN} = "debugss-module-drv bash" | ||
| 24 | |||
| 25 | include dsptop.inc | ||
| 26 | |||
| 27 | PARALLEL_MAKE = "" | ||
diff --git a/meta-ti-bsp/recipes-bsp/dsptop/libulm_git.bb b/meta-ti-bsp/recipes-bsp/dsptop/libulm_git.bb new file mode 100644 index 00000000..f3e7ec3c --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/dsptop/libulm_git.bb | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | SUMMARY = "TI Usage & Load Monitor Implementation" | ||
| 2 | LICENSE = "BSD" | ||
| 3 | LIC_FILES_CHKSUM = "file://../debian/copyright;md5=309825aa8f5edfcf2c44912ac094b979" | ||
| 4 | |||
| 5 | inherit features_check | ||
| 6 | |||
| 7 | REQUIRED_MACHINE_FEATURES = "dsp" | ||
| 8 | |||
| 9 | DEPENDS = "ti-cgt6x-native" | ||
| 10 | PR = "${INC_PR}.0" | ||
| 11 | |||
| 12 | S = "${WORKDIR}/git/dsptop/ulm" | ||
| 13 | |||
| 14 | DEVICE="" | ||
| 15 | DEVICE:dra7xx = "DRA7xx" | ||
| 16 | |||
| 17 | EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX}" | ||
| 18 | |||
| 19 | do_compile() { | ||
| 20 | oe_runmake arm XPORT_ONLY CC="${CC}" | ||
| 21 | oe_runmake dsp C6X_C_DIR=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x/include | ||
| 22 | } | ||
| 23 | |||
| 24 | do_install() { | ||
| 25 | install -d ${D}${includedir} | ||
| 26 | install -d ${D}${libdir} | ||
| 27 | install -d ${D}${datadir}/ti/ulm | ||
| 28 | cp -f tiulm.h ${D}${includedir} | ||
| 29 | cp -f release/libtiulm.a ${D}${libdir} | ||
| 30 | cp -f tiulm.h ${D}${datadir}/ti/ulm | ||
| 31 | cp -f release/libtiulm.ae66 ${D}${datadir}/ti/ulm | ||
| 32 | } | ||
| 33 | |||
| 34 | COMPATIBLE_MACHINE = "dra7xx" | ||
| 35 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 36 | |||
| 37 | FILES:${PN}-dev += "\ | ||
| 38 | ${datadir}/ti/ulm \ | ||
| 39 | " | ||
| 40 | |||
| 41 | include dsptop.inc | ||
| 42 | |||
| 43 | ALLOW_EMPTY:${PN} = "1" | ||
| 44 | |||
| 45 | PARALLEL_MAKE= "" | ||
diff --git a/meta-ti-bsp/recipes-bsp/gc320-drivers/ti-gc320-driver_5.0.11.p7.bb b/meta-ti-bsp/recipes-bsp/gc320-drivers/ti-gc320-driver_5.0.11.p7.bb new file mode 100644 index 00000000..e815ae29 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/gc320-drivers/ti-gc320-driver_5.0.11.p7.bb | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | DESCRIPTION = "Kernel drivers for the Vivante GC320 chipset found in TI SoCs" | ||
| 2 | HOMEPAGE = "https://git.ti.com/graphics/ti-gc320-driver" | ||
| 3 | LICENSE = "MIT | GPLv2" | ||
| 4 | LIC_FILES_CHKSUM = "file://../LICENSE;md5=78d9818a51b9a8e9bb89dea418bac297" | ||
| 5 | |||
| 6 | inherit module features_check | ||
| 7 | |||
| 8 | REQUIRED_MACHINE_FEATURES = "gc320" | ||
| 9 | |||
| 10 | MACHINE_KERNEL_PR:append = "i" | ||
| 11 | PR = "${MACHINE_KERNEL_PR}" | ||
| 12 | |||
| 13 | # Need to branch out with ${PV} var | ||
| 14 | BRANCH = "ti-${PV}-k5.10" | ||
| 15 | |||
| 16 | SRCREV = "e2a10f31e255a65ec30a6e10b890e77d7e9cb107" | ||
| 17 | |||
| 18 | SRC_URI = "git://git.ti.com/graphics/ti-gc320-driver.git;protocol=git;branch=${BRANCH}" | ||
| 19 | |||
| 20 | S = "${WORKDIR}/git/src" | ||
| 21 | |||
| 22 | EXTRA_OEMAKE += "-f Kbuild AQROOT=${S} KERNEL_DIR=${STAGING_KERNEL_DIR} TOOLCHAIN_PATH=${TOOLCHAIN_PATH} CROSS_COMPILE=${TARGET_PREFIX} ARCH_TYPE=${TARGET_ARCH}" | ||
| 23 | |||
| 24 | do_install() { | ||
| 25 | install -d ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra | ||
| 26 | install -m 644 ${S}/galcore.ko ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra | ||
| 27 | } | ||
| 28 | |||
| 29 | COMPATIBLE_HOST ?= "null" | ||
| 30 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
diff --git a/meta-ti-bsp/recipes-bsp/goodix-fw/goodix-fw_git.bb b/meta-ti-bsp/recipes-bsp/goodix-fw/goodix-fw_git.bb new file mode 100644 index 00000000..1f1c2b81 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/goodix-fw/goodix-fw_git.bb | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | DESCRIPTION = "Goodix GT9271 config firmware" | ||
| 2 | |||
| 3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
| 4 | |||
| 5 | LICENSE = "BSD-3-Clause" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENCE.Spectrum-GT9271;md5=2a6de6be7af1fe46370c684daf27c852" | ||
| 7 | |||
| 8 | PV = "${GOODIX_FW_VERSION}" | ||
| 9 | PR = "${INC_PR}.0" | ||
| 10 | |||
| 11 | CLEANBROKEN = "1" | ||
| 12 | |||
| 13 | COMPATIBLE_MACHINE = "dra7xx" | ||
| 14 | |||
| 15 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 16 | |||
| 17 | S = "${WORKDIR}/git" | ||
| 18 | ORIGIN = "DRA71x-RevA-GT9271_SpecDig_Config.bin" | ||
| 19 | TARGET = "goodix_9271_cfg.bin" | ||
| 20 | |||
| 21 | do_install() { | ||
| 22 | install -d ${D}${base_libdir}/firmware | ||
| 23 | install -m 0644 ${S}/ti-evm/${ORIGIN} ${D}${base_libdir}/firmware/${TARGET} | ||
| 24 | } | ||
| 25 | |||
| 26 | FILES:${PN} = "${base_libdir}/firmware" | ||
diff --git a/meta-ti-bsp/recipes-bsp/ipumm-fw/ipumm-fw_git.bb b/meta-ti-bsp/recipes-bsp/ipumm-fw/ipumm-fw_git.bb new file mode 100644 index 00000000..14d28258 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ipumm-fw/ipumm-fw_git.bb | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | SUMMARY = "Firmware for IPU to suppor Accelerated MM decode and encode" | ||
| 2 | LICENSE = "TI-TSPA" | ||
| 3 | |||
| 4 | LIC_FILES_CHKSUM = "file://Texas_Instruments_ipumm_Manifest.pdf;md5=5cc572579f07af266ab57fc17d762c7f" | ||
| 5 | |||
| 6 | COMPATIBLE_MACHINE = "dra7xx" | ||
| 7 | |||
| 8 | inherit features_check | ||
| 9 | |||
| 10 | REQUIRED_MACHINE_FEATURES = "mmip" | ||
| 11 | |||
| 12 | RDEPENDS:${PN} = "libdce" | ||
| 13 | |||
| 14 | SRC_URI = "git://git.ti.com/ivimm/ipumm.git;protocol=git" | ||
| 15 | |||
| 16 | SRCREV = "df4c50aecc9aad7ab3eb1ca9ebacfe473fcad7c5" | ||
| 17 | |||
| 18 | S = "${WORKDIR}/git" | ||
| 19 | |||
| 20 | PV = "3.00.15.00" | ||
| 21 | PR = "r7" | ||
| 22 | |||
| 23 | require recipes-ti/includes/ti-paths.inc | ||
| 24 | |||
| 25 | inherit update-alternatives | ||
| 26 | |||
| 27 | DEPENDS = "ti-xdctools-native ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-cgt-arm-native ti-ipc-rtos" | ||
| 28 | |||
| 29 | export HWVERSION="ES10" | ||
| 30 | export BIOSTOOLSROOT="${STAGING_DIR_TARGET}/usr/share/ti" | ||
| 31 | |||
| 32 | export XDCVERSION="ti-xdctools-tree" | ||
| 33 | export BIOSVERSION="ti-sysbios-tree" | ||
| 34 | export IPCVERSION="ti-ipc-tree" | ||
| 35 | export CEVERSION="ti-codec-engine-tree" | ||
| 36 | export FCVERSION="ti-framework-components-tree" | ||
| 37 | export XDAISVERSION="ti-xdais-tree" | ||
| 38 | |||
| 39 | export TMS470CGTOOLPATH="${M4_TOOLCHAIN_INSTALL_DIR}" | ||
| 40 | export IPCSRC="${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" | ||
| 41 | |||
| 42 | EXTRA_OEMAKE += "XDCDIST_TREE=${STAGING_DIR_NATIVE}/usr/share/ti/${XDCVERSION}" | ||
| 43 | |||
| 44 | do_configure() { | ||
| 45 | oe_runmake unconfig | ||
| 46 | oe_runmake vayu_smp_config | ||
| 47 | } | ||
| 48 | |||
| 49 | do_compile() { | ||
| 50 | oe_runmake | ||
| 51 | } | ||
| 52 | |||
| 53 | TARGET = "dra7-ipu2-fw.xem4" | ||
| 54 | TARGET_MAP = "platform/ti/dce/baseimage/package/cfg/out/ipu/release/ipu.xem4.map" | ||
| 55 | |||
| 56 | do_install() { | ||
| 57 | install -d ${D}${base_libdir}/firmware | ||
| 58 | install -m 0644 ${S}/${TARGET} ${D}${base_libdir}/firmware/${TARGET}.${BPN} | ||
| 59 | install -m 0644 ${S}/${TARGET_MAP} ${D}${base_libdir}/firmware/${TARGET}.map | ||
| 60 | } | ||
| 61 | |||
| 62 | ALTERNATIVE:${PN} = "dra7-ipu2-fw.xem4" | ||
| 63 | ALTERNATIVE_LINK_NAME[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}" | ||
| 64 | ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}.${BPN}" | ||
| 65 | ALTERNATIVE_PRIORITY = "20" | ||
| 66 | |||
| 67 | FILES:${PN} += "${base_libdir}/firmware/*" | ||
diff --git a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler-support-OpenEmbedded-nodistro-internal-aarc.patch b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler-support-OpenEmbedded-nodistro-internal-aarc.patch new file mode 100644 index 00000000..f021cc39 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler-support-OpenEmbedded-nodistro-internal-aarc.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From 80d32fee3d768abbd77cce77ea9a7574651460a9 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Denys Dmytriyenko <denis@denix.org> | ||
| 3 | Date: Wed, 7 Jul 2021 13:11:56 -0400 | ||
| 4 | Subject: [PATCH] compiler: support OpenEmbedded "nodistro" internal aarch64 | ||
| 5 | toolchain | ||
| 6 | |||
| 7 | Upstream-Status: Pending | ||
| 8 | |||
| 9 | Signed-off-by: Denys Dmytriyenko <denis@denix.org> | ||
| 10 | --- | ||
| 11 | build/linux/config/compiler.mk | 2 +- | ||
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 13 | |||
| 14 | diff --git a/build/linux/config/compiler.mk b/build/linux/config/compiler.mk | ||
| 15 | index 53a0bef..d788579 100644 | ||
| 16 | --- a/build/linux/config/compiler.mk | ||
| 17 | +++ b/build/linux/config/compiler.mk | ||
| 18 | @@ -65,7 +65,7 @@ define calculate-compiler-preferred-target | ||
| 19 | ifneq ($$(filter i386-% i486-% i586-% i686-%,$$($(1)_compiler_preferred_target)),) | ||
| 20 | $(1)_compiler_preferred_target := i386-linux-gnu | ||
| 21 | endif | ||
| 22 | - ifneq ($$(filter aarch64-poky-linux,$$($(1)_compiler_preferred_target)),) | ||
| 23 | + ifneq ($$(filter aarch64-oe-linux aarch64-poky-linux,$$($(1)_compiler_preferred_target)),) | ||
| 24 | $(1)_compiler_preferred_target := aarch64-linux-gnu | ||
| 25 | endif | ||
| 26 | ifneq ($$(filter armv7a-cros-linux-gnueabi armv7l-tizen-linux-gnueabi,$$($(1)_compiler_preferred_target)),) | ||
| 27 | -- | ||
| 28 | 2.7.4 | ||
| 29 | |||
diff --git a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.13.5776728.bb b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.13.5776728.bb new file mode 100644 index 00000000..09f6f03a --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.13.5776728.bb | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | DESCRIPTION = "Kernel drivers for the PowerVR Rogue GPU found in the TI SoCs" | ||
| 2 | HOMEPAGE = "http://git.ti.com/graphics/ti-img-rogue-driver" | ||
| 3 | LICENSE = "MIT | GPLv2" | ||
| 4 | LIC_FILES_CHKSUM = "file://README;beginline=14;endline=19;md5=0403c7dea01a2b8232261e805325fac2" | ||
| 5 | |||
| 6 | inherit module features_check | ||
| 7 | |||
| 8 | REQUIRED_MACHINE_FEATURES = "gpu" | ||
| 9 | |||
| 10 | MACHINE_KERNEL_PR:append = "b" | ||
| 11 | PR = "${MACHINE_KERNEL_PR}" | ||
| 12 | |||
| 13 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 14 | COMPATIBLE_MACHINE = "j7" | ||
| 15 | |||
| 16 | DEPENDS = "virtual/kernel" | ||
| 17 | |||
| 18 | PROVIDES = "virtual/gpudriver" | ||
| 19 | |||
| 20 | BRANCH = "1.13-5776728/linux-k5.10" | ||
| 21 | |||
| 22 | SRC_URI = " \ | ||
| 23 | git://git.ti.com/graphics/ti-img-rogue-driver.git;branch=${BRANCH} \ | ||
| 24 | file://0001-compiler-support-OpenEmbedded-nodistro-internal-aarc.patch \ | ||
| 25 | " | ||
| 26 | |||
| 27 | S = "${WORKDIR}/git" | ||
| 28 | |||
| 29 | SRCREV = "35a25875ae8738f82c7cabc6b077ef992b0cca84" | ||
| 30 | |||
| 31 | PVR_SOC = "j721e_linux" | ||
| 32 | PVR_BVNC = "22.104.208.318" | ||
| 33 | PVR_BUILD = "release" | ||
| 34 | PVR_WS = "wayland" | ||
| 35 | |||
| 36 | EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}" RGX_BVNC=${PVR_BVNC} BUILD=${PVR_BUILD} PVR_BUILD_DIR=${PVR_SOC} WINDOW_SYSTEM=${PVR_WS}' | ||
| 37 | |||
| 38 | do_install() { | ||
| 39 | make -C ${STAGING_KERNEL_DIR} M=${B}/binary_${PVR_SOC}_${PVR_WS}_${PVR_BUILD}/target_aarch64/kbuild INSTALL_MOD_PATH=${D}${root_prefix} PREFIX=${STAGING_DIR_HOST} modules_install | ||
| 40 | } | ||
diff --git a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb new file mode 100644 index 00000000..5fe6c201 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the TI SoCs" | ||
| 2 | HOMEPAGE = "https://git.ti.com/graphics/omap5-sgx-ddk-linux" | ||
| 3 | LICENSE = "MIT | GPLv2" | ||
| 4 | LIC_FILES_CHKSUM = "file://eurasia_km/README;beginline=13;endline=22;md5=74506d9b8e5edbce66c2747c50fcef12" | ||
| 5 | |||
| 6 | inherit module features_check | ||
| 7 | |||
| 8 | REQUIRED_MACHINE_FEATURES = "gpu" | ||
| 9 | |||
| 10 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k3" | ||
| 11 | |||
| 12 | MACHINE_KERNEL_PR:append = "x" | ||
| 13 | PR = "${MACHINE_KERNEL_PR}" | ||
| 14 | |||
| 15 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 16 | |||
| 17 | DEPENDS = "virtual/kernel" | ||
| 18 | |||
| 19 | PROVIDES = "virtual/gpudriver" | ||
| 20 | |||
| 21 | BRANCH = "ti-img-sgx/${PV}/k5.10" | ||
| 22 | |||
| 23 | SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-linux.git;protocol=git;branch=${BRANCH}" | ||
| 24 | |||
| 25 | S = "${WORKDIR}/git" | ||
| 26 | |||
| 27 | SRCREV = "eda7780bfd5277e16913c9bc0b0e6892b4e79063" | ||
| 28 | |||
| 29 | TARGET_PRODUCT:omap-a15 = "jacinto6evm" | ||
| 30 | TARGET_PRODUCT:ti33x = "ti335x" | ||
| 31 | TARGET_PRODUCT:ti43x = "ti437x" | ||
| 32 | TARGET_PRODUCT:k3 = "ti654x" | ||
| 33 | |||
| 34 | EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}" TARGET_PRODUCT=${TARGET_PRODUCT} WINDOW_SYSTEM=nulldrmws' | ||
| 35 | |||
| 36 | do_compile:prepend() { | ||
| 37 | cd ${S}/eurasia_km/eurasiacon/build/linux2/omap_linux | ||
| 38 | } | ||
| 39 | |||
| 40 | do_install() { | ||
| 41 | make -C ${STAGING_KERNEL_DIR} M=${B}/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild INSTALL_MOD_PATH=${D}${root_prefix} PREFIX=${STAGING_DIR_HOST} modules_install | ||
| 42 | } | ||
| 43 | |||
| 44 | do_install:k3() { | ||
| 45 | make -C ${STAGING_KERNEL_DIR} M=${B}/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_aarch64/kbuild INSTALL_MOD_PATH=${D}${root_prefix} PREFIX=${STAGING_DIR_HOST} modules_install | ||
| 46 | } | ||
diff --git a/meta-ti-bsp/recipes-bsp/pru/pru-icss_git.bb b/meta-ti-bsp/recipes-bsp/pru/pru-icss_git.bb new file mode 100644 index 00000000..779f96fd --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/pru/pru-icss_git.bb | |||
| @@ -0,0 +1,363 @@ | |||
| 1 | DESCRIPTION = "Programmable Real-time Unit Software Package" | ||
| 2 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/PRU-ICSS" | ||
| 3 | LICENSE = "BSD-3-Clause & PD" | ||
| 4 | |||
| 5 | LIC_FILES_CHKSUM = "file://PRU-Package-v6.1-Manifest.html;md5=1e37797ebe9254922f4278bb6047211c" | ||
| 6 | |||
| 7 | inherit update-alternatives | ||
| 8 | |||
| 9 | BRANCH = "master" | ||
| 10 | SRC_URI = "git://git.ti.com/pru-software-support-package/pru-software-support-package.git;protocol=git;branch=${BRANCH}" | ||
| 11 | SRCREV = "8eee431384b6a1a9c96ae91a8e99485176b4d2b3" | ||
| 12 | |||
| 13 | PV = "6.0.1" | ||
| 14 | PR = "r0" | ||
| 15 | |||
| 16 | require recipes-ti/includes/ti-paths.inc | ||
| 17 | |||
| 18 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k3" | ||
| 19 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 20 | |||
| 21 | PACKAGES:prepend = " \ | ||
| 22 | ${PN}-halt \ | ||
| 23 | ${PN}-rpmsg-echo \ | ||
| 24 | " | ||
| 25 | |||
| 26 | RDEPENDS:${PN}:append = " \ | ||
| 27 | ${PN}-halt \ | ||
| 28 | ${PN}-rpmsg-echo \ | ||
| 29 | " | ||
| 30 | |||
| 31 | DEPENDS = "ti-cgt-pru-native" | ||
| 32 | |||
| 33 | S = "${WORKDIR}/git" | ||
| 34 | |||
| 35 | export PRU_CGT = "${TI_CGT_PRU_INSTALL_DIR}" | ||
| 36 | export PRU_SSP = "${S}" | ||
| 37 | |||
| 38 | SUBDIRS = "examples pru_cape/pru_fw lib/src labs" | ||
| 39 | |||
| 40 | PLATFORM:ti33x = "am335x" | ||
| 41 | PLATFORM:ti43x = "am437x" | ||
| 42 | PLATFORM:omap-a15 = "am572x" | ||
| 43 | PLATFORM:am64xx = "am64x" | ||
| 44 | PLATFORM:am65xx = "am65x" | ||
| 45 | PLATFORM:j7 = "j721e" | ||
| 46 | |||
| 47 | do_compile() { | ||
| 48 | for dir in ${SUBDIRS} | ||
| 49 | do | ||
| 50 | make -C ${S}/$dir | ||
| 51 | done | ||
| 52 | } | ||
| 53 | |||
| 54 | do_install() { | ||
| 55 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
| 56 | install -d ${D}${base_libdir}/firmware/pru | ||
| 57 | install -d ${D}${includedir} | ||
| 58 | cp ${CP_ARGS} ${S}/include/* ${D}${includedir} | ||
| 59 | install -d ${D}${libdir} | ||
| 60 | install -m 0644 ${S}/lib/rpmsg_lib.lib ${D}${libdir} | ||
| 61 | } | ||
| 62 | |||
| 63 | FILES:${PN}-staticdev = "${libdir}" | ||
| 64 | FILES:${PN}-dev = "${includedir}" | ||
| 65 | |||
| 66 | do_install:append:ti33x() { | ||
| 67 | install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU_Halt.out \ | ||
| 68 | ${D}${base_libdir}/firmware/pru | ||
| 69 | for i in 0 1 | ||
| 70 | do | ||
| 71 | install -m 0644 ${S}/examples/am335x/PRU_RPMsg_Echo_Interrupt${i}/gen/PRU_RPMsg_Echo_Interrupt${i}.out \ | ||
| 72 | ${D}${base_libdir}/firmware/pru | ||
| 73 | done | ||
| 74 | } | ||
| 75 | |||
| 76 | do_install:append:ti43x() { | ||
| 77 | install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU_Halt.out \ | ||
| 78 | ${D}${base_libdir}/firmware/pru | ||
| 79 | for i in 0 1 | ||
| 80 | do | ||
| 81 | for j in 0 1 | ||
| 82 | do | ||
| 83 | install -m 0644 ${S}/examples/am437x/PRU_RPMsg_Echo_Interrupt${i}_${j}/gen/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
| 84 | ${D}${base_libdir}/firmware/pru | ||
| 85 | done | ||
| 86 | done | ||
| 87 | } | ||
| 88 | |||
| 89 | do_install:append:omap-a15() { | ||
| 90 | install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU_Halt.out \ | ||
| 91 | ${D}${base_libdir}/firmware/pru | ||
| 92 | for i in 1 2 | ||
| 93 | do | ||
| 94 | for j in 0 1 | ||
| 95 | do | ||
| 96 | install -m 0644 ${S}/examples/am572x/PRU_RPMsg_Echo_Interrupt${i}_${j}/gen/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
| 97 | ${D}${base_libdir}/firmware/pru | ||
| 98 | done | ||
| 99 | done | ||
| 100 | } | ||
| 101 | |||
| 102 | do_install:append:am64xx(){ | ||
| 103 | for i in 0 1 | ||
| 104 | do | ||
| 105 | install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU${i}/PRU_Halt_${i}.out \ | ||
| 106 | ${D}${base_libdir}/firmware/pru | ||
| 107 | install -m 644 ${S}/examples/${PLATFORM}/RTU_Halt/gen/RTU${i}/RTU_Halt_${i}.out \ | ||
| 108 | ${D}${base_libdir}/firmware/pru | ||
| 109 | install -m 644 ${S}/examples/${PLATFORM}/TX_PRU_Halt/gen/TX_PRU${i}/TX_PRU_Halt_${i}.out \ | ||
| 110 | ${D}${base_libdir}/firmware/pru | ||
| 111 | done | ||
| 112 | for i in 0 1 | ||
| 113 | do | ||
| 114 | for j in 0 1 | ||
| 115 | do | ||
| 116 | install -m 0644 ${S}/examples/${PLATFORM}/PRU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
| 117 | ${D}${base_libdir}/firmware/pru | ||
| 118 | install -m 0644 ${S}/examples/${PLATFORM}/RTU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/RTU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
| 119 | ${D}${base_libdir}/firmware/pru | ||
| 120 | done | ||
| 121 | done | ||
| 122 | } | ||
| 123 | |||
| 124 | do_install:append:am65xx() { | ||
| 125 | for i in 0 1 | ||
| 126 | do | ||
| 127 | install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU${i}/PRU_Halt_${i}.out \ | ||
| 128 | ${D}${base_libdir}/firmware/pru | ||
| 129 | install -m 644 ${S}/examples/${PLATFORM}/RTU_Halt/gen/RTU${i}/RTU_Halt_${i}.out \ | ||
| 130 | ${D}${base_libdir}/firmware/pru | ||
| 131 | install -m 644 ${S}/examples/${PLATFORM}/TX_PRU_Halt/gen/TX_PRU${i}/TX_PRU_Halt_${i}.out \ | ||
| 132 | ${D}${base_libdir}/firmware/pru | ||
| 133 | done | ||
| 134 | for i in 0 1 2 | ||
| 135 | do | ||
| 136 | for j in 0 1 | ||
| 137 | do | ||
| 138 | install -m 0644 ${S}/examples/am65x/PRU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
| 139 | ${D}${base_libdir}/firmware/pru | ||
| 140 | install -m 0644 ${S}/examples/am65x/RTU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/RTU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
| 141 | ${D}${base_libdir}/firmware/pru | ||
| 142 | |||
| 143 | done | ||
| 144 | done | ||
| 145 | } | ||
| 146 | |||
| 147 | do_install:append:j7() { | ||
| 148 | for i in 0 1 | ||
| 149 | do | ||
| 150 | install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU${i}/PRU_Halt_${i}.out \ | ||
| 151 | ${D}${base_libdir}/firmware/pru | ||
| 152 | install -m 644 ${S}/examples/${PLATFORM}/RTU_Halt/gen/RTU${i}/RTU_Halt_${i}.out \ | ||
| 153 | ${D}${base_libdir}/firmware/pru | ||
| 154 | install -m 644 ${S}/examples/${PLATFORM}/TX_PRU_Halt/gen/TX_PRU${i}/TX_PRU_Halt_${i}.out \ | ||
| 155 | ${D}${base_libdir}/firmware/pru | ||
| 156 | done | ||
| 157 | for i in 0 1 | ||
| 158 | do | ||
| 159 | for j in 0 1 | ||
| 160 | do | ||
| 161 | install -m 0644 ${S}/examples/j721e/PRU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
| 162 | ${D}${base_libdir}/firmware/pru | ||
| 163 | install -m 0644 ${S}/examples/j721e/RTU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/RTU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
| 164 | ${D}${base_libdir}/firmware/pru | ||
| 165 | |||
| 166 | done | ||
| 167 | done | ||
| 168 | } | ||
| 169 | |||
| 170 | |||
| 171 | FILES:${PN}-halt = "${base_libdir}/firmware/pru/PRU_Halt* ${base_libdir}/firmware/pru/RTU_Halt* ${base_libdir}/firmware/pru/TX_PRU_Halt*" | ||
| 172 | FILES:${PN}-rpmsg-echo = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt* ${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt*" | ||
| 173 | |||
| 174 | # Set up names for the firmwares | ||
| 175 | PRU_ICSS_ALTERNATIVES:ti33x = "am335x-pru0-fw am335x-pru1-fw" | ||
| 176 | PRU_ICSS_ALTERNATIVES:ti43x = "am437x-pru0_0-fw am437x-pru0_1-fw am437x-pru1_0-fw am437x-pru1_1-fw" | ||
| 177 | PRU_ICSS_ALTERNATIVES:omap-a15 = "am57xx-pru1_0-fw am57xx-pru1_1-fw am57xx-pru2_0-fw am57xx-pru2_1-fw" | ||
| 178 | PRU_ICSS_ALTERNATIVES:am64xx = "am64x-pru0_0-fw am64x-pru0_1-fw am64x-pru1_0-fw am64x-pru1_1-fw am64x-rtu0_0-fw am64x-rtu0_1-fw am64x-rtu1_0-fw am64x-rtu1_1-fw" | ||
| 179 | PRU_ICSS_ALTERNATIVES:am65xx = "am65x-pru0_0-fw am65x-pru0_1-fw am65x-pru1_0-fw am65x-pru1_1-fw am65x-pru2_0-fw am65x-pru2_1-fw am65x-rtu0_0-fw am65x-rtu0_1-fw am65x-rtu1_0-fw am65x-rtu1_1-fw am65x-rtu2_0-fw am65x-rtu2_1-fw" | ||
| 180 | PRU_ICSS_ALTERNATIVES:j7 = "j7-pru0_0-fw j7-pru0_1-fw j7-pru1_0-fw j7-pru1_1-fw j7-rtu0_0-fw j7-rtu0_1-fw j7-rtu1_0-fw j7-rtu1_1-fw" | ||
| 181 | |||
| 182 | # Set up link names for the firmwares | ||
| 183 | ALTERNATIVE_LINK_NAME[am335x-pru0-fw] = "${base_libdir}/firmware/am335x-pru0-fw" | ||
| 184 | ALTERNATIVE_LINK_NAME[am335x-pru1-fw] = "${base_libdir}/firmware/am335x-pru1-fw" | ||
| 185 | |||
| 186 | ALTERNATIVE_LINK_NAME[am437x-pru0_0-fw] = "${base_libdir}/firmware/am437x-pru0_0-fw" | ||
| 187 | ALTERNATIVE_LINK_NAME[am437x-pru0_1-fw] = "${base_libdir}/firmware/am437x-pru0_1-fw" | ||
| 188 | ALTERNATIVE_LINK_NAME[am437x-pru1_0-fw] = "${base_libdir}/firmware/am437x-pru1_0-fw" | ||
| 189 | ALTERNATIVE_LINK_NAME[am437x-pru1_1-fw] = "${base_libdir}/firmware/am437x-pru1_1-fw" | ||
| 190 | |||
| 191 | ALTERNATIVE_LINK_NAME[am57xx-pru1_0-fw] = "${base_libdir}/firmware/am57xx-pru1_0-fw" | ||
| 192 | ALTERNATIVE_LINK_NAME[am57xx-pru1_1-fw] = "${base_libdir}/firmware/am57xx-pru1_1-fw" | ||
| 193 | ALTERNATIVE_LINK_NAME[am57xx-pru2_0-fw] = "${base_libdir}/firmware/am57xx-pru2_0-fw" | ||
| 194 | ALTERNATIVE_LINK_NAME[am57xx-pru2_1-fw] = "${base_libdir}/firmware/am57xx-pru2_1-fw" | ||
| 195 | |||
| 196 | ALTERNATIVE_LINK_NAME[am64x-pru0_0-fw] = "${base_libdir}/firmware/am64x-pru0_0-fw" | ||
| 197 | ALTERNATIVE_LINK_NAME[am64x-pru0_1-fw] = "${base_libdir}/firmware/am64x-pru0_1-fw" | ||
| 198 | ALTERNATIVE_LINK_NAME[am64x-pru1_0-fw] = "${base_libdir}/firmware/am64x-pru1_0-fw" | ||
| 199 | ALTERNATIVE_LINK_NAME[am64x-pru1_1-fw] = "${base_libdir}/firmware/am64x-pru1_1-fw" | ||
| 200 | ALTERNATIVE_LINK_NAME[am64x-rtu0_0-fw] = "${base_libdir}/firmware/am64x-rtu0_0-fw" | ||
| 201 | ALTERNATIVE_LINK_NAME[am64x-rtu0_1-fw] = "${base_libdir}/firmware/am64x-rtu0_1-fw" | ||
| 202 | ALTERNATIVE_LINK_NAME[am64x-rtu1_0-fw] = "${base_libdir}/firmware/am64x-rtu1_0-fw" | ||
| 203 | ALTERNATIVE_LINK_NAME[am64x-rtu1_1-fw] = "${base_libdir}/firmware/am64x-rtu1_1-fw" | ||
| 204 | ALTERNATIVE_LINK_NAME[am64x-txpru0_0-fw] = "${base_libdir}/firmware/am64x-txpru0_0-fw" | ||
| 205 | ALTERNATIVE_LINK_NAME[am64x-txpru0_1-fw] = "${base_libdir}/firmware/am64x-txpru0_1-fw" | ||
| 206 | ALTERNATIVE_LINK_NAME[am64x-txpru1_0-fw] = "${base_libdir}/firmware/am64x-txpru1_0-fw" | ||
| 207 | ALTERNATIVE_LINK_NAME[am64x-txpru1_1-fw] = "${base_libdir}/firmware/am64x-txpru1_1-fw" | ||
| 208 | |||
| 209 | ALTERNATIVE_LINK_NAME[am65x-pru0_0-fw] = "${base_libdir}/firmware/am65x-pru0_0-fw" | ||
| 210 | ALTERNATIVE_LINK_NAME[am65x-pru0_1-fw] = "${base_libdir}/firmware/am65x-pru0_1-fw" | ||
| 211 | ALTERNATIVE_LINK_NAME[am65x-pru1_0-fw] = "${base_libdir}/firmware/am65x-pru1_0-fw" | ||
| 212 | ALTERNATIVE_LINK_NAME[am65x-pru1_1-fw] = "${base_libdir}/firmware/am65x-pru1_1-fw" | ||
| 213 | ALTERNATIVE_LINK_NAME[am65x-pru2_0-fw] = "${base_libdir}/firmware/am65x-pru2_0-fw" | ||
| 214 | ALTERNATIVE_LINK_NAME[am65x-pru2_1-fw] = "${base_libdir}/firmware/am65x-pru2_1-fw" | ||
| 215 | ALTERNATIVE_LINK_NAME[am65x-rtu0_0-fw] = "${base_libdir}/firmware/am65x-rtu0_0-fw" | ||
| 216 | ALTERNATIVE_LINK_NAME[am65x-rtu0_1-fw] = "${base_libdir}/firmware/am65x-rtu0_1-fw" | ||
| 217 | ALTERNATIVE_LINK_NAME[am65x-rtu1_0-fw] = "${base_libdir}/firmware/am65x-rtu1_0-fw" | ||
| 218 | ALTERNATIVE_LINK_NAME[am65x-rtu1_1-fw] = "${base_libdir}/firmware/am65x-rtu1_1-fw" | ||
| 219 | ALTERNATIVE_LINK_NAME[am65x-rtu2_0-fw] = "${base_libdir}/firmware/am65x-rtu2_0-fw" | ||
| 220 | ALTERNATIVE_LINK_NAME[am65x-rtu2_1-fw] = "${base_libdir}/firmware/am65x-rtu2_1-fw" | ||
| 221 | ALTERNATIVE_LINK_NAME[am65x-txpru0_0-fw] = "${base_libdir}/firmware/am65x-txpru0_0-fw" | ||
| 222 | ALTERNATIVE_LINK_NAME[am65x-txpru0_1-fw] = "${base_libdir}/firmware/am65x-txpru0_1-fw" | ||
| 223 | ALTERNATIVE_LINK_NAME[am65x-txpru1_0-fw] = "${base_libdir}/firmware/am65x-txpru1_0-fw" | ||
| 224 | ALTERNATIVE_LINK_NAME[am65x-txpru1_1-fw] = "${base_libdir}/firmware/am65x-txpru1_1-fw" | ||
| 225 | ALTERNATIVE_LINK_NAME[am65x-txpru2_0-fw] = "${base_libdir}/firmware/am65x-txpru2_0-fw" | ||
| 226 | ALTERNATIVE_LINK_NAME[am65x-txpru2_1-fw] = "${base_libdir}/firmware/am65x-txpru2_1-fw" | ||
| 227 | |||
| 228 | ALTERNATIVE_LINK_NAME[j7-pru0_0-fw] = "${base_libdir}/firmware/j7-pru0_0-fw" | ||
| 229 | ALTERNATIVE_LINK_NAME[j7-pru0_1-fw] = "${base_libdir}/firmware/j7-pru0_1-fw" | ||
| 230 | ALTERNATIVE_LINK_NAME[j7-pru1_0-fw] = "${base_libdir}/firmware/j7-pru1_0-fw" | ||
| 231 | ALTERNATIVE_LINK_NAME[j7-pru1_1-fw] = "${base_libdir}/firmware/j7-pru1_1-fw" | ||
| 232 | ALTERNATIVE_LINK_NAME[j7-rtu0_0-fw] = "${base_libdir}/firmware/j7-rtu0_0-fw" | ||
| 233 | ALTERNATIVE_LINK_NAME[j7-rtu0_1-fw] = "${base_libdir}/firmware/j7-rtu0_1-fw" | ||
| 234 | ALTERNATIVE_LINK_NAME[j7-rtu1_0-fw] = "${base_libdir}/firmware/j7-rtu1_0-fw" | ||
| 235 | ALTERNATIVE_LINK_NAME[j7-rtu1_1-fw] = "${base_libdir}/firmware/j7-rtu1_1-fw" | ||
| 236 | ALTERNATIVE_LINK_NAME[j7-txpru0_0-fw] = "${base_libdir}/firmware/j7-txpru0_0-fw" | ||
| 237 | ALTERNATIVE_LINK_NAME[j7-txpru0_1-fw] = "${base_libdir}/firmware/j7-txpru0_1-fw" | ||
| 238 | ALTERNATIVE_LINK_NAME[j7-txpru1_0-fw] = "${base_libdir}/firmware/j7-txpru1_0-fw" | ||
| 239 | ALTERNATIVE_LINK_NAME[j7-txpru1_1-fw] = "${base_libdir}/firmware/j7-txpru1_1-fw" | ||
| 240 | |||
| 241 | # Create the pru-icss-halt firmware alternatives | ||
| 242 | ALTERNATIVE:pru-icss-halt = "${PRU_ICSS_ALTERNATIVES}" | ||
| 243 | |||
| 244 | # Only Halt firmware images are supported for the Tx_PRU cores | ||
| 245 | ALTERNATIVE:pru-icss-halt:append:am64xx = " am64x-txpru0_0-fw am64x-txpru0_1-fw am64x-txpru1_0-fw am64x-txpru1_1-fw" | ||
| 246 | ALTERNATIVE:pru-icss-halt:append:am65xx = " am65x-txpru0_0-fw am65x-txpru0_1-fw am65x-txpru1_0-fw am65x-txpru1_1-fw am65x-txpru2_0-fw am65x-txpru2_1-fw" | ||
| 247 | ALTERNATIVE:pru-icss-halt:append:j7 = " j7-txpru0_0-fw j7-txpru0_1-fw j7-txpru1_0-fw j7-txpru1_1-fw" | ||
| 248 | |||
| 249 | ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
| 250 | ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
| 251 | |||
| 252 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
| 253 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
| 254 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
| 255 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
| 256 | |||
| 257 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
| 258 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
| 259 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
| 260 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
| 261 | |||
| 262 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
| 263 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
| 264 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
| 265 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
| 266 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
| 267 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
| 268 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
| 269 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
| 270 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
| 271 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
| 272 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
| 273 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
| 274 | |||
| 275 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
| 276 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
| 277 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
| 278 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
| 279 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
| 280 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
| 281 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
| 282 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
| 283 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
| 284 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
| 285 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu2_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
| 286 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu2_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
| 287 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
| 288 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
| 289 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
| 290 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
| 291 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru2_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
| 292 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru2_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
| 293 | |||
| 294 | ALTERNATIVE_TARGET_pru-icss-halt[j7-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
| 295 | ALTERNATIVE_TARGET_pru-icss-halt[j7-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
| 296 | ALTERNATIVE_TARGET_pru-icss-halt[j7-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
| 297 | ALTERNATIVE_TARGET_pru-icss-halt[j7-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
| 298 | ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
| 299 | ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
| 300 | ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
| 301 | ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
| 302 | ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
| 303 | ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
| 304 | ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
| 305 | ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
| 306 | |||
| 307 | |||
| 308 | ALTERNATIVE_PRIORITY_pru-icss-halt = "50" | ||
| 309 | |||
| 310 | # Create the pru-icss-rpmsg-echo firmware alternatives | ||
| 311 | ALTERNATIVE:pru-icss-rpmsg-echo = "${PRU_ICSS_ALTERNATIVES}" | ||
| 312 | |||
| 313 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am335x-pru0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0.out" | ||
| 314 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am335x-pru1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1.out" | ||
| 315 | |||
| 316 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out" | ||
| 317 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out" | ||
| 318 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
| 319 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
| 320 | |||
| 321 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
| 322 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
| 323 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_0.out" | ||
| 324 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_1.out" | ||
| 325 | |||
| 326 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out" | ||
| 327 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out" | ||
| 328 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
| 329 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
| 330 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out" | ||
| 331 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out" | ||
| 332 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out" | ||
| 333 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out" | ||
| 334 | |||
| 335 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out" | ||
| 336 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out" | ||
| 337 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
| 338 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
| 339 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_0.out" | ||
| 340 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_1.out" | ||
| 341 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out" | ||
| 342 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out" | ||
| 343 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out" | ||
| 344 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out" | ||
| 345 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu2_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt2_0.out" | ||
| 346 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu2_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt2_1.out" | ||
| 347 | |||
| 348 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out" | ||
| 349 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out" | ||
| 350 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
| 351 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
| 352 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out" | ||
| 353 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out" | ||
| 354 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out" | ||
| 355 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out" | ||
| 356 | |||
| 357 | ALTERNATIVE_PRIORITY_pru-icss-rpmsg-echo = "100" | ||
| 358 | |||
| 359 | ALLOW_EMPTY:${PN} = "1" | ||
| 360 | |||
| 361 | # This installs PRU firmware, so skip "arch" QA check | ||
| 362 | INSANE_SKIP:${PN}-halt = "arch" | ||
| 363 | INSANE_SKIP:${PN}-rpmsg-echo = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/pru/ti-pru-sw-edma-driver_1.00.00.bb b/meta-ti-bsp/recipes-bsp/pru/ti-pru-sw-edma-driver_1.00.00.bb new file mode 100644 index 00000000..98ab387c --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/pru/ti-pru-sw-edma-driver_1.00.00.bb | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | DESCRIPTION = "Builds eDMA module used by eDMA libraries for PRU sw example applications" | ||
| 2 | HOMEPAGE = "https://gforge.ti.com/gf/project/pru_sw/" | ||
| 3 | LICENSE = "GPLv2" | ||
| 4 | LIC_FILES_CHKSUM = "file://edmautils.c;beginline=1;endline=23;md5=312e9cb8a37a044c617c98a9e980ad1b" | ||
| 5 | |||
| 6 | COMPATIBLE_MACHINE = "omapl138" | ||
| 7 | |||
| 8 | INHIBIT_PACKAGE_STRIP = "1" | ||
| 9 | |||
| 10 | MACHINE_KERNEL_PR:append = "b" | ||
| 11 | PR = "${MACHINE_KERNEL_PR}" | ||
| 12 | PV:append = "+svn${SRCPV}" | ||
| 13 | |||
| 14 | SRC_URI = "svn://gforge.ti.com/svn/pru_sw/;module=trunk;protocol=https;user=anonymous;pswd=''" | ||
| 15 | |||
| 16 | SRCREV = "33" | ||
| 17 | |||
| 18 | S = "${WORKDIR}/trunk/peripheral_lib/edma_driver/module" | ||
| 19 | |||
| 20 | inherit module | ||
| 21 | |||
| 22 | EXTRA_OEMAKE += "KERNEL_DIR='${STAGING_KERNEL_DIR}'" | ||
| 23 | |||
| 24 | do_compile:prepend () { | ||
| 25 | export CCTOOL_PREFIX="${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX}" | ||
| 26 | } | ||
| 27 | |||
| 28 | do_install () { | ||
| 29 | install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/pru | ||
| 30 | install -m 0755 ${S}/edmautils.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/pru/ | ||
| 31 | } | ||
diff --git a/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x-sr2_git.bb b/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x-sr2_git.bb new file mode 100644 index 00000000..e398cc80 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x-sr2_git.bb | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | SUMMARY = "PRU Ethernet firmware for AM65xx SR2.0" | ||
| 2 | |||
| 3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
| 4 | |||
| 5 | PV = "${PRUETH_FW_AM65X_SR2_VERSION}" | ||
| 6 | PR = "${INC_PR}.0" | ||
| 7 | |||
| 8 | CLEANBROKEN = "1" | ||
| 9 | |||
| 10 | COMPATIBLE_MACHINE = "am65xx-evm|am64xx-evm" | ||
| 11 | |||
| 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 13 | |||
| 14 | S = "${WORKDIR}/git" | ||
| 15 | |||
| 16 | TARGET = " \ | ||
| 17 | am65x-sr2-pru0-prueth-fw.elf \ | ||
| 18 | am65x-sr2-pru1-prueth-fw.elf \ | ||
| 19 | am65x-sr2-rtu0-prueth-fw.elf \ | ||
| 20 | am65x-sr2-rtu1-prueth-fw.elf \ | ||
| 21 | am65x-sr2-txpru0-prueth-fw.elf \ | ||
| 22 | am65x-sr2-txpru1-prueth-fw.elf \ | ||
| 23 | " | ||
| 24 | |||
| 25 | do_install() { | ||
| 26 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
| 27 | for f in ${TARGET}; do | ||
| 28 | install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f | ||
| 29 | done | ||
| 30 | } | ||
| 31 | |||
| 32 | FILES:${PN} = "${base_libdir}/firmware" | ||
| 33 | |||
| 34 | INSANE_SKIP:${PN} = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb b/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb new file mode 100644 index 00000000..804a563f --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | SUMMARY = "PRU Ethernet firmware for AM65x SR1.0" | ||
| 2 | |||
| 3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
| 4 | |||
| 5 | PV = "${PRUETH_FW_AM65X_VERSION}" | ||
| 6 | PR = "${INC_PR}.0" | ||
| 7 | |||
| 8 | CLEANBROKEN = "1" | ||
| 9 | |||
| 10 | COMPATIBLE_MACHINE = "am65xx" | ||
| 11 | |||
| 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 13 | |||
| 14 | S = "${WORKDIR}/git" | ||
| 15 | |||
| 16 | TARGET = " \ | ||
| 17 | am65x-pru0-prueth-fw.elf \ | ||
| 18 | am65x-pru1-prueth-fw.elf \ | ||
| 19 | am65x-rtu0-prueth-fw.elf \ | ||
| 20 | am65x-rtu1-prueth-fw.elf \ | ||
| 21 | " | ||
| 22 | |||
| 23 | do_install() { | ||
| 24 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
| 25 | for f in ${TARGET}; do | ||
| 26 | install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f | ||
| 27 | done | ||
| 28 | } | ||
| 29 | |||
| 30 | FILES:${PN} = "${base_libdir}/firmware" | ||
| 31 | |||
| 32 | INSANE_SKIP:${PN} = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw_5.6.15.bb b/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw_5.6.15.bb new file mode 100644 index 00000000..4ca06be0 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw_5.6.15.bb | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | SUMMARY = "PRU Ethernet firmware for AM57xx, AM437x and AM335x" | ||
| 2 | |||
| 3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
| 4 | |||
| 5 | PR = "${INC_PR}.0" | ||
| 6 | |||
| 7 | CLEANBROKEN = "1" | ||
| 8 | |||
| 9 | COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm" | ||
| 10 | |||
| 11 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/git" | ||
| 14 | |||
| 15 | TARGET = "" | ||
| 16 | TARGET:ti33x = "am335x-pru0-prueth-fw.elf am335x-pru1-prueth-fw.elf" | ||
| 17 | TARGET:ti43x = "am437x-pru0-prueth-fw.elf am437x-pru1-prueth-fw.elf" | ||
| 18 | TARGET:am57xx-evm = "am57xx-pru0-prueth-fw.elf am57xx-pru1-prueth-fw.elf" | ||
| 19 | TARGET:am57xx-hs-evm = "am57xx-pru0-prueth-fw.elf am57xx-pru1-prueth-fw.elf" | ||
| 20 | |||
| 21 | do_install() { | ||
| 22 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
| 23 | for f in ${TARGET}; do | ||
| 24 | install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f | ||
| 25 | done | ||
| 26 | } | ||
| 27 | |||
| 28 | |||
| 29 | FILES:${PN} = "${base_libdir}/firmware" | ||
| 30 | |||
| 31 | INSANE_SKIP:${PN} = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/pruhsr-fw/pruhsr-fw_2.17.25.bb b/meta-ti-bsp/recipes-bsp/pruhsr-fw/pruhsr-fw_2.17.25.bb new file mode 100644 index 00000000..618b1ad6 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/pruhsr-fw/pruhsr-fw_2.17.25.bb | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | SUMMARY = "PRU HSR firmware for AM335x/AM437x/AM57xx" | ||
| 2 | |||
| 3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
| 4 | |||
| 5 | PE = "1" | ||
| 6 | PR = "${INC_PR}.0" | ||
| 7 | |||
| 8 | CLEANBROKEN = "1" | ||
| 9 | |||
| 10 | COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm" | ||
| 11 | |||
| 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 13 | |||
| 14 | S = "${WORKDIR}/git" | ||
| 15 | |||
| 16 | TARGET = "" | ||
| 17 | TARGET:ti33x = "am335x-pru0-pruhsr-fw.elf am335x-pru1-pruhsr-fw.elf" | ||
| 18 | TARGET:ti43x = "am437x-pru0-pruhsr-fw.elf am437x-pru1-pruhsr-fw.elf" | ||
| 19 | TARGET:am57xx-evm = "am57xx-pru0-pruhsr-fw.elf am57xx-pru1-pruhsr-fw.elf" | ||
| 20 | TARGET:am57xx-hs-evm = "am57xx-pru0-pruhsr-fw.elf am57xx-pru1-pruhsr-fw.elf" | ||
| 21 | |||
| 22 | do_install() { | ||
| 23 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
| 24 | for f in ${TARGET}; do | ||
| 25 | install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f | ||
| 26 | done | ||
| 27 | } | ||
| 28 | |||
| 29 | FILES:${PN} = "${base_libdir}/firmware" | ||
| 30 | |||
| 31 | INSANE_SKIP:${PN} = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/pruprp-fw/pruprp-fw_2.17.25.bb b/meta-ti-bsp/recipes-bsp/pruprp-fw/pruprp-fw_2.17.25.bb new file mode 100644 index 00000000..707640b4 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/pruprp-fw/pruprp-fw_2.17.25.bb | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | SUMMARY = "PRU PRP firmware for AM335x/AM437x/AM57xx" | ||
| 2 | |||
| 3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
| 4 | |||
| 5 | PE = "1" | ||
| 6 | PR = "${INC_PR}.0" | ||
| 7 | |||
| 8 | CLEANBROKEN = "1" | ||
| 9 | |||
| 10 | COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm" | ||
| 11 | |||
| 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 13 | |||
| 14 | S = "${WORKDIR}/git" | ||
| 15 | |||
| 16 | TARGET = "" | ||
| 17 | TARGET:ti33x = "am335x-pru0-pruprp-fw.elf am335x-pru1-pruprp-fw.elf" | ||
| 18 | TARGET:ti43x = "am437x-pru0-pruprp-fw.elf am437x-pru1-pruprp-fw.elf" | ||
| 19 | TARGET:am57xx-evm = "am57xx-pru0-pruprp-fw.elf am57xx-pru1-pruprp-fw.elf" | ||
| 20 | TARGET:am57xx-hs-evm = "am57xx-pru0-pruprp-fw.elf am57xx-pru1-pruprp-fw.elf" | ||
| 21 | |||
| 22 | |||
| 23 | do_install() { | ||
| 24 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
| 25 | for f in ${TARGET}; do | ||
| 26 | install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f | ||
| 27 | done | ||
| 28 | } | ||
| 29 | |||
| 30 | FILES:${PN} = "${base_libdir}/firmware" | ||
| 31 | |||
| 32 | INSANE_SKIP:${PN} = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw-am65x-sr2_git.bb b/meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw-am65x-sr2_git.bb new file mode 100644 index 00000000..2d0d3f9e --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw-am65x-sr2_git.bb | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | SUMMARY = "PRU Ethernet Switch firmware for AM65xx SR2.0" | ||
| 2 | |||
| 3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
| 4 | |||
| 5 | PV = "${PRUETH_FW_AM65X_SR2_VERSION}" | ||
| 6 | PR = "${INC_PR}.0" | ||
| 7 | |||
| 8 | CLEANBROKEN = "1" | ||
| 9 | |||
| 10 | COMPATIBLE_MACHINE = "am65xx-evm" | ||
| 11 | |||
| 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 13 | |||
| 14 | S = "${WORKDIR}/git" | ||
| 15 | |||
| 16 | TARGET = " \ | ||
| 17 | am65x-sr2-pru0-prusw-fw.elf \ | ||
| 18 | am65x-sr2-pru1-prusw-fw.elf \ | ||
| 19 | am65x-sr2-rtu0-prusw-fw.elf \ | ||
| 20 | am65x-sr2-rtu1-prusw-fw.elf \ | ||
| 21 | am65x-sr2-txpru0-prusw-fw.elf \ | ||
| 22 | am65x-sr2-txpru1-prusw-fw.elf \ | ||
| 23 | " | ||
| 24 | |||
| 25 | do_install() { | ||
| 26 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
| 27 | for f in ${TARGET}; do | ||
| 28 | install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f | ||
| 29 | done | ||
| 30 | } | ||
| 31 | |||
| 32 | FILES:${PN} = "${base_libdir}/firmware" | ||
| 33 | |||
| 34 | INSANE_SKIP:${PN} = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw_3.2.9.bb b/meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw_3.2.9.bb new file mode 100644 index 00000000..3ded0dc4 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw_3.2.9.bb | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | SUMMARY = "PRU Switch firmware for AM57xx, AM437x and AM335x" | ||
| 2 | |||
| 3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
| 4 | |||
| 5 | PR = "${INC_PR}.0" | ||
| 6 | |||
| 7 | CLEANBROKEN = "1" | ||
| 8 | |||
| 9 | COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm" | ||
| 10 | |||
| 11 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/git" | ||
| 14 | |||
| 15 | TARGET = "" | ||
| 16 | TARGET:ti33x = "am335x-pru0-prusw-fw.elf am335x-pru1-prusw-fw.elf" | ||
| 17 | TARGET:ti43x = "am437x-pru0-prusw-fw.elf am437x-pru1-prusw-fw.elf" | ||
| 18 | TARGET:am57xx-evm = "am57xx-pru0-prusw-fw.elf am57xx-pru1-prusw-fw.elf" | ||
| 19 | TARGET:am57xx-hs-evm = "am57xx-pru0-prusw-fw.elf am57xx-pru1-prusw-fw.elf" | ||
| 20 | |||
| 21 | do_install() { | ||
| 22 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
| 23 | for f in ${TARGET}; do | ||
| 24 | install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f | ||
| 25 | done | ||
| 26 | } | ||
| 27 | |||
| 28 | |||
| 29 | FILES:${PN} = "${base_libdir}/firmware" | ||
| 30 | |||
| 31 | INSANE_SKIP:${PN} = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/viddec-test-app_1.0.0.bb b/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/viddec-test-app_1.0.0.bb new file mode 100644 index 00000000..9fb473b7 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/viddec-test-app_1.0.0.bb | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | SUMMARY = "Test applications for TI DEC (v4l2 decoder for IMG D5520)" | ||
| 2 | LICENSE = "GPLv2" | ||
| 3 | LIC_FILES_CHKSUM = "file://main.c;beginline=1;endline=14;md5=f17e17d664f72942124e4fcf06c178ee" | ||
| 4 | |||
| 5 | DEPENDS = "libdrm ffmpeg" | ||
| 6 | |||
| 7 | inherit autotools pkgconfig | ||
| 8 | |||
| 9 | COMPATIBLE_MACHINE = "j7" | ||
| 10 | |||
| 11 | PR = "r1" | ||
| 12 | SRCREV = "94a80c8c090dbfdc7fafd4e5bb78c2091e715af2" | ||
| 13 | |||
| 14 | EXTRA_OEMAKE = "CC="${CC}"" | ||
| 15 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
| 16 | |||
| 17 | BRANCH = "master" | ||
| 18 | SRC_URI = "git://git.ti.com/jacinto7_multimedia/viddec-test-app.git;protocol=git;branch=${BRANCH}" | ||
| 19 | |||
| 20 | S = "${WORKDIR}/git" | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/videnc-test-app_1.0.0.bb b/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/videnc-test-app_1.0.0.bb new file mode 100644 index 00000000..3a128b92 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/videnc-test-app_1.0.0.bb | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | SUMMARY = "Test applications for TI ENC (v4l2 encoder for IMG VXE384)" | ||
| 2 | LICENSE = "GPLv2" | ||
| 3 | LIC_FILES_CHKSUM = "file://main.c;beginline=1;endline=14;md5=3545dd5bdf513840937d38c10b866605" | ||
| 4 | |||
| 5 | DEPENDS = "libdrm" | ||
| 6 | |||
| 7 | inherit autotools pkgconfig | ||
| 8 | |||
| 9 | COMPATIBLE_MACHINE = "j7" | ||
| 10 | |||
| 11 | PR = "r0" | ||
| 12 | SRCREV = "a5e7d820bea1be24f25a8369d4d4521c784f869a" | ||
| 13 | |||
| 14 | EXTRA_OEMAKE = "CC="${CC}"" | ||
| 15 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
| 16 | |||
| 17 | BRANCH = "master" | ||
| 18 | SRC_URI = "git://git.ti.com/jacinto7_multimedia/videnc-test-app.git;protocol=git;branch=${BRANCH}" | ||
| 19 | |||
| 20 | S = "${WORKDIR}/git" | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/vxd-dec-fw_git.bb b/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/vxd-dec-fw_git.bb new file mode 100644 index 00000000..3563cc7e --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/vxd-dec-fw_git.bb | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | SUMMARY = "Video Decoding Firmware" | ||
| 2 | LICENSE = "TI-IMG" | ||
| 3 | LIC_FILES_CHKSUM = "file://LICENSE.ti-img;md5=84ca7278930db001870686ad997d6bb1" | ||
| 4 | |||
| 5 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
| 6 | |||
| 7 | PV = "${IMG_DEC_FW_VERSION}" | ||
| 8 | PR = "${INC_PR}.0" | ||
| 9 | |||
| 10 | CLEANBROKEN = "1" | ||
| 11 | |||
| 12 | COMPATIBLE_MACHINE = "j7" | ||
| 13 | |||
| 14 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | TARGET = "pvdec_full_bin.fw" | ||
| 18 | |||
| 19 | do_install() { | ||
| 20 | install -d ${D}${base_libdir}/firmware | ||
| 21 | install -m 0644 ${S}/ti-img/${TARGET} ${D}${base_libdir}/firmware/${TARGET} | ||
| 22 | } | ||
| 23 | |||
| 24 | FILES:${PN} = "${base_libdir}/firmware" | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc b/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc new file mode 100644 index 00000000..f1607686 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | SUMMARY = "TI SCI firmware (SYSFW)" | ||
| 2 | |||
| 3 | LICENSE = "TI-TFL" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=b5aebf0668bdf95621259288c4a46d76" | ||
| 5 | |||
| 6 | PV = "2021.09a" | ||
| 7 | INC_PR = "r1" | ||
| 8 | |||
| 9 | # Firmware versions | ||
| 10 | CORESDK_RTOS_VERSION = "08.01.00.02" | ||
| 11 | SERDES_FW_VERSION = "3.3.0.2c" | ||
| 12 | NETCP_SA_FW_VERSION = "1.0.0" | ||
| 13 | NETCP_PA_FW_VERSION = "3.0.2.3" | ||
| 14 | QMSS_PDSP_FW_VERSION = "1.0.0.9" | ||
| 15 | PRUETH_FW_AM65X_VERSION = "08.00.00.20" | ||
| 16 | PRUETH_FW_AM65X_SR2_VERSION = "02.02.09.07" | ||
| 17 | GOODIX_FW_VERSION = "1.0.0.0" | ||
| 18 | CADENCE_MHDP_FW_VERSION = "1.2.17" | ||
| 19 | IMG_DEC_FW_VERSION = "1.0" | ||
| 20 | |||
| 21 | TI_LINUX_FW_SRCREV ?= "c96a734a059889e571dcf30c0638157c690a6e6e" | ||
| 22 | SRCREV = "${TI_LINUX_FW_SRCREV}" | ||
| 23 | |||
| 24 | BRANCH ?= "ti-linux-firmware" | ||
| 25 | |||
| 26 | K3_IMAGE_GEN_SRCREV ?= "489c767a153ff26e9230746e04dd4b1ad0809901" | ||
| 27 | SRCREV_imggen = "${K3_IMAGE_GEN_SRCREV}" | ||
| 28 | SRCREV_FORMAT = "imggen" | ||
| 29 | |||
| 30 | SRC_URI = " \ | ||
| 31 | git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH} \ | ||
| 32 | git://git.ti.com/k3-image-gen/k3-image-gen.git;protocol=git;branch=master;destsuffix=imggen;name=imggen \ | ||
| 33 | " | ||
| 34 | |||
| 35 | S = "${WORKDIR}/git" | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/files/0001-Makefile-Skip-signing-of-binaries-for-combined-boot-.patch b/meta-ti-bsp/recipes-bsp/ti-sci-fw/files/0001-Makefile-Skip-signing-of-binaries-for-combined-boot-.patch new file mode 100644 index 00000000..196f3d3f --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/files/0001-Makefile-Skip-signing-of-binaries-for-combined-boot-.patch | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | From 2efc79702a47f9cbbeecbb2f604577f1ec8c95ba Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yogesh Siraswar <yogeshs@ti.com> | ||
| 3 | Date: Wed, 8 Dec 2021 17:50:19 -0600 | ||
| 4 | Subject: [KIG PATCH] Makefile: Skip signing of binaries for combined boot hs | ||
| 5 | images | ||
| 6 | |||
| 7 | Combined sysfw binaries used in tiboot.bin do not require signed images. | ||
| 8 | This fixes issues with AM64x HS and J7200 HS boot images | ||
| 9 | |||
| 10 | Upstream-Status: Submitted | ||
| 11 | Signed-off-by: Yogesh Siraswar <yogeshs@ti.com> | ||
| 12 | --- | ||
| 13 | Makefile | 8 +++++++- | ||
| 14 | soc/am64x/Makefile | 1 + | ||
| 15 | soc/j7200/Makefile | 1 + | ||
| 16 | 3 files changed, 9 insertions(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/Makefile b/Makefile | ||
| 19 | index 47b3b20..ab465df 100644 | ||
| 20 | --- a/Makefile | ||
| 21 | +++ b/Makefile | ||
| 22 | @@ -215,8 +215,14 @@ $(soc_objroot)/%.o: %.c | ||
| 23 | $(CROSS_COMPILE)gcc $(CFLAGS) -c -o $@-pre-validated $< | ||
| 24 | python3 ./scripts/sysfw_boardcfg_validator.py -b $@-pre-validated -i -o $@ -s $(SOC) -l $@.log | ||
| 25 | |||
| 26 | -# On HS board configuration binaries must be signed | ||
| 27 | +# On HS board configuration binaries must be signed unless it is combined boot image | ||
| 28 | ifdef HS | ||
| 29 | +ifndef COMBINED_BOOT_IMAGE | ||
| 30 | +SIGN_BINARY=1 | ||
| 31 | +endif | ||
| 32 | +endif | ||
| 33 | + | ||
| 34 | +ifdef SIGN_BINARY | ||
| 35 | %.bin.unsigned: %.o | ||
| 36 | $(CROSS_COMPILE)objcopy -S -O binary $< $@ | ||
| 37 | %.bin: %.bin.unsigned | ||
| 38 | diff --git a/soc/am64x/Makefile b/soc/am64x/Makefile | ||
| 39 | index bfbe3e5..33ebbd0 100644 | ||
| 40 | --- a/soc/am64x/Makefile | ||
| 41 | +++ b/soc/am64x/Makefile | ||
| 42 | @@ -31,6 +31,7 @@ | ||
| 43 | # | ||
| 44 | |||
| 45 | SBL_LOADADDDR ?= 0x70000000 | ||
| 46 | +COMBINED_BOOT_IMAGE = 1 | ||
| 47 | COMBINED_SYSFW_BRDCFG_LOADADDR ?= 0x7b000 | ||
| 48 | LOADADDR ?= 0x44000 | ||
| 49 | SCIFS = sci | ||
| 50 | diff --git a/soc/j7200/Makefile b/soc/j7200/Makefile | ||
| 51 | index 3b754f7..0baef51 100644 | ||
| 52 | --- a/soc/j7200/Makefile | ||
| 53 | +++ b/soc/j7200/Makefile | ||
| 54 | @@ -31,6 +31,7 @@ | ||
| 55 | # | ||
| 56 | |||
| 57 | SBL_LOADADDDR ?= 0x41c00000 | ||
| 58 | +COMBINED_BOOT_IMAGE = 1 | ||
| 59 | COMBINED_TIFS_BRDCFG_LOADADDR ?= 0x7f000 | ||
| 60 | COMBINED_DM_BRDCFG_LOADADDR ?= 0x41c80000 | ||
| 61 | LOADADDR ?= 0x40000 | ||
| 62 | -- | ||
| 63 | 2.17.1 | ||
| 64 | |||
diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb new file mode 100644 index 00000000..bab4acf0 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | # ti-sci-fw builds and packages multiple config variants via multiconfig | ||
| 2 | # Let's take a page from gcc-source as a common recipe for all gcc stages, | ||
| 3 | # but also to provide a single package for MAINMACHINE of all multiconfigs | ||
| 4 | |||
| 5 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
| 6 | |||
| 7 | SUMMARY += "- sources" | ||
| 8 | |||
| 9 | COMPATIBLE_MACHINE = "k3" | ||
| 10 | |||
| 11 | EXCLUDE_FROM_WORLD = "1" | ||
| 12 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 13 | DEPENDS = "" | ||
| 14 | |||
| 15 | PACKAGES = "${PN}" | ||
| 16 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 17 | |||
| 18 | do_configure[noexec] = "1" | ||
| 19 | do_compile[noexec] = "1" | ||
| 20 | |||
| 21 | SRCIPK_SRC_DIR = "${WORKDIR}/imggen" | ||
| 22 | SRCIPK_INSTALL_DIR = "board-support/k3-image-gen-${PV}" | ||
| 23 | FILES:${PN} = "${SRCIPK_INSTALL_DIR}" | ||
| 24 | |||
| 25 | do_install() { | ||
| 26 | # Copy sources for packaging | ||
| 27 | mkdir -p ${D}/${SRCIPK_INSTALL_DIR} | ||
| 28 | if [ -e ${SRCIPK_SRC_DIR} ]; then | ||
| 29 | if [ "${SRCIPK_SRC_DIR}" = "${WORKDIR}" ]; then | ||
| 30 | excludes='--exclude ./temp --exclude ${D}' | ||
| 31 | fi | ||
| 32 | tar -C ${SRCIPK_SRC_DIR} -cO $excludes . | tar -C ${D}/${SRCIPK_INSTALL_DIR} -xpf - | ||
| 33 | fi | ||
| 34 | |||
| 35 | # Fix up patches/ directory to contain actual patches instead of symlinks | ||
| 36 | if [ -e ${D}/${SRCIPK_INSTALL_DIR}/patches ] | ||
| 37 | then | ||
| 38 | mv ${D}/${SRCIPK_INSTALL_DIR}/patches ${D}/${SRCIPK_INSTALL_DIR}/patches-links | ||
| 39 | cp -rL ${D}/${SRCIPK_INSTALL_DIR}/patches-links ${D}/${SRCIPK_INSTALL_DIR}/patches | ||
| 40 | rm -rf ${D}/${SRCIPK_INSTALL_DIR}/patches-links | ||
| 41 | fi | ||
| 42 | } | ||
| 43 | |||
| 44 | # Do not perform any QA checks on source package | ||
| 45 | INSANE_SKIP:${PN} += "${ALL_QA}" | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb new file mode 100644 index 00000000..2dad0fe0 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | |||
| @@ -0,0 +1,160 @@ | |||
| 1 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
| 2 | |||
| 3 | DEPENDS = "openssl-native u-boot-mkimage-native dtc-native" | ||
| 4 | DEPENDS:append:j7200-evm-k3r5 = " virtual/bootloader" | ||
| 5 | DEPENDS:append:j7200-hs-evm-k3r5 = " virtual/bootloader" | ||
| 6 | DEPENDS:append:am64xx-evm-k3r5 = " virtual/bootloader" | ||
| 7 | DEPENDS:append:am64xx-hs-evm-k3r5 = " virtual/bootloader" | ||
| 8 | |||
| 9 | CLEANBROKEN = "1" | ||
| 10 | PR = "${INC_PR}.1" | ||
| 11 | |||
| 12 | # Loaded by R5F core | ||
| 13 | COMPATIBLE_MACHINE = "k3r5" | ||
| 14 | COMPATIBLE_MACHINE:aarch64 = "null" | ||
| 15 | |||
| 16 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 17 | |||
| 18 | TI_SECURE_DEV_PKG ?= "" | ||
| 19 | export TI_SECURE_DEV_PKG | ||
| 20 | |||
| 21 | SYSFW_SOC ?= "unknown" | ||
| 22 | SYSFW_CONFIG ?= "unknown" | ||
| 23 | |||
| 24 | SYSFW_PREFIX = "ti-sci-firmware" | ||
| 25 | SYSFW_PREFIX:j7-evm-k3r5 = "ti-fs-firmware" | ||
| 26 | SYSFW_PREFIX:j7200-evm-k3r5 = "ti-fs-firmware" | ||
| 27 | SYSFW_PREFIX:j7-hs-evm-k3r5 = "ti-fs-firmware" | ||
| 28 | SYSFW_PREFIX:j7-hs-evm-k3r5-sr1-1 = "ti-fs-firmware" | ||
| 29 | SYSFW_PREFIX:j7200-hs-evm-k3r5 = "ti-fs-firmware" | ||
| 30 | |||
| 31 | SYSFW_SUFFIX ?= "unknown" | ||
| 32 | |||
| 33 | SYSFW_BASE = "${SYSFW_PREFIX}-${SYSFW_SOC}-${SYSFW_SUFFIX}" | ||
| 34 | SYSFW_BASE:append = "${@['','*']['${SYSFW_SUFFIX}' == 'hs']}" | ||
| 35 | |||
| 36 | SYSFW_TISCI = "${S}/ti-sysfw/${SYSFW_BASE}.bin" | ||
| 37 | |||
| 38 | SYSFW_BINARY = "sysfw-${SYSFW_SOC}-${SYSFW_CONFIG}.itb" | ||
| 39 | SYSFW_VBINARY = "sysfw-${PV}-${SYSFW_SOC}-${SYSFW_CONFIG}.itb" | ||
| 40 | SYSFW_IMAGE = "sysfw-${SYSFW_SOC}-${SYSFW_CONFIG}.itb" | ||
| 41 | SYSFW_SYMLINK ?= "sysfw.itb" | ||
| 42 | |||
| 43 | CFLAGS[unexport] = "1" | ||
| 44 | LDFLAGS[unexport] = "1" | ||
| 45 | AS[unexport] = "1" | ||
| 46 | LD[unexport] = "1" | ||
| 47 | |||
| 48 | do_configure[noexec] = "1" | ||
| 49 | |||
| 50 | SRC_URI:append:j7200-hs-evm-k3r5 = " \ | ||
| 51 | file://0001-Makefile-Skip-signing-of-binaries-for-combined-boot-.patch;patchdir=../imggen" | ||
| 52 | SRC_URI:append:am64xx-hs-evm-k3r5 = " \ | ||
| 53 | file://0001-Makefile-Skip-signing-of-binaries-for-combined-boot-.patch;patchdir=../imggen" | ||
| 54 | |||
| 55 | EXTRA_OEMAKE = "\ | ||
| 56 | CROSS_COMPILE=${TARGET_PREFIX} SYSFW_DL_URL='' SYSFW_HS_DL_URL='' SYSFW_HS_INNER_CERT_DL_URL='' \ | ||
| 57 | SYSFW_PATH="${SYSFW_TISCI}" SOC=${SYSFW_SOC} CONFIG=${SYSFW_CONFIG} \ | ||
| 58 | " | ||
| 59 | EXTRA_OEMAKE_HS = " \ | ||
| 60 | HS=1 SW_REV=1 SYSFW_HS_PATH="${S}/ti-sysfw/${SYSFW_BASE}-enc.bin" SYSFW_HS_INNER_CERT_PATH="${S}/ti-sysfw/${SYSFW_BASE}-cert.bin" \ | ||
| 61 | " | ||
| 62 | EXTRA_OEMAKE:append = "${@['',' ${EXTRA_OEMAKE_HS}']['${SYSFW_SUFFIX}' == 'hs']}" | ||
| 63 | |||
| 64 | EXTRA_OEMAKE:append:j7200-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | ||
| 65 | EXTRA_OEMAKE:append:j7200-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | ||
| 66 | EXTRA_OEMAKE:append:am64xx-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | ||
| 67 | EXTRA_OEMAKE:append:am64xx-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | ||
| 68 | |||
| 69 | do_compile() { | ||
| 70 | cd ${WORKDIR}/imggen/ | ||
| 71 | oe_runmake | ||
| 72 | } | ||
| 73 | |||
| 74 | do_install() { | ||
| 75 | install -d ${D}/boot | ||
| 76 | install -m 644 ${WORKDIR}/imggen/${SYSFW_BINARY} ${D}/boot/${SYSFW_VBINARY} | ||
| 77 | ln -sf ${SYSFW_VBINARY} ${D}/boot/${SYSFW_IMAGE} | ||
| 78 | if [ ! -z "${SYSFW_SYMLINK}" ]; then | ||
| 79 | ln -sf ${SYSFW_VBINARY} ${D}/boot/${SYSFW_SYMLINK} | ||
| 80 | fi | ||
| 81 | } | ||
| 82 | |||
| 83 | FILES:${PN} = "/boot" | ||
| 84 | |||
| 85 | inherit deploy | ||
| 86 | |||
| 87 | do_deploy () { | ||
| 88 | install -d ${DEPLOYDIR} | ||
| 89 | install -m 644 ${WORKDIR}/imggen/${SYSFW_BINARY} ${DEPLOYDIR}/${SYSFW_VBINARY} | ||
| 90 | rm -f ${DEPLOYDIR}/${SYSFW_IMAGE} | ||
| 91 | ln -sf ${SYSFW_VBINARY} ${DEPLOYDIR}/${SYSFW_IMAGE} | ||
| 92 | if [ ! -z "${SYSFW_SYMLINK}" ]; then | ||
| 93 | rm -f ${DEPLOYDIR}/${SYSFW_SYMLINK} | ||
| 94 | ln -sf ${SYSFW_VBINARY} ${DEPLOYDIR}/${SYSFW_SYMLINK} | ||
| 95 | fi | ||
| 96 | |||
| 97 | install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/ | ||
| 98 | } | ||
| 99 | |||
| 100 | do_install:j7200-evm-k3r5() { | ||
| 101 | install -d ${D}/boot | ||
| 102 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} | ||
| 103 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_SYMLINK} | ||
| 104 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} | ||
| 105 | } | ||
| 106 | |||
| 107 | do_deploy:j7200-evm-k3r5() { | ||
| 108 | install -d ${DEPLOYDIR} | ||
| 109 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} | ||
| 110 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK} | ||
| 111 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY} | ||
| 112 | install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/ | ||
| 113 | } | ||
| 114 | |||
| 115 | do_install:j7200-hs-evm-k3r5() { | ||
| 116 | install -d ${D}/boot | ||
| 117 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} | ||
| 118 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_SYMLINK} | ||
| 119 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} | ||
| 120 | } | ||
| 121 | |||
| 122 | do_deploy:j7200-hs-evm-k3r5() { | ||
| 123 | install -d ${DEPLOYDIR} | ||
| 124 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} | ||
| 125 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK} | ||
| 126 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY} | ||
| 127 | install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/ | ||
| 128 | } | ||
| 129 | |||
| 130 | do_install:am64xx-evm-k3r5() { | ||
| 131 | install -d ${D}/boot | ||
| 132 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} | ||
| 133 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_SYMLINK} | ||
| 134 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} | ||
| 135 | } | ||
| 136 | |||
| 137 | do_deploy:am64xx-evm-k3r5() { | ||
| 138 | install -d ${DEPLOYDIR} | ||
| 139 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} | ||
| 140 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK} | ||
| 141 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY} | ||
| 142 | install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/ | ||
| 143 | } | ||
| 144 | |||
| 145 | do_install:am64xx-hs-evm-k3r5() { | ||
| 146 | install -d ${D}/boot | ||
| 147 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} | ||
| 148 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_SYMLINK} | ||
| 149 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} | ||
| 150 | } | ||
| 151 | |||
| 152 | do_deploy:am64xx-hs-evm-k3r5() { | ||
| 153 | install -d ${DEPLOYDIR} | ||
| 154 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} | ||
| 155 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK} | ||
| 156 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY} | ||
| 157 | install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/ | ||
| 158 | } | ||
| 159 | |||
| 160 | addtask deploy before do_build after do_compile | ||
diff --git a/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend b/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend new file mode 100644 index 00000000..8fe7c08e --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | PV:k3 = "2.5" | ||
| 2 | LIC_FILES_CHKSUM:k3 = "file://license.rst;md5=1dd070c98a281d18d9eefd938729b031" | ||
| 3 | BRANCH:k3 = "ti-atf" | ||
| 4 | SRC_URI:k3 = "git://git.ti.com/atf/arm-trusted-firmware.git;branch=${BRANCH};name=tfa" | ||
| 5 | SRCREV_tfa:k3 = "0693f356eb2a25adf8758d98058120bed082cc73" | ||
| 6 | COMPATIBLE_MACHINE:k3 = "k3" | ||
| 7 | TFA_BUILD_TARGET:k3 = "all" | ||
| 8 | TFA_INSTALL_TARGET:k3 = "bl31" | ||
| 9 | TFA_SPD:k3 = "opteed" | ||
| 10 | |||
| 11 | do_compile:append:am65xx-hs-evm() { | ||
| 12 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} | ||
| 13 | ( cd ${BUILD_DIR}; \ | ||
| 14 | mv bl31.bin bl31.bin.unsigned; \ | ||
| 15 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \ | ||
| 16 | ) | ||
| 17 | } | ||
| 18 | |||
| 19 | do_compile:append:am64xx-hs-evm() { | ||
| 20 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} | ||
| 21 | ( cd ${BUILD_DIR}; \ | ||
| 22 | mv bl31.bin bl31.bin.unsigned; \ | ||
| 23 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \ | ||
| 24 | ) | ||
| 25 | } | ||
| 26 | |||
| 27 | do_compile:append:j7-hs-evm() { | ||
| 28 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} | ||
| 29 | ( cd ${BUILD_DIR}; \ | ||
| 30 | mv bl31.bin bl31.bin.unsigned; \ | ||
| 31 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \ | ||
| 32 | ) | ||
| 33 | } | ||
| 34 | |||
| 35 | do_compile:append:j7200-hs-evm() { | ||
| 36 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} | ||
| 37 | ( cd ${BUILD_DIR}; \ | ||
| 38 | mv bl31.bin bl31.bin.unsigned; \ | ||
| 39 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \ | ||
| 40 | ) | ||
| 41 | } | ||
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-mainline_git.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-mainline_git.bb new file mode 100644 index 00000000..76aaa4b2 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-mainline_git.bb | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | require u-boot-ti.inc | ||
| 2 | |||
| 3 | LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025" | ||
| 4 | |||
| 5 | PR = "r0" | ||
| 6 | |||
| 7 | PV = "2021.10" | ||
| 8 | |||
| 9 | # For the un-initiated: | ||
| 10 | # The actual URL you'd use with a git clone for example would be: | ||
| 11 | # https://source.denx.de/u-boot/u-boot.git/ | ||
| 12 | # However, in the context of OE, we have to explicitly split things up: | ||
| 13 | # a) we want it to use git fetcher - hence git:// prefix in GIT_URI (if we | ||
| 14 | # used https here, we'd endup attempting wget instead of git) | ||
| 15 | # b) and we want git fetcher to use https protocol, hence GIT_PROTOCOL as https | ||
| 16 | UBOOT_GIT_URI = "git://source.denx.de/u-boot/u-boot.git" | ||
| 17 | UBOOT_GIT_PROTOCOL = "https" | ||
| 18 | SRCREV = "d80bb749fab53da72c4a0e09b8c2d2aaa3103c91" | ||
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2020.01.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2020.01.bb new file mode 100644 index 00000000..e1bdae46 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2020.01.bb | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | require u-boot-ti.inc | ||
| 2 | |||
| 3 | PR = "r36" | ||
| 4 | |||
| 5 | BRANCH = "ti-u-boot-2020.01" | ||
| 6 | |||
| 7 | SRCREV = "2781231a33c3d779e32445f4fe55164c45d6d7c1" | ||
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2021.01.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2021.01.bb new file mode 100644 index 00000000..d304df87 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2021.01.bb | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | require u-boot-ti.inc | ||
| 2 | |||
| 3 | LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025" | ||
| 4 | |||
| 5 | PR = "r16" | ||
| 6 | |||
| 7 | BRANCH = "ti-u-boot-2021.01" | ||
| 8 | |||
| 9 | SRCREV = "15769936a559b1840f50b83f94ee0c636b245001" | ||
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc new file mode 100644 index 00000000..4b9f543c --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | |||
| @@ -0,0 +1,290 @@ | |||
| 1 | # UBOOT_LOCALVERSION can be set to add a tag to the end of the | ||
| 2 | # U-boot version string. such as the commit id | ||
| 3 | def get_git_revision(p): | ||
| 4 | import subprocess | ||
| 5 | |||
| 6 | try: | ||
| 7 | return subprocess.Popen("git rev-parse HEAD 2>/dev/null ", cwd=p, shell=True, stdout=subprocess.PIPE, universal_newlines=True).communicate()[0].rstrip() | ||
| 8 | except OSError: | ||
| 9 | return None | ||
| 10 | |||
| 11 | UBOOT_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}" | ||
| 12 | |||
| 13 | UBOOT_SUFFIX ?= "img" | ||
| 14 | SPL_BINARY ?= "MLO" | ||
| 15 | |||
| 16 | require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot-common.inc | ||
| 17 | require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc | ||
| 18 | |||
| 19 | FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot:" | ||
| 20 | |||
| 21 | SUMMARY = "u-boot bootloader for TI devices" | ||
| 22 | |||
| 23 | LICENSE = "GPLv2+" | ||
| 24 | LIC_FILES_CHKSUM = "file://Licenses/README;md5=30503fd321432fc713238f582193b78e" | ||
| 25 | |||
| 26 | BRANCH ?= "master" | ||
| 27 | UBOOT_GIT_URI = "git://git.ti.com/ti-u-boot/ti-u-boot.git" | ||
| 28 | UBOOT_GIT_PROTOCOL = "git" | ||
| 29 | SRC_URI = "${UBOOT_GIT_URI};protocol=${UBOOT_GIT_PROTOCOL};branch=${BRANCH}" | ||
| 30 | |||
| 31 | PV:append = "+git${SRCPV}" | ||
| 32 | |||
| 33 | # u-boot needs devtree compiler to parse dts files | ||
| 34 | DEPENDS += "dtc-native bc-native lzop-native flex-native bison-native" | ||
| 35 | |||
| 36 | DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" | ||
| 37 | |||
| 38 | PACKAGECONFIG[atf] = "ATF=${STAGING_DIR_HOST}/firmware/bl31.bin,,trusted-firmware-a" | ||
| 39 | PACKAGECONFIG[optee] = "TEE=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/bl32.bin,,optee-os" | ||
| 40 | PACKAGECONFIG[dm] = "DM=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/pdk-ipc/${DM_FIRMWARE},,ti-rtos-firmware" | ||
| 41 | |||
| 42 | PACKAGECONFIG:append:aarch64 = " atf optee" | ||
| 43 | PACKAGECONFIG:append:j7 = " dm" | ||
| 44 | |||
| 45 | COMPATIBLE_MACHINE = "(ti-soc)" | ||
| 46 | |||
| 47 | EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}" | ||
| 48 | |||
| 49 | PROVIDES += "u-boot" | ||
| 50 | PKG:${PN} = "u-boot" | ||
| 51 | PKG:${PN}-dev = "u-boot-dev" | ||
| 52 | PKG:${PN}-dbg = "u-boot-dbg" | ||
| 53 | |||
| 54 | S = "${WORKDIR}/git" | ||
| 55 | |||
| 56 | # Support for secure devices - detailed info is in doc/README.ti-secure | ||
| 57 | TI_SECURE_DEV_PKG ?= "" | ||
| 58 | export TI_SECURE_DEV_PKG | ||
| 59 | |||
| 60 | SYSROOT_DIRS += "/boot" | ||
| 61 | |||
| 62 | # SPL (Second Program Loader) to be loaded over UART | ||
| 63 | SPL_UART_BINARY = "u-boot-spl.bin" | ||
| 64 | SPL_UART_BINARY:k3r5 = "" | ||
| 65 | SPL_UART_BINARY:lego-ev3 = "" | ||
| 66 | SPL_UART_BINARY:j7200-evm-k3r5 = "u-boot-spl.bin" | ||
| 67 | SPL_UART_BINARY:j7200-hs-evm-k3r5 = "u-boot-spl.bin" | ||
| 68 | SPL_UART_BINARY:am64xx-evm-k3r5 = "u-boot-spl.bin" | ||
| 69 | SPL_UART_BINARY:am64xx-hs-evm-k3r5 = "u-boot-spl.bin" | ||
| 70 | |||
| 71 | SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" | ||
| 72 | SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" | ||
| 73 | |||
| 74 | # SPI NOR Flash binaries | ||
| 75 | UBOOT_SPI_SPL_BINARY = "u-boot-spl.bin" | ||
| 76 | UBOOT_SPI_BINARY = "u-boot.img" | ||
| 77 | UBOOT_SPI_GPH_BINARY = "u-boot-spi.gph" | ||
| 78 | |||
| 79 | # SPI NOR Flash deployed images | ||
| 80 | UBOOT_SPI_SPL_IMAGE = "u-boot-spl-${MACHINE}-${PV}-${PR}.bin" | ||
| 81 | UBOOT_SPI_SPL_SYMLINK = "u-boot-spl-${MACHINE}.bin" | ||
| 82 | UBOOT_SPI_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.img" | ||
| 83 | UBOOT_SPI_SYMLINK = "u-boot-${MACHINE}.img" | ||
| 84 | UBOOT_SPI_GPH_IMAGE = "u-boot-spi-${MACHINE}-${PV}-${PR}.gph" | ||
| 85 | UBOOT_SPI_GPH_SYMLINK = "u-boot-spi-${MACHINE}.gph" | ||
| 86 | |||
| 87 | # HS XLD | ||
| 88 | UBOOT_HS_XLD_BINARY = "u-boot-spl_HS_X-LOADER" | ||
| 89 | UBOOT_HS_XLD_IMAGE = "u-boot-spl_HS_X-LOADER-${MACHINE}-${PV}-${PR}" | ||
| 90 | UBOOT_HS_XLD_SYMLINK = "u-boot-spl_HS_X-LOADER-${MACHINE}" | ||
| 91 | |||
| 92 | # HS MLO | ||
| 93 | UBOOT_HS_MLO_BINARY = "u-boot_HS_MLO" | ||
| 94 | UBOOT_HS_MLO_IMAGE = "u-boot_HS_MLO-${MACHINE}-${PV}-${PR}" | ||
| 95 | UBOOT_HS_MLO_SYMLINK = "u-boot_HS_MLO-${MACHINE}" | ||
| 96 | |||
| 97 | # HS ISSW | ||
| 98 | UBOOT_HS_ISSW_BINARY = "u-boot-spl_HS_ISSW" | ||
| 99 | UBOOT_HS_ISSW_IMAGE = "u-boot-spl_HS_ISSW-${MACHINE}-${PV}-${PR}" | ||
| 100 | UBOOT_HS_ISSW_SYMLINK = "u-boot-spl_HS_ISSW-${MACHINE}" | ||
| 101 | |||
| 102 | # HS 2ND | ||
| 103 | UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND" | ||
| 104 | UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" | ||
| 105 | UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" | ||
| 106 | |||
| 107 | do_install:append () { | ||
| 108 | if [ -n "${UBOOT_CONFIG}" ] | ||
| 109 | then | ||
| 110 | for config in ${UBOOT_MACHINE}; do | ||
| 111 | i=$(expr $i + 1); | ||
| 112 | for type in ${UBOOT_CONFIG}; do | ||
| 113 | j=$(expr $j + 1); | ||
| 114 | if [ $j -eq $i ] | ||
| 115 | then | ||
| 116 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | ||
| 117 | install ${B}/${config}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE}-${type} | ||
| 118 | ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY}-${type} | ||
| 119 | ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY} | ||
| 120 | fi | ||
| 121 | if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then | ||
| 122 | install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE}-${type} | ||
| 123 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY}-${type} | ||
| 124 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY} | ||
| 125 | fi | ||
| 126 | if [ -f ${B}/${config}/${UBOOT_HS_MLO_BINARY} ]; then | ||
| 127 | install ${B}/${config}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE}-${type} | ||
| 128 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY}-${type} | ||
| 129 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY} | ||
| 130 | fi | ||
| 131 | if [ -f ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ]; then | ||
| 132 | install ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ${D}/boot/${UBOOT_HS_ISSW_IMAGE}-${type} | ||
| 133 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${D}/boot/${UBOOT_HS_ISSW_BINARY}-${type} | ||
| 134 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${D}/boot/${UBOOT_HS_ISSW_BINARY} | ||
| 135 | fi | ||
| 136 | if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then | ||
| 137 | install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE}-${type} | ||
| 138 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY}-${type} | ||
| 139 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY} | ||
| 140 | fi | ||
| 141 | fi | ||
| 142 | done | ||
| 143 | unset j | ||
| 144 | done | ||
| 145 | unset i | ||
| 146 | else | ||
| 147 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | ||
| 148 | install ${B}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} | ||
| 149 | ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY} | ||
| 150 | fi | ||
| 151 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then | ||
| 152 | install ${B}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE} | ||
| 153 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${D}/boot/${UBOOT_HS_XLD_BINARY} | ||
| 154 | fi | ||
| 155 | if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then | ||
| 156 | install ${B}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE} | ||
| 157 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${D}/boot/${UBOOT_HS_MLO_BINARY} | ||
| 158 | fi | ||
| 159 | if [ -f ${B}/${UBOOT_HS_ISSW_BINARY} ]; then | ||
| 160 | install ${B}/${UBOOT_HS_ISSW_BINARY} ${D}/boot/${UBOOT_HS_ISSW_IMAGE} | ||
| 161 | ln -sf ${UBOOT_HS_ISSW_IMAGE} ${D}/boot/${UBOOT_HS_ISSW_BINARY} | ||
| 162 | fi | ||
| 163 | if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then | ||
| 164 | install ${B}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE} | ||
| 165 | ln -sf ${UBOOT_HS_2ND_IMAGE} ${D}/boot/${UBOOT_HS_2ND_BINARY} | ||
| 166 | fi | ||
| 167 | fi | ||
| 168 | } | ||
| 169 | |||
| 170 | do_deploy:append () { | ||
| 171 | if [ -n "${UBOOT_CONFIG}" ] | ||
| 172 | then | ||
| 173 | for config in ${UBOOT_MACHINE}; do | ||
| 174 | i=$(expr $i + 1); | ||
| 175 | for type in ${UBOOT_CONFIG}; do | ||
| 176 | j=$(expr $j + 1); | ||
| 177 | if [ $j -eq $i ] | ||
| 178 | then | ||
| 179 | cd ${DEPLOYDIR} | ||
| 180 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | ||
| 181 | install ${B}/${config}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE}-${type} | ||
| 182 | rm -f ${DEPLOYDIR}/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_SYMLINK} | ||
| 183 | ln -sf ${SPL_UART_IMAGE}-${type} ${DEPLOYDIR}/${SPL_UART_BINARY}-${type} | ||
| 184 | ln -sf ${SPL_UART_IMAGE}-${type} ${DEPLOYDIR}/${SPL_UART_BINARY} | ||
| 185 | ln -sf ${SPL_UART_IMAGE}-${type} ${DEPLOYDIR}/${SPL_UART_SYMLINK}-${type} | ||
| 186 | ln -sf ${SPL_UART_IMAGE}-${type} ${DEPLOYDIR}/${SPL_UART_SYMLINK} | ||
| 187 | fi | ||
| 188 | if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then | ||
| 189 | install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${DEPLOYDIR}/${UBOOT_HS_XLD_IMAGE}-${type} | ||
| 190 | rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK} | ||
| 191 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_SYMLINK}-${type} | ||
| 192 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_SYMLINK} | ||
| 193 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_BINARY}-${type} | ||
| 194 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_BINARY} | ||
| 195 | fi | ||
| 196 | if [ -f ${B}/${config}/${UBOOT_HS_MLO_BINARY} ]; then | ||
| 197 | install ${B}/${config}/${UBOOT_HS_MLO_BINARY} ${DEPLOYDIR}/${UBOOT_HS_MLO_IMAGE}-${type} | ||
| 198 | rm -f ${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_SYMLINK} | ||
| 199 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_SYMLINK}-${type} | ||
| 200 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_SYMLINK} | ||
| 201 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY}-${type} | ||
| 202 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY} | ||
| 203 | fi | ||
| 204 | if [ -f ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ]; then | ||
| 205 | install ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ${DEPLOYDIR}/${UBOOT_HS_ISSW_IMAGE}-${type} | ||
| 206 | rm -f ${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_SYMLINK} | ||
| 207 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_SYMLINK}-${type} | ||
| 208 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_SYMLINK} | ||
| 209 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_BINARY}-${type} | ||
| 210 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_BINARY} | ||
| 211 | fi | ||
| 212 | if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then | ||
| 213 | install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${DEPLOYDIR}/${UBOOT_HS_2ND_IMAGE}-${type} | ||
| 214 | rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK} | ||
| 215 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK}-${type} | ||
| 216 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK} | ||
| 217 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY}-${type} | ||
| 218 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY} | ||
| 219 | fi | ||
| 220 | fi | ||
| 221 | done | ||
| 222 | unset j | ||
| 223 | done | ||
| 224 | unset i | ||
| 225 | else | ||
| 226 | cd ${DEPLOYDIR} | ||
| 227 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | ||
| 228 | install ${B}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE} | ||
| 229 | rm -f ${DEPLOYDIR}/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_SYMLINK} | ||
| 230 | ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_BINARY} | ||
| 231 | ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_SYMLINK} | ||
| 232 | fi | ||
| 233 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then | ||
| 234 | install ${B}/${UBOOT_HS_XLD_BINARY} ${DEPLOYDIR}/${UBOOT_HS_XLD_IMAGE} | ||
| 235 | rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK} | ||
| 236 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_SYMLINK} | ||
| 237 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_BINARY} | ||
| 238 | fi | ||
| 239 | if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then | ||
| 240 | install ${B}/${UBOOT_HS_MLO_BINARY} ${DEPLOYDIR}/${UBOOT_HS_MLO_IMAGE} | ||
| 241 | rm -f ${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_SYMLINK} | ||
| 242 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_SYMLINK} | ||
| 243 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_BINARY} | ||
| 244 | fi | ||
| 245 | if [ -f ${B}/${UBOOT_HS_ISSW_BINARY} ]; then | ||
| 246 | install ${B}/${UBOOT_HS_ISSW_BINARY} ${DEPLOYDIR}/${UBOOT_HS_ISSW_IMAGE} | ||
| 247 | rm -f ${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_SYMLINK} | ||
| 248 | ln -sf ${UBOOT_HS_ISSW_IMAGE} ${UBOOT_HS_ISSW_SYMLINK} | ||
| 249 | ln -sf ${UBOOT_HS_ISSW_IMAGE} ${UBOOT_HS_ISSW_BINARY} | ||
| 250 | fi | ||
| 251 | if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then | ||
| 252 | install ${B}/${UBOOT_HS_2ND_BINARY} ${DEPLOYDIR}/${UBOOT_HS_2ND_IMAGE} | ||
| 253 | rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK} | ||
| 254 | ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_SYMLINK} | ||
| 255 | ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_BINARY} | ||
| 256 | fi | ||
| 257 | fi | ||
| 258 | |||
| 259 | rm ${DEPLOYDIR}/u-boot-initial-env || true | ||
| 260 | rm ${DEPLOYDIR}/${PN}-initial-env || true | ||
| 261 | rm ${DEPLOYDIR}/u-boot-initial-env-${MACHINE} || true | ||
| 262 | rm ${DEPLOYDIR}/${PN}-initial-env-${MACHINE} || true | ||
| 263 | rm ${DEPLOYDIR}/u-boot-initial-env-${MACHINE}-${PV}-${PR} || true | ||
| 264 | rm ${DEPLOYDIR}/${PN}-initial-env-${MACHINE}-${PV}-${PR} || true | ||
| 265 | } | ||
| 266 | |||
| 267 | # j7200 uses combined image for tiboot3.bin that includes u-boot-spl.bin and sysfw | ||
| 268 | # along with board PM/RM configs generated by k3-image-gen and comes from ti-sci-fw | ||
| 269 | # hence move the legacy u-boot's tiboot3.bin and u-boot-spl.bin out of the way | ||
| 270 | do_deploy:append:j7200-evm-k3r5 () { | ||
| 271 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
| 272 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
| 273 | } | ||
| 274 | |||
| 275 | do_deploy:append:j7200-hs-evm-k3r5 () { | ||
| 276 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
| 277 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
| 278 | } | ||
| 279 | |||
| 280 | do_deploy:append:am64xx-evm-k3r5 () { | ||
| 281 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
| 282 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
| 283 | } | ||
| 284 | |||
| 285 | do_deploy:append:am64xx-hs-evm-k3r5 () { | ||
| 286 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
| 287 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
| 288 | } | ||
| 289 | |||
| 290 | TOOLCHAIN = "gcc" | ||
diff --git a/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb new file mode 100644 index 00000000..dc17a1e9 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | DESCRIPTION = "Test code for user space IO (UIO) driver" | ||
| 2 | |||
| 3 | include uio-module-drv.inc | ||
| 4 | |||
| 5 | PR = "r1" | ||
| 6 | |||
| 7 | COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x" | ||
| 8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 9 | |||
| 10 | DEVICE_NAME:omap-a15 = "am57xx" | ||
| 11 | DEVICE_NAME:ti33x = "am33xx" | ||
| 12 | DEVICE_NAME:ti43x = "am43xx" | ||
| 13 | RDEPENDS:${PN} = "uio-module-drv" | ||
| 14 | |||
| 15 | do_compile() { | ||
| 16 | oe_runmake -C ${S} test "DEVICE=${DEVICE_NAME}" | ||
| 17 | } | ||
| 18 | |||
| 19 | do_install() { | ||
| 20 | install -d ${D}${bindir}/ | ||
| 21 | install -c -m 755 ${S}/test/uio_mem_test ${D}${bindir}/. | ||
| 22 | install -c -m 755 ${S}/test/uio_int_test ${D}${bindir}/. | ||
| 23 | } | ||
| 24 | |||
| 25 | do_install:append:omap-a15 () { | ||
| 26 | install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/. | ||
| 27 | } | ||
| 28 | |||
| 29 | do_install:append:ti33x () { | ||
| 30 | install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/. | ||
| 31 | } | ||
| 32 | |||
| 33 | do_install:append:ti43x () { | ||
| 34 | install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/. | ||
| 35 | } | ||
diff --git a/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv.inc b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv.inc new file mode 100644 index 00000000..8081d021 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv.inc | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | LICENSE = "BSD" | ||
| 2 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2b7c96eb2aed7b0f6f922214dbde9016" | ||
| 3 | |||
| 4 | BRANCH = "master" | ||
| 5 | # This corresponds to version 02.02.01.00 | ||
| 6 | UIO_MODULE_DRV_SRCREV = "bda9260f2220840a60ec0fbc8011cbadf3cf1b91" | ||
| 7 | |||
| 8 | PV = "2.2.1.0+git${SRCPV}" | ||
| 9 | |||
| 10 | UIO_MODULE_DRV_GIT_URI = "git://git.ti.com/keystone-linux/uio-module-drv.git" | ||
| 11 | UIO_MODULE_DRV_GIT_PROTOCOL = "git" | ||
| 12 | SRC_URI = "${UIO_MODULE_DRV_GIT_URI};protocol=${UIO_MODULE_DRV_GIT_PROTOCOL};branch=${BRANCH}" | ||
| 13 | |||
| 14 | SRCREV = "${UIO_MODULE_DRV_SRCREV}" | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | |||
| 18 | COMPATIBLE_HOST ?= "null" | ||
| 19 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
diff --git a/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv/0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv/0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch new file mode 100644 index 00000000..955ef558 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv/0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From b5c4036dac06817bffd0be21c5fa1b7f75f74e4b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Suman Anna <s-anna@ti.com> | ||
| 3 | Date: Mon, 19 Apr 2021 13:15:51 -0500 | ||
| 4 | Subject: [PATCH] uio-module-drv: Replace ioremap_nocache with ioremap | ||
| 5 | |||
| 6 | The ioremap_nocache is the same as the regular ioremap and its | ||
| 7 | definition has been dropped from the Linux kernel v5.6 onwards in | ||
| 8 | commit 4bdc0d676a64 ("remove ioremap_nocache and devm_ioremap_nocache") | ||
| 9 | [1]. The uio-module-drv module fails to build against these newer | ||
| 10 | kernels, so fix it by simply replacing ioremap_nocache with ioremap. | ||
| 11 | |||
| 12 | [1] | ||
| 13 | https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4bdc0d676a643140bdf17dbf7eafedee3d496a3c | ||
| 14 | |||
| 15 | Signed-off-by: Suman Anna <s-anna@ti.com> | ||
| 16 | --- | ||
| 17 | uio_module_drv.c | 2 +- | ||
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 19 | |||
| 20 | diff --git a/uio_module_drv.c b/uio_module_drv.c | ||
| 21 | index 5a67dd199e21..7cc6005d1f05 100644 | ||
| 22 | --- a/uio_module_drv.c | ||
| 23 | +++ b/uio_module_drv.c | ||
| 24 | @@ -240,7 +240,7 @@ static ssize_t uio_module_drv_transfer(struct file *file, char __user *buf, | ||
| 25 | return -EINVAL; | ||
| 26 | } | ||
| 27 | |||
| 28 | - virt_addr_p = ioremap_nocache(phys_addr, count); | ||
| 29 | + virt_addr_p = ioremap(phys_addr, count); | ||
| 30 | if (!virt_addr_p) { | ||
| 31 | dev_err(uio_module_drv->dev, "Mapping of virtual memory failed\n"); | ||
| 32 | return(-ENOMEM); | ||
| 33 | -- | ||
| 34 | 2.30.1 | ||
| 35 | |||
diff --git a/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv_git.bb b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv_git.bb new file mode 100644 index 00000000..2bb1f0b3 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv_git.bb | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | DESCRIPTION = "User space IO (UIO) driver for on-chip modules" | ||
| 2 | |||
| 3 | include uio-module-drv.inc | ||
| 4 | |||
| 5 | FILESEXTRAPATHS:prepend:= "${THISDIR}/${PN}:" | ||
| 6 | |||
| 7 | SRC_URI += "file://0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch" | ||
| 8 | |||
| 9 | # This package builds a kernel module, use kernel PR as base and append a local | ||
| 10 | MACHINE_KERNEL_PR:append = "d" | ||
| 11 | PR = "${MACHINE_KERNEL_PR}" | ||
| 12 | |||
| 13 | module_auto_load_uio-module-drv = "uio-module-drv" | ||
| 14 | |||
| 15 | inherit module | ||
| 16 | |||
| 17 | do_install:append () { | ||
| 18 | install -d ${D}${includedir} | ||
| 19 | cp *.h ${D}${includedir} | ||
| 20 | } | ||
| 21 | |||
| 22 | KERNEL_MODULE_AUTOLOAD += "uio_module_drv" | ||
diff --git a/meta-ti-bsp/recipes-bsp/vis-fw/vis_01.50.07.15.bb b/meta-ti-bsp/recipes-bsp/vis-fw/vis_01.50.07.15.bb new file mode 100644 index 00000000..498be36b --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/vis-fw/vis_01.50.07.15.bb | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | DESCRIPTION = "Radio Application Firmware" | ||
| 2 | LICENSE = "TI-TSPA" | ||
| 3 | LIC_FILES_CHKSUM = "file://${S}/J6_VIS_DEMO_LINUX_BINARY_01.50.07.15-Manifest.html;md5=a59aa54b9470f555cf086b91dca0afa3" | ||
| 4 | |||
| 5 | COMPATIBLE_MACHINE = "dra7xx" | ||
| 6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 7 | |||
| 8 | PR = "r1" | ||
| 9 | |||
| 10 | SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/vis/01_50_07_15/exports/vis-dra7xx-evm-01.50.07.15.tar.gz;protocol=http" | ||
| 11 | |||
| 12 | SRC_URI[md5sum] = "fe8b00e398fb3b7ada0c15b601867acb" | ||
| 13 | SRC_URI[sha256sum] = "6e2aa47ae892910616ebdc96646af778af9a59ca0657716ab4fa4b24a9afae69" | ||
| 14 | |||
| 15 | S = "${WORKDIR}" | ||
| 16 | |||
| 17 | DSPAPP = "dra7-dsp1-fw-radio.xe66" | ||
| 18 | GPPAPP = "RadioApp" | ||
| 19 | |||
| 20 | do_install() { | ||
| 21 | install -d ${D}${base_libdir}/firmware | ||
| 22 | install -d ${D}${bindir} | ||
| 23 | install ${S}/prebuilt/${DSPAPP} ${D}${base_libdir}/firmware/${DSPAPP} | ||
| 24 | install -m 0755 ${S}/prebuilt/${GPPAPP} ${D}${bindir}/${GPPAPP} | ||
| 25 | } | ||
| 26 | |||
| 27 | PACKAGES += "${PN}-fw" | ||
| 28 | RDEPENDS:${PN} += "${PN}-fw" | ||
| 29 | |||
| 30 | FILES:${PN}-fw += "${base_libdir}/firmware/${DSPAPP}" | ||
| 31 | |||
| 32 | INSANE_SKIP:${PN} = "ldflags" | ||
| 33 | INSANE_SKIP:${PN}-fw = "arch" | ||
| 34 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
| 35 | INHIBIT_PACKAGE_STRIP = "1" | ||
| 36 | INHIBIT_SYSROOT_STRIP = "1" | ||
diff --git a/meta-ti-bsp/recipes-bsp/vpdma-fw/vpdma-fw_03-2012.bb b/meta-ti-bsp/recipes-bsp/vpdma-fw/vpdma-fw_03-2012.bb new file mode 100644 index 00000000..c7b2a7bb --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/vpdma-fw/vpdma-fw_03-2012.bb | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | DESCRIPTION = "VPDMA firmware for Video Input Port and Video Processing Engine" | ||
| 2 | |||
| 3 | LICENSE = "TI-TSPA" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=fd463c9500441ed91d07a0331baa635c" | ||
| 5 | |||
| 6 | COMPATIBLE_MACHINE = "dra7xx" | ||
| 7 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 8 | |||
| 9 | DEPENDS += "virtual/kernel" | ||
| 10 | |||
| 11 | SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/vpdma-fw/03-2012/exports/vpdma-fw_03-2012.tar.gz;protocol=http;name=dra7xx-evm" | ||
| 12 | SRC_URI[dra7xx-evm.md5sum] = "80176df1350c21d9efa90171789c546e" | ||
| 13 | SRC_URI[dra7xx-evm.sha256sum] = "a0b254ffd0c7f481cb3989e632088f5e4a233c73a1c676faa3061721ea60dc90" | ||
| 14 | |||
| 15 | S = "${WORKDIR}/vpdma-fw-${PV}" | ||
| 16 | TARGET = "vpdma-1b8.bin" | ||
| 17 | |||
| 18 | do_install() { | ||
| 19 | mkdir -p ${D}${base_libdir}/firmware | ||
| 20 | cp ${S}/${TARGET} ${D}${base_libdir}/firmware/${TARGET} | ||
| 21 | } | ||
| 22 | |||
| 23 | FILES:${PN} += "${base_libdir}/firmware/${TARGET}" | ||
| 24 | |||
| 25 | PR = "r1" | ||
diff --git a/meta-ti-bsp/recipes-bsp/vpe-tests/vpe-tests_git.bb b/meta-ti-bsp/recipes-bsp/vpe-tests/vpe-tests_git.bb new file mode 100644 index 00000000..92c425b1 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/vpe-tests/vpe-tests_git.bb | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | DESCRIPTION = "VPE test program" | ||
| 2 | |||
| 3 | LICENSE = "BSD" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=74d2f71d8898c54e3d1c9d0058c484aa" | ||
| 5 | |||
| 6 | DEPENDS = "virtual/kernel vpdma-fw" | ||
| 7 | |||
| 8 | PR = "r3" | ||
| 9 | |||
| 10 | COMPATIBLE_MACHINE = "dra7xx" | ||
| 11 | |||
| 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 13 | |||
| 14 | SRCREV = "e3d8db1aa935775f9d196ad7428e0cd9864a36ca" | ||
| 15 | BRANCH ?= "master" | ||
| 16 | |||
| 17 | SRC_URI = "git://git.ti.com/vpe_tests/vpe_tests.git;protocol=git;branch=${BRANCH}" | ||
| 18 | |||
| 19 | S = "${WORKDIR}/git" | ||
| 20 | |||
| 21 | FLOATABI = "${@bb.utils.contains("TUNE_FEATURES", "vfp", bb.utils.contains("TUNE_FEATURES", "callconvention-hard", " -mfloat-abi=hard", " -mfloat-abi=softfp", d), "" ,d)}" | ||
| 22 | |||
| 23 | # The test application needs additional include headers from the kernel | ||
| 24 | EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc ${FLOATABI}" KDIR="${STAGING_KERNEL_DIR}/include/uapi -I${STAGING_KERNEL_DIR}/include"' | ||
| 25 | |||
| 26 | do_install() { | ||
| 27 | oe_runmake DESTDIR="${D}" install | ||
| 28 | rm -rf ${D}${base_libdir}/firmware/vpdma-*.bin | ||
| 29 | rmdir -p ${D}${base_libdir}/firmware || true | ||
| 30 | } | ||
diff --git a/meta-ti-bsp/recipes-bsp/wl18xx-fw/wl18xx-fw/0001-Add-Makefile-to-install-firmware-files.patch b/meta-ti-bsp/recipes-bsp/wl18xx-fw/wl18xx-fw/0001-Add-Makefile-to-install-firmware-files.patch new file mode 100644 index 00000000..a8db0770 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/wl18xx-fw/wl18xx-fw/0001-Add-Makefile-to-install-firmware-files.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From 3a8fc3ccf00796254d6cef4b6d4cd70dc37012e1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Denys Dmytriyenko <denys@ti.com> | ||
| 3 | Date: Fri, 10 Mar 2017 13:28:29 -0500 | ||
| 4 | Subject: [PATCH] Add Makefile to install firmware files | ||
| 5 | |||
| 6 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
| 7 | --- | ||
| 8 | Makefile | 9 +++++++++ | ||
| 9 | 1 file changed, 9 insertions(+) | ||
| 10 | create mode 100644 Makefile | ||
| 11 | |||
| 12 | diff --git a/Makefile b/Makefile | ||
| 13 | new file mode 100644 | ||
| 14 | index 0000000..1cf38e3 | ||
| 15 | --- /dev/null | ||
| 16 | +++ b/Makefile | ||
| 17 | @@ -0,0 +1,9 @@ | ||
| 18 | +# Installs the the ti-connectivity wlan firmware files into the root file system | ||
| 19 | + | ||
| 20 | +install: | ||
| 21 | + @if [ ! -d $(DESTDIR) ] ; then \ | ||
| 22 | + echo "Target filesystem directory doesn't exist."; \ | ||
| 23 | + exit 1; \ | ||
| 24 | + fi | ||
| 25 | + install -d $(DEST_DIR)/lib/firmware/ti-connectivity | ||
| 26 | + cp *.bin $(DEST_DIR)/lib/firmware/ti-connectivity/ | ||
| 27 | -- | ||
| 28 | 2.7.4 | ||
| 29 | |||
diff --git a/meta-ti-bsp/recipes-bsp/wl18xx-fw/wl18xx-fw_8.9.0.0.86.bb b/meta-ti-bsp/recipes-bsp/wl18xx-fw/wl18xx-fw_8.9.0.0.86.bb new file mode 100644 index 00000000..48b500a8 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/wl18xx-fw/wl18xx-fw_8.9.0.0.86.bb | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | DESCRIPTION = "Firmware files for use with TI wl18xx" | ||
| 2 | LICENSE = "TI-TSPA" | ||
| 3 | LIC_FILES_CHKSUM = "file://LICENCE;md5=4977a0fe767ee17765ae63c435a32a9e" | ||
| 4 | |||
| 5 | SRC_URI = " \ | ||
| 6 | git://git.ti.com/wilink8-wlan/wl18xx_fw.git;protocol=git;branch=${BRANCH} \ | ||
| 7 | file://0001-Add-Makefile-to-install-firmware-files.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | SRCREV = "5ec05007f2662f460f881c5868311fd3ab7e6e71" | ||
| 11 | BRANCH = "master" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/git" | ||
| 14 | |||
| 15 | CLEANBROKEN = "1" | ||
| 16 | |||
| 17 | do_compile() { | ||
| 18 | : | ||
| 19 | } | ||
| 20 | |||
| 21 | do_install() { | ||
| 22 | oe_runmake 'DEST_DIR=${D}' install | ||
| 23 | } | ||
| 24 | |||
| 25 | FILES:${PN} = "/lib/firmware/ti-connectivity/*" | ||
