summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp
diff options
context:
space:
mode:
Diffstat (limited to 'meta-ti-bsp')
-rw-r--r--meta-ti-bsp/COPYING.MIT17
-rw-r--r--meta-ti-bsp/README33
-rw-r--r--meta-ti-bsp/conf/layer.conf26
-rw-r--r--meta-ti-bsp/conf/machine/am335x-evm.conf35
-rw-r--r--meta-ti-bsp/conf/machine/am335x-hs-evm.conf18
-rw-r--r--meta-ti-bsp/conf/machine/am437x-evm.conf33
-rw-r--r--meta-ti-bsp/conf/machine/am437x-hs-evm.conf20
-rw-r--r--meta-ti-bsp/conf/machine/am57xx-evm.conf53
-rw-r--r--meta-ti-bsp/conf/machine/am57xx-hs-evm.conf21
-rw-r--r--meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf11
-rw-r--r--meta-ti-bsp/conf/machine/am64xx-evm.conf7
-rw-r--r--meta-ti-bsp/conf/machine/am64xx-hs-evm-k3r5.conf14
-rw-r--r--meta-ti-bsp/conf/machine/am64xx-hs-evm.conf22
-rw-r--r--meta-ti-bsp/conf/machine/am65xx-evm-k3r5-sr2.conf11
-rw-r--r--meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf12
-rw-r--r--meta-ti-bsp/conf/machine/am65xx-evm.conf7
-rw-r--r--meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5-sr2.conf11
-rw-r--r--meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf14
-rw-r--r--meta-ti-bsp/conf/machine/am65xx-hs-evm.conf22
-rw-r--r--meta-ti-bsp/conf/machine/beagle-x15.conf13
-rw-r--r--meta-ti-bsp/conf/machine/beaglebone.conf16
-rw-r--r--meta-ti-bsp/conf/machine/dra7xx-evm.conf48
-rw-r--r--meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf21
-rw-r--r--meta-ti-bsp/conf/machine/include/am64xx.inc24
-rw-r--r--meta-ti-bsp/conf/machine/include/am65xx.inc32
-rw-r--r--meta-ti-bsp/conf/machine/include/dra7xx.inc4
-rw-r--r--meta-ti-bsp/conf/machine/include/j7.inc7
-rw-r--r--meta-ti-bsp/conf/machine/include/k3.inc55
-rw-r--r--meta-ti-bsp/conf/machine/include/k3r5.inc24
-rw-r--r--meta-ti-bsp/conf/machine/include/omap-a15.inc55
-rw-r--r--meta-ti-bsp/conf/machine/include/omapl1.inc2
-rw-r--r--meta-ti-bsp/conf/machine/include/omapl138.inc2
-rw-r--r--meta-ti-bsp/conf/machine/include/ti-soc.inc5
-rw-r--r--meta-ti-bsp/conf/machine/include/ti33x.inc70
-rw-r--r--meta-ti-bsp/conf/machine/include/ti43x.inc67
-rw-r--r--meta-ti-bsp/conf/machine/j7-evm-k3r5.conf11
-rw-r--r--meta-ti-bsp/conf/machine/j7-evm.conf18
-rw-r--r--meta-ti-bsp/conf/machine/j7-hs-evm-k3r5-sr1-1.conf11
-rw-r--r--meta-ti-bsp/conf/machine/j7-hs-evm-k3r5.conf13
-rw-r--r--meta-ti-bsp/conf/machine/j7-hs-evm.conf30
-rw-r--r--meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf11
-rw-r--r--meta-ti-bsp/conf/machine/j7200-evm.conf20
-rw-r--r--meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf13
-rw-r--r--meta-ti-bsp/conf/machine/j7200-hs-evm.conf22
-rw-r--r--meta-ti-bsp/conf/machine/omapl138-lcdk.conf19
-rw-r--r--meta-ti-bsp/conf/multiconfig/k3r5-sr1-1.conf3
-rw-r--r--meta-ti-bsp/conf/multiconfig/k3r5-sr2.conf3
-rw-r--r--meta-ti-bsp/conf/multiconfig/k3r5.conf5
-rw-r--r--meta-ti-bsp/licenses/Hewlett-Packard13
-rw-r--r--meta-ti-bsp/licenses/Patrick-Powell4
-rw-r--r--meta-ti-bsp/licenses/TI-IMG63
-rw-r--r--meta-ti-bsp/licenses/TI-TFL62
-rw-r--r--meta-ti-bsp/licenses/TI-TSPA206
-rw-r--r--meta-ti-bsp/licenses/Thai-Open-Source-Software-Center31
-rw-r--r--meta-ti-bsp/recipes-bsp/bt-fw/bt-fw_git.bb24
-rw-r--r--meta-ti-bsp/recipes-bsp/cadence-mhdp-fw/cadence-mhdp-fw_git.bb25
-rw-r--r--meta-ti-bsp/recipes-bsp/cm3-pm-firmware/amx3-cm3_git.bb29
-rw-r--r--meta-ti-bsp/recipes-bsp/cmem/cmem-mod_git.bb18
-rw-r--r--meta-ti-bsp/recipes-bsp/cmem/cmem.inc16
-rw-r--r--meta-ti-bsp/recipes-bsp/cmem/cmem_git.bb13
-rwxr-xr-xmeta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb43
-rw-r--r--meta-ti-bsp/recipes-bsp/cuia/cuia_1.0.0.13.bb30
-rw-r--r--meta-ti-bsp/recipes-bsp/dspdce-fw/dspdce-fw_git.bb65
-rw-r--r--meta-ti-bsp/recipes-bsp/dsptop/debugss-module-drv_git.bb22
-rw-r--r--meta-ti-bsp/recipes-bsp/dsptop/dsptop.inc8
-rw-r--r--meta-ti-bsp/recipes-bsp/dsptop/dsptop_git.bb27
-rw-r--r--meta-ti-bsp/recipes-bsp/dsptop/libulm_git.bb45
-rw-r--r--meta-ti-bsp/recipes-bsp/gc320-drivers/ti-gc320-driver_5.0.11.p7.bb30
-rw-r--r--meta-ti-bsp/recipes-bsp/goodix-fw/goodix-fw_git.bb26
-rw-r--r--meta-ti-bsp/recipes-bsp/ipumm-fw/ipumm-fw_git.bb67
-rw-r--r--meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler-support-OpenEmbedded-nodistro-internal-aarc.patch29
-rw-r--r--meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.13.5776728.bb40
-rw-r--r--meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb46
-rw-r--r--meta-ti-bsp/recipes-bsp/pru/pru-icss_git.bb363
-rw-r--r--meta-ti-bsp/recipes-bsp/pru/ti-pru-sw-edma-driver_1.00.00.bb31
-rw-r--r--meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x-sr2_git.bb34
-rw-r--r--meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb32
-rw-r--r--meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw_5.6.15.bb31
-rw-r--r--meta-ti-bsp/recipes-bsp/pruhsr-fw/pruhsr-fw_2.17.25.bb31
-rw-r--r--meta-ti-bsp/recipes-bsp/pruprp-fw/pruprp-fw_2.17.25.bb32
-rw-r--r--meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw-am65x-sr2_git.bb34
-rw-r--r--meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw_3.2.9.bb31
-rw-r--r--meta-ti-bsp/recipes-bsp/ti-img-encode-decode/viddec-test-app_1.0.0.bb20
-rw-r--r--meta-ti-bsp/recipes-bsp/ti-img-encode-decode/videnc-test-app_1.0.0.bb20
-rw-r--r--meta-ti-bsp/recipes-bsp/ti-img-encode-decode/vxd-dec-fw_git.bb24
-rw-r--r--meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc35
-rw-r--r--meta-ti-bsp/recipes-bsp/ti-sci-fw/files/0001-Makefile-Skip-signing-of-binaries-for-combined-boot-.patch64
-rw-r--r--meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb45
-rw-r--r--meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb160
-rw-r--r--meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend41
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-mainline_git.bb18
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2020.01.bb7
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2021.01.bb9
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc290
-rw-r--r--meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb35
-rw-r--r--meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv.inc19
-rw-r--r--meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv/0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch35
-rw-r--r--meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv_git.bb22
-rw-r--r--meta-ti-bsp/recipes-bsp/vis-fw/vis_01.50.07.15.bb36
-rw-r--r--meta-ti-bsp/recipes-bsp/vpdma-fw/vpdma-fw_03-2012.bb25
-rw-r--r--meta-ti-bsp/recipes-bsp/vpe-tests/vpe-tests_git.bb30
-rw-r--r--meta-ti-bsp/recipes-bsp/wl18xx-fw/wl18xx-fw/0001-Add-Makefile-to-install-firmware-files.patch29
-rw-r--r--meta-ti-bsp/recipes-bsp/wl18xx-fw/wl18xx-fw_8.9.0.0.86.bb25
-rw-r--r--meta-ti-bsp/recipes-connectivity/uim/uim-sysfs_8.5.bb20
-rw-r--r--meta-ti-bsp/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator/0001-plt.h-Do-not-define-EFUSE_PARAMETER_TYPE_ENMT-type-e.patch35
-rw-r--r--meta-ti-bsp/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator_8.7.3.bb26
-rw-r--r--meta-ti-bsp/recipes-connectivity/wl18xx-target-scripts/wl18xx-target-scripts/0001-print_stat.sh-replace-system-bin-sh-with-bin-sh.patch23
-rw-r--r--meta-ti-bsp/recipes-connectivity/wl18xx-target-scripts/wl18xx-target-scripts_8.7.3.bb26
-rw-r--r--meta-ti-bsp/recipes-connectivity/wlconf/wlconf_8.7.3.bb39
-rw-r--r--meta-ti-bsp/recipes-core/udev/eudev/firmware.rules3
-rw-r--r--meta-ti-bsp/recipes-core/udev/eudev/omap-tty.rules17
-rw-r--r--meta-ti-bsp/recipes-core/udev/eudev_%.bbappend13
-rw-r--r--meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x.inc9
-rw-r--r--meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x/0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch28
-rw-r--r--meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x/init48
-rw-r--r--meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x_git.bb49
-rw-r--r--meta-ti-bsp/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb49
-rw-r--r--meta-ti-bsp/recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb31
-rw-r--r--meta-ti-bsp/recipes-devtools/ion/libion_git.bb14
-rw-r--r--meta-ti-bsp/recipes-devtools/k3conf/k3conf_git.bb24
-rw-r--r--meta-ti-bsp/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb46
-rw-r--r--meta-ti-bsp/recipes-graphics/libgles/ti-img-rogue-umlibs_1.13.5776728.bb69
-rw-r--r--meta-ti-bsp/recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb70
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/bundle-devicetree.inc26
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/cmem.inc96
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/files/cmem.dtsi38
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/files/configs/empty0
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/files/dra7xx/am571x-pru-uio.dtsi272
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/files/dra7xx/am57xx-pru-uio.dtsi252
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am571x.dtsi29
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am5729-beagleboneai.dtsi40
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am572idk.dtsi40
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am574x.dtsi40
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra71x.dtsi29
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra72x.dtsi29
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra76x.dtsi29
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem.dtsi40
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/files/ti33x/am335x-pru-uio.dtsi192
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/files/ti43x/am437x-pru-uio.dtsi292
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc27
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/dra7xx/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/k3/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/omapl138/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/ti33x/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/ti43x/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb75
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/dra7xx/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/k3/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/omapl138/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/ti33x/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/ti43x/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/dra7xx/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/k3/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/omapl138/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/ti33x/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/ti43x/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/dra7xx/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/k3/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/ti33x/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/ti43x/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/dra7xx/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/k3/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/ti33x/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/ti43x/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_5.10.bb10
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_5.4.bb10
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/dra7xx/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/k3/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/omapl138/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/ti33x/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/ti43x/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/dra7xx/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/k3/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/omapl138/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/ti33x/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/ti43x/defconfig1
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_5.10.bb5
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_5.4.bb5
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb51
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.4.bb43
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc92
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc9
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/ti-uio.inc71
-rw-r--r--meta-ti-bsp/recipes-multimedia/libdce/libdce_3.00.14.00.bb18
-rw-r--r--meta-ti-bsp/recipes-security/optee/optee-%.bbappend1
-rw-r--r--meta-ti-bsp/recipes-security/optee/optee-os_%.bbappend91
-rw-r--r--meta-ti-bsp/recipes-ti/README1
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes.bb26
-rwxr-xr-xmeta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh14
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.service11
-rwxr-xr-xmeta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.sh22
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/beaglebone-getting-started.bb21
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/gadget-init.bb60
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/gadget-init/bone-gmass-eject.rules1
-rwxr-xr-xmeta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-load.sh46
-rwxr-xr-xmeta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh10
-rwxr-xr-xmeta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-storage-reinsert.sh4
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/gadget-init/network-gadget-init.service11
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service11
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.conf5
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.rules2
-rw-r--r--meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.service12
-rwxr-xr-xmeta-ti-bsp/recipes-ti/beagleboard/gadget-init/update-image-info-on-mmcblk0p1.sh37
-rw-r--r--meta-ti-bsp/recipes-ti/bios/ti-sysbios.inc28
-rw-r--r--meta-ti-bsp/recipes-ti/bios/ti-sysbios_6.76.03.01.bb16
-rw-r--r--meta-ti-bsp/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb29
-rw-r--r--meta-ti-bsp/recipes-ti/ctoolslib/libaet_git.bb38
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb29
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cg-xml_2.61.00.bb40
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb44
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cgt-pru_2.3.2.bb49
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cgt470.inc24
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cgt470_4.6.6.bb8
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb46
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cgt6x_8.3.2.bb107
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-cgt7x_1.2.0.bb49
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-xdctools-common.inc70
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-xdctools-core.inc5
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-xdctools.inc10
-rw-r--r--meta-ti-bsp/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb10
-rw-r--r--meta-ti-bsp/recipes-ti/dsplib/dsplib-c64xp_git.bb6
-rw-r--r--meta-ti-bsp/recipes-ti/dsplib/dsplib-c66x_git.bb8
-rw-r--r--meta-ti-bsp/recipes-ti/dsplib/dsplib-c674x_git.bb8
-rw-r--r--meta-ti-bsp/recipes-ti/dsplib/dsplib.inc78
-rw-r--r--meta-ti-bsp/recipes-ti/framework-components/ti-framework-components.inc21
-rw-r--r--meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_2.26.00.01.bb9
-rw-r--r--meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_3.40.02.07.bb9
-rw-r--r--meta-ti-bsp/recipes-ti/imglib/imglib-c66x.inc34
-rw-r--r--meta-ti-bsp/recipes-ti/imglib/imglib-c66x_3.1.1.0.bb9
-rw-r--r--meta-ti-bsp/recipes-ti/includes/ti-eula-unpack.inc15
-rw-r--r--meta-ti-bsp/recipes-ti/includes/ti-paths.inc109
-rw-r--r--meta-ti-bsp/recipes-ti/includes/ti-staging.inc6
-rw-r--r--meta-ti-bsp/recipes-ti/includes/ti-unpack.inc83
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc-common.inc12
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch40
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples-linux_git.bb49
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples.inc31
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples_git.bb44
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos.inc73
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos_git.bb101
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc.inc20
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc/0001-Add-kernel-build-dir.patch112
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc/omap_remoteproc.conf1
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.service9
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh25
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-ipc_git.bb63
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples/0001-examples-Remove-use-of-includedir-and-libdir.patch38
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples_git.bb13
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char.inc18
-rw-r--r--meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char_git.bb7
-rw-r--r--meta-ti-bsp/recipes-ti/mathlib/mathlib-c66x_git.bb5
-rw-r--r--meta-ti-bsp/recipes-ti/mathlib/mathlib-c674x_git.bb5
-rw-r--r--meta-ti-bsp/recipes-ti/mathlib/mathlib.inc77
-rw-r--r--meta-ti-bsp/recipes-ti/openmp-rtos/openmp-rtos_git.bb62
-rw-r--r--meta-ti-bsp/recipes-ti/osal/ti-osal.inc24
-rw-r--r--meta-ti-bsp/recipes-ti/osal/ti-osal_1.24.00.09.bb9
-rw-r--r--meta-ti-bsp/recipes-ti/swtools/swtools_git.bb52
-rw-r--r--meta-ti-bsp/recipes-ti/ti-rtos-bin/files/empty1
-rw-r--r--meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb276
-rw-r--r--meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb47
-rw-r--r--meta-ti-bsp/recipes-ti/uio-test-pruss/uio-test-pruss_git.bb38
-rw-r--r--meta-ti-bsp/recipes-ti/vlib/vlib-c66x.inc32
-rw-r--r--meta-ti-bsp/recipes-ti/vlib/vlib-c66x_3.2.1.0.bb9
-rw-r--r--meta-ti-bsp/recipes-ti/xdais/ti-xdais.inc25
-rw-r--r--meta-ti-bsp/recipes-ti/xdais/ti-xdais_6.26.01.03.bb11
-rw-r--r--meta-ti-bsp/recipes-ti/xdais/ti-xdais_7.24.00.04.bb9
-rw-r--r--meta-ti-bsp/wic/sdimage-2part-efi.wks7
-rw-r--r--meta-ti-bsp/wic/sdimage-2part.wks6
275 files changed, 8874 insertions, 0 deletions
diff --git a/meta-ti-bsp/COPYING.MIT b/meta-ti-bsp/COPYING.MIT
new file mode 100644
index 00000000..fb950dc6
--- /dev/null
+++ b/meta-ti-bsp/COPYING.MIT
@@ -0,0 +1,17 @@
1Permission is hereby granted, free of charge, to any person obtaining a copy
2of this software and associated documentation files (the "Software"), to deal
3in the Software without restriction, including without limitation the rights
4to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5copies of the Software, and to permit persons to whom the Software is
6furnished to do so, subject to the following conditions:
7
8The above copyright notice and this permission notice shall be included in
9all copies or substantial portions of the Software.
10
11THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
17THE SOFTWARE.
diff --git a/meta-ti-bsp/README b/meta-ti-bsp/README
new file mode 100644
index 00000000..d832609a
--- /dev/null
+++ b/meta-ti-bsp/README
@@ -0,0 +1,33 @@
1The official OpenEmbedded/Yocto BSP layer for Texas Instruments platforms.
2
3It is hosted on http://git.yoctoproject.org/cgit/cgit.cgi/meta-ti/ with the
4source repository at git://git.yoctoproject.org/meta-ti
5
6
7This layer depends on:
8
9URI: git://git.openembedded.org/openembedded-core
10layers: meta
11branch: master
12
13URI: git://git.yoctoproject.org/meta-arm
14layers: meta-arm
15branch: master
16
17
18The base BSP part of meta-ti should work with different OpenEmbedded/Yocto
19distributions and layer stacks, such as:
20distro-less (only with OE-Core), with Yocto/Poky, with Angstrom or Arago.
21
22Please follow the recommended setup procedures of your OE distribution.
23
24
25Send pull requests, patches, comments or questions to:
26meta-ti@lists.yoctoproject.org
27
28Please note - meta-ti mailing list requires subscription for posting:
29https://lists.yoctoproject.org/g/meta-ti
30
31Maintainers:
32Praneeth Bajjuri <praneeth@ti.com>
33Denys Dmytriyenko <denys@konsulko.com>
diff --git a/meta-ti-bsp/conf/layer.conf b/meta-ti-bsp/conf/layer.conf
new file mode 100644
index 00000000..309e3d2b
--- /dev/null
+++ b/meta-ti-bsp/conf/layer.conf
@@ -0,0 +1,26 @@
1# We have a conf and classes directory, append to BBPATH
2BBPATH .= ":${LAYERDIR}"
3METATIBASE := '${@os.path.normpath("${LAYERDIR}/")}'
4
5# We have a recipes directory, add to BBFILES
6BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend"
7
8BBFILE_COLLECTIONS += "meta-ti-bsp"
9BBFILE_PATTERN_meta-ti-bsp := "^${LAYERDIR}/"
10BBFILE_PRIORITY_meta-ti-bsp = "6"
11
12LAYERSERIES_COMPAT_meta-ti-bsp = "honister"
13
14LICENSE_PATH += "${LAYERDIR}/licenses"
15
16LAYERDEPENDS_meta-ti-bsp = " \
17 core \
18 meta-arm \
19"
20
21SIGGEN_EXCLUDERECIPES_ABISAFE += " \
22 ti-sgx-ddk-km \
23 ti-sgx-ddk-um \
24"
25
26HOSTTOOLS_NONFATAL += "truncate xxd comm"
diff --git a/meta-ti-bsp/conf/machine/am335x-evm.conf b/meta-ti-bsp/conf/machine/am335x-evm.conf
new file mode 100644
index 00000000..469c4d37
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am335x-evm.conf
@@ -0,0 +1,35 @@
1#@TYPE: Machine
2#@NAME: AM335x EVM
3#@DESCRIPTION: Machine configuration for the TI AM335x EVM
4
5require conf/machine/include/ti33x.inc
6
7MACHINE_GUI_CLASS = "smallscreen"
8MACHINE_FEATURES += "touchscreen"
9
10IMAGE_FSTYPES += "ubifs ubi"
11
12# Normally AM335 boards use ttyS0, but ICE uses ttyS3, so try both
13SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS3"
14SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
15
16# UBI information. Note that this is board and kernel specific. Changes
17# in your kernel port may require changes in these variables. For more
18# details about this board please see
19# http://processors.wiki.ti.com/index.php/UBIFS_Support
20
21# do ubiattach /dev/ubi_ctrl -m 7 -O 2048
22# From dmesg:
23# UBI: smallest flash I/O unit: 2048
24# UBI: logical eraseblock size: 126976 bytes
25# from ubiattach stdout:
26# UBI device number 0, total 1988 LEBs
27MKUBIFS_ARGS ?= "-F -m 2048 -e 126976 -c 9900"
28
29# do ubiattach /dev/ubi_ctrl -m 7 -O 2048
30# from dmesg:
31# UBI: smallest flash I/O unit: 2048
32# UBI: physical eraseblock size: 131072 bytes (128 KiB)
33# UBI: sub-page size: 512
34# UBI: VID header offset: 2048 (aligned 2048)
35UBINIZE_ARGS ?= "-m 2048 -p 128KiB -s 512 -O 2048"
diff --git a/meta-ti-bsp/conf/machine/am335x-hs-evm.conf b/meta-ti-bsp/conf/machine/am335x-hs-evm.conf
new file mode 100644
index 00000000..7caa5bfd
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am335x-hs-evm.conf
@@ -0,0 +1,18 @@
1#@TYPE: Machine
2#@NAME: AM335x HS EVM
3#@DESCRIPTION: Machine configuration for the TI AM335x HS EVM
4
5require conf/machine/am335x-evm.conf
6
7UBOOT_MACHINE = ""
8# Last config in the list is default
9UBOOT_CONFIG ??= "uart mmc"
10UBOOT_CONFIG[uart] = "am335x_hs_evm_uart_config"
11UBOOT_CONFIG[mmc] = "am335x_hs_evm_config"
12
13UBOOT_ENTRYPOINT = "0x82000000"
14UBOOT_LOADADDRESS = "0x82000000"
15UBOOT_RD_LOADADDRESS = "0x84000000"
16UBOOT_RD_ENTRYPOINT = "0x84000000"
17
18TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_CAT}/am3x"
diff --git a/meta-ti-bsp/conf/machine/am437x-evm.conf b/meta-ti-bsp/conf/machine/am437x-evm.conf
new file mode 100644
index 00000000..4e3681d5
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am437x-evm.conf
@@ -0,0 +1,33 @@
1#@TYPE: Machine
2#@NAME: AM437x EVM
3#@DESCRIPTION: Machine configuration for the TI AM437x EVM
4
5require conf/machine/include/ti43x.inc
6
7MACHINE_GUI_CLASS = "smallscreen"
8MACHINE_FEATURES += "touchscreen"
9
10IMAGE_FSTYPES += "ubifs ubi"
11
12SERIAL_CONSOLES = "115200;ttyS0"
13
14# UBI information. Note that this is board and kernel specific. Changes
15# in your kernel port may require changes in these variables. For more
16# details about this board please see
17# http://processors.wiki.ti.com/index.php/UBIFS_Support
18
19# do ubiattach /dev/ubi_ctrl -m 11 -O 4096
20# From dmesg:
21# UBI: smallest flash I/O unit: 4096
22# UBI: logical eraseblock size: 253952 bytes
23# from ubiattach stdout:
24# UBI device number 0, total 994 LEBs
25MKUBIFS_ARGS = "-F -m 4096 -e 253952 -c 4800"
26
27# do ubiattach /dev/ubi_ctrl -m 11 -O 4096
28# from dmesg:
29# UBI: smallest flash I/O unit: 4096
30# UBI: physical eraseblock size: 262144 bytes (256 KiB)
31# UBI: sub-page size: 4096
32# UBI: VID header offset: 4096 (aligned 4096)
33UBINIZE_ARGS = "-m 4096 -p 256KiB -s 4096 -O 4096"
diff --git a/meta-ti-bsp/conf/machine/am437x-hs-evm.conf b/meta-ti-bsp/conf/machine/am437x-hs-evm.conf
new file mode 100644
index 00000000..68b808d2
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am437x-hs-evm.conf
@@ -0,0 +1,20 @@
1#@TYPE: Machine
2#@NAME: AM437x HS EVM
3#@DESCRIPTION: Machine configuration for the TI AM437x HS EVM
4
5require conf/machine/am437x-evm.conf
6
7UBOOT_MACHINE = "am43xx_hs_evm_config"
8
9UBOOT_ENTRYPOINT = "0x82000000"
10UBOOT_LOADADDRESS = "0x82000000"
11UBOOT_RD_LOADADDRESS = "0x84000000"
12UBOOT_RD_ENTRYPOINT = "0x84000000"
13
14TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_CAT}/am4x"
15
16OPTEEMACHINE = "ti-am43xx"
17OPTEEFLAVOR = "am43xx"
18OPTEEOUTPUTMACHINE = "ti"
19
20EXTRA_IMAGEDEPENDS += "optee-os"
diff --git a/meta-ti-bsp/conf/machine/am57xx-evm.conf b/meta-ti-bsp/conf/machine/am57xx-evm.conf
new file mode 100644
index 00000000..eb0082ee
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am57xx-evm.conf
@@ -0,0 +1,53 @@
1#@TYPE: Machine
2#@NAME: AM57xx EVM
3#@DESCRIPTION: Machine configuration for the TI AM57xx EVM
4
5require conf/machine/include/dra7xx.inc
6
7MACHINE_FEATURES += "touchscreen"
8
9SERIAL_CONSOLES = "115200;ttyS2"
10
11KERNEL_DEVICETREE = " \
12 am57xx-beagle-x15.dtb \
13 am57xx-beagle-x15-revb1.dtb \
14 am57xx-beagle-x15-revc.dtb \
15 am5729-beagleboneai.dtb \
16 am57xx-evm.dtb \
17 ti/am57xx-evm-common.dtbo \
18 am57xx-evm-reva3.dtb \
19 ti/am57xx-evm-reva3.dtbo \
20 am571x-idk.dtb \
21 ti/am571x-idk-touchscreen.dtbo \
22 am572x-idk.dtb \
23 am574x-idk.dtb \
24 ti/am57xx-idk-osd-lcd-common.dtbo \
25 ti/am572x-idk-touchscreen.dtbo \
26 ti/lcd-osd101t2587.dtbo \
27 ti/lcd-osd101t2045.dtbo \
28"
29
30KERNEL_DEVICETREE += "${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'am574x-idk-pru-excl-uio.dtb am572x-idk-pru-excl-uio.dtb am571x-idk-pru-excl-uio.dtb', '', d)}"
31
32UBOOT_MACHINE = "am57xx_evm_config"
33
34# UBI information. Note that this is board and kernel specific. Changes
35# in your kernel port may require changes in these variables. For more
36# details about this board please see
37# http://processors.wiki.ti.com/index.php/UBIFS_Support
38
39# do ubiattach /dev/ubi_ctrl -m 7 -O 2048
40# From dmesg:
41# UBI: smallest flash I/O unit: 2048
42# UBI: logical eraseblock size: 126976 bytes
43# from ubiattach stdout:
44# UBI device number 0, total 1988 LEBs
45MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 8192"
46
47# do ubiattach /dev/ubi_ctrl -m 7 -O 2048
48# from dmesg:
49# UBI: smallest flash I/O unit: 2048
50# UBI: physical eraseblock size: 131072 bytes (128 KiB)
51# UBI: sub-page size: 512
52# UBI: VID header offset: 2048 (aligned 2048)
53UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048"
diff --git a/meta-ti-bsp/conf/machine/am57xx-hs-evm.conf b/meta-ti-bsp/conf/machine/am57xx-hs-evm.conf
new file mode 100644
index 00000000..5232cbd9
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am57xx-hs-evm.conf
@@ -0,0 +1,21 @@
1#@TYPE: Machine
2#@NAME: AM57xx HS EVM
3#@DESCRIPTION: Machine configuration for the TI AM57xx HS EVM
4
5require conf/machine/am57xx-evm.conf
6
7UBOOT_MACHINE = "am57xx_hs_evm_config"
8
9UBOOT_ENTRYPOINT = "0x82000000"
10UBOOT_LOADADDRESS = "0x82000000"
11UBOOT_RD_LOADADDRESS = "0x84000000"
12UBOOT_RD_ENTRYPOINT = "0x84000000"
13
14TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_AUTO}/am5x"
15
16OPTEEMACHINE = "ti-am57xx"
17OPTEEFLAVOR = "am57xx"
18OPTEEOUTPUTMACHINE = "ti"
19OPTEEPAGER = "y"
20
21EXTRA_IMAGEDEPENDS += "optee-os"
diff --git a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
new file mode 100644
index 00000000..afd36b72
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
@@ -0,0 +1,11 @@
1#@TYPE: Machine
2#@NAME: AM64xx EVM (R5F)
3#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core)
4
5require conf/machine/include/k3r5.inc
6
7SYSFW_SOC = "am64x"
8SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "gp"
10
11UBOOT_MACHINE = "am64x_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am64xx-evm.conf b/meta-ti-bsp/conf/machine/am64xx-evm.conf
new file mode 100644
index 00000000..c6ba2a87
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am64xx-evm.conf
@@ -0,0 +1,7 @@
1#@TYPE: Machine
2#@NAME: AM64xx EVM
3#@DESCRIPTION: Machine configuration for the TI AM64xx EVM
4
5require conf/machine/include/am64xx.inc
6
7UBOOT_MACHINE = "am64x_evm_a53_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am64xx-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am64xx-hs-evm-k3r5.conf
new file mode 100644
index 00000000..d12c030f
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am64xx-hs-evm-k3r5.conf
@@ -0,0 +1,14 @@
1#@TYPE: Machine
2#@NAME: AM64xx HS EVM (R5F)
3#@DESCRIPTION: Machine configuration for the TI AM64xx HS EVM (R5F core)
4
5require conf/machine/include/k3r5.inc
6
7SYSFW_SOC = "am64x"
8SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "hs"
10SYSFW_SYMLINK = ""
11
12UBOOT_MACHINE = "am64x_hs_evm_r5_defconfig"
13
14TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
diff --git a/meta-ti-bsp/conf/machine/am64xx-hs-evm.conf b/meta-ti-bsp/conf/machine/am64xx-hs-evm.conf
new file mode 100644
index 00000000..44e81463
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am64xx-hs-evm.conf
@@ -0,0 +1,22 @@
1#@TYPE: Machine
2#@NAME: AM64xx HS EVM
3#@DESCRIPTION: Machine configuration for the TI AM64xx HS EVM
4
5require conf/machine/include/am64xx.inc
6
7UBOOT_MACHINE = "am64x_hs_evm_a53_defconfig"
8
9UBOOT_ENTRYPOINT = "0x80080000"
10UBOOT_LOADADDRESS = "0x80080000"
11UBOOT_RD_LOADADDRESS = "0x84000000"
12UBOOT_RD_ENTRYPOINT = "0x84000000"
13UBOOT_DTB_LOADADDRESS = "0x83000000"
14UBOOT_DTBO_LOADADDRESS = "0x83080000"
15UBOOT_DTBO_OFFSET = "0x00010000"
16
17SPL_BINARY = "tispl.bin_HS"
18SPL_BINARYNAME = "tispl.bin"
19UBOOT_BINARY = "u-boot.img_HS"
20IMAGE_BOOT_FILES = "${UBOOT_BINARY}"
21
22TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
diff --git a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5-sr2.conf b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5-sr2.conf
new file mode 100644
index 00000000..e74dd3ab
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5-sr2.conf
@@ -0,0 +1,11 @@
1#@TYPE: Machine
2#@NAME: AM65xx SR2.0 EVM (R5F)
3#@DESCRIPTION: Machine configuration for the TI AM65xx SR2.0 EVM (R5F core)
4
5# Booting SR2 requires different SYSFW, the rest is handled at runtime
6
7require conf/machine/am65xx-evm-k3r5.conf
8SOC_FAMILY:append = ":k3r5-sr2"
9
10SYSFW_SOC = "am65x_sr2"
11SYSFW_SYMLINK = "sysfw.itb"
diff --git a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
new file mode 100644
index 00000000..bd17474e
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
@@ -0,0 +1,12 @@
1#@TYPE: Machine
2#@NAME: AM65xx EVM (R5F)
3#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core)
4
5require conf/machine/include/k3r5.inc
6
7SYSFW_SOC = "am65x"
8SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "gp"
10SYSFW_SYMLINK = ""
11
12UBOOT_MACHINE = "am65x_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am65xx-evm.conf b/meta-ti-bsp/conf/machine/am65xx-evm.conf
new file mode 100644
index 00000000..8b6ef546
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am65xx-evm.conf
@@ -0,0 +1,7 @@
1#@TYPE: Machine
2#@NAME: AM65xx EVM
3#@DESCRIPTION: Machine configuration for the TI AM65xx EVM
4
5require conf/machine/include/am65xx.inc
6
7UBOOT_MACHINE = "am65x_evm_a53_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5-sr2.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5-sr2.conf
new file mode 100644
index 00000000..ff1645e4
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5-sr2.conf
@@ -0,0 +1,11 @@
1#@TYPE: Machine
2#@NAME: AM65xx SR2.0 HS EVM (R5F)
3#@DESCRIPTION: Machine configuration for the TI AM65xx SR2.0 HS EVM (R5F core)
4
5# Booting SR2 requires different SYSFW, the rest is handled at runtime
6
7require conf/machine/am65xx-hs-evm-k3r5.conf
8SOC_FAMILY:append = ":k3r5-sr2"
9
10SYSFW_SOC = "am65x_sr2"
11SYSFW_SYMLINK = "sysfw.itb"
diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
new file mode 100644
index 00000000..d6d4b1e3
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
@@ -0,0 +1,14 @@
1#@TYPE: Machine
2#@NAME: AM65xx HS EVM (R5F)
3#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core)
4
5require conf/machine/include/k3r5.inc
6
7SYSFW_SOC = "am65x"
8SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "hs"
10SYSFW_SYMLINK = ""
11
12UBOOT_MACHINE = "am65x_hs_evm_r5_defconfig"
13
14TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
new file mode 100644
index 00000000..e4eebb6a
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
@@ -0,0 +1,22 @@
1#@TYPE: Machine
2#@NAME: AM65xx HS EVM
3#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM
4
5require conf/machine/include/am65xx.inc
6
7UBOOT_MACHINE = "am65x_hs_evm_a53_defconfig"
8
9UBOOT_ENTRYPOINT = "0x80080000"
10UBOOT_LOADADDRESS = "0x80080000"
11UBOOT_RD_LOADADDRESS = "0x84000000"
12UBOOT_RD_ENTRYPOINT = "0x84000000"
13UBOOT_DTB_LOADADDRESS = "0x83000000"
14UBOOT_DTBO_LOADADDRESS = "0x83080000"
15UBOOT_DTBO_OFFSET = "0x00010000"
16
17SPL_BINARY = "tispl.bin_HS"
18SPL_BINARYNAME = "tispl.bin"
19UBOOT_BINARY = "u-boot.img_HS"
20IMAGE_BOOT_FILES = "${UBOOT_BINARY}"
21
22TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
diff --git a/meta-ti-bsp/conf/machine/beagle-x15.conf b/meta-ti-bsp/conf/machine/beagle-x15.conf
new file mode 100644
index 00000000..c7503266
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/beagle-x15.conf
@@ -0,0 +1,13 @@
1#@TYPE: Machine
2#@NAME: BeagleBoard X15
3#@DESCRIPTION: Machine configuration for the BeagleBoard X15
4
5require conf/machine/include/dra7xx.inc
6
7KERNEL_DEVICETREE = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revb1.dtb am57xx-beagle-x15-revc.dtb"
8
9MACHINE_GUI_CLASS = "bigscreen"
10
11SERIAL_CONSOLES = "115200;ttyS2"
12
13UBOOT_MACHINE = "am57xx_evm_config"
diff --git a/meta-ti-bsp/conf/machine/beaglebone.conf b/meta-ti-bsp/conf/machine/beaglebone.conf
new file mode 100644
index 00000000..cce8fd09
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/beaglebone.conf
@@ -0,0 +1,16 @@
1#@TYPE: Machine
2#@NAME: BeagleBone machine
3#@DESCRIPTION: Machine configuration for the http://beagleboard.org/bone board
4
5require conf/machine/include/ti33x.inc
6
7KERNEL_DEVICETREE = "am335x-bone.dtb am335x-boneblue.dtb \
8 am335x-boneblack.dtb am335x-boneblack-wireless.dtb \
9 am335x-bonegreen.dtb am335x-bonegreen-wireless.dtb"
10
11# Only has DVI connector for external screen
12MACHINE_GUI_CLASS = "bigscreen"
13
14SERIAL_CONSOLES = "115200;ttyS0"
15
16IMAGE_INSTALL:append = " kernel-devicetree kernel-image-zimage"
diff --git a/meta-ti-bsp/conf/machine/dra7xx-evm.conf b/meta-ti-bsp/conf/machine/dra7xx-evm.conf
new file mode 100644
index 00000000..5fa1dfa5
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/dra7xx-evm.conf
@@ -0,0 +1,48 @@
1#@TYPE: Machine
2#@NAME: DRA7xx EVM
3#@DESCRIPTION: Machine configuration for the TI DRA7xx EVM
4
5require conf/machine/include/dra7xx.inc
6
7MACHINE_FEATURES += "touchscreen"
8
9SERIAL_CONSOLES = "115200;ttyS0"
10
11KERNEL_DEVICETREE = " \
12 dra7-evm.dtb \
13 ti/dra7x-evm-osd-lcd-common.dtbo \
14 dra71-evm.dtb \
15 dra71-evm-nand.dtb \
16 ti/dra71-evm-lcd-auo-g101evn01.0.dtbo \
17 dra72-evm.dtb \
18 dra72-evm-revc.dtb \
19 ti/dra72-evm-touchscreen.dtbo \
20 ti/dra74-evm-touchscreen.dtbo \
21 dra76-evm.dtb \
22 ti/dra76-evm-tfp410.dtbo \
23 ti/lcd-osd101t2045.dtbo \
24 ti/lcd-osd101t2587.dtbo \
25"
26
27UBOOT_MACHINE = "dra7xx_evm_config"
28
29# UBI information. Note that this is board and kernel specific. Changes
30# in your kernel port may require changes in these variables. For more
31# details about this board please see
32# http://processors.wiki.ti.com/index.php/UBIFS_Support
33
34# do ubiattach /dev/ubi_ctrl -m 7 -O 2048
35# From dmesg:
36# UBI: smallest flash I/O unit: 2048
37# UBI: logical eraseblock size: 126976 bytes
38# from ubiattach stdout:
39# UBI device number 0, total 1988 LEBs
40MKUBIFS_ARGS = "-F -m 2048 -e 126976 -c 8192"
41
42# do ubiattach /dev/ubi_ctrl -m 7 -O 2048
43# from dmesg:
44# UBI: smallest flash I/O unit: 2048
45# UBI: physical eraseblock size: 131072 bytes (128 KiB)
46# UBI: sub-page size: 512
47# UBI: VID header offset: 2048 (aligned 2048)
48UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048"
diff --git a/meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf b/meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf
new file mode 100644
index 00000000..49630081
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf
@@ -0,0 +1,21 @@
1#@TYPE: Machine
2#@NAME: DRA7xx HS EVM
3#@DESCRIPTION: Machine configuration for the TI DRA7xx HS EVM
4
5require conf/machine/dra7xx-evm.conf
6
7UBOOT_MACHINE = "dra7xx_hs_evm_config"
8
9UBOOT_ENTRYPOINT = "0x82000000"
10UBOOT_LOADADDRESS = "0x82000000"
11UBOOT_RD_LOADADDRESS = "0x84000000"
12UBOOT_RD_ENTRYPOINT = "0x84000000"
13
14TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_AUTO}/dra7"
15
16OPTEEMACHINE = "ti-dra7xx"
17OPTEEFLAVOR = "dra7xx"
18OPTEEOUTPUTMACHINE = "ti"
19OPTEEPAGER = "y"
20
21EXTRA_IMAGEDEPENDS += "optee-os"
diff --git a/meta-ti-bsp/conf/machine/include/am64xx.inc b/meta-ti-bsp/conf/machine/include/am64xx.inc
new file mode 100644
index 00000000..afb96a22
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/am64xx.inc
@@ -0,0 +1,24 @@
1require conf/machine/include/k3.inc
2SOC_FAMILY:append = ":am64xx"
3
4MACHINE_FEATURES += "screen touchscreen"
5
6SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS1"
7SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
8
9KERNEL_DEVICETREE = " \
10 ti/k3-am642-evm.dtb \
11 ti/k3-am642-sk.dtb \
12 ti/k3-am642-evm-icssg1-dualemac.dtbo \
13 ti/k3-am642-evm-nand.dtbo \
14"
15
16# AM64 supports multi-certificate images, use the same
17IMAGE_BOOT_FILES = "${IMAGE_BOOT_FILES_MULTI_CERT}"
18
19do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
20do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
21
22TFA_BOARD = "lite"
23OPTEEMACHINE = "k3-am65x"
24OPTEEOUTPUTMACHINE = "k3"
diff --git a/meta-ti-bsp/conf/machine/include/am65xx.inc b/meta-ti-bsp/conf/machine/include/am65xx.inc
new file mode 100644
index 00000000..111ef96f
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/am65xx.inc
@@ -0,0 +1,32 @@
1require conf/machine/include/k3.inc
2SOC_FAMILY:append = ":am65xx"
3
4MACHINE_FEATURES += "screen touchscreen gpu"
5
6SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS1"
7SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
8
9KERNEL_DEVICETREE = " \
10 ti/k3-am654-base-board.dtb \
11 ti/k3-am654-base-board-sr1.dtbo \
12 ti/k3-am654-gp.dtbo \
13 ti/k3-am654-idk.dtbo \
14 ti/k3-am654-idk-sr1.dtbo \
15 ti/k3-am654-sr1.dtbo \
16 ti/k3-am654-pcie-usb2.dtbo \
17 ti/k3-am654-pcie-usb3.dtbo \
18 ti/k3-am654-evm-tc358876.dtbo \
19 ti/k3-am654-evm-oldi-lcd1evm.dtbo \
20 ti/k3-am654-evm-ov5640.dtbo \
21"
22
23BBMULTICONFIG += "k3r5-sr2"
24
25# Use default IMAGE_BOOT_FILES_LEGACY files
26# Since default sysfw.itb on AM65x is for SR2.0, add a version for SR1.0
27IMAGE_BOOT_FILES += "sysfw-am65x-evm.itb"
28do_image_wic[mcdepends] += "mc::k3r5-sr2:ti-sci-fw:do_deploy"
29do_image_tar[mcdepends] += "mc::k3r5-sr2:ti-sci-fw:do_deploy"
30
31OPTEEMACHINE = "k3-am65x"
32OPTEEOUTPUTMACHINE = "k3"
diff --git a/meta-ti-bsp/conf/machine/include/dra7xx.inc b/meta-ti-bsp/conf/machine/include/dra7xx.inc
new file mode 100644
index 00000000..a02421d9
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/dra7xx.inc
@@ -0,0 +1,4 @@
1require conf/machine/include/omap-a15.inc
2SOC_FAMILY:append = ":dra7xx"
3
4MACHINE_FEATURES += "pci"
diff --git a/meta-ti-bsp/conf/machine/include/j7.inc b/meta-ti-bsp/conf/machine/include/j7.inc
new file mode 100644
index 00000000..4ea3a5d8
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/j7.inc
@@ -0,0 +1,7 @@
1require conf/machine/include/k3.inc
2SOC_FAMILY:append = ":j7"
3
4OPTEEMACHINE = "k3-j721e"
5OPTEEOUTPUTMACHINE = "k3"
6
7# Use default IMAGE_BOOT_FILES_LEGACY files
diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
new file mode 100644
index 00000000..a39ddd2a
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/k3.inc
@@ -0,0 +1,55 @@
1# TI K3 Aarch64 profile for Cortex-A53/A72 cores
2
3require conf/machine/include/ti-soc.inc
4SOC_FAMILY:append = ":k3"
5
6require conf/machine/include/arm/arch-arm64.inc
7
8BBMULTICONFIG += "k3r5"
9
10# Increase this everytime you change something in the kernel
11MACHINE_KERNEL_PR = "r0"
12
13PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
14PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
15PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
16
17KERNEL_IMAGETYPE = "Image"
18KERNEL_IMAGETYPES = "Image vmlinux.gz"
19
20UBOOT_ARCH = "arm"
21UBOOT_ENTRYPOINT = "0x80008000"
22UBOOT_LOADADDRESS = "0x80008000"
23
24SPL_BINARY = "tispl.bin"
25UBOOT_SUFFIX = "img"
26
27EXTRA_IMAGEDEPENDS += "virtual/bootloader"
28
29TFA_PLATFORM = "k3"
30TFA_BOARD = "generic"
31
32MACHINE_GUI_CLASS = "smallscreen"
33
34# Use the expected value of the ubifs filesystem's volume name in the kernel
35# and u-boot.
36UBI_VOLNAME = "rootfs"
37
38# List common SoC features, may need to add touchscreen for specific machines
39MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 alsa ethernet pci"
40
41IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap"
42
43IMAGE_BOOT_FILES_LEGACY = "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin sysfw.itb"
44IMAGE_BOOT_FILES_MULTI_CERT = "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin"
45
46IMAGE_BOOT_FILES ?= "${IMAGE_BOOT_FILES_LEGACY}"
47IMAGE_EFI_BOOT_FILES ?= "${IMAGE_BOOT_FILES}"
48
49EFI_PROVIDER ?= "grub-efi"
50MACHINE_FEATURES += "efi"
51
52WKS_FILE ?= "sdimage-2part-efi.wks"
53do_image_wic[depends] += "virtual/bootloader:do_deploy"
54do_image_wic[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy mc::k3r5:ti-sci-fw:do_deploy"
55do_image_tar[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy mc::k3r5:ti-sci-fw:do_deploy"
diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc b/meta-ti-bsp/conf/machine/include/k3r5.inc
new file mode 100644
index 00000000..3cc79061
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/k3r5.inc
@@ -0,0 +1,24 @@
1# TI K3 Armv7 profile for Cortex-R5F cores
2
3require conf/machine/include/ti-soc.inc
4SOC_FAMILY:append = ":k3r5"
5
6# The closest of existing tunes for Cortex-R5F
7DEFAULTTUNE = "armv7athf"
8require conf/machine/include/arm/armv7a/tune-cortexa8.inc
9
10# R5 runs early bootloader and loads SYSFW
11# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/am65x/README
12# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/j721e/README
13PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
14PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
15PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
16
17SPL_BINARY = ""
18UBOOT_SUFFIX = "bin"
19UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
20UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
21UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
22
23PACKAGECONFIG:pn-u-boot-ti-staging = ""
24PACKAGECONFIG:pn-u-boot-ti-mainline = ""
diff --git a/meta-ti-bsp/conf/machine/include/omap-a15.inc b/meta-ti-bsp/conf/machine/include/omap-a15.inc
new file mode 100644
index 00000000..9a2e0044
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/omap-a15.inc
@@ -0,0 +1,55 @@
1require conf/machine/include/ti-soc.inc
2SOC_FAMILY:append = ":omap-a15"
3
4DEFAULTTUNE ?= "armv7athf-neon"
5require conf/machine/include/arm/armv7a/tune-cortexa15.inc
6
7# Increase this everytime you change something in the kernel
8MACHINE_KERNEL_PR = "r7"
9
10PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
11PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
12PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
13
14KERNEL_IMAGETYPE = "zImage"
15KERNEL_IMAGETYPES = "zImage uImage"
16KERNEL_CLASSES += "kernel-uimage"
17
18UBOOT_ARCH = "arm"
19UBOOT_ENTRYPOINT = "0x80008000"
20UBOOT_LOADADDRESS = "0x80008000"
21
22DEVICETREE_FILE = "${@d.getVar('KERNEL_DEVICETREE').replace("ti/","")}"
23
24# Generate an extlinux.conf file
25UBOOT_EXTLINUX = "1"
26UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}"
27UBOOT_EXTLINUX_BOOT_FILES = " \
28 extlinux.conf;extlinux/extlinux.conf \
29 ${KERNEL_IMAGETYPE} \
30 ${DEVICETREE_FILE} \
31"
32
33SPL_BINARY = "MLO"
34UBOOT_SUFFIX = "img"
35
36EXTRA_IMAGEDEPENDS += "virtual/bootloader"
37
38PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
39XSERVER = "xserver-xorg \
40 xf86-input-evdev \
41 xf86-video-fbdev"
42
43MACHINE_GUI_CLASS = "smallscreen"
44
45# Use the expected value of the ubifs filesystem's volume name in the kernel
46# and u-boot.
47UBI_VOLNAME = "rootfs"
48
49# List common SoC features, may need to add touchscreen for specific machines
50MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu mmip dsp gc320"
51
52IMAGE_FSTYPES += "tar.xz wic.xz"
53WKS_FILE ?= "sdimage-2part.wks"
54IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}"
55do_image_wic[depends] += "u-boot:do_deploy"
diff --git a/meta-ti-bsp/conf/machine/include/omapl1.inc b/meta-ti-bsp/conf/machine/include/omapl1.inc
new file mode 100644
index 00000000..d0262c3f
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/omapl1.inc
@@ -0,0 +1,2 @@
1require conf/machine/include/ti-soc.inc
2SOC_FAMILY:append = ":omapl1"
diff --git a/meta-ti-bsp/conf/machine/include/omapl138.inc b/meta-ti-bsp/conf/machine/include/omapl138.inc
new file mode 100644
index 00000000..c6eb0cd9
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/omapl138.inc
@@ -0,0 +1,2 @@
1require conf/machine/include/omapl1.inc
2SOC_FAMILY:append = ":omapl138"
diff --git a/meta-ti-bsp/conf/machine/include/ti-soc.inc b/meta-ti-bsp/conf/machine/include/ti-soc.inc
new file mode 100644
index 00000000..2792d2a0
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/ti-soc.inc
@@ -0,0 +1,5 @@
1# This is a generic TI SOC family. It is a superset of all other SOCs
2# and platforms defined in meta-ti to allow BSP-level overrides.
3SOC_FAMILY = "ti-soc"
4KERNEL_DTB_OVERLAY_SUPPORT ?= "1"
5require conf/machine/include/soc-family.inc
diff --git a/meta-ti-bsp/conf/machine/include/ti33x.inc b/meta-ti-bsp/conf/machine/include/ti33x.inc
new file mode 100644
index 00000000..afb80fd6
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/ti33x.inc
@@ -0,0 +1,70 @@
1require conf/machine/include/ti-soc.inc
2SOC_FAMILY:append = ":ti33x"
3
4DEFAULTTUNE ?= "armv7athf-neon"
5require conf/machine/include/arm/armv7a/tune-cortexa8.inc
6
7PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
8
9# For built-in LCD, add xf86-input-tslib
10XSERVER = "xserver-xorg \
11 xf86-input-evdev \
12 xf86-input-mouse \
13 xf86-video-fbdev \
14 xf86-input-keyboard"
15
16# Default to external video, change to smallscreen for built-in LCD
17MACHINE_GUI_CLASS = "bigscreen"
18
19# Increase this everytime you change something in the kernel
20MACHINE_KERNEL_PR = "r22"
21
22# Default providers, may need to override for specific machines
23PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
24PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
25PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
26
27KERNEL_IMAGETYPE = "zImage"
28
29KERNEL_DEVICETREE = " \
30 am335x-evm.dtb am335x-evmsk.dtb \
31 am335x-icev2.dtb \
32 am335x-pocketbeagle.dtb am335x-bone.dtb am335x-boneblue.dtb \
33 am335x-bonegreen.dtb am335x-bonegreen-wireless.dtb \
34 am335x-boneblack.dtb am335x-boneblack-wireless.dtb \
35 am335x-sancloud-bbe.dtb \
36"
37
38KERNEL_DEVICETREE += "${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'am335x-icev2-pru-excl-uio.dtb', '', d)}"
39
40UBOOT_ARCH = "arm"
41UBOOT_MACHINE = "am335x_evm_config"
42
43UBOOT_ENTRYPOINT = "0x80008000"
44UBOOT_LOADADDRESS = "0x80008000"
45
46# Generate an extlinux.conf file
47UBOOT_EXTLINUX = "1"
48UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}"
49UBOOT_EXTLINUX_BOOT_FILES = " \
50 extlinux.conf;extlinux/extlinux.conf \
51 ${KERNEL_IMAGETYPE} \
52 ${KERNEL_DEVICETREE} \
53"
54
55SPL_BINARY = "MLO"
56UBOOT_SUFFIX = "img"
57
58# Use the expected value of the ubifs filesystem's volume name in the kernel
59# and u-boot.
60UBI_VOLNAME = "rootfs"
61
62EXTRA_IMAGEDEPENDS += "virtual/bootloader"
63
64# List common SoC features, may need to add touchscreen for specific machines
65MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu"
66
67IMAGE_FSTYPES += "tar.xz wic.xz"
68WKS_FILE ?= "sdimage-2part.wks"
69IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}"
70do_image_wic[depends] += "virtual/bootloader:do_deploy"
diff --git a/meta-ti-bsp/conf/machine/include/ti43x.inc b/meta-ti-bsp/conf/machine/include/ti43x.inc
new file mode 100644
index 00000000..2c3a3770
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/ti43x.inc
@@ -0,0 +1,67 @@
1require conf/machine/include/ti-soc.inc
2SOC_FAMILY:append = ":ti43x"
3
4DEFAULTTUNE ?= "armv7athf-neon"
5require conf/machine/include/arm/armv7a/tune-cortexa9.inc
6
7PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
8
9# For built-in LCD, add xf86-input-tslib
10XSERVER = "xserver-xorg \
11 xf86-input-evdev \
12 xf86-input-mouse \
13 xf86-video-fbdev \
14 xf86-input-keyboard"
15
16# Default to external video, change to smallscreen for built-in LCD
17MACHINE_GUI_CLASS = "bigscreen"
18
19# Increase this everytime you change something in the kernel
20MACHINE_KERNEL_PR = "r3"
21
22# Default providers, may need to override for specific machines
23PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
24PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
25PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
26
27KERNEL_IMAGETYPE = "zImage"
28
29KERNEL_DEVICETREE = " \
30 am437x-gp-evm.dtb am437x-gp-evm-hdmi.dtb \
31 am437x-sk-evm.dtb am437x-idk-evm.dtb \
32 am43x-epos-evm.dtb am43x-epos-evm-hdmi.dtb \
33"
34
35KERNEL_DEVICETREE += "${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'am437x-idk-pru-excl-uio.dtb', '', d)}"
36
37UBOOT_ARCH = "arm"
38UBOOT_MACHINE = "am43xx_evm_config"
39
40UBOOT_ENTRYPOINT = "0x80008000"
41UBOOT_LOADADDRESS = "0x80008000"
42
43# Generate an extlinux.conf file
44UBOOT_EXTLINUX = "1"
45UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}"
46UBOOT_EXTLINUX_BOOT_FILES = " \
47 extlinux.conf;extlinux/extlinux.conf \
48 ${KERNEL_IMAGETYPE} \
49 ${KERNEL_DEVICETREE} \
50"
51
52SPL_BINARY = "MLO"
53UBOOT_SUFFIX = "img"
54
55# Use the expected value of the ubifs filesystem's volume name in the kernel
56# and u-boot.
57UBI_VOLNAME = "rootfs"
58
59EXTRA_IMAGEDEPENDS += "u-boot"
60
61# List common SoC features, may need to add touchscreen for specific machines
62MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu"
63
64IMAGE_FSTYPES += "tar.xz wic.xz"
65WKS_FILE ?= "sdimage-2part.wks"
66IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}"
67do_image_wic[depends] += "u-boot:do_deploy"
diff --git a/meta-ti-bsp/conf/machine/j7-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7-evm-k3r5.conf
new file mode 100644
index 00000000..b9e8cc01
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/j7-evm-k3r5.conf
@@ -0,0 +1,11 @@
1#@TYPE: Machine
2#@NAME: J7 EVM (R5F)
3#@DESCRIPTION: Machine configuration for the TI J7 EVM (R5F core)
4
5require conf/machine/include/k3r5.inc
6
7SYSFW_SOC = "j721e"
8SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "gp"
10
11UBOOT_MACHINE = "j721e_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/j7-evm.conf b/meta-ti-bsp/conf/machine/j7-evm.conf
new file mode 100644
index 00000000..267a5e14
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/j7-evm.conf
@@ -0,0 +1,18 @@
1#@TYPE: Machine
2#@NAME: J7 EVM
3#@DESCRIPTION: Machine configuration for the TI J7 EVM
4
5require conf/machine/include/j7.inc
6
7MACHINE_FEATURES += "gpu"
8
9SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS3"
10SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
11
12KERNEL_DEVICETREE = " \
13 ti/k3-j721e-common-proc-board.dtb \
14 ti/k3-j721e-common-proc-board-infotainment.dtbo \
15 ti/k3-j721e-sk.dtb \
16"
17
18UBOOT_MACHINE = "j721e_evm_a72_config"
diff --git a/meta-ti-bsp/conf/machine/j7-hs-evm-k3r5-sr1-1.conf b/meta-ti-bsp/conf/machine/j7-hs-evm-k3r5-sr1-1.conf
new file mode 100644
index 00000000..73f5afd6
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/j7-hs-evm-k3r5-sr1-1.conf
@@ -0,0 +1,11 @@
1#@TYPE: Machine
2#@NAME: J7 SR1.1 HS EVM (R5F)
3#@DESCRIPTION: Machine configuration for the TI J7 SR1.1 HS EVM (R5F core)
4
5# Booting SR1.1 requires different SYSFW, the rest is handled at runtime
6
7require conf/machine/j7-hs-evm-k3r5.conf
8SOC_FAMILY:append = ":k3r5-sr1-1"
9
10SYSFW_SOC = "j721e_sr1_1"
11SYSFW_SYMLINK = "sysfw.itb"
diff --git a/meta-ti-bsp/conf/machine/j7-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7-hs-evm-k3r5.conf
new file mode 100644
index 00000000..53a7016f
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/j7-hs-evm-k3r5.conf
@@ -0,0 +1,13 @@
1#@TYPE: Machine
2#@NAME: J7 HS EVM (R5F)
3#@DESCRIPTION: Machine configuration for the TI J7 HS EVM (R5F core)
4
5require conf/machine/include/k3r5.inc
6
7SYSFW_SOC = "j721e"
8SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "hs"
10
11UBOOT_MACHINE = "j721e_hs_evm_r5_defconfig"
12
13TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
diff --git a/meta-ti-bsp/conf/machine/j7-hs-evm.conf b/meta-ti-bsp/conf/machine/j7-hs-evm.conf
new file mode 100644
index 00000000..f2e3ccf5
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/j7-hs-evm.conf
@@ -0,0 +1,30 @@
1#@TYPE: Machine
2#@NAME: J7 HS EVM
3#@DESCRIPTION: Machine configuration for the TI J7 HS EVM
4
5require conf/machine/j7-evm.conf
6
7UBOOT_MACHINE = "j721e_hs_evm_a72_defconfig"
8
9UBOOT_ENTRYPOINT = "0x80080000"
10UBOOT_LOADADDRESS = "0x80080000"
11UBOOT_RD_LOADADDRESS = "0x84000000"
12UBOOT_RD_ENTRYPOINT = "0x84000000"
13UBOOT_DTB_LOADADDRESS = "0x83000000"
14UBOOT_DTBO_LOADADDRESS = "0x83080000"
15UBOOT_DTBO_OFFSET = "0x00010000"
16
17SPL_BINARY = "tispl.bin_HS"
18SPL_BINARYNAME = "tispl.bin"
19UBOOT_BINARY = "u-boot.img_HS"
20IMAGE_BOOT_FILES = "${UBOOT_BINARY}"
21
22BBMULTICONFIG += "k3r5-sr1-1"
23
24# Use default IMAGE_BOOT_FILES_LEGACY files
25# Since default sysfw.itb on J7 is for SR1.1, add a version for SR1.0
26IMAGE_BOOT_FILES += "sysfw-j721e-evm.itb"
27do_image_wic[mcdepends] += "mc::k3r5-sr1-1:ti-sci-fw:do_deploy"
28do_image_tar[mcdepends] += "mc::k3r5-sr1-1:ti-sci-fw:do_deploy"
29
30TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
diff --git a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
new file mode 100644
index 00000000..68061883
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
@@ -0,0 +1,11 @@
1#@TYPE: Machine
2#@NAME: J7200 EVM (R5F)
3#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core)
4
5require conf/machine/include/k3r5.inc
6
7SYSFW_SOC = "j7200"
8SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "gp"
10
11UBOOT_MACHINE = "j7200_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/j7200-evm.conf b/meta-ti-bsp/conf/machine/j7200-evm.conf
new file mode 100644
index 00000000..2565c90c
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/j7200-evm.conf
@@ -0,0 +1,20 @@
1#@TYPE: Machine
2#@NAME: J7200 EVM
3#@DESCRIPTION: Machine configuration for the TI J7200 EVM
4
5require conf/machine/include/j7.inc
6
7SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS3"
8SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
9
10KERNEL_DEVICETREE = " \
11 ti/k3-j7200-common-proc-board.dtb \
12"
13
14UBOOT_MACHINE = "j7200_evm_a72_config"
15
16# J7200 supports multi-certificate images, use the same
17IMAGE_BOOT_FILES = "${IMAGE_BOOT_FILES_MULTI_CERT}"
18
19do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
20do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
new file mode 100644
index 00000000..488f19ec
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
@@ -0,0 +1,13 @@
1#@TYPE: Machine
2#@NAME: J7200 HS EVM (R5F)
3#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core)
4
5require conf/machine/include/k3r5.inc
6
7SYSFW_SOC = "j7200"
8SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "hs"
10
11UBOOT_MACHINE = "j7200_hs_evm_r5_defconfig"
12
13TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
new file mode 100644
index 00000000..a5bd637e
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
@@ -0,0 +1,22 @@
1#@TYPE: Machine
2#@NAME: J7200 HS EVM
3#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM
4
5require conf/machine/j7200-evm.conf
6
7UBOOT_MACHINE = "j7200_hs_evm_a72_defconfig"
8
9UBOOT_ENTRYPOINT = "0x80080000"
10UBOOT_LOADADDRESS = "0x80080000"
11UBOOT_RD_LOADADDRESS = "0x84000000"
12UBOOT_RD_ENTRYPOINT = "0x84000000"
13UBOOT_DTB_LOADADDRESS = "0x83000000"
14UBOOT_DTBO_LOADADDRESS = "0x83080000"
15UBOOT_DTBO_OFFSET = "0x00010000"
16
17SPL_BINARY = "tispl.bin_HS"
18SPL_BINARYNAME = "tispl.bin"
19UBOOT_BINARY = "u-boot.img_HS"
20IMAGE_BOOT_FILES = "${UBOOT_BINARY}"
21
22TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
diff --git a/meta-ti-bsp/conf/machine/omapl138-lcdk.conf b/meta-ti-bsp/conf/machine/omapl138-lcdk.conf
new file mode 100644
index 00000000..ba4d5645
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/omapl138-lcdk.conf
@@ -0,0 +1,19 @@
1#@TYPE: Machine
2#@NAME: OMAP-L138 LCDK
3#@DESCRIPTION: Machine configuration for the TI OMAP-L138 LCDK board
4
5require conf/machine/include/davinci.inc
6require conf/machine/include/omapl138.inc
7
8UBOOT_MACHINE = "omapl138_lcdk_config"
9UBOOT_SUFFIX = "ais"
10SPL_BINARY = ""
11
12UBOOT_ENTRYPOINT = "0xc0008000"
13UBOOT_LOADADDRESS = "0xc0008000"
14
15IMAGE_FSTYPES += "tar.xz"
16
17SERIAL_CONSOLES = "115200;ttyS2"
18
19KERNEL_DEVICETREE = "da850-evm.dtb da850-lcdk.dtb"
diff --git a/meta-ti-bsp/conf/multiconfig/k3r5-sr1-1.conf b/meta-ti-bsp/conf/multiconfig/k3r5-sr1-1.conf
new file mode 100644
index 00000000..428f2212
--- /dev/null
+++ b/meta-ti-bsp/conf/multiconfig/k3r5-sr1-1.conf
@@ -0,0 +1,3 @@
1require k3r5.conf
2
3MACHINE:append = "-sr1-1"
diff --git a/meta-ti-bsp/conf/multiconfig/k3r5-sr2.conf b/meta-ti-bsp/conf/multiconfig/k3r5-sr2.conf
new file mode 100644
index 00000000..e933b9cc
--- /dev/null
+++ b/meta-ti-bsp/conf/multiconfig/k3r5-sr2.conf
@@ -0,0 +1,3 @@
1require k3r5.conf
2
3MACHINE:append = "-sr2"
diff --git a/meta-ti-bsp/conf/multiconfig/k3r5.conf b/meta-ti-bsp/conf/multiconfig/k3r5.conf
new file mode 100644
index 00000000..deb07210
--- /dev/null
+++ b/meta-ti-bsp/conf/multiconfig/k3r5.conf
@@ -0,0 +1,5 @@
1MAINMACHINE := "${MACHINE}"
2
3DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MAINMACHINE}"
4
5MACHINE:append = "-k3r5"
diff --git a/meta-ti-bsp/licenses/Hewlett-Packard b/meta-ti-bsp/licenses/Hewlett-Packard
new file mode 100644
index 00000000..569d009c
--- /dev/null
+++ b/meta-ti-bsp/licenses/Hewlett-Packard
@@ -0,0 +1,13 @@
1/*
2 * Copyright (c) 1994
3 * Hewlett-Packard Company
4 *
5 * Permission to use, copy, modify, distribute and sell this software
6 * and its documentation for any purpose is hereby granted without fee,
7 * provided that the above copyright notice appear in all copies and
8 * that both that copyright notice and this permission notice appear
9 * in supporting documentation. Hewlett-Packard Company makes no
10 * representations about the suitability of this software for any
11 * purpose. It is provided "as is" without express or implied warranty.
12 *
13 */
diff --git a/meta-ti-bsp/licenses/Patrick-Powell b/meta-ti-bsp/licenses/Patrick-Powell
new file mode 100644
index 00000000..9c6eac42
--- /dev/null
+++ b/meta-ti-bsp/licenses/Patrick-Powell
@@ -0,0 +1,4 @@
1Copyright Patrick Powell 1995
2This code is based on code written by Patrick Powell (papowell@astart.com)
3It may be used for any purpose as long as this notice remains intact
4on all source code distributions
diff --git a/meta-ti-bsp/licenses/TI-IMG b/meta-ti-bsp/licenses/TI-IMG
new file mode 100644
index 00000000..d4135576
--- /dev/null
+++ b/meta-ti-bsp/licenses/TI-IMG
@@ -0,0 +1,63 @@
1This license applies to the Imagination D5520 firmware image, pvdec_full_bin.fw.
2
3Copyright (C) 2019 Texas Instruments Incorporated
4
5All rights reserved not granted herein.
6
7Limited License.
8
9Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
10license under copyrights and patents it now or hereafter owns or controls to
11make, have made, use, import, offer to sell and sell ("Utilize") this software
12subject to the terms herein. With respect to the foregoing patent license, such
13license is granted solely to the extent that any such patent is necessary to
14Utilize the software alone. The patent license shall not apply to any
15combinations which include this software, other than combinations with devices
16manufactured by or for TI (“TI Devices”). No hardware patent is licensed
17hereunder.
18
19Redistributions must preserve existing copyright notices and reproduce this
20license (including the above copyright notice and the disclaimer and
21(if applicable) source code license limitations below) in the documentation
22and/or other materials provided with the distribution
23
24Redistribution and use in binary form, without modification, are permitted
25provided that the following conditions are met:
26
27 * No reverse engineering, decompilation, or disassembly of this
28 software is permitted with respect to any software provided in binary
29 form.
30
31 * any redistribution and use are licensed by TI for use only with TI
32 Devices.
33
34 * Nothing shall obligate TI to provide you with source code for the
35 software licensed and provided to you in object code.
36
37If software source code is provided to you, modification and redistribution of
38the source code are permitted provided that the following conditions are met:
39
40 * any redistribution and use of the source code, including any
41 resulting derivative works, are licensed by TI for use only with TI
42 Devices.
43
44 * any redistribution and use of any object code compiled from the
45 source code and any resulting derivative works, are licensed by TI
46 for use only with TI Devices.
47
48Neither the name of Texas Instruments Incorporated nor the names of its
49suppliers may be used to endorse or promote products derived from this
50software without specific prior written permission.
51
52DISCLAIMER.
53
54THIS SOFTWARE IS PROVIDED BY TI AND TI’S LICENSORS "AS IS" AND ANY EXPRESS OR
55IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
56MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
57EVENT SHALL TI AND TI’S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
58INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
59LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
60PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
61LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
62OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
63ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/meta-ti-bsp/licenses/TI-TFL b/meta-ti-bsp/licenses/TI-TFL
new file mode 100644
index 00000000..264692b7
--- /dev/null
+++ b/meta-ti-bsp/licenses/TI-TFL
@@ -0,0 +1,62 @@
1TEXAS INSTRUMENTS TEXT FILE LICENSE
2
3Copyright (c) [earliest year] - [latest year] Texas Instruments Incorporated
4
5All rights reserved not granted herein.
6
7Limited License.
8
9Texas Instruments Incorporated grants a world-wide, royalty-free,
10non-exclusive license under copyrights and patents it now or hereafter owns
11or controls to make, have made, use, import, offer to sell and sell
12("Utilize") this software subject to the terms herein. With respect to the
13foregoing patent license, such license is granted solely to the extent that
14any such patent is necessary to Utilize the software alone. The patent
15license shall not apply to any combinations which include this software,
16other than combinations with devices manufactured by or for TI ("TI
17Devices"). No hardware patent is licensed hereunder.
18
19Redistributions must preserve existing copyright notices and reproduce this
20license (including the above copyright notice and the disclaimer and (if
21applicable) source code license limitations below) in the documentation
22and/or other materials provided with the distribution
23
24Redistribution and use in binary form, without modification, are permitted
25provided that the following conditions are met:
26
27* No reverse engineering, decompilation, or disassembly of this software is
28permitted with respect to any software provided in binary form.
29
30* any redistribution and use are licensed by TI for use only with TI
31Devices.
32
33* Nothing shall obligate TI to provide you with source code for the software
34licensed and provided to you in object code.
35
36If software source code is provided to you, modification and redistribution
37of the source code are permitted provided that the following conditions are
38met:
39
40* any redistribution and use of the source code, including any resulting
41derivative works, are licensed by TI for use only with TI Devices.
42
43* any redistribution and use of any object code compiled from the source
44code and any resulting derivative works, are licensed by TI for use only
45with TI Devices.
46
47Neither the name of Texas Instruments Incorporated nor the names of its
48suppliers may be used to endorse or promote products derived from this
49software without specific prior written permission.
50
51DISCLAIMER.
52
53THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
54OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
55OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
56NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
57INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
58LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
59OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
60LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
61NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
62EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/meta-ti-bsp/licenses/TI-TSPA b/meta-ti-bsp/licenses/TI-TSPA
new file mode 100644
index 00000000..fd87c2ac
--- /dev/null
+++ b/meta-ti-bsp/licenses/TI-TSPA
@@ -0,0 +1,206 @@
1Texas Instruments Incorporated
2Technology and Software Publicly Available
3Software License Agreement
4
5
6Important - Please read the following license agreement carefully. This is
7a legally binding agreement. Do not click "i have read and agree" or use
8(as applicable) the Licensed Materials unless: (1) you are authorized to
9accept and agree to the terms of this license agreement on behalf of
10yourself or your company (as applicable) and (2) you intend to be bound by
11the terms of this license agreement on behalf of yourself or your company
12(as applicable).
13
14This Software License Agreement ("Agreement") is a legal agreement between
15you (either an individual or entity) and Texas Instruments Incorporated
16("TI"), 12500 TI Boulevard, Dallas, Texas 75243. The "Licensed Materials"
17subject to this Agreement include the software programs (in whole or in
18part), that accompany this Agreement and set forth in the applicable
19software manifest and which you access "on-line" and/or electronic
20documentation (in whole or in part) associated and provided with these
21software programs. By installing, copying or otherwise using the Licensed
22Materials you agree to abide by the terms of this Agreement. If you choose
23not to accept or agree with these terms, do not download or install the
24Licensed Materials.
25
26Note Regarding Possible Access to Open Source Software: The Licensed
27Materials may be bundled with Open Source Software. "Open Source Software"
28means any software licensed under terms requiring that (A) other software
29("Proprietary Software") incorporated, combined or distributed with such
30software or developed using such software: (i) be disclosed or distributed
31in source code form; or (ii) otherwise be licensed on terms inconsistent
32with the terms of this Agreement, including but not limited to permitting
33use of the Proprietary Software on or with devices other than TI Devices, or
34(B) require the owner of Proprietary Software to license any of its patents
35to users of the Open Source Software and/or Proprietary Software
36incorporated, combined or distributed with such Open Source Software or
37developed using such Open Source Software.
38
39You may gain access to Open Source Software, in which case such Open Source
40Software will be listed in the applicable software manifest (in whole or in
41part, the "Open Source Materials"). Your use of the Open Source Materials
42is subject to the separate licensing terms applicable to such Open Source
43Materials as specified in the applicable software manifest. For
44clarification, this Agreement does not limit your rights under, or grant you
45rights that supersede, the license terms of any applicable Open Source
46Materials license agreement. If any of the Open Source Materials have been
47provided to you in object code only, TI will provide to you or show you
48where can access the source code versions of such Open Source Materials if
49you contact TI at Texas Instruments Incorporated, 12500 TI Boulevard, Mail
50Station 8638, Dallas, Texas 75243, Attention: Contracts Manager. You may
51terminate this Agreement in the event you choose not to accept or agree with
52the terms in any applicable Open Source Materials license agreement,
53provided that such termination occurs within five (5) calendar days of
54acceptance of this Agreement and you abide by all applicable license terms
55in this Agreement until such termination.
56
571. License.
58
59a. Source Code License. For the Licensed Materials provided in source code
60format, TI hereby grants to you a limited, non-exclusive license to
61reproduce, use, and create modified or derivative works of the Licensed
62Materials provided to you in source code format and to distribute an
63unlimited number of copies of such source code Licensed Materials, or any
64derivatives thereof, in any format.
65
66b. Object Code License. For the Licensed Materials provided in object code
67format, TI hereby grants to you a limited, non-exclusive license to
68reproduce and use the Licensed Materials provided to you in object code
69format and to distribute an unlimited number of object or executable copies
70of such object code Licensed Materials.
71
722. Termination. This Agreement is effective until terminated. Without
73prejudice to any other rights, TI may terminate your right to use the
74Licensed Materials under this Agreement if you fail to comply with the terms
75of this Agreement. In such event, you shall destroy all copies of the
76Licensed Materials, including all portions and derivatives thereof.
77
783. Intellectual Property Rights.
79
80a. The Licensed Materials being provided to you hereunder are being made
81publicly available by TI, even though they contain copyrighted material of
82TI and its licensors, if applicable. In no event may you alter, remove or
83destroy any copyright notice included in the Licensed Materials. To the
84extent that any of the Licensed Materials are provided in binary or object
85code only, you may not unlock, decompile, reverse engineer, disassemble or
86otherwise translate such binary or object code to human-perceivable form.
87The source code of such reverse engineered code may contain TI trade secret
88and other proprietary information. TI reserves all rights not specifically
89granted under this Agreement.
90
91b. Certain Licensed Materials may (i) require patent licenses from third
92parties claiming patent rights covering implementation of the Licensed
93Materials or (ii) be based on industry recognized standards or software
94programs published by industry recognized standards bodies and certain third
95parties may claim to own patents or copyrights that cover implementation of
96those standards. You acknowledge and agree that this Agreement does not
97convey a license to any such third party patents and copyrights.
98
99c. YOU ACKNOWLEDGE AND AGREE THAT TI SHALL NOT BE LIABLE FOR AND SHALL NOT
100DEFEND OR INDEMNIFY YOU AGAINST ANY THIRD PARTY INFRINGEMENT CLAIM THAT
101RELATES TO OR IS BASED ON YOUR MANUFACTURE, USE, OR DISTRIBUTION OF THE
102LICENSED MATERIALS OR YOUR MANUFACTURE, USE, OFFER FOR SALE, SALE,
103IMPORTATION OR DISTRIBUTION OF YOUR PRODUCTS THAT INCLUDE OR INCORPORATE THE
104LICENSED MATERIALS.
105
106d. You acknowledge and agree that you are responsible for any fees or
107royalties that may be payable to any third party based on such third party's
108interests in the Licensed Materials described in Section 3(b) above (the
109"Third Party Payment Obligations"). You agree to indemnify TI against any
110Third Party Payment Obligations and will defend any claim, suit or
111proceeding brought against TI insofar as such claim, suit or proceeding is
112based on your failure to pay any Third Party Payment Obligations.
113
1144. Warranties and Limitations. THE LICENSED MATERIALS ARE PROVIDED "AS IS".
115TI AND ITS LICENSORS MAKE NO WARRANTY OR REPRESENTATION, EXPRESS, IMPLIED OR
116STATUTORY, INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTIBILITY, FITNESS FOR
117A PARTICULAR PURPOSE, LACK OF VIRUSES, ACCURACY OR COMPLETENESS OF
118RESPONSES, RESULTS AND LACK OF NEGLIGENCE. TI DISCLAIMS ANY WARRANTY OF
119TITLE, QUIET ENJOYMENT, QUIET POSESSION, AND NON-INFRINGEMENT OF ANY THIRD
120PARTY INTELLECTUAL PROPERTY RIGHTS WITH REGARD TO THE LICENSED MATERIALS OR
121USE OF THOSE MATERIALS.
122
123YOU ACKNOWLEDGE AND AGREE THAT THE LICENSED MATERIALS MAY NOT BE INTENDED
124FOR PRODUCTION APPLICATIONS AND MAY CONTAIN IRREGULARITIES AND DEFECTS NOT
125FOUND IN PRODUCTION SOFTWARE. FURTHERMORE, YOU ACKNOWLEDGE AND AGREE THAT
126THE LICENSED MATERIALS HAVE NOT BEEN TESTED OR CERTIFIED BY ANY GOVERNMENT
127AGENCY OR INDUSTRY REGULATORY ORGANIZATION OR ANY OTHER THIRD PARTY
128ORGANIZATION. YOU AGREE THAT PRIOR TO USING, INCORPORATING OR DISTRIBUTING
129THE LICENSED MATERIALS IN OR WITH ANY COMMERCIAL PRODUCT THAT YOU WILL
130THOROUGHLY TEST THE PRODUCT AND THE FUNCTIONALITY OF THE LICENSED MATERIALS
131IN OR WITH THAT PRODUCT AND BE SOLELY RESPONSIBLE FOR ANY PROBLEMS OR
132FAILURES.
133
134IN NO EVENT SHALL TI OR ITS LICENSORS BE LIABLE FOR ANY SPECIAL, INDIRECT,
135INCIDENTAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, HOWEVER CAUSED ON ANY THEORY
136OF LIABILITY, ARISING IN ANY WAY OUT OF THIS AGREEMENT, OR YOUR USE OF THE
137LICENSED MATERIALS, WHETHER OR NOT TI HAS BEEN ADVISED OF THE POSSIBILITY OF
138SUCH DAMAGES. EXCLUDED DAMAGES INCLUDE, BUT ARE NOT LIMITED TO, COST OF
139REMOVAL OR REINSTALLATION, OUTSIDE COMPUTER TIME, LABOR COSTS, LOSS OR
140CORRUPTION OF DATA, LOSS OF GOODWILL, LOSS OF PROFITS, LOSS OF SAVINGS, OR
141LOSS OF USE OR INTERRUPTION OF BUSINESS OR ANY OTHER ECONOMIC LOSS. IN NO
142EVENT WILL TI'S AGGREGATE LIABILITY UNDER THIS AGREEMENT OR ARISING OUT OF
143YOUR USE OF THE LICENSED MATERIALS EXCEED FIVE HUNDRED U.S. DOLLARS
144(US$500).
145
146Because some jurisdictions do not allow the exclusion or limitation of
147incidental or consequential damages or limitation on how long an implied
148warranty lasts, the above limitations or exclusions may not apply to you.
149
1505. Export Control. The Licensed Materials may be subject to the export or
151import regulations of certain countries. You agree to comply with all such
152regulations and acknowledge that you have the responsibility to obtain any
153licenses or other authorizations that may be required to export, re-export
154or import the Licensed Materials.
155
1566. Governing Law, Jurisdiction and Severability. This Agreement will be
157governed by and interpreted in accordance with the laws of the State of
158Texas, without reference to conflict of laws principles. If for any reason
159a court of competent jurisdiction finds any provision of the Agreement to be
160unenforceable, that provision will be enforced to the maximum extent
161possible to effectuate the intent of the parties and the remainder of the
162Agreement shall continue in full force and effect. This Agreement shall not
163be governed by the United Nations Convention on Contracts for the
164International Sale of Goods, or by the Uniform Computer Information
165Transactions Act (UCITA). The parties agree that non-exclusive jurisdiction
166for any dispute arising out of or relating to this Agreement lies within the
167courts located in the State of Texas. Notwithstanding the foregoing, any
168judgment may be enforced in any United States or foreign court, and either
169party may seek injunctive relief in any United States or foreign court.
170Failure by TI to enforce any provision of this Agreement shall not be deemed
171a waiver of future enforcement of that or any other provision in this
172Agreement or any other agreement that may be in place between the parties.
173
1747. PRC Provisions. If you are located in the People's Republic of China
175("PRC") or if the Licensed Materials will be sent to the PRC, the following
176provisions shall apply:
177
178a. Registration Requirements. You shall be solely responsible for
179performing all acts and obtaining all approvals that may be required in
180connection with this Agreement by the government of the PRC, including but
181not limited to registering pursuant to, and otherwise complying with, the
182PRC Measures on the Administration of Software Products, Management
183Regulations on Technology Import-Export, and Technology Import and Export
184Contract Registration Management Rules. Upon receipt of such approvals from
185the government authorities, you shall forward evidence of all such approvals
186to TI for its records. In the event that you fail to obtain any such
187approval or registration, you shall be solely responsible for any and all
188losses, damages or costs resulting therefrom, and shall indemnify TI for all
189such losses, damages or costs.
190
191b. Governing Language. This Agreement is written and executed in the
192English language. If a translation of this Agreement is required for any
193purpose, including but not limited to registration of the Agreement pursuant
194to any governmental laws, regulations or rules, you shall be solely
195responsible for creating such translation. Any translation of this
196Agreement into a language other than English is intended solely in order to
197comply with such laws or for reference purposes, and the English language
198version shall be authoritative and controlling.
199
2008. Entire Agreement. This is the entire agreement between you and TI and
201supersedes any prior agreement between the parties related to the subject
202matter of this Agreement. No amendment or modification of this Agreement
203will be effective unless in writing and signed by a duly authorized
204representative of TI. You hereby warrant and represent that you have
205obtained all authorizations and other applicable consents required
206empowering you to enter into this Agreement.
diff --git a/meta-ti-bsp/licenses/Thai-Open-Source-Software-Center b/meta-ti-bsp/licenses/Thai-Open-Source-Software-Center
new file mode 100644
index 00000000..3a3972dd
--- /dev/null
+++ b/meta-ti-bsp/licenses/Thai-Open-Source-Software-Center
@@ -0,0 +1,31 @@
1Copyright (c) 2002, 2003, 2008 Thai Open Source Software Center Ltd
2All rights reserved.
3
4Redistribution and use in source and binary forms, with or without
5modification, are permitted provided that the following conditions are
6met:
7
8 Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in
13 the documentation and/or other materials provided with the
14 distribution.
15
16 Neither the name of the Thai Open Source Software Center Ltd nor
17 the names of its contributors may be used to endorse or promote
18 products derived from this software without specific prior written
19 permission.
20
21THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
25CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
28PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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 @@
1DESCRIPTION = "Firmware files for Bluetooth"
2LICENSE = "TI-TSPA"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=f39eac9f4573be5b012e8313831e72a9"
4
5PV = "8.7.1+git${SRCPV}"
6
7CLEANBROKEN = "1"
8
9SRCREV = "0ee619b598d023fffc77679f099bc2a4815510e4"
10BRANCH = "master"
11SRC_URI = "git://git.ti.com/ti-bt/service-packs.git;branch=${BRANCH}"
12
13S = "${WORKDIR}/git"
14
15do_compile() {
16 :
17}
18
19do_install() {
20 install -d ${D}${base_libdir}/firmware/ti-connectivity
21 oe_runmake "DEST_DIR=${D}" "BASE_LIB_DIR=${base_libdir}" install
22}
23
24FILES:${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 @@
1SUMMARY = "Cadence MHDP DP bridge firmware"
2
3require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
4
5LICENSE = "BSD-3-Clause | Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENCE.cadence;md5=009f46816f6956cfb75ede13d3e1cee0"
7
8PV = "${CADENCE_MHDP_FW_VERSION}"
9PR = "${INC_PR}.0"
10
11CLEANBROKEN = "1"
12
13COMPATIBLE_MACHINE = "j7"
14
15PACKAGE_ARCH = "${MACHINE_ARCH}"
16
17S = "${WORKDIR}/git"
18TARGET = "mhdp8546.bin"
19
20do_install() {
21 install -d ${D}${base_libdir}/firmware/cadence
22 install -m 0644 ${S}/cadence/${TARGET} ${D}${base_libdir}/firmware/cadence/${TARGET}
23}
24
25FILES:${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 @@
1DESCRIPTION = "Cortex-M3 binary blob for suspend-resume"
2
3LICENSE = "TI-TSPA"
4LIC_FILES_CHKSUM = "file://License.txt;md5=7bdc54a749ab7a7dea999d25d99a41b8"
5
6PV = "1.9.2"
7PR = "r0"
8
9SRCREV = "fb484c5e54f2e31cf0a338d2927a06a2870bcc2c"
10BRANCH ?= "ti-v4.1.y"
11
12SRC_URI = "git://git.ti.com/processor-firmware/ti-amx3-cm3-pm-firmware.git;protocol=git;branch=${BRANCH}"
13
14S = "${WORKDIR}/git"
15
16do_compile() {
17 make CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${SECURITY_NOPIE_CFLAGS}"
18}
19
20do_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
26FILES:${PN} += "${base_libdir}/firmware"
27
28COMPATIBLE_MACHINE = "(ti-soc)"
29TOOLCHAIN = "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 @@
1DESCRIPTION = "Kernel module for contiguous memory allocation from userspace"
2
3include cmem.inc
4
5# This package builds a kernel module, use kernel PR as base and append a local
6MACHINE_KERNEL_PR:append = "a"
7PR = "${MACHINE_KERNEL_PR}"
8
9inherit module
10
11EXTRA_OEMAKE += '-f lu.mak KERNEL_INSTALL_DIR="${STAGING_KERNEL_DIR}" TOOLCHAIN_PREFIX="${TOOLCHAIN_PREFIX}" EXEC_DIR="${D}/lib/modules/${KERNEL_VERSION}/extra"'
12MAKE_TARGETS = "module"
13
14KERNEL_MODULE_AUTOLOAD += "cmemk"
15
16do_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 @@
1HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:CMEM"
2
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://include/ti/cmem.h;beginline=1;endline=30;md5=26be509e4bb413905bda8309e338e2b1"
5
6BRANCH = "master"
7# This corresponds to version 4.20.00.01
8SRCREV = "86269258a48e0a9008dd9d5ebfae9da7ce843393"
9
10PV = "4.20.00.01+git${SRCPV}"
11
12SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
13
14S = "${WORKDIR}/git"
15COMPATIBLE_HOST ?= "null"
16COMPATIBLE_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 @@
1DESCRIPTION = "The cmem component supports contiguous memory allocation from userspace"
2
3include cmem.inc
4
5RDEPENDS:${PN} = "cmem-mod"
6
7PR = "r0"
8
9PACKAGES =+ "${PN}-test"
10
11FILES:${PN}-test = "${bindir}/*"
12
13inherit 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 @@
1SUMMARY = "R5 PSDK CPSW9G Ethernet Switch Firmware"
2
3LICENSE = "TI-TFL"
4LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=04ad0a015d4bb63c2b9e7b112debf3db"
5
6PV = "6.2+git${SRCPV}"
7PACKAGE_ARCH = "${MACHINE_ARCH}"
8
9inherit deploy
10inherit update-alternatives
11
12PROTOCOL = "git"
13BRANCH = "master"
14SRCREV = "91f1628507bf7f8716f0bc7cafe88ad7f14c94f5"
15
16SRC_URI = "git://git.ti.com/glsdk/ti-eth-fw.git;protocol=${PROTOCOL};branch=${BRANCH}"
17
18S = "${WORKDIR}/git"
19
20CPSW9G_FW_DIR = "${S}/ethfw"
21CPSW9G_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
24FILES:${PN} += "${base_libdir}/firmware"
25
26do_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
32TARGET_MAIN_R5FSS0_0 = "j7-main-r5f0_0-fw"
33ALTERNATIVE:${PN} = "j7-main-r5f0_0-fw"
34ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}"
35ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${CPSW9G_FW_FILENAME}"
36ALTERNATIVE_PRIORITY = "17"
37
38INHIBIT_PACKAGE_STRIP = "1"
39INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
40INSANE_SKIP:${PN} += "arch"
41
42do_compile[noexec] = "1"
43do_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 @@
1DESCRIPTION = "TI Unified Instrumentation Architecture in C (cUIA)"
2LICENSE = "BSD-3-Clause"
3LIC_FILES_CHKSUM = "file://cuia_${CUIA_PV}_manifest.html;md5=0eea94e3bb94de4ddee77653eba1c7c5"
4
5CUIA_PV = "1_00_00_13"
6CUIA_PVExtra = ""
7
8SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/UIA/SCMCSDK/cuia_${CUIA_PV}${CUIA_PVExtra}.tar.gz;name=cuia"
9SRC_URI[cuia.md5sum] = "ef53989ac70c191841cd656cdc8770be"
10SRC_URI[cuia.sha256sum] = "f16d138a9146fdc7d52cba77bd30596da65835f6ffe4092baf2b33d1c1a4fb0d"
11
12S = "${WORKDIR}/cuia_${CUIA_PV}${CUIA_PVExtra}"
13
14CLEANBROKEN = "1"
15
16do_compile () {
17 cd ${S}
18 oe_runmake clean
19 oe_runmake all
20}
21
22do_install() {
23 cd ${S}
24 oe_runmake DESTDIR=${D} libdir=${libdir} includedir=${includedir} install
25}
26
27COMPATIBLE_HOST ?= "null"
28COMPATIBLE_HOST:ti-soc = "(.*)"
29
30INSANE_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 @@
1SUMMARY = "Firmware for DSP for an example application called copycodectest"
2LICENSE = "TI-TSPA"
3LIC_FILES_CHKSUM = "file://src/ti/framework/dce/dce.c;startline=1;endline=31;md5=2c6e9aba6ed75f22b1a2b7544b1c809d"
4
5COMPATIBLE_MACHINE = "dra7xx"
6
7inherit features_check
8
9REQUIRED_MACHINE_FEATURES = "dsp"
10
11SRC_URI = "git://git.ti.com/glsdk/dspdce.git;protocol=git"
12
13SRCREV = "de6e599f067b25c46cc0c8f74a22cc3b8aafbae8"
14
15PV = "1.00.00.07"
16
17S = "${WORKDIR}/git"
18
19require recipes-ti/includes/ti-paths.inc
20
21PR = "r4"
22inherit update-alternatives
23
24DEPENDS = "ti-xdctools-native ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ipc-rtos ti-osal ti-cgt6x-native"
25
26export HWVERSION = "ES10"
27export BIOSTOOLSROOT = "${STAGING_DIR_TARGET}/usr/share/ti"
28
29export XDCVERSION = "ti-xdctools-tree"
30export BIOSVERSION = "ti-sysbios-tree"
31export IPCVERSION = "ti-ipc-tree"
32export CEVERSION = "ti-codec-engine-tree"
33export FCVERSION = "ti-framework-components-tree"
34export XDAISVERSION = "ti-xdais-tree"
35export OSALVERSION = "ti-osal-tree"
36
37export IPCSRC = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree"
38export C66XCGTOOLSPATH = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
39
40do_configure() {
41 cd ${S}
42 make unconfig
43 make vayu_config
44}
45
46do_compile() {
47 cd ${S}
48 make dspbin
49}
50
51TARGET = "dra7-dsp1-fw.xe66"
52
53do_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
58ALTERNATIVE:${PN} = "dra7-dsp1-fw.xe66"
59ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = "${base_libdir}/firmware/${TARGET}"
60ALTERNATIVE_TARGET[dra7-dsp1-fw.xe66] = "${base_libdir}/firmware/${TARGET}.${BPN}"
61ALTERNATIVE_PRIORITY = "10"
62
63INSANE_SKIP:${PN} = "arch"
64
65FILES:${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 @@
1DESCRIPTION = "Debug Sub-System (DebugSS) driver for Keystone and DRA7xx devices"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING.txt;md5=9d4316fe434ba450dca4da25348ca5a3"
4
5# This package builds a kernel module, use kernel PR as base and append a local
6MACHINE_KERNEL_PR:append = "d"
7PR = "${MACHINE_KERNEL_PR}"
8PV:append = "+git${SRCPV}"
9
10S = "${WORKDIR}/git/debugss_module/debugss-mod"
11
12inherit module
13
14PLATFORM = ""
15PLATFORM:dra7xx = "DRA7xx_PLATFORM"
16
17EXTRA_OEMAKE = "'PLATFORM=${PLATFORM}' KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}"
18
19COMPATIBLE_MACHINE = "dra7xx"
20PACKAGE_ARCH = "${MACHINE_ARCH}"
21
22include 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
2SRCREV = "816485e68430bbec643eac9498bfa5303eb2c2e1"
3PV = "1.4.0"
4INC_PR = "r2"
5
6SRC_URI = "git://git.ti.com/sdo-emu/dsptop.git;protocol=git;branch=${BRANCH}"
7
8BRANCH = "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 @@
1DESCRIPTION = "TI dsptop utility."
2LICENSE = "BSD"
3LIC_FILES_CHKSUM = "file://debian/copyright;md5=309825aa8f5edfcf2c44912ac094b979"
4
5DEPENDS = "libulm ncurses"
6
7PR = "${INC_PR}.2"
8
9S = "${WORKDIR}/git/dsptop"
10
11DEVICE = ""
12DEVICE:dra7xx = "DRA7xx"
13
14EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}""
15
16do_install() {
17 oe_runmake install DESTDIR=${D}
18}
19
20COMPATIBLE_MACHINE = "dra7xx"
21PACKAGE_ARCH = "${MACHINE_ARCH}"
22
23RDEPENDS:${PN} = "debugss-module-drv bash"
24
25include dsptop.inc
26
27PARALLEL_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 @@
1SUMMARY = "TI Usage & Load Monitor Implementation"
2LICENSE = "BSD"
3LIC_FILES_CHKSUM = "file://../debian/copyright;md5=309825aa8f5edfcf2c44912ac094b979"
4
5inherit features_check
6
7REQUIRED_MACHINE_FEATURES = "dsp"
8
9DEPENDS = "ti-cgt6x-native"
10PR = "${INC_PR}.0"
11
12S = "${WORKDIR}/git/dsptop/ulm"
13
14DEVICE=""
15DEVICE:dra7xx = "DRA7xx"
16
17EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX}"
18
19do_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
24do_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
34COMPATIBLE_MACHINE = "dra7xx"
35PACKAGE_ARCH = "${MACHINE_ARCH}"
36
37FILES:${PN}-dev += "\
38 ${datadir}/ti/ulm \
39"
40
41include dsptop.inc
42
43ALLOW_EMPTY:${PN} = "1"
44
45PARALLEL_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 @@
1DESCRIPTION = "Kernel drivers for the Vivante GC320 chipset found in TI SoCs"
2HOMEPAGE = "https://git.ti.com/graphics/ti-gc320-driver"
3LICENSE = "MIT | GPLv2"
4LIC_FILES_CHKSUM = "file://../LICENSE;md5=78d9818a51b9a8e9bb89dea418bac297"
5
6inherit module features_check
7
8REQUIRED_MACHINE_FEATURES = "gc320"
9
10MACHINE_KERNEL_PR:append = "i"
11PR = "${MACHINE_KERNEL_PR}"
12
13# Need to branch out with ${PV} var
14BRANCH = "ti-${PV}-k5.10"
15
16SRCREV = "e2a10f31e255a65ec30a6e10b890e77d7e9cb107"
17
18SRC_URI = "git://git.ti.com/graphics/ti-gc320-driver.git;protocol=git;branch=${BRANCH}"
19
20S = "${WORKDIR}/git/src"
21
22EXTRA_OEMAKE += "-f Kbuild AQROOT=${S} KERNEL_DIR=${STAGING_KERNEL_DIR} TOOLCHAIN_PATH=${TOOLCHAIN_PATH} CROSS_COMPILE=${TARGET_PREFIX} ARCH_TYPE=${TARGET_ARCH}"
23
24do_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
29COMPATIBLE_HOST ?= "null"
30COMPATIBLE_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 @@
1DESCRIPTION = "Goodix GT9271 config firmware"
2
3require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
4
5LICENSE = "BSD-3-Clause"
6LIC_FILES_CHKSUM = "file://LICENCE.Spectrum-GT9271;md5=2a6de6be7af1fe46370c684daf27c852"
7
8PV = "${GOODIX_FW_VERSION}"
9PR = "${INC_PR}.0"
10
11CLEANBROKEN = "1"
12
13COMPATIBLE_MACHINE = "dra7xx"
14
15PACKAGE_ARCH = "${MACHINE_ARCH}"
16
17S = "${WORKDIR}/git"
18ORIGIN = "DRA71x-RevA-GT9271_SpecDig_Config.bin"
19TARGET = "goodix_9271_cfg.bin"
20
21do_install() {
22 install -d ${D}${base_libdir}/firmware
23 install -m 0644 ${S}/ti-evm/${ORIGIN} ${D}${base_libdir}/firmware/${TARGET}
24}
25
26FILES:${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 @@
1SUMMARY = "Firmware for IPU to suppor Accelerated MM decode and encode"
2LICENSE = "TI-TSPA"
3
4LIC_FILES_CHKSUM = "file://Texas_Instruments_ipumm_Manifest.pdf;md5=5cc572579f07af266ab57fc17d762c7f"
5
6COMPATIBLE_MACHINE = "dra7xx"
7
8inherit features_check
9
10REQUIRED_MACHINE_FEATURES = "mmip"
11
12RDEPENDS:${PN} = "libdce"
13
14SRC_URI = "git://git.ti.com/ivimm/ipumm.git;protocol=git"
15
16SRCREV = "df4c50aecc9aad7ab3eb1ca9ebacfe473fcad7c5"
17
18S = "${WORKDIR}/git"
19
20PV = "3.00.15.00"
21PR = "r7"
22
23require recipes-ti/includes/ti-paths.inc
24
25inherit update-alternatives
26
27DEPENDS = "ti-xdctools-native ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-cgt-arm-native ti-ipc-rtos"
28
29export HWVERSION="ES10"
30export BIOSTOOLSROOT="${STAGING_DIR_TARGET}/usr/share/ti"
31
32export XDCVERSION="ti-xdctools-tree"
33export BIOSVERSION="ti-sysbios-tree"
34export IPCVERSION="ti-ipc-tree"
35export CEVERSION="ti-codec-engine-tree"
36export FCVERSION="ti-framework-components-tree"
37export XDAISVERSION="ti-xdais-tree"
38
39export TMS470CGTOOLPATH="${M4_TOOLCHAIN_INSTALL_DIR}"
40export IPCSRC="${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree"
41
42EXTRA_OEMAKE += "XDCDIST_TREE=${STAGING_DIR_NATIVE}/usr/share/ti/${XDCVERSION}"
43
44do_configure() {
45 oe_runmake unconfig
46 oe_runmake vayu_smp_config
47}
48
49do_compile() {
50 oe_runmake
51}
52
53TARGET = "dra7-ipu2-fw.xem4"
54TARGET_MAP = "platform/ti/dce/baseimage/package/cfg/out/ipu/release/ipu.xem4.map"
55
56do_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
62ALTERNATIVE:${PN} = "dra7-ipu2-fw.xem4"
63ALTERNATIVE_LINK_NAME[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}"
64ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}.${BPN}"
65ALTERNATIVE_PRIORITY = "20"
66
67FILES:${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 @@
1From 80d32fee3d768abbd77cce77ea9a7574651460a9 Mon Sep 17 00:00:00 2001
2From: Denys Dmytriyenko <denis@denix.org>
3Date: Wed, 7 Jul 2021 13:11:56 -0400
4Subject: [PATCH] compiler: support OpenEmbedded "nodistro" internal aarch64
5 toolchain
6
7Upstream-Status: Pending
8
9Signed-off-by: Denys Dmytriyenko <denis@denix.org>
10---
11 build/linux/config/compiler.mk | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/build/linux/config/compiler.mk b/build/linux/config/compiler.mk
15index 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--
282.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 @@
1DESCRIPTION = "Kernel drivers for the PowerVR Rogue GPU found in the TI SoCs"
2HOMEPAGE = "http://git.ti.com/graphics/ti-img-rogue-driver"
3LICENSE = "MIT | GPLv2"
4LIC_FILES_CHKSUM = "file://README;beginline=14;endline=19;md5=0403c7dea01a2b8232261e805325fac2"
5
6inherit module features_check
7
8REQUIRED_MACHINE_FEATURES = "gpu"
9
10MACHINE_KERNEL_PR:append = "b"
11PR = "${MACHINE_KERNEL_PR}"
12
13PACKAGE_ARCH = "${MACHINE_ARCH}"
14COMPATIBLE_MACHINE = "j7"
15
16DEPENDS = "virtual/kernel"
17
18PROVIDES = "virtual/gpudriver"
19
20BRANCH = "1.13-5776728/linux-k5.10"
21
22SRC_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
27S = "${WORKDIR}/git"
28
29SRCREV = "35a25875ae8738f82c7cabc6b077ef992b0cca84"
30
31PVR_SOC = "j721e_linux"
32PVR_BVNC = "22.104.208.318"
33PVR_BUILD = "release"
34PVR_WS = "wayland"
35
36EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}" RGX_BVNC=${PVR_BVNC} BUILD=${PVR_BUILD} PVR_BUILD_DIR=${PVR_SOC} WINDOW_SYSTEM=${PVR_WS}'
37
38do_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 @@
1DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the TI SoCs"
2HOMEPAGE = "https://git.ti.com/graphics/omap5-sgx-ddk-linux"
3LICENSE = "MIT | GPLv2"
4LIC_FILES_CHKSUM = "file://eurasia_km/README;beginline=13;endline=22;md5=74506d9b8e5edbce66c2747c50fcef12"
5
6inherit module features_check
7
8REQUIRED_MACHINE_FEATURES = "gpu"
9
10COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k3"
11
12MACHINE_KERNEL_PR:append = "x"
13PR = "${MACHINE_KERNEL_PR}"
14
15PACKAGE_ARCH = "${MACHINE_ARCH}"
16
17DEPENDS = "virtual/kernel"
18
19PROVIDES = "virtual/gpudriver"
20
21BRANCH = "ti-img-sgx/${PV}/k5.10"
22
23SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-linux.git;protocol=git;branch=${BRANCH}"
24
25S = "${WORKDIR}/git"
26
27SRCREV = "eda7780bfd5277e16913c9bc0b0e6892b4e79063"
28
29TARGET_PRODUCT:omap-a15 = "jacinto6evm"
30TARGET_PRODUCT:ti33x = "ti335x"
31TARGET_PRODUCT:ti43x = "ti437x"
32TARGET_PRODUCT:k3 = "ti654x"
33
34EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}" TARGET_PRODUCT=${TARGET_PRODUCT} WINDOW_SYSTEM=nulldrmws'
35
36do_compile:prepend() {
37 cd ${S}/eurasia_km/eurasiacon/build/linux2/omap_linux
38}
39
40do_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
44do_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 @@
1DESCRIPTION = "Programmable Real-time Unit Software Package"
2HOMEPAGE = "http://processors.wiki.ti.com/index.php/PRU-ICSS"
3LICENSE = "BSD-3-Clause & PD"
4
5LIC_FILES_CHKSUM = "file://PRU-Package-v6.1-Manifest.html;md5=1e37797ebe9254922f4278bb6047211c"
6
7inherit update-alternatives
8
9BRANCH = "master"
10SRC_URI = "git://git.ti.com/pru-software-support-package/pru-software-support-package.git;protocol=git;branch=${BRANCH}"
11SRCREV = "8eee431384b6a1a9c96ae91a8e99485176b4d2b3"
12
13PV = "6.0.1"
14PR = "r0"
15
16require recipes-ti/includes/ti-paths.inc
17
18COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k3"
19PACKAGE_ARCH = "${MACHINE_ARCH}"
20
21PACKAGES:prepend = " \
22 ${PN}-halt \
23 ${PN}-rpmsg-echo \
24"
25
26RDEPENDS:${PN}:append = " \
27 ${PN}-halt \
28 ${PN}-rpmsg-echo \
29"
30
31DEPENDS = "ti-cgt-pru-native"
32
33S = "${WORKDIR}/git"
34
35export PRU_CGT = "${TI_CGT_PRU_INSTALL_DIR}"
36export PRU_SSP = "${S}"
37
38SUBDIRS = "examples pru_cape/pru_fw lib/src labs"
39
40PLATFORM:ti33x = "am335x"
41PLATFORM:ti43x = "am437x"
42PLATFORM:omap-a15 = "am572x"
43PLATFORM:am64xx = "am64x"
44PLATFORM:am65xx = "am65x"
45PLATFORM:j7 = "j721e"
46
47do_compile() {
48 for dir in ${SUBDIRS}
49 do
50 make -C ${S}/$dir
51 done
52}
53
54do_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
63FILES:${PN}-staticdev = "${libdir}"
64FILES:${PN}-dev = "${includedir}"
65
66do_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
76do_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
89do_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
102do_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
124do_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
147do_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
171FILES:${PN}-halt = "${base_libdir}/firmware/pru/PRU_Halt* ${base_libdir}/firmware/pru/RTU_Halt* ${base_libdir}/firmware/pru/TX_PRU_Halt*"
172FILES:${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
175PRU_ICSS_ALTERNATIVES:ti33x = "am335x-pru0-fw am335x-pru1-fw"
176PRU_ICSS_ALTERNATIVES:ti43x = "am437x-pru0_0-fw am437x-pru0_1-fw am437x-pru1_0-fw am437x-pru1_1-fw"
177PRU_ICSS_ALTERNATIVES:omap-a15 = "am57xx-pru1_0-fw am57xx-pru1_1-fw am57xx-pru2_0-fw am57xx-pru2_1-fw"
178PRU_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"
179PRU_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"
180PRU_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
183ALTERNATIVE_LINK_NAME[am335x-pru0-fw] = "${base_libdir}/firmware/am335x-pru0-fw"
184ALTERNATIVE_LINK_NAME[am335x-pru1-fw] = "${base_libdir}/firmware/am335x-pru1-fw"
185
186ALTERNATIVE_LINK_NAME[am437x-pru0_0-fw] = "${base_libdir}/firmware/am437x-pru0_0-fw"
187ALTERNATIVE_LINK_NAME[am437x-pru0_1-fw] = "${base_libdir}/firmware/am437x-pru0_1-fw"
188ALTERNATIVE_LINK_NAME[am437x-pru1_0-fw] = "${base_libdir}/firmware/am437x-pru1_0-fw"
189ALTERNATIVE_LINK_NAME[am437x-pru1_1-fw] = "${base_libdir}/firmware/am437x-pru1_1-fw"
190
191ALTERNATIVE_LINK_NAME[am57xx-pru1_0-fw] = "${base_libdir}/firmware/am57xx-pru1_0-fw"
192ALTERNATIVE_LINK_NAME[am57xx-pru1_1-fw] = "${base_libdir}/firmware/am57xx-pru1_1-fw"
193ALTERNATIVE_LINK_NAME[am57xx-pru2_0-fw] = "${base_libdir}/firmware/am57xx-pru2_0-fw"
194ALTERNATIVE_LINK_NAME[am57xx-pru2_1-fw] = "${base_libdir}/firmware/am57xx-pru2_1-fw"
195
196ALTERNATIVE_LINK_NAME[am64x-pru0_0-fw] = "${base_libdir}/firmware/am64x-pru0_0-fw"
197ALTERNATIVE_LINK_NAME[am64x-pru0_1-fw] = "${base_libdir}/firmware/am64x-pru0_1-fw"
198ALTERNATIVE_LINK_NAME[am64x-pru1_0-fw] = "${base_libdir}/firmware/am64x-pru1_0-fw"
199ALTERNATIVE_LINK_NAME[am64x-pru1_1-fw] = "${base_libdir}/firmware/am64x-pru1_1-fw"
200ALTERNATIVE_LINK_NAME[am64x-rtu0_0-fw] = "${base_libdir}/firmware/am64x-rtu0_0-fw"
201ALTERNATIVE_LINK_NAME[am64x-rtu0_1-fw] = "${base_libdir}/firmware/am64x-rtu0_1-fw"
202ALTERNATIVE_LINK_NAME[am64x-rtu1_0-fw] = "${base_libdir}/firmware/am64x-rtu1_0-fw"
203ALTERNATIVE_LINK_NAME[am64x-rtu1_1-fw] = "${base_libdir}/firmware/am64x-rtu1_1-fw"
204ALTERNATIVE_LINK_NAME[am64x-txpru0_0-fw] = "${base_libdir}/firmware/am64x-txpru0_0-fw"
205ALTERNATIVE_LINK_NAME[am64x-txpru0_1-fw] = "${base_libdir}/firmware/am64x-txpru0_1-fw"
206ALTERNATIVE_LINK_NAME[am64x-txpru1_0-fw] = "${base_libdir}/firmware/am64x-txpru1_0-fw"
207ALTERNATIVE_LINK_NAME[am64x-txpru1_1-fw] = "${base_libdir}/firmware/am64x-txpru1_1-fw"
208
209ALTERNATIVE_LINK_NAME[am65x-pru0_0-fw] = "${base_libdir}/firmware/am65x-pru0_0-fw"
210ALTERNATIVE_LINK_NAME[am65x-pru0_1-fw] = "${base_libdir}/firmware/am65x-pru0_1-fw"
211ALTERNATIVE_LINK_NAME[am65x-pru1_0-fw] = "${base_libdir}/firmware/am65x-pru1_0-fw"
212ALTERNATIVE_LINK_NAME[am65x-pru1_1-fw] = "${base_libdir}/firmware/am65x-pru1_1-fw"
213ALTERNATIVE_LINK_NAME[am65x-pru2_0-fw] = "${base_libdir}/firmware/am65x-pru2_0-fw"
214ALTERNATIVE_LINK_NAME[am65x-pru2_1-fw] = "${base_libdir}/firmware/am65x-pru2_1-fw"
215ALTERNATIVE_LINK_NAME[am65x-rtu0_0-fw] = "${base_libdir}/firmware/am65x-rtu0_0-fw"
216ALTERNATIVE_LINK_NAME[am65x-rtu0_1-fw] = "${base_libdir}/firmware/am65x-rtu0_1-fw"
217ALTERNATIVE_LINK_NAME[am65x-rtu1_0-fw] = "${base_libdir}/firmware/am65x-rtu1_0-fw"
218ALTERNATIVE_LINK_NAME[am65x-rtu1_1-fw] = "${base_libdir}/firmware/am65x-rtu1_1-fw"
219ALTERNATIVE_LINK_NAME[am65x-rtu2_0-fw] = "${base_libdir}/firmware/am65x-rtu2_0-fw"
220ALTERNATIVE_LINK_NAME[am65x-rtu2_1-fw] = "${base_libdir}/firmware/am65x-rtu2_1-fw"
221ALTERNATIVE_LINK_NAME[am65x-txpru0_0-fw] = "${base_libdir}/firmware/am65x-txpru0_0-fw"
222ALTERNATIVE_LINK_NAME[am65x-txpru0_1-fw] = "${base_libdir}/firmware/am65x-txpru0_1-fw"
223ALTERNATIVE_LINK_NAME[am65x-txpru1_0-fw] = "${base_libdir}/firmware/am65x-txpru1_0-fw"
224ALTERNATIVE_LINK_NAME[am65x-txpru1_1-fw] = "${base_libdir}/firmware/am65x-txpru1_1-fw"
225ALTERNATIVE_LINK_NAME[am65x-txpru2_0-fw] = "${base_libdir}/firmware/am65x-txpru2_0-fw"
226ALTERNATIVE_LINK_NAME[am65x-txpru2_1-fw] = "${base_libdir}/firmware/am65x-txpru2_1-fw"
227
228ALTERNATIVE_LINK_NAME[j7-pru0_0-fw] = "${base_libdir}/firmware/j7-pru0_0-fw"
229ALTERNATIVE_LINK_NAME[j7-pru0_1-fw] = "${base_libdir}/firmware/j7-pru0_1-fw"
230ALTERNATIVE_LINK_NAME[j7-pru1_0-fw] = "${base_libdir}/firmware/j7-pru1_0-fw"
231ALTERNATIVE_LINK_NAME[j7-pru1_1-fw] = "${base_libdir}/firmware/j7-pru1_1-fw"
232ALTERNATIVE_LINK_NAME[j7-rtu0_0-fw] = "${base_libdir}/firmware/j7-rtu0_0-fw"
233ALTERNATIVE_LINK_NAME[j7-rtu0_1-fw] = "${base_libdir}/firmware/j7-rtu0_1-fw"
234ALTERNATIVE_LINK_NAME[j7-rtu1_0-fw] = "${base_libdir}/firmware/j7-rtu1_0-fw"
235ALTERNATIVE_LINK_NAME[j7-rtu1_1-fw] = "${base_libdir}/firmware/j7-rtu1_1-fw"
236ALTERNATIVE_LINK_NAME[j7-txpru0_0-fw] = "${base_libdir}/firmware/j7-txpru0_0-fw"
237ALTERNATIVE_LINK_NAME[j7-txpru0_1-fw] = "${base_libdir}/firmware/j7-txpru0_1-fw"
238ALTERNATIVE_LINK_NAME[j7-txpru1_0-fw] = "${base_libdir}/firmware/j7-txpru1_0-fw"
239ALTERNATIVE_LINK_NAME[j7-txpru1_1-fw] = "${base_libdir}/firmware/j7-txpru1_1-fw"
240
241# Create the pru-icss-halt firmware alternatives
242ALTERNATIVE:pru-icss-halt = "${PRU_ICSS_ALTERNATIVES}"
243
244# Only Halt firmware images are supported for the Tx_PRU cores
245ALTERNATIVE:pru-icss-halt:append:am64xx = " am64x-txpru0_0-fw am64x-txpru0_1-fw am64x-txpru1_0-fw am64x-txpru1_1-fw"
246ALTERNATIVE: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"
247ALTERNATIVE:pru-icss-halt:append:j7 = " j7-txpru0_0-fw j7-txpru0_1-fw j7-txpru1_0-fw j7-txpru1_1-fw"
248
249ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
250ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
251
252ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
253ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
254ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
255ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
256
257ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
258ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
259ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
260ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
261
262ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
263ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
264ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
265ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
266ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
267ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
268ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
269ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
270ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
271ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
272ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
273ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
274
275ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
276ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
277ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
278ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
279ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
280ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
281ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
282ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
283ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
284ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
285ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu2_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
286ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu2_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
287ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
288ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
289ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
290ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
291ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru2_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
292ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru2_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
293
294ALTERNATIVE_TARGET_pru-icss-halt[j7-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
295ALTERNATIVE_TARGET_pru-icss-halt[j7-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
296ALTERNATIVE_TARGET_pru-icss-halt[j7-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
297ALTERNATIVE_TARGET_pru-icss-halt[j7-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
298ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
299ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
300ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
301ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
302ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
303ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
304ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
305ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
306
307
308ALTERNATIVE_PRIORITY_pru-icss-halt = "50"
309
310# Create the pru-icss-rpmsg-echo firmware alternatives
311ALTERNATIVE:pru-icss-rpmsg-echo = "${PRU_ICSS_ALTERNATIVES}"
312
313ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am335x-pru0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0.out"
314ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am335x-pru1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1.out"
315
316ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out"
317ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out"
318ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out"
319ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out"
320
321ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out"
322ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out"
323ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_0.out"
324ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_1.out"
325
326ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out"
327ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out"
328ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out"
329ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out"
330ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out"
331ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out"
332ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out"
333ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out"
334
335ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out"
336ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out"
337ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out"
338ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out"
339ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_0.out"
340ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_1.out"
341ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out"
342ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out"
343ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out"
344ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out"
345ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu2_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt2_0.out"
346ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu2_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt2_1.out"
347
348ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out"
349ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out"
350ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out"
351ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out"
352ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out"
353ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out"
354ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out"
355ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out"
356
357ALTERNATIVE_PRIORITY_pru-icss-rpmsg-echo = "100"
358
359ALLOW_EMPTY:${PN} = "1"
360
361# This installs PRU firmware, so skip "arch" QA check
362INSANE_SKIP:${PN}-halt = "arch"
363INSANE_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 @@
1DESCRIPTION = "Builds eDMA module used by eDMA libraries for PRU sw example applications"
2HOMEPAGE = "https://gforge.ti.com/gf/project/pru_sw/"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://edmautils.c;beginline=1;endline=23;md5=312e9cb8a37a044c617c98a9e980ad1b"
5
6COMPATIBLE_MACHINE = "omapl138"
7
8INHIBIT_PACKAGE_STRIP = "1"
9
10MACHINE_KERNEL_PR:append = "b"
11PR = "${MACHINE_KERNEL_PR}"
12PV:append = "+svn${SRCPV}"
13
14SRC_URI = "svn://gforge.ti.com/svn/pru_sw/;module=trunk;protocol=https;user=anonymous;pswd=''"
15
16SRCREV = "33"
17
18S = "${WORKDIR}/trunk/peripheral_lib/edma_driver/module"
19
20inherit module
21
22EXTRA_OEMAKE += "KERNEL_DIR='${STAGING_KERNEL_DIR}'"
23
24do_compile:prepend () {
25 export CCTOOL_PREFIX="${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX}"
26}
27
28do_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 @@
1SUMMARY = "PRU Ethernet firmware for AM65xx SR2.0"
2
3require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
4
5PV = "${PRUETH_FW_AM65X_SR2_VERSION}"
6PR = "${INC_PR}.0"
7
8CLEANBROKEN = "1"
9
10COMPATIBLE_MACHINE = "am65xx-evm|am64xx-evm"
11
12PACKAGE_ARCH = "${MACHINE_ARCH}"
13
14S = "${WORKDIR}/git"
15
16TARGET = " \
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
25do_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
32FILES:${PN} = "${base_libdir}/firmware"
33
34INSANE_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 @@
1SUMMARY = "PRU Ethernet firmware for AM65x SR1.0"
2
3require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
4
5PV = "${PRUETH_FW_AM65X_VERSION}"
6PR = "${INC_PR}.0"
7
8CLEANBROKEN = "1"
9
10COMPATIBLE_MACHINE = "am65xx"
11
12PACKAGE_ARCH = "${MACHINE_ARCH}"
13
14S = "${WORKDIR}/git"
15
16TARGET = " \
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
23do_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
30FILES:${PN} = "${base_libdir}/firmware"
31
32INSANE_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 @@
1SUMMARY = "PRU Ethernet firmware for AM57xx, AM437x and AM335x"
2
3require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
4
5PR = "${INC_PR}.0"
6
7CLEANBROKEN = "1"
8
9COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm"
10
11PACKAGE_ARCH = "${MACHINE_ARCH}"
12
13S = "${WORKDIR}/git"
14
15TARGET = ""
16TARGET:ti33x = "am335x-pru0-prueth-fw.elf am335x-pru1-prueth-fw.elf"
17TARGET:ti43x = "am437x-pru0-prueth-fw.elf am437x-pru1-prueth-fw.elf"
18TARGET:am57xx-evm = "am57xx-pru0-prueth-fw.elf am57xx-pru1-prueth-fw.elf"
19TARGET:am57xx-hs-evm = "am57xx-pru0-prueth-fw.elf am57xx-pru1-prueth-fw.elf"
20
21do_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
29FILES:${PN} = "${base_libdir}/firmware"
30
31INSANE_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 @@
1SUMMARY = "PRU HSR firmware for AM335x/AM437x/AM57xx"
2
3require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
4
5PE = "1"
6PR = "${INC_PR}.0"
7
8CLEANBROKEN = "1"
9
10COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm"
11
12PACKAGE_ARCH = "${MACHINE_ARCH}"
13
14S = "${WORKDIR}/git"
15
16TARGET = ""
17TARGET:ti33x = "am335x-pru0-pruhsr-fw.elf am335x-pru1-pruhsr-fw.elf"
18TARGET:ti43x = "am437x-pru0-pruhsr-fw.elf am437x-pru1-pruhsr-fw.elf"
19TARGET:am57xx-evm = "am57xx-pru0-pruhsr-fw.elf am57xx-pru1-pruhsr-fw.elf"
20TARGET:am57xx-hs-evm = "am57xx-pru0-pruhsr-fw.elf am57xx-pru1-pruhsr-fw.elf"
21
22do_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
29FILES:${PN} = "${base_libdir}/firmware"
30
31INSANE_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 @@
1SUMMARY = "PRU PRP firmware for AM335x/AM437x/AM57xx"
2
3require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
4
5PE = "1"
6PR = "${INC_PR}.0"
7
8CLEANBROKEN = "1"
9
10COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm"
11
12PACKAGE_ARCH = "${MACHINE_ARCH}"
13
14S = "${WORKDIR}/git"
15
16TARGET = ""
17TARGET:ti33x = "am335x-pru0-pruprp-fw.elf am335x-pru1-pruprp-fw.elf"
18TARGET:ti43x = "am437x-pru0-pruprp-fw.elf am437x-pru1-pruprp-fw.elf"
19TARGET:am57xx-evm = "am57xx-pru0-pruprp-fw.elf am57xx-pru1-pruprp-fw.elf"
20TARGET:am57xx-hs-evm = "am57xx-pru0-pruprp-fw.elf am57xx-pru1-pruprp-fw.elf"
21
22
23do_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
30FILES:${PN} = "${base_libdir}/firmware"
31
32INSANE_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 @@
1SUMMARY = "PRU Ethernet Switch firmware for AM65xx SR2.0"
2
3require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
4
5PV = "${PRUETH_FW_AM65X_SR2_VERSION}"
6PR = "${INC_PR}.0"
7
8CLEANBROKEN = "1"
9
10COMPATIBLE_MACHINE = "am65xx-evm"
11
12PACKAGE_ARCH = "${MACHINE_ARCH}"
13
14S = "${WORKDIR}/git"
15
16TARGET = " \
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
25do_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
32FILES:${PN} = "${base_libdir}/firmware"
33
34INSANE_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 @@
1SUMMARY = "PRU Switch firmware for AM57xx, AM437x and AM335x"
2
3require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
4
5PR = "${INC_PR}.0"
6
7CLEANBROKEN = "1"
8
9COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm"
10
11PACKAGE_ARCH = "${MACHINE_ARCH}"
12
13S = "${WORKDIR}/git"
14
15TARGET = ""
16TARGET:ti33x = "am335x-pru0-prusw-fw.elf am335x-pru1-prusw-fw.elf"
17TARGET:ti43x = "am437x-pru0-prusw-fw.elf am437x-pru1-prusw-fw.elf"
18TARGET:am57xx-evm = "am57xx-pru0-prusw-fw.elf am57xx-pru1-prusw-fw.elf"
19TARGET:am57xx-hs-evm = "am57xx-pru0-prusw-fw.elf am57xx-pru1-prusw-fw.elf"
20
21do_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
29FILES:${PN} = "${base_libdir}/firmware"
30
31INSANE_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 @@
1SUMMARY = "Test applications for TI DEC (v4l2 decoder for IMG D5520)"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://main.c;beginline=1;endline=14;md5=f17e17d664f72942124e4fcf06c178ee"
4
5DEPENDS = "libdrm ffmpeg"
6
7inherit autotools pkgconfig
8
9COMPATIBLE_MACHINE = "j7"
10
11PR = "r1"
12SRCREV = "94a80c8c090dbfdc7fafd4e5bb78c2091e715af2"
13
14EXTRA_OEMAKE = "CC="${CC}""
15TARGET_CC_ARCH += "${LDFLAGS}"
16
17BRANCH = "master"
18SRC_URI = "git://git.ti.com/jacinto7_multimedia/viddec-test-app.git;protocol=git;branch=${BRANCH}"
19
20S = "${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 @@
1SUMMARY = "Test applications for TI ENC (v4l2 encoder for IMG VXE384)"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://main.c;beginline=1;endline=14;md5=3545dd5bdf513840937d38c10b866605"
4
5DEPENDS = "libdrm"
6
7inherit autotools pkgconfig
8
9COMPATIBLE_MACHINE = "j7"
10
11PR = "r0"
12SRCREV = "a5e7d820bea1be24f25a8369d4d4521c784f869a"
13
14EXTRA_OEMAKE = "CC="${CC}""
15TARGET_CC_ARCH += "${LDFLAGS}"
16
17BRANCH = "master"
18SRC_URI = "git://git.ti.com/jacinto7_multimedia/videnc-test-app.git;protocol=git;branch=${BRANCH}"
19
20S = "${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 @@
1SUMMARY = "Video Decoding Firmware"
2LICENSE = "TI-IMG"
3LIC_FILES_CHKSUM = "file://LICENSE.ti-img;md5=84ca7278930db001870686ad997d6bb1"
4
5require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
6
7PV = "${IMG_DEC_FW_VERSION}"
8PR = "${INC_PR}.0"
9
10CLEANBROKEN = "1"
11
12COMPATIBLE_MACHINE = "j7"
13
14PACKAGE_ARCH = "${MACHINE_ARCH}"
15
16S = "${WORKDIR}/git"
17TARGET = "pvdec_full_bin.fw"
18
19do_install() {
20 install -d ${D}${base_libdir}/firmware
21 install -m 0644 ${S}/ti-img/${TARGET} ${D}${base_libdir}/firmware/${TARGET}
22}
23
24FILES:${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 @@
1SUMMARY = "TI SCI firmware (SYSFW)"
2
3LICENSE = "TI-TFL"
4LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=b5aebf0668bdf95621259288c4a46d76"
5
6PV = "2021.09a"
7INC_PR = "r1"
8
9# Firmware versions
10CORESDK_RTOS_VERSION = "08.01.00.02"
11SERDES_FW_VERSION = "3.3.0.2c"
12NETCP_SA_FW_VERSION = "1.0.0"
13NETCP_PA_FW_VERSION = "3.0.2.3"
14QMSS_PDSP_FW_VERSION = "1.0.0.9"
15PRUETH_FW_AM65X_VERSION = "08.00.00.20"
16PRUETH_FW_AM65X_SR2_VERSION = "02.02.09.07"
17GOODIX_FW_VERSION = "1.0.0.0"
18CADENCE_MHDP_FW_VERSION = "1.2.17"
19IMG_DEC_FW_VERSION = "1.0"
20
21TI_LINUX_FW_SRCREV ?= "c96a734a059889e571dcf30c0638157c690a6e6e"
22SRCREV = "${TI_LINUX_FW_SRCREV}"
23
24BRANCH ?= "ti-linux-firmware"
25
26K3_IMAGE_GEN_SRCREV ?= "489c767a153ff26e9230746e04dd4b1ad0809901"
27SRCREV_imggen = "${K3_IMAGE_GEN_SRCREV}"
28SRCREV_FORMAT = "imggen"
29
30SRC_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
35S = "${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 @@
1From 2efc79702a47f9cbbeecbb2f604577f1ec8c95ba Mon Sep 17 00:00:00 2001
2From: Yogesh Siraswar <yogeshs@ti.com>
3Date: Wed, 8 Dec 2021 17:50:19 -0600
4Subject: [KIG PATCH] Makefile: Skip signing of binaries for combined boot hs
5 images
6
7Combined sysfw binaries used in tiboot.bin do not require signed images.
8This fixes issues with AM64x HS and J7200 HS boot images
9
10Upstream-Status: Submitted
11Signed-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
18diff --git a/Makefile b/Makefile
19index 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
38diff --git a/soc/am64x/Makefile b/soc/am64x/Makefile
39index 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
50diff --git a/soc/j7200/Makefile b/soc/j7200/Makefile
51index 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--
632.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
5require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
6
7SUMMARY += "- sources"
8
9COMPATIBLE_MACHINE = "k3"
10
11EXCLUDE_FROM_WORLD = "1"
12INHIBIT_DEFAULT_DEPS = "1"
13DEPENDS = ""
14
15PACKAGES = "${PN}"
16PACKAGE_ARCH = "${MACHINE_ARCH}"
17
18do_configure[noexec] = "1"
19do_compile[noexec] = "1"
20
21SRCIPK_SRC_DIR = "${WORKDIR}/imggen"
22SRCIPK_INSTALL_DIR = "board-support/k3-image-gen-${PV}"
23FILES:${PN} = "${SRCIPK_INSTALL_DIR}"
24
25do_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
45INSANE_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 @@
1require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
2
3DEPENDS = "openssl-native u-boot-mkimage-native dtc-native"
4DEPENDS:append:j7200-evm-k3r5 = " virtual/bootloader"
5DEPENDS:append:j7200-hs-evm-k3r5 = " virtual/bootloader"
6DEPENDS:append:am64xx-evm-k3r5 = " virtual/bootloader"
7DEPENDS:append:am64xx-hs-evm-k3r5 = " virtual/bootloader"
8
9CLEANBROKEN = "1"
10PR = "${INC_PR}.1"
11
12# Loaded by R5F core
13COMPATIBLE_MACHINE = "k3r5"
14COMPATIBLE_MACHINE:aarch64 = "null"
15
16PACKAGE_ARCH = "${MACHINE_ARCH}"
17
18TI_SECURE_DEV_PKG ?= ""
19export TI_SECURE_DEV_PKG
20
21SYSFW_SOC ?= "unknown"
22SYSFW_CONFIG ?= "unknown"
23
24SYSFW_PREFIX = "ti-sci-firmware"
25SYSFW_PREFIX:j7-evm-k3r5 = "ti-fs-firmware"
26SYSFW_PREFIX:j7200-evm-k3r5 = "ti-fs-firmware"
27SYSFW_PREFIX:j7-hs-evm-k3r5 = "ti-fs-firmware"
28SYSFW_PREFIX:j7-hs-evm-k3r5-sr1-1 = "ti-fs-firmware"
29SYSFW_PREFIX:j7200-hs-evm-k3r5 = "ti-fs-firmware"
30
31SYSFW_SUFFIX ?= "unknown"
32
33SYSFW_BASE = "${SYSFW_PREFIX}-${SYSFW_SOC}-${SYSFW_SUFFIX}"
34SYSFW_BASE:append = "${@['','*']['${SYSFW_SUFFIX}' == 'hs']}"
35
36SYSFW_TISCI = "${S}/ti-sysfw/${SYSFW_BASE}.bin"
37
38SYSFW_BINARY = "sysfw-${SYSFW_SOC}-${SYSFW_CONFIG}.itb"
39SYSFW_VBINARY = "sysfw-${PV}-${SYSFW_SOC}-${SYSFW_CONFIG}.itb"
40SYSFW_IMAGE = "sysfw-${SYSFW_SOC}-${SYSFW_CONFIG}.itb"
41SYSFW_SYMLINK ?= "sysfw.itb"
42
43CFLAGS[unexport] = "1"
44LDFLAGS[unexport] = "1"
45AS[unexport] = "1"
46LD[unexport] = "1"
47
48do_configure[noexec] = "1"
49
50SRC_URI:append:j7200-hs-evm-k3r5 = " \
51 file://0001-Makefile-Skip-signing-of-binaries-for-combined-boot-.patch;patchdir=../imggen"
52SRC_URI:append:am64xx-hs-evm-k3r5 = " \
53 file://0001-Makefile-Skip-signing-of-binaries-for-combined-boot-.patch;patchdir=../imggen"
54
55EXTRA_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"
59EXTRA_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"
62EXTRA_OEMAKE:append = "${@['',' ${EXTRA_OEMAKE_HS}']['${SYSFW_SUFFIX}' == 'hs']}"
63
64EXTRA_OEMAKE:append:j7200-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
65EXTRA_OEMAKE:append:j7200-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
66EXTRA_OEMAKE:append:am64xx-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
67EXTRA_OEMAKE:append:am64xx-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
68
69do_compile() {
70 cd ${WORKDIR}/imggen/
71 oe_runmake
72}
73
74do_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
83FILES:${PN} = "/boot"
84
85inherit deploy
86
87do_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
100do_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
107do_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
115do_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
122do_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
130do_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
137do_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
145do_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
152do_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
160addtask 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 @@
1PV:k3 = "2.5"
2LIC_FILES_CHKSUM:k3 = "file://license.rst;md5=1dd070c98a281d18d9eefd938729b031"
3BRANCH:k3 = "ti-atf"
4SRC_URI:k3 = "git://git.ti.com/atf/arm-trusted-firmware.git;branch=${BRANCH};name=tfa"
5SRCREV_tfa:k3 = "0693f356eb2a25adf8758d98058120bed082cc73"
6COMPATIBLE_MACHINE:k3 = "k3"
7TFA_BUILD_TARGET:k3 = "all"
8TFA_INSTALL_TARGET:k3 = "bl31"
9TFA_SPD:k3 = "opteed"
10
11do_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
19do_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
27do_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
35do_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 @@
1require u-boot-ti.inc
2
3LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"
4
5PR = "r0"
6
7PV = "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
16UBOOT_GIT_URI = "git://source.denx.de/u-boot/u-boot.git"
17UBOOT_GIT_PROTOCOL = "https"
18SRCREV = "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 @@
1require u-boot-ti.inc
2
3PR = "r36"
4
5BRANCH = "ti-u-boot-2020.01"
6
7SRCREV = "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 @@
1require u-boot-ti.inc
2
3LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"
4
5PR = "r16"
6
7BRANCH = "ti-u-boot-2021.01"
8
9SRCREV = "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
3def 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
11UBOOT_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}"
12
13UBOOT_SUFFIX ?= "img"
14SPL_BINARY ?= "MLO"
15
16require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot-common.inc
17require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc
18
19FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot:"
20
21SUMMARY = "u-boot bootloader for TI devices"
22
23LICENSE = "GPLv2+"
24LIC_FILES_CHKSUM = "file://Licenses/README;md5=30503fd321432fc713238f582193b78e"
25
26BRANCH ?= "master"
27UBOOT_GIT_URI = "git://git.ti.com/ti-u-boot/ti-u-boot.git"
28UBOOT_GIT_PROTOCOL = "git"
29SRC_URI = "${UBOOT_GIT_URI};protocol=${UBOOT_GIT_PROTOCOL};branch=${BRANCH}"
30
31PV:append = "+git${SRCPV}"
32
33# u-boot needs devtree compiler to parse dts files
34DEPENDS += "dtc-native bc-native lzop-native flex-native bison-native"
35
36DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
37
38PACKAGECONFIG[atf] = "ATF=${STAGING_DIR_HOST}/firmware/bl31.bin,,trusted-firmware-a"
39PACKAGECONFIG[optee] = "TEE=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/bl32.bin,,optee-os"
40PACKAGECONFIG[dm] = "DM=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/pdk-ipc/${DM_FIRMWARE},,ti-rtos-firmware"
41
42PACKAGECONFIG:append:aarch64 = " atf optee"
43PACKAGECONFIG:append:j7 = " dm"
44
45COMPATIBLE_MACHINE = "(ti-soc)"
46
47EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}"
48
49PROVIDES += "u-boot"
50PKG:${PN} = "u-boot"
51PKG:${PN}-dev = "u-boot-dev"
52PKG:${PN}-dbg = "u-boot-dbg"
53
54S = "${WORKDIR}/git"
55
56# Support for secure devices - detailed info is in doc/README.ti-secure
57TI_SECURE_DEV_PKG ?= ""
58export TI_SECURE_DEV_PKG
59
60SYSROOT_DIRS += "/boot"
61
62# SPL (Second Program Loader) to be loaded over UART
63SPL_UART_BINARY = "u-boot-spl.bin"
64SPL_UART_BINARY:k3r5 = ""
65SPL_UART_BINARY:lego-ev3 = ""
66SPL_UART_BINARY:j7200-evm-k3r5 = "u-boot-spl.bin"
67SPL_UART_BINARY:j7200-hs-evm-k3r5 = "u-boot-spl.bin"
68SPL_UART_BINARY:am64xx-evm-k3r5 = "u-boot-spl.bin"
69SPL_UART_BINARY:am64xx-hs-evm-k3r5 = "u-boot-spl.bin"
70
71SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
72SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
73
74# SPI NOR Flash binaries
75UBOOT_SPI_SPL_BINARY = "u-boot-spl.bin"
76UBOOT_SPI_BINARY = "u-boot.img"
77UBOOT_SPI_GPH_BINARY = "u-boot-spi.gph"
78
79# SPI NOR Flash deployed images
80UBOOT_SPI_SPL_IMAGE = "u-boot-spl-${MACHINE}-${PV}-${PR}.bin"
81UBOOT_SPI_SPL_SYMLINK = "u-boot-spl-${MACHINE}.bin"
82UBOOT_SPI_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.img"
83UBOOT_SPI_SYMLINK = "u-boot-${MACHINE}.img"
84UBOOT_SPI_GPH_IMAGE = "u-boot-spi-${MACHINE}-${PV}-${PR}.gph"
85UBOOT_SPI_GPH_SYMLINK = "u-boot-spi-${MACHINE}.gph"
86
87# HS XLD
88UBOOT_HS_XLD_BINARY = "u-boot-spl_HS_X-LOADER"
89UBOOT_HS_XLD_IMAGE = "u-boot-spl_HS_X-LOADER-${MACHINE}-${PV}-${PR}"
90UBOOT_HS_XLD_SYMLINK = "u-boot-spl_HS_X-LOADER-${MACHINE}"
91
92# HS MLO
93UBOOT_HS_MLO_BINARY = "u-boot_HS_MLO"
94UBOOT_HS_MLO_IMAGE = "u-boot_HS_MLO-${MACHINE}-${PV}-${PR}"
95UBOOT_HS_MLO_SYMLINK = "u-boot_HS_MLO-${MACHINE}"
96
97# HS ISSW
98UBOOT_HS_ISSW_BINARY = "u-boot-spl_HS_ISSW"
99UBOOT_HS_ISSW_IMAGE = "u-boot-spl_HS_ISSW-${MACHINE}-${PV}-${PR}"
100UBOOT_HS_ISSW_SYMLINK = "u-boot-spl_HS_ISSW-${MACHINE}"
101
102# HS 2ND
103UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND"
104UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
105UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
106
107do_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
170do_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
270do_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
275do_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
280do_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
285do_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
290TOOLCHAIN = "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 @@
1DESCRIPTION = "Test code for user space IO (UIO) driver"
2
3include uio-module-drv.inc
4
5PR = "r1"
6
7COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x"
8PACKAGE_ARCH = "${MACHINE_ARCH}"
9
10DEVICE_NAME:omap-a15 = "am57xx"
11DEVICE_NAME:ti33x = "am33xx"
12DEVICE_NAME:ti43x = "am43xx"
13RDEPENDS:${PN} = "uio-module-drv"
14
15do_compile() {
16 oe_runmake -C ${S} test "DEVICE=${DEVICE_NAME}"
17}
18
19do_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
25do_install:append:omap-a15 () {
26 install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/.
27}
28
29do_install:append:ti33x () {
30 install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/.
31}
32
33do_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 @@
1LICENSE = "BSD"
2LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2b7c96eb2aed7b0f6f922214dbde9016"
3
4BRANCH = "master"
5# This corresponds to version 02.02.01.00
6UIO_MODULE_DRV_SRCREV = "bda9260f2220840a60ec0fbc8011cbadf3cf1b91"
7
8PV = "2.2.1.0+git${SRCPV}"
9
10UIO_MODULE_DRV_GIT_URI = "git://git.ti.com/keystone-linux/uio-module-drv.git"
11UIO_MODULE_DRV_GIT_PROTOCOL = "git"
12SRC_URI = "${UIO_MODULE_DRV_GIT_URI};protocol=${UIO_MODULE_DRV_GIT_PROTOCOL};branch=${BRANCH}"
13
14SRCREV = "${UIO_MODULE_DRV_SRCREV}"
15
16S = "${WORKDIR}/git"
17
18COMPATIBLE_HOST ?= "null"
19COMPATIBLE_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 @@
1From b5c4036dac06817bffd0be21c5fa1b7f75f74e4b Mon Sep 17 00:00:00 2001
2From: Suman Anna <s-anna@ti.com>
3Date: Mon, 19 Apr 2021 13:15:51 -0500
4Subject: [PATCH] uio-module-drv: Replace ioremap_nocache with ioremap
5
6The ioremap_nocache is the same as the regular ioremap and its
7definition has been dropped from the Linux kernel v5.6 onwards in
8commit 4bdc0d676a64 ("remove ioremap_nocache and devm_ioremap_nocache")
9[1]. The uio-module-drv module fails to build against these newer
10kernels, so fix it by simply replacing ioremap_nocache with ioremap.
11
12[1]
13https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4bdc0d676a643140bdf17dbf7eafedee3d496a3c
14
15Signed-off-by: Suman Anna <s-anna@ti.com>
16---
17 uio_module_drv.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/uio_module_drv.c b/uio_module_drv.c
21index 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--
342.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 @@
1DESCRIPTION = "User space IO (UIO) driver for on-chip modules"
2
3include uio-module-drv.inc
4
5FILESEXTRAPATHS:prepend:= "${THISDIR}/${PN}:"
6
7SRC_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
10MACHINE_KERNEL_PR:append = "d"
11PR = "${MACHINE_KERNEL_PR}"
12
13module_auto_load_uio-module-drv = "uio-module-drv"
14
15inherit module
16
17do_install:append () {
18 install -d ${D}${includedir}
19 cp *.h ${D}${includedir}
20}
21
22KERNEL_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 @@
1DESCRIPTION = "Radio Application Firmware"
2LICENSE = "TI-TSPA"
3LIC_FILES_CHKSUM = "file://${S}/J6_VIS_DEMO_LINUX_BINARY_01.50.07.15-Manifest.html;md5=a59aa54b9470f555cf086b91dca0afa3"
4
5COMPATIBLE_MACHINE = "dra7xx"
6PACKAGE_ARCH = "${MACHINE_ARCH}"
7
8PR = "r1"
9
10SRC_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
12SRC_URI[md5sum] = "fe8b00e398fb3b7ada0c15b601867acb"
13SRC_URI[sha256sum] = "6e2aa47ae892910616ebdc96646af778af9a59ca0657716ab4fa4b24a9afae69"
14
15S = "${WORKDIR}"
16
17DSPAPP = "dra7-dsp1-fw-radio.xe66"
18GPPAPP = "RadioApp"
19
20do_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
27PACKAGES += "${PN}-fw"
28RDEPENDS:${PN} += "${PN}-fw"
29
30FILES:${PN}-fw += "${base_libdir}/firmware/${DSPAPP}"
31
32INSANE_SKIP:${PN} = "ldflags"
33INSANE_SKIP:${PN}-fw = "arch"
34INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
35INHIBIT_PACKAGE_STRIP = "1"
36INHIBIT_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 @@
1DESCRIPTION = "VPDMA firmware for Video Input Port and Video Processing Engine"
2
3LICENSE = "TI-TSPA"
4LIC_FILES_CHKSUM = "file://COPYING;md5=fd463c9500441ed91d07a0331baa635c"
5
6COMPATIBLE_MACHINE = "dra7xx"
7PACKAGE_ARCH = "${MACHINE_ARCH}"
8
9DEPENDS += "virtual/kernel"
10
11SRC_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"
12SRC_URI[dra7xx-evm.md5sum] = "80176df1350c21d9efa90171789c546e"
13SRC_URI[dra7xx-evm.sha256sum] = "a0b254ffd0c7f481cb3989e632088f5e4a233c73a1c676faa3061721ea60dc90"
14
15S = "${WORKDIR}/vpdma-fw-${PV}"
16TARGET = "vpdma-1b8.bin"
17
18do_install() {
19 mkdir -p ${D}${base_libdir}/firmware
20 cp ${S}/${TARGET} ${D}${base_libdir}/firmware/${TARGET}
21}
22
23FILES:${PN} += "${base_libdir}/firmware/${TARGET}"
24
25PR = "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 @@
1DESCRIPTION = "VPE test program"
2
3LICENSE = "BSD"
4LIC_FILES_CHKSUM = "file://COPYING;md5=74d2f71d8898c54e3d1c9d0058c484aa"
5
6DEPENDS = "virtual/kernel vpdma-fw"
7
8PR = "r3"
9
10COMPATIBLE_MACHINE = "dra7xx"
11
12PACKAGE_ARCH = "${MACHINE_ARCH}"
13
14SRCREV = "e3d8db1aa935775f9d196ad7428e0cd9864a36ca"
15BRANCH ?= "master"
16
17SRC_URI = "git://git.ti.com/vpe_tests/vpe_tests.git;protocol=git;branch=${BRANCH}"
18
19S = "${WORKDIR}/git"
20
21FLOATABI = "${@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
24EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc ${FLOATABI}" KDIR="${STAGING_KERNEL_DIR}/include/uapi -I${STAGING_KERNEL_DIR}/include"'
25
26do_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 @@
1From 3a8fc3ccf00796254d6cef4b6d4cd70dc37012e1 Mon Sep 17 00:00:00 2001
2From: Denys Dmytriyenko <denys@ti.com>
3Date: Fri, 10 Mar 2017 13:28:29 -0500
4Subject: [PATCH] Add Makefile to install firmware files
5
6Signed-off-by: Denys Dmytriyenko <denys@ti.com>
7---
8 Makefile | 9 +++++++++
9 1 file changed, 9 insertions(+)
10 create mode 100644 Makefile
11
12diff --git a/Makefile b/Makefile
13new file mode 100644
14index 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--
282.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 @@
1DESCRIPTION = "Firmware files for use with TI wl18xx"
2LICENSE = "TI-TSPA"
3LIC_FILES_CHKSUM = "file://LICENCE;md5=4977a0fe767ee17765ae63c435a32a9e"
4
5SRC_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
10SRCREV = "5ec05007f2662f460f881c5868311fd3ab7e6e71"
11BRANCH = "master"
12
13S = "${WORKDIR}/git"
14
15CLEANBROKEN = "1"
16
17do_compile() {
18 :
19}
20
21do_install() {
22 oe_runmake 'DEST_DIR=${D}' install
23}
24
25FILES:${PN} = "/lib/firmware/ti-connectivity/*"
diff --git a/meta-ti-bsp/recipes-connectivity/uim/uim-sysfs_8.5.bb b/meta-ti-bsp/recipes-connectivity/uim/uim-sysfs_8.5.bb
new file mode 100644
index 00000000..72e2166f
--- /dev/null
+++ b/meta-ti-bsp/recipes-connectivity/uim/uim-sysfs_8.5.bb
@@ -0,0 +1,20 @@
1DESCRIPTION = "Shared Transport Line Discipline User Mode initialisation Manager Daemon"
2LICENSE = "GPLv2+"
3LIC_FILES_CHKSUM = "file://uim.c;beginline=1;endline=18;md5=9f0bbfbc10c67689e81a523e2976c31e"
4
5INITSCRIPT_NAME = "uim-sysfs"
6INITSCRIPT_PARAMS = "defaults 03"
7
8inherit update-rc.d
9
10SRCREV = "a75f45be2d5c74fc1dd913d08afc30f09a230aa9"
11SRC_URI = "git://git.ti.com/ti-bt/uim.git"
12
13S = "${WORKDIR}/git"
14
15do_install() {
16 install -d ${D}${bindir}
17 install -m 0755 uim ${D}${bindir}
18 install -d ${D}${sysconfdir}/init.d
19 install -m 0755 scripts/uim-sysfs ${D}${sysconfdir}/init.d
20}
diff --git a/meta-ti-bsp/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator/0001-plt.h-Do-not-define-EFUSE_PARAMETER_TYPE_ENMT-type-e.patch b/meta-ti-bsp/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator/0001-plt.h-Do-not-define-EFUSE_PARAMETER_TYPE_ENMT-type-e.patch
new file mode 100644
index 00000000..fc5542e0
--- /dev/null
+++ b/meta-ti-bsp/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator/0001-plt.h-Do-not-define-EFUSE_PARAMETER_TYPE_ENMT-type-e.patch
@@ -0,0 +1,35 @@
1From e3f694496322d3679dd9b007dc3caa4343f0f376 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 11 Aug 2020 18:12:58 -0700
4Subject: [PATCH] plt.h: Do not define EFUSE_PARAMETER_TYPE_ENMT type enum in
5 header file
6
7gcc10 uses -fno-common by default and this causes multiple definitions
8of this enum in all files including plt.h file, therefore just define
9the type in header file
10
11Fixes
12arm-yoe-linux-musleabi-ld: misc_cmds.o:/usr/src/debug/wl18xx-calibrator/8.7.3-r0/git/./plt.h:402: multiple definition of `EFUSE_PARAMETER_TYPE_ENM'; nvs.o:/usr/src/debug/wl18xx-calibrator/8.7.3-r0/git/./plt.h:402: first defined here
13
14Upstream-Status: Pending
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 plt.h | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/plt.h b/plt.h
21index 8b534a9..43d5dbc 100644
22--- a/plt.h
23+++ b/plt.h
24@@ -399,7 +399,7 @@ enum EFUSE_PARAMETER_TYPE_ENMT {
25 TX_BIP_PD_BUFFER_VBIAS_ERROR_E,
26 EFUSE_NUMBER_OF_PARAMETERS_E,
27 EFUSE_LAST_PARAMETER_E = (EFUSE_NUMBER_OF_PARAMETERS_E - 1)
28-} EFUSE_PARAMETER_TYPE_ENM;
29+};
30
31 int get_mac_addr(int ifc_num, unsigned char *mac_addr);
32
33--
342.28.0
35
diff --git a/meta-ti-bsp/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator_8.7.3.bb b/meta-ti-bsp/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator_8.7.3.bb
new file mode 100644
index 00000000..2888b95a
--- /dev/null
+++ b/meta-ti-bsp/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator_8.7.3.bb
@@ -0,0 +1,26 @@
1DESCRIPTION = "The calibrator utility for TI wireless solution based on wl18xx driver"
2LICENSE = "BSD"
3LIC_FILES_CHKSUM = "file://COPYING;md5=4725015cb0be7be389cf06deeae3683d"
4
5DEPENDS = "libnl"
6RDEPENDS:${PN} = "wl18xx-fw"
7
8#Tag: R8.7_SP3 (8.7.3)
9SRCREV = "5048b59a444ac59ba7171d6e122d5a84581aebf2"
10SRC_URI = "git://git.ti.com/wilink8-wlan/18xx-ti-utils.git \
11 file://0001-plt.h-Do-not-define-EFUSE_PARAMETER_TYPE_ENMT-type-e.patch \
12 "
13
14S = "${WORKDIR}/git"
15
16export CROSS_COMPILE = "${TARGET_PREFIX}"
17
18EXTRA_OEMAKE = "CFLAGS="${CFLAGS} -I${STAGING_INCDIR}/libnl3/ -DCONFIG_LIBNL32 " \
19 LDFLAGS="${LDFLAGS} -L${STAGING_LIBDIR}" \
20 CC="${CC}" \
21 NLVER=3"
22
23do_install() {
24 install -d ${D}${bindir}
25 install -m 0755 calibrator ${D}${bindir}/
26}
diff --git a/meta-ti-bsp/recipes-connectivity/wl18xx-target-scripts/wl18xx-target-scripts/0001-print_stat.sh-replace-system-bin-sh-with-bin-sh.patch b/meta-ti-bsp/recipes-connectivity/wl18xx-target-scripts/wl18xx-target-scripts/0001-print_stat.sh-replace-system-bin-sh-with-bin-sh.patch
new file mode 100644
index 00000000..c0719e34
--- /dev/null
+++ b/meta-ti-bsp/recipes-connectivity/wl18xx-target-scripts/wl18xx-target-scripts/0001-print_stat.sh-replace-system-bin-sh-with-bin-sh.patch
@@ -0,0 +1,23 @@
1From ba1ac3862c8c3b2dbb615dc342b7fb1eaa96900f Mon Sep 17 00:00:00 2001
2From: Denys Dmytriyenko <denys@ti.com>
3Date: Fri, 10 Nov 2017 17:02:39 -0500
4Subject: [PATCH] print_stat.sh: replace /system/bin/sh with /bin/sh
5
6Signed-off-by: Denys Dmytriyenko <denys@ti.com>
7---
8 testing/print_stat.sh | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/testing/print_stat.sh b/testing/print_stat.sh
12index 681a063..0a519f6 100755
13--- a/testing/print_stat.sh
14+++ b/testing/print_stat.sh
15@@ -1,4 +1,4 @@
16-#!/system/bin/sh
17+#!/bin/sh
18
19 PHY=`ls /sys/class/ieee80211/`
20 mkdir -p /debug
21--
222.7.4
23
diff --git a/meta-ti-bsp/recipes-connectivity/wl18xx-target-scripts/wl18xx-target-scripts_8.7.3.bb b/meta-ti-bsp/recipes-connectivity/wl18xx-target-scripts/wl18xx-target-scripts_8.7.3.bb
new file mode 100644
index 00000000..2a44fa84
--- /dev/null
+++ b/meta-ti-bsp/recipes-connectivity/wl18xx-target-scripts/wl18xx-target-scripts_8.7.3.bb
@@ -0,0 +1,26 @@
1DESCRIPTION = "Scripts and configuration files for TI wireless drivers"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://README;beginline=1;endline=21;md5=b8d6a0865f50159bf5c0d175d1f4a705"
4
5# Tag: R8.7_SP3 (8.7.3)
6SRCREV = "a07b6e711d2a70608101d3d6cdc5749c4d8a96d5"
7BRANCH = "sitara-scripts"
8SRC_URI = "git://git.ti.com/wilink8-wlan/wl18xx-target-scripts.git;protocol=git;branch=${BRANCH} \
9file://0001-print_stat.sh-replace-system-bin-sh-with-bin-sh.patch \
10"
11
12PR = "r1"
13
14S = "${WORKDIR}/git"
15
16FILES:${PN} += "${datadir}/wl18xx/"
17
18do_install() {
19 install -d ${D}${datadir}/wl18xx/
20
21 scripts=`find ./* -type f -name "*.*"`
22 for s in $scripts
23 do
24 install -m 0755 $s ${D}${datadir}/wl18xx/
25 done
26}
diff --git a/meta-ti-bsp/recipes-connectivity/wlconf/wlconf_8.7.3.bb b/meta-ti-bsp/recipes-connectivity/wlconf/wlconf_8.7.3.bb
new file mode 100644
index 00000000..475bac28
--- /dev/null
+++ b/meta-ti-bsp/recipes-connectivity/wlconf/wlconf_8.7.3.bb
@@ -0,0 +1,39 @@
1DESCRIPTION = "Configuration utility for TI wireless drivers"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://README;beginline=1;endline=21;md5=adc05a1903d3f107f85c90328e3a9438"
4
5# Tag: R8.7_SP3 (8.7.3)
6SRCREV = "5048b59a444ac59ba7171d6e122d5a84581aebf2"
7SRC_URI = "git://git.ti.com/wilink8-wlan/18xx-ti-utils.git"
8
9S = "${WORKDIR}/git/wlconf"
10
11EXTRA_OEMAKE = "CC="${CC}""
12
13do_install() {
14 install -d ${D}${sbindir}
15 install -d ${D}${sbindir}/wlconf/
16 install -d ${D}${sbindir}/wlconf/official_inis
17 install -d ${D}/lib/firmware/ti-connectivity
18
19 install -m 0755 wlconf ${D}${sbindir}/wlconf/
20 install -m 0755 dictionary.txt ${D}${sbindir}/wlconf/
21 install -m 0755 struct.bin ${D}${sbindir}/wlconf/
22 install -m 0755 default.conf ${D}${sbindir}/wlconf/
23 install -m 0755 wl18xx-conf-default.bin ${D}${sbindir}/wlconf/
24 install -m 0755 wl18xx-conf-default.bin ${D}/lib/firmware/ti-connectivity/wl18xx-conf.bin
25 install -m 0755 README ${D}${sbindir}/wlconf/
26 install -m 0755 example.conf ${D}${sbindir}/wlconf/
27 install -m 0755 example.ini ${D}${sbindir}/wlconf/
28 install -m 0755 configure-device.sh ${D}${sbindir}/wlconf/
29 install -m 0755 ${S}/official_inis/* \
30 ${D}${sbindir}/wlconf/official_inis/
31}
32
33FILES:${PN} += " \
34 ${sbindir}/wlconf \
35 ${sbindir}/wlconf/official_inis \
36 /lib/firmware/ti-connectivity/wl18xx-conf.bin \
37"
38
39FILES:${PN}-dbg += "${sbindir}/wlconf/.debug"
diff --git a/meta-ti-bsp/recipes-core/udev/eudev/firmware.rules b/meta-ti-bsp/recipes-core/udev/eudev/firmware.rules
new file mode 100644
index 00000000..f7a08ce9
--- /dev/null
+++ b/meta-ti-bsp/recipes-core/udev/eudev/firmware.rules
@@ -0,0 +1,3 @@
1# stub for immediately telling the kernel that userspace firmware loading
2# failed; necessary to avoid long timeouts with CONFIG_FW_LOADER_USER_HELPER=y
3SUBSYSTEM=="firmware", ACTION=="add", ATTR{loading}="-1"
diff --git a/meta-ti-bsp/recipes-core/udev/eudev/omap-tty.rules b/meta-ti-bsp/recipes-core/udev/eudev/omap-tty.rules
new file mode 100644
index 00000000..989d60f8
--- /dev/null
+++ b/meta-ti-bsp/recipes-core/udev/eudev/omap-tty.rules
@@ -0,0 +1,17 @@
1# There are a number of modifiers that are allowed to be used in some
2# of the different fields. They provide the following subsitutions:
3#
4# %n the "kernel number" of the device.
5# For example, 'sda3' has a "kernel number" of '3'
6# %e the smallest number for that name which does not matches an existing node
7# %k the kernel name for the device
8# %M the kernel major number for the device
9# %m the kernel minor number for the device
10# %b the bus id for the device
11# %c the string returned by the PROGRAM
12# %s{filename} the content of a sysfs attribute
13# %% the '%' char itself
14#
15
16# Backward compatibility with old OMAP UART-style ttyO0 naming
17SUBSYSTEM=="tty", ATTR{uartclk}!="0", KERNEL=="ttyS[0-9]", SYMLINK+="ttyO%n"
diff --git a/meta-ti-bsp/recipes-core/udev/eudev_%.bbappend b/meta-ti-bsp/recipes-core/udev/eudev_%.bbappend
new file mode 100644
index 00000000..ddb1e75d
--- /dev/null
+++ b/meta-ti-bsp/recipes-core/udev/eudev_%.bbappend
@@ -0,0 +1,13 @@
1FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
2
3SRC_URI:append:ti-soc = " \
4 file://omap-tty.rules \
5 file://firmware.rules \
6"
7
8PR:append:ti-soc = ".3"
9
10do_install:append:ti-soc() {
11 install -m 0644 ${WORKDIR}/omap-tty.rules ${D}${sysconfdir}/udev/rules.d/
12 install -m 0644 ${WORKDIR}/firmware.rules ${D}${sysconfdir}/udev/rules.d/
13}
diff --git a/meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x.inc b/meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x.inc
new file mode 100644
index 00000000..eeb18fb1
--- /dev/null
+++ b/meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x.inc
@@ -0,0 +1,9 @@
1# This corresponds to version 1.1.0
2SRCREV = "dd0c82fb5763a6b32dc6d68e561efb66ab8283d7"
3
4PV = "1.1.0"
5INC_PR = "r7"
6
7SRC_URI = "git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=${BRANCH}"
8
9BRANCH = "master"
diff --git a/meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x/0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch b/meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x/0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch
new file mode 100644
index 00000000..1cc23b32
--- /dev/null
+++ b/meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x/0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch
@@ -0,0 +1,28 @@
1From 0aa294e2bbd37a42266e59cb67687e57bfba4a88 Mon Sep 17 00:00:00 2001
2From: Denys Dmytriyenko <denys@ti.com>
3Date: Sat, 15 Feb 2020 15:59:37 -0500
4Subject: [PATCH] libbfd.h: suppress GCC9 -Wstringop-truncation
5
6Signed-off-by: Denys Dmytriyenko <denys@ti.com>
7---
8 gdbc6x/bfd/libbfd.h | 4 ++++
9 1 file changed, 4 insertions(+)
10
11diff --git a/gdbc6x/bfd/libbfd.h b/gdbc6x/bfd/libbfd.h
12index 72d3c50..3465f89 100644
13--- a/gdbc6x/bfd/libbfd.h
14+++ b/gdbc6x/bfd/libbfd.h
15@@ -34,6 +34,10 @@
16 #pragma GCC diagnostic ignored "-Wcast-function-type"
17 #endif
18
19+#if __GNUC__ >= 9
20+#pragma GCC diagnostic ignored "-Wstringop-truncation"
21+#endif
22+
23 #include "hashtab.h"
24
25 /* Align an address upward to a boundary, expressed as a number of bytes.
26--
272.7.4
28
diff --git a/meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x/init b/meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x/init
new file mode 100644
index 00000000..90210b82
--- /dev/null
+++ b/meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x/init
@@ -0,0 +1,48 @@
1#!/bin/bash
2
3GDB_DEVICE_NAME='/dev/gdbtty$i'
4DSP_FIRMWARE_NAME='/lib/firmware/dra7-dsp$[$i+1]-fw.xe66'
5
6DSP_L2_GLOBAL_OFFSET="40000000"
7DSP_L2_GLOBAL_SHIFT="00800000"
8
9case "$1" in
10 start)
11
12 dsp_core_l2_offset=$DSP_L2_GLOBAL_OFFSET
13
14 i=0
15 while [ -c "`eval echo $GDB_DEVICE_NAME`" ]
16 do
17 dsp_firmware=`eval echo $DSP_FIRMWARE_NAME`
18
19 if [ -f "`eval echo $DSP_FIRMWARE_NAME`" ]
20 then
21 eval echo "Initializing $GDB_DEVICE_NAME based on $DSP_FIRMWARE_NAME ..."
22
23 gdb_data_local=`eval readelf -s "$DSP_FIRMWARE_NAME" | \
24 grep 'gdb_globalData' | \
25 awk '{print $2}'`
26
27 echo "gdb_globalData (local) = $gdb_data_local"
28 printf "gdb_globalData (global) = %X\n" \
29 $[0x$gdb_data_local + 0x$dsp_core_l2_offset]
30
31
32 printf "%X\n" $[0x$gdb_data_local + 0x$dsp_core_l2_offset] \
33 >> `eval echo $GDB_DEVICE_NAME`
34 fi
35 i=$[$i + 1]
36 dsp_core_l2_offset=`printf "%X" $[0x$dsp_core_l2_offset + 0x$DSP_L2_GLOBAL_SHIFT]`
37 done
38 ;;
39 stop)
40 # Nothing to be done.
41 ;;
42 *)
43 echo "Usage: $0 {start|stop}"
44 exit 1
45 ;;
46esac
47
48
diff --git a/meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x_git.bb b/meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x_git.bb
new file mode 100644
index 00000000..df9aaee9
--- /dev/null
+++ b/meta-ti-bsp/recipes-devtools/gdbc6x/gdbc6x_git.bb
@@ -0,0 +1,49 @@
1DESCRIPTION = "GNU debugger for TI C6X DSP."
2SECTION = "devel"
3LICENSE = "GPLv3+"
4LIC_FILES_CHKSUM = "file://debian/copyright;md5=bf0fe2872eb3dfeebb2cbe38206fe81f"
5
6DEPENDS = "ncurses bison-native texinfo flex-native gettext"
7
8COMPATIBLE_MACHINE = "dra7xx"
9
10PR = "${INC_PR}.1"
11
12SRC_URI:append = " \
13 file://init \
14 file://0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch;striplevel=2 \
15"
16
17S = "${WORKDIR}/git/gdbc6x"
18
19inherit update-rc.d
20inherit gettext
21
22CFLAGS += "-fcommon"
23
24do_configure () {
25 cd ${S}
26 ./configure --program-suffix=c6x --target=tic6x-elf-tirtos --host=${HOST_SYS} --prefix=${S}/install_gdb
27}
28
29do_install () {
30 make install
31
32 # Custom install to prevent conflict with standard GDB.
33 install -d ${D}${bindir}
34 install -d ${D}${includedir}
35 install -m 755 ${S}/install_gdb/bin/gdbc6x ${D}${bindir}
36 cp -rf ${S}/install_gdb/include/* ${D}${includedir}
37
38 install -d ${D}${sysconfdir}/init.d
39 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/gdbserverproxy
40}
41
42RDEPENDS:${PN} = "gdbserverproxy-module-drv bash"
43
44include gdbc6x.inc
45
46INITSCRIPT_NAME = "gdbserverproxy"
47INITSCRIPT_PARAMS = "defaults 95"
48
49PARALLEL_MAKE = ""
diff --git a/meta-ti-bsp/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb b/meta-ti-bsp/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb
new file mode 100644
index 00000000..fab4fbd2
--- /dev/null
+++ b/meta-ti-bsp/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb
@@ -0,0 +1,49 @@
1DESCRIPTION = "TI gdb-server to be used with c6xgdb."
2LICENSE = "BSD"
3LIC_FILES_CHKSUM = "file://../debian/copyright;md5=82c616b6c8f9c11c46feaaf8f9a11495"
4
5DEPENDS = "ti-xdais ti-framework-components ti-cgt6x-native ti-sysbios ti-xdctools-native"
6
7PR = "${INC_PR}.0"
8
9S = "${WORKDIR}/git/gdbserver-c6x/src"
10
11PLATFORM = ""
12PLATFORM:dra7xx = "DRA7xx_PLATFORM"
13
14EXTRA_OEMAKE = "PLATFORM=${PLATFORM}"
15
16export XDAIS_DIR = "${XDAIS_INSTALL_DIR}"
17export FC_DIR = "${FC_INSTALL_DIR}"
18export TI_CGT_INSTALL = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
19export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}"
20export XDC_DIR = "${XDC_INSTALL_DIR}"
21
22# The following is to prevent an unused configure.ac from erroneously
23# triggering the QA check for gettext.
24EXTRA_OECONF = "--disable-nls"
25do_configure() {
26 :
27}
28
29do_install() {
30 install -d ${D}${datadir}/ti/gdbc6x/include
31 install -d ${D}${datadir}/ti/gdbc6x/lib
32 cp -f ../include/* ${D}${datadir}/ti/gdbc6x/include
33 cp -f ../lib/* ${D}${datadir}/ti/gdbc6x/lib
34}
35
36COMPATIBLE_MACHINE = "dra7xx"
37PACKAGE_ARCH = "${MACHINE_ARCH}"
38
39FILES:${PN}-dev += "\
40 ${datadir}/ti/gdbc6x \
41"
42
43include gdbc6x.inc
44
45require recipes-ti/includes/ti-paths.inc
46
47ALLOW_EMPTY:${PN} = "1"
48
49PARALLEL_MAKE = ""
diff --git a/meta-ti-bsp/recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb b/meta-ti-bsp/recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb
new file mode 100644
index 00000000..168e4be3
--- /dev/null
+++ b/meta-ti-bsp/recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb
@@ -0,0 +1,31 @@
1DESCRIPTION = "Interface for GDB to commincate witha TI C66X DSP"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING.txt;md5=75859989545e37968a99b631ef42722e"
4
5# This package builds a kernel module, use kernel PR as base and append a local
6MACHINE_KERNEL_PR:append = "b"
7PR = "${MACHINE_KERNEL_PR}"
8PV:append = "+git${SRCPV}"
9
10S = "${WORKDIR}/git/kernel_module/gdbproxy-mod"
11
12inherit module
13
14PLATFORM = ""
15PLATFORM:dra7xx = "DRA7xx_PLATFORM"
16
17EXTRA_OEMAKE = "PLATFORM=${PLATFORM} KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}"
18
19# The following is to prevent an unused configure.ac from erroneously
20# triggering the QA check for gettext.
21EXTRA_OECONF = "--disable-nls"
22do_configure() {
23 :
24}
25
26COMPATIBLE_MACHINE = "dra7xx"
27PACKAGE_ARCH = "${MACHINE_ARCH}"
28
29include gdbc6x.inc
30
31KERNEL_MODULE_AUTOLOAD += "gdbserverproxy"
diff --git a/meta-ti-bsp/recipes-devtools/ion/libion_git.bb b/meta-ti-bsp/recipes-devtools/ion/libion_git.bb
new file mode 100644
index 00000000..f5ca8e82
--- /dev/null
+++ b/meta-ti-bsp/recipes-devtools/ion/libion_git.bb
@@ -0,0 +1,14 @@
1SUMMARY = "ION Userspace Memory Allocator Library"
2HOMEPAGE = "https://github.com/glneo/libion"
3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
5
6PV = "1.0.0"
7
8BRANCH = "master"
9SRC_URI = "git://github.com/glneo/libion.git;protocol=https;branch=${BRANCH}"
10SRCREV = "7e138fc31febbb67734792c1a911439bfd6d23eb"
11
12S = "${WORKDIR}/git"
13
14inherit cmake pkgconfig
diff --git a/meta-ti-bsp/recipes-devtools/k3conf/k3conf_git.bb b/meta-ti-bsp/recipes-devtools/k3conf/k3conf_git.bb
new file mode 100644
index 00000000..0f2705b8
--- /dev/null
+++ b/meta-ti-bsp/recipes-devtools/k3conf/k3conf_git.bb
@@ -0,0 +1,24 @@
1SUMMARY = "Diagnostic tool for TI K3 processors"
2
3LICENSE = "BSD-3-Clause"
4LIC_FILES_CHKSUM = "file://common/k3conf.c;beginline=1;endline=34;md5=7154c0ffcd418064ffa528e34e70ca9d"
5
6PV = "0.2+git${SRCPV}"
7
8COMPATIBLE_MACHINE = "k3"
9
10BRANCH ?= "master"
11SRCREV = "79f007cd462384ce22e750e9002b714878f56892"
12
13SRC_URI = "git://git.ti.com/k3conf/k3conf.git;protocol=git;branch=${BRANCH}"
14
15S = "${WORKDIR}/git"
16
17do_compile () {
18 oe_runmake CC="${CC}" CROSS_COMPILE=${TARGET_PREFIX} all
19}
20
21do_install () {
22 install -d ${D}${bindir}
23 install ${S}/k3conf ${D}${bindir}
24}
diff --git a/meta-ti-bsp/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb b/meta-ti-bsp/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb
new file mode 100644
index 00000000..ab72c109
--- /dev/null
+++ b/meta-ti-bsp/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb
@@ -0,0 +1,46 @@
1DESCRIPTION = "Userspace libraries for GC320 chipset on TI SoCs"
2HOMEPAGE = "https://git.ti.com/graphics/ti-gc320-libs"
3LICENSE = "TI-TSPA"
4LIC_FILES_CHKSUM = "file://Manifest.html;md5=a9121e8936ace09820d23f7626daaca5"
5
6inherit features_check
7
8REQUIRED_MACHINE_FEATURES = "gc320"
9
10COMPATIBLE_MACHINE = "omap-a15"
11
12CLEANBROKEN = "1"
13
14BRANCH = "ti-${PV}"
15
16SRC_URI = "git://git.ti.com/graphics/ti-gc320-libs.git;protocol=git;branch=${BRANCH}"
17SRCREV = "c0afab259de59909cfe74c01f3f7fbaa147f94b5"
18
19RRECOMMENDS:${PN} = "ti-gc320-driver"
20
21# There's only hardfp version available
22python __anonymous() {
23 tunes = d.getVar("TUNE_FEATURES")
24 if not tunes:
25 return
26 pkgn = d.getVar("PN")
27 pkgv = d.getVar("PV")
28 if "callconvention-hard" not in tunes:
29 bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
30 raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
31}
32
33TARGET_PRODUCT = "jacinto6evm"
34
35PR = "r3"
36
37S = "${WORKDIR}/git"
38
39EXTRA_OEMAKE += "DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT} LIBDIR=${libdir}"
40
41do_install() {
42 oe_runmake install
43 chown -R root:root ${D}
44}
45
46INSANE_SKIP:${PN} += "ldflags"
diff --git a/meta-ti-bsp/recipes-graphics/libgles/ti-img-rogue-umlibs_1.13.5776728.bb b/meta-ti-bsp/recipes-graphics/libgles/ti-img-rogue-umlibs_1.13.5776728.bb
new file mode 100644
index 00000000..1ff4b65a
--- /dev/null
+++ b/meta-ti-bsp/recipes-graphics/libgles/ti-img-rogue-umlibs_1.13.5776728.bb
@@ -0,0 +1,69 @@
1DESCRIPTION = "Userspace libraries for PowerVR Rogue GPU on TI SoCs"
2HOMEPAGE = "http://git.ti.com/graphics/ti-img-rogue-umlibs"
3LICENSE = "TI-TFL"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=7232b98c1c58f99e3baa03de5207e76f"
5
6inherit features_check
7
8REQUIRED_MACHINE_FEATURES = "gpu"
9
10PACKAGE_ARCH = "${MACHINE_ARCH}"
11COMPATIBLE_MACHINE = "j7"
12
13PR = "r3"
14
15BRANCH = "linuxws/dunfell/k5.10/${PV}"
16
17SRC_URI = "git://git.ti.com/graphics/ti-img-rogue-umlibs.git;branch=${BRANCH}"
18
19SRCREV = "5ef38353c38d921a65ea6df75c7b6ce710b66034"
20
21PVR_SOC ?= "j721e_linux"
22PVR_BUILD ?= "release"
23PVR_WS = "wayland"
24
25INITSCRIPT_NAME = "rc.pvr"
26INITSCRIPT_PARAMS = "defaults 8"
27
28inherit update-rc.d
29
30PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2 virtual/libgbm"
31
32DEPENDS += "libdrm wayland expat"
33RDEPENDS:${PN} += "bash"
34RDEPENDS:${PN} += "wayland expat"
35
36RPROVIDES:${PN} = "libegl libgles1 libgles2 libgbm"
37RPROVIDES:${PN}-dev = "libegl-dev libgles1-dev libgles2-dev libgbm-dev"
38RPROVIDES:${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg"
39
40RREPLACES:${PN} = "libegl libgles1 liblges2 libgbm"
41RREPLACES:${PN}-dev = "libegl-dev libgles1-dev libgles2-dev libgbm-dev"
42RREPLACES:${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg"
43
44RCONFLICTS:${PN} = "libegl libgles1 libgles2 libgbm"
45RCONFLICTS:${PN}-dev = "libegl-dev libgles1-dev libgles2-dev libgbm-dev"
46RCONFLICTS:${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg"
47
48RRECOMMENDS:${PN} += "ti-img-rogue-driver"
49
50S = "${WORKDIR}/git"
51
52do_install () {
53 oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${PVR_SOC} BUILD=${PVR_BUILD} WINDOW_SYSTEM=${PVR_WS}
54 chown -R root:root ${D}
55}
56
57FILES:${PN} += " ${base_libdir}/firmware/"
58FILES:${PN} += " ${datadir}/"
59
60PACKAGES =+ "${PN}-plugins"
61FILES:${PN}-plugins = "${libdir}/libGLESv2.so ${libdir}/libGLESv1_CM.so ${libdir}/libEGL.so ${libdir}/dri/pvr_dri.so"
62RDEPENDS:${PN} += "${PN}-plugins"
63
64ALLOW_EMPTY:${PN}-plugins = "1"
65
66INSANE_SKIP:${PN} += "ldflags arch already-stripped"
67INSANE_SKIP:${PN}-plugins = "dev-so"
68
69CLEANBROKEN = "1"
diff --git a/meta-ti-bsp/recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb b/meta-ti-bsp/recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb
new file mode 100644
index 00000000..d4b7a1a6
--- /dev/null
+++ b/meta-ti-bsp/recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb
@@ -0,0 +1,70 @@
1DESCRIPTION = "Userspace libraries for PowerVR SGX chipset on TI SoCs"
2HOMEPAGE = "https://git.ti.com/graphics/omap5-sgx-ddk-um-linux"
3LICENSE = "TI-TSPA"
4LIC_FILES_CHKSUM = "file://TI-Linux-Graphics-DDK-UM-Manifest.doc;md5=b17390502bc89535c86cfbbae961a2a8"
5
6inherit features_check
7
8REQUIRED_MACHINE_FEATURES = "gpu"
9
10PACKAGE_ARCH = "${MACHINE_ARCH}"
11COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k3"
12
13PR = "r37"
14
15BRANCH = "ti-img-sgx/dunfell/${PV}"
16
17SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}"
18SRCREV = "742cf38aba13e1ba1a910cf1f036a1a212c263b6"
19
20TARGET_PRODUCT:omap-a15 = "jacinto6evm"
21TARGET_PRODUCT:ti33x = "ti335x"
22TARGET_PRODUCT:ti43x = "ti437x"
23TARGET_PRODUCT:k3 = "ti654x"
24
25INITSCRIPT_NAME = "rc.pvr"
26INITSCRIPT_PARAMS = "defaults 8"
27
28inherit update-rc.d
29
30PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2 virtual/libgbm"
31
32DEPENDS += "libdrm udev wayland wayland-protocols libffi expat"
33DEPENDS:append:libc-musl = " gcompat"
34RDEPENDS:${PN} += "libdrm libdrm-omap udev wayland wayland-protocols libffi expat"
35
36RPROVIDES:${PN} = "libegl libgles1 libgles2 libgbm"
37RPROVIDES:${PN}-dev = "libegl-dev libgles1-dev libgles2-dev libgbm-dev"
38RPROVIDES:${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg libgbm-dbg"
39
40RREPLACES:${PN} = "libegl libgles1 libgles2 libgbm"
41RREPLACES:${PN}-dev = "libegl-dev libgles1-dev libgles2-dev libgbm-dev"
42RREPLACES:${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg libgbm-dbg"
43
44RCONFLICTS:${PN} = "libegl libgles1 libgles2 libgbm"
45RCONFLICTS:${PN}-dev = "libegl-dev libgles1-dev libgles2-dev libgbm-dev"
46RCONFLICTS:${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg libgbm-dbg"
47
48# The actual SONAME is libGLESv2.so.2, so need to explicitly specify RPROVIDES for .so.1 here
49RPROVIDES:${PN} += "libGLESv2.so.1"
50
51RRECOMMENDS:${PN} += "ti-sgx-ddk-km"
52
53S = "${WORKDIR}/git"
54
55do_install () {
56 oe_runmake install DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT}
57 ln -sf libGLESv2.so ${D}${libdir}/libGLESv2.so.1
58
59 chown -R root:root ${D}
60}
61
62FILES:${PN} = "${bindir}/*"
63FILES:${PN} += " ${libdir}/*"
64FILES:${PN} += "${includedir}/*"
65FILES:${PN} += "${sysconfdir}/*"
66
67INSANE_SKIP:${PN} += "dev-so ldflags useless-rpaths"
68INSANE_SKIP:${PN} += "already-stripped dev-deps"
69
70CLEANBROKEN = "1"
diff --git a/meta-ti-bsp/recipes-kernel/linux/bundle-devicetree.inc b/meta-ti-bsp/recipes-kernel/linux/bundle-devicetree.inc
new file mode 100644
index 00000000..d259e58c
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/bundle-devicetree.inc
@@ -0,0 +1,26 @@
1# Upstream kernel-devicetree.bbclass only supports bundling the DTB with
2# zImage. The factory u-boot on lego-ev3 EEPROM only supports uImage, so we
3# append the DTB to the final uImage here.
4
5do_deploy:append() {
6 if [ "${KERNEL_DEVICETREE_BUNDLE}" = "1" ]; then
7 install -d ${DEPLOYDIR}
8 for dtbf in ${KERNEL_DEVICETREE}; do
9 dtb=`normalize_dtb "$dtbf"`
10 dtb_ext=${dtb##*.}
11 dtb_base_name=`basename $dtb .$dtb_ext`
12 for type in ${KERNEL_IMAGETYPE_FOR_MAKE}; do
13 if [ "$type" = "uImage" ]; then
14 cat ${D}/${KERNEL_IMAGEDEST}/$type \
15 ${DEPLOYDIR}/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext \
16 > ${DEPLOYDIR}/$type-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext.bin
17 ln -sf $type-$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext.bin \
18 ${DEPLOYDIR}/$type-$dtb_base_name-${KERNEL_DTB_LINK_NAME}.$dtb_ext.bin
19 cat ${D}/${KERNEL_IMAGEDEST}/$type \
20 ${DEPLOYDIR}/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext \
21 > ${DEPLOYDIR}/$type
22 fi
23 done
24 done
25 fi
26}
diff --git a/meta-ti-bsp/recipes-kernel/linux/cmem.inc b/meta-ti-bsp/recipes-kernel/linux/cmem.inc
new file mode 100644
index 00000000..fd913f6c
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/cmem.inc
@@ -0,0 +1,96 @@
1# Add concept of machine variants to split DTBs into subsets
2#
3# Use these for temporary overrides
4CMEM_MACHINE = "${MACHINE}"
5CMEM_MACHINE:am57xx-evm = "am571x am572x am572idk am5729-beagleboneai am574x"
6CMEM_MACHINE:am57xx-hs-evm = "am571x am572x am572idk am5729-beagleboneai am574x"
7CMEM_MACHINE:dra7xx-evm = "dra71x dra72x dra74x dra76x"
8CMEM_MACHINE:dra7xx-hs-evm = "dra71x dra72x dra74x dra76x"
9
10# Set cmem.dtsi per machine or machine variant
11CMEM_DTSI = "cmem.dtsi"
12CMEM_DTSI_am571x = "cmem-am571x.dtsi"
13CMEM_DTSI_am572idk = "cmem-am572idk.dtsi"
14CMEM_DTSI_am5729-beagleboneai = "cmem-am5729-beagleboneai.dtsi"
15CMEM_DTSI_am574x = "cmem-am574x.dtsi"
16CMEM_DTSI_dra71x = "cmem-dra71x.dtsi"
17CMEM_DTSI_dra72x = "cmem-dra72x.dtsi"
18CMEM_DTSI_dra76x = "cmem-dra76x.dtsi"
19
20# Split device trees between variants
21CMEM_DEVICETREE = "${KERNEL_DEVICETREE}"
22CMEM_DEVICETREE_am571x = "am571x-idk.dtb am571x-idk-lcd-osd101t2045.dtb am571x-idk-lcd-osd101t2587.dtb"
23CMEM_DEVICETREE_am572x = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revc.dtb"
24CMEM_DEVICETREE_am572idk = "am572x-idk.dtb am572x-idk-lcd-osd101t2045.dtb am572x-idk-lcd-osd101t2587.dtb"
25CMEM_DEVICETREE_am5729-beagleboneai = "am5729-beagleboneai.dtb"
26CMEM_DEVICETREE_am574x = "am574x-idk.dtb am574x-idk-lcd-osd101t2587.dtb"
27CMEM_DEVICETREE_dra71x = "dra71-evm.dtb"
28CMEM_DEVICETREE_dra72x = "dra72-evm.dtb dra72-evm-lcd-osd101t2045.dtb dra72-evm-lcd-osd101t2587.dtb \
29 dra72-evm-revc.dtb dra72-evm-revc-lcd-osd101t2045.dtb dra72-evm-revc-lcd-osd101t2587.dtb"
30CMEM_DEVICETREE_dra74x = "dra7-evm.dtb dra7-evm-lcd-osd101t2045.dtb dra7-evm-lcd-osd101t2587.dtb"
31CMEM_DEVICETREE_dra76x = "dra76-evm.dtb dra76-evm-tfp410.dtb"
32
33# Flag to enable CMEM injection
34RESERVE_CMEM ?= "0"
35
36# Variables which influence setup_cmem
37CMEM_VARS = "RESERVE_CMEM CMEM_MACHINE"
38CMEM_VARS += "CMEM_DTSI ${@' '.join(map(lambda s: 'CMEM_DTSI_' + s, (d.getVar('CMEM_MACHINE') or '').split()))}"
39CMEM_VARS += "CMEM_DEVICETREE ${@' '.join(map(lambda s: 'CMEM_DEVICETREE_' + s, (d.getVar('CMEM_MACHINE') or '').split()))}"
40
41# Add correct cmem.dtsi to SRC_URI for each variant for a given machine
42python do_unpack() {
43 old_overrides = d.getVar('OVERRIDES', False)
44
45 # Initialize with empty string to simplify logic to append to SRC_URI
46 cmem_dtsi = set([''])
47
48 for cmem_machine in (d.getVar('CMEM_MACHINE') or '').split():
49 # Create copy of data for additional override
50 localdata = bb.data.createCopy(d)
51 localdata.setVar('OVERRIDES', '%s:%s' % (cmem_machine, old_overrides))
52 bb.data.update_data(localdata)
53
54 cmem_dtsi.add(localdata.getVar('CMEM_DTSI'))
55
56 d.appendVar('SRC_URI', ' file://'.join(cmem_dtsi))
57 bb.build.exec_func('base_do_unpack', d)
58}
59
60python do_setup_cmem() {
61 import shutil
62
63 old_overrides = d.getVar('OVERRIDES', False)
64
65 if d.getVar('RESERVE_CMEM') is '1':
66 for cmem_machine in (d.getVar('CMEM_MACHINE') or '').split():
67 # Create copy of data for additional override
68 localdata = bb.data.createCopy(d)
69 localdata.setVar('OVERRIDES', '%s:%s' % (cmem_machine, old_overrides))
70 bb.data.update_data(localdata)
71
72 # Get source directory and dtsi filename
73 src_dir = localdata.getVar('WORKDIR')
74 src_dtsi = localdata.getVar('CMEM_DTSI')
75
76 # Get destination directory and destination dtsi filename which adds
77 # the MACHINE prefix.
78 dst_dir = os.path.join(localdata.getVar('S'), localdata.expand('arch/${ARCH}/boot/dts'))
79 dst_dtsi = localdata.expand('${MACHINE}-${CMEM_DTSI}')
80
81 # Copy cmem.dtsi into source tree
82 if localdata.getVar('ARCH') is 'arm64':
83 shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,'ti',dst_dtsi))
84 else:
85 shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,dst_dtsi))
86
87 # Inject dtsi into each dts in list
88 for dtb in (localdata.getVar('CMEM_DEVICETREE') or '').split():
89 dts = dtb[:-4] + '.dts'
90
91 with open(os.path.join(dst_dir,dts), 'a') as dts_file:
92 dts_file.write('\n#include "%s"\n' % dst_dtsi)
93}
94
95do_patch[postfuncs] += "do_setup_cmem"
96do_patch[vardeps] += "${CMEM_VARS}"
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/cmem.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/cmem.dtsi
new file mode 100644
index 00000000..23119861
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/cmem.dtsi
@@ -0,0 +1,38 @@
1/*
2 * This is a placeholder for CMEM reserved memory declarations. This
3 * is simply an example and does not actually reserve any memory for
4 * CMEM.
5 *
6 * The commented sections below provide an example for how to provide
7 * a reserved memory region for CMEM to use as a buffer pool.
8 */
9/ {
10/*
11 reserved-memory {
12 cmem_block_mem_0: cmem_block_mem@a0000000 {
13 reg = <0x0 0xa0000000 0x0 0x0a000000>;
14 no-map;
15 status = "okay";
16 };
17 };
18*/
19
20 cmem {
21 compatible = "ti,cmem";
22 #address-cells = <1>;
23 #size-cells = <0>;
24
25 #pool-size-cells = <2>;
26
27 status = "disabled";
28/*
29 status = "okay";
30
31 cmem_block_0: cmem_block@0 {
32 reg = <0>;
33 memory-region = <&cmem_block_mem_0>;
34 cmem-buf-pools = <1 0x0 0x0a000000>;
35 };
36*/
37 };
38};
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/configs/empty b/meta-ti-bsp/recipes-kernel/linux/files/configs/empty
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/configs/empty
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/am571x-pru-uio.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/am571x-pru-uio.dtsi
new file mode 100644
index 00000000..8ca11c78
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/am571x-pru-uio.dtsi
@@ -0,0 +1,272 @@
1&pruss_soc_bus1 {
2 uio_pruss1_mdio: uio_mdio@4b232400 {
3 status = "okay";
4
5 compatible = "ti,davinci_mdio";
6 reg = <0x4b232400 0x90>;
7 #address-cells = <1>;
8 #size-cells = <0>;
9 clocks = <&dpll_gmac_h13x2_ck>;
10 clock-names = "fck";
11 bus_freq = <1000000>;
12
13 reset-gpios = <&gpio5 8 GPIO_ACTIVE_LOW>;
14 reset-delay-us = <2>; /* PHY datasheet states 1uS min */
15 uio_pruss1_eth0_phy: uio_ethernet-phy@0 {
16 reg = <0>;
17 };
18
19 uio_pruss1_eth1_phy: uio_ethernet-phy@1 {
20 reg = <1>;
21 };
22 };
23
24 uio_pruss1_mem: uio_pruss1_mem {
25 compatible = "ti,uio-module-drv";
26 mem = <0x4b200000 0x2000>,
27 <0x4b202000 0x2000>,
28 <0x4b210000 0x8000>,
29 <0x4b220000 0x5404>,
30 <0x4b226000 0x474>,
31 <0x4b22e000 0xc04>,
32 <0x4b232000 0x154>;
33 mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg",
34 "iep", "mii_rt";
35 status = "okay";
36 };
37 uio_pruss1_mem2: uio_pruss1_mem2 {
38 compatible = "ti,uio-module-drv";
39 mem = <0x4b228000 0xd4>,
40 <0x4b230000 0x174>,
41 <0x4b232400 0x234>,
42 <0x40300000 0x40000>;
43 mem-names = "uart", "ecap", "mdio", "ocmc";
44 status = "okay";
45 };
46 uio_pruss1_evt0: uio_pruss1_evt0 {
47 compatible = "ti,uio-module-drv";
48 interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
49 interrupt-mode = <1>;
50 status = "okay";
51 };
52 uio_pruss1_evt1: uio_pruss1_evt1 {
53 compatible = "ti,uio-module-drv";
54 interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>;
55 interrupt-mode = <1>;
56 status = "okay";
57 };
58 uio_pruss1_evt2: uio_pruss1_evt2 {
59 compatible = "ti,uio-module-drv";
60 interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
61 interrupt-mode = <1>;
62 status = "okay";
63 };
64 uio_pruss1_evt3: uio_pruss1_evt3 {
65 compatible = "ti,uio-module-drv";
66 interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
67 interrupt-mode = <1>;
68 status = "okay";
69 };
70 uio_pruss1_evt4: uio_pruss1_evt4 {
71 compatible = "ti,uio-module-drv";
72 interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
73 interrupt-mode = <1>;
74 status = "okay";
75 };
76 uio_pruss1_evt5: uio_pruss1_evt5 {
77 compatible = "ti,uio-module-drv";
78 interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
79 interrupt-mode = <1>;
80 status = "okay";
81 };
82 uio_pruss1_evt6: uio_pruss1_evt6 {
83 compatible = "ti,uio-module-drv";
84 interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>;
85 interrupt-mode = <1>;
86 status = "okay";
87 };
88 uio_pruss1_evt7: uio_pruss1_evt7 {
89 compatible = "ti,uio-module-drv";
90 interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>;
91 interrupt-mode = <1>;
92 status = "okay";
93 };
94
95 uio_pruss1_0_mem: uio_pruss1_0_mem {
96 compatible = "ti,uio-module-drv";
97 mem = <0x4b234000 0x3000>,
98 <0x4b222000 0xb4>,
99 <0x4b222400 0x3f4>;
100 mem-names = "iram", "control", "debug";
101 status = "okay";
102 };
103
104 uio_pruss1_1_mem: uio_pruss1_1_mem {
105 compatible = "ti,uio-module-drv";
106 mem = <0x4b238000 0x3000>,
107 <0x4b224000 0xb4>,
108 <0x4b224400 0x3f4>;
109 mem-names = "iram", "control", "debug";
110 status = "okay";
111 };
112};
113
114&pruss_soc_bus2 {
115 uio_pruss2_mdio: uio_mdio@4b2b2400 {
116 compatible = "ti,davinci_mdio";
117 reg = <0x4b2b2400 0x90>;
118 #address-cells = <1>;
119 #size-cells = <0>;
120 clocks = <&dpll_gmac_h13x2_ck>;
121 clock-names = "fck";
122 bus_freq = <1000000>;
123 status = "okay";
124
125 reset-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
126 reset-delay-us = <2>; /* PHY datasheet states 1uS min */
127
128 uio_pruss2_eth0_phy: ethernet-phy@0 {
129 reg = <0>;
130 };
131
132 uio_pruss2_eth1_phy: ethernet-phy@1 {
133 reg = <1>;
134 };
135 };
136
137 uio_pruss2_mem: uio_pruss2_mem {
138 compatible = "ti,uio-module-drv";
139 mem = <0x4b280000 0x2000>,
140 <0x4b282000 0x2000>,
141 <0x4b290000 0x8000>,
142 <0x4b2a0000 0x5404>,
143 <0x4b2a6000 0x474>,
144 <0x4b2ae000 0xc04>,
145 <0x4b2b2000 0x154>;
146 mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg",
147 "iep", "mii_rt";
148 status = "okay";
149 };
150 uio_pruss2_mem2: uio_pruss2_mem2 {
151 compatible = "ti,uio-module-drv";
152 mem = <0x4b2a8000 0xd4>,
153 <0x4b2b0000 0x174>,
154 <0x4b2b2400 0x234>,
155 <0x40340000 0x40000>;
156 mem-names = "uart", "ecap", "mdio", "ocmc";
157 status = "okay";
158 };
159 uio_pruss2_evt0: uio_pruss2_evt0 {
160 compatible = "ti,uio-module-drv";
161 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>;
162 interrupt-mode = <1>;
163 status = "okay";
164 };
165 uio_pruss2_evt1: uio_pruss2_evt1 {
166 compatible = "ti,uio-module-drv";
167 interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>;
168 interrupt-mode = <1>;
169 status = "okay";
170 };
171 uio_pruss2_evt2: uio_pruss2_evt2 {
172 compatible = "ti,uio-module-drv";
173 interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>;
174 interrupt-mode = <1>;
175 status = "okay";
176 };
177 uio_pruss2_evt3: uio_pruss2_evt3 {
178 compatible = "ti,uio-module-drv";
179 interrupts = <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
180 interrupt-mode = <1>;
181 status = "okay";
182 };
183 uio_pruss2_evt4: uio_pruss2_evt4 {
184 compatible = "ti,uio-module-drv";
185 interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>;
186 interrupt-mode = <1>;
187 status = "okay";
188 };
189 uio_pruss2_evt5: uio_pruss2_evt5 {
190 compatible = "ti,uio-module-drv";
191 interrupts = <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>;
192 interrupt-mode = <1>;
193 status = "okay";
194 };
195 uio_pruss2_evt6: uio_pruss2_evt6 {
196 compatible = "ti,uio-module-drv";
197 interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>;
198 interrupt-mode = <1>;
199 status = "okay";
200 };
201 uio_pruss2_evt7: uio_pruss2_evt7 {
202 compatible = "ti,uio-module-drv";
203 interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>;
204 interrupt-mode = <1>;
205 status = "okay";
206 };
207
208 uio_pruss2_0_mem: uio_pruss2_0_mem {
209 compatible = "ti,uio-module-drv";
210 mem = <0x4b2b4000 0x3000>,
211 <0x4b2a2000 0xb4>,
212 <0x4b2a2400 0x3f4>;
213 mem-names = "iram", "control", "debug";
214 status = "okay";
215 };
216 uio_pruss2_1_mem: uio_pruss2_1_mem {
217 compatible = "ti,uio-module-drv";
218 mem = <0x4b2b8000 0x3000>,
219 <0x4b2a4000 0xb4>,
220 <0x4b2a4400 0x3f4>;
221 mem-names = "iram", "control", "debug";
222 status = "okay";
223 };
224 };
225
226&pruss2_emac0 {
227 status = "disabled";
228};
229
230&pruss2_emac1 {
231 status = "disabled";
232};
233
234&pruss1 {
235 status = "disabled";
236};
237
238&pru1_0 {
239 status = "disabled";
240};
241
242&pru1_1 {
243 status = "disabled";
244};
245
246&pruss1_intc {
247 status = "disabled";
248};
249
250&pruss1_mdio {
251 status = "disabled";
252};
253
254&pruss2 {
255 status = "disabled";
256};
257
258&pru2_0 {
259 status = "disabled";
260};
261
262&pru2_1 {
263 status = "disabled";
264};
265
266&pruss2_intc {
267 status = "disabled";
268};
269
270&pruss2_mdio {
271 status = "disabled";
272};
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/am57xx-pru-uio.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/am57xx-pru-uio.dtsi
new file mode 100644
index 00000000..4cc57118
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/am57xx-pru-uio.dtsi
@@ -0,0 +1,252 @@
1&pruss_soc_bus1 {
2 uio_pruss1_mem: uio_pruss1_mem {
3 compatible = "ti,uio-module-drv";
4 mem = <0x4b200000 0x2000>,
5 <0x4b202000 0x2000>,
6 <0x4b210000 0x8000>,
7 <0x4b220000 0x2000>,
8 <0x4b226000 0x2000>,
9 <0x4b22e000 0x31c>,
10 <0x4b232000 0x58>;
11 mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg",
12 "iep", "mii_rt";
13 status = "okay";
14 };
15 uio_pruss1_mem2: uio_pruss1_mem2 {
16 compatible = "ti,uio-module-drv";
17 mem = <0x4b228000 0x38>,
18 <0x4b230000 0x60>,
19 <0x4b232400 0x90>,
20 <0x40340000 0x40000>;
21 mem-names = "uart", "ecap", "mdio", "ocmc";
22 status = "okay";
23 };
24 uio_pruss1_evt0: uio_pruss1_evt0 {
25 compatible = "ti,uio-module-drv";
26 interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
27 interrupt-mode = <1>;
28 status = "okay";
29 };
30 uio_pruss1_evt1: uio_pruss1_evt1 {
31 compatible = "ti,uio-module-drv";
32 interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>;
33 interrupt-mode = <1>;
34 status = "okay";
35 };
36 uio_pruss1_evt2: uio_pruss1_evt2 {
37 compatible = "ti,uio-module-drv";
38 interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
39 interrupt-mode = <1>;
40 status = "okay";
41 };
42 uio_pruss1_evt3: uio_pruss1_evt3 {
43 compatible = "ti,uio-module-drv";
44 interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
45 interrupt-mode = <1>;
46 status = "okay";
47 };
48 uio_pruss1_evt4: uio_pruss1_evt4 {
49 compatible = "ti,uio-module-drv";
50 interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
51 interrupt-mode = <1>;
52 status = "okay";
53 };
54 uio_pruss1_evt5: uio_pruss1_evt5 {
55 compatible = "ti,uio-module-drv";
56 interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
57 interrupt-mode = <1>;
58 status = "okay";
59 };
60 uio_pruss1_evt6: uio_pruss1_evt6 {
61 compatible = "ti,uio-module-drv";
62 interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>;
63 interrupt-mode = <1>;
64 status = "okay";
65 };
66 uio_pruss1_evt7: uio_pruss1_evt7 {
67 compatible = "ti,uio-module-drv";
68 interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>;
69 interrupt-mode = <1>;
70 status = "okay";
71 };
72
73 uio_pruss1_0_mem: uio_pruss1_0_mem {
74 compatible = "ti,uio-module-drv";
75 mem = <0x4b234000 0x3000>,
76 <0x4b222000 0x400>,
77 <0x4b222400 0x100>;
78 mem-names = "iram", "control", "debug";
79 status = "okay";
80 };
81
82 uio_pruss1_1_mem: uio_pruss1_1_mem {
83 compatible = "ti,uio-module-drv";
84 mem = <0x4b238000 0x3000>,
85 <0x4b224000 0x400>,
86 <0x4b224400 0x100>;
87 mem-names = "iram", "control", "debug";
88 status = "okay";
89 };
90};
91
92&pruss1 {
93 status = "disabled";
94};
95
96&pru1_0 {
97 status = "disabled";
98};
99
100&pru1_1 {
101 status = "disabled";
102};
103
104&pruss1_intc {
105 status = "disabled";
106};
107
108&pruss_soc_bus2 {
109 uio_pruss2_mdio: uio_mdio@4b2b2400 {
110 compatible = "ti,davinci_mdio";
111 reg = <0x4b2b2400 0x90>;
112 #address-cells = <1>;
113 #size-cells = <0>;
114 clocks = <&dpll_gmac_h13x2_ck>;
115 clock-names = "fck";
116 bus_freq = <1000000>;
117 status = "disabled";
118 };
119
120 uio_pruss2_mem: uio_pruss2_mem {
121 compatible = "ti,uio-module-drv";
122 mem = <0x4b280000 0x2000>,
123 <0x4b282000 0x2000>,
124 <0x4b290000 0x8000>,
125 <0x4b2a0000 0x2000>,
126 <0x4b2a6000 0x2000>,
127 <0x4b2ae000 0x31c>,
128 <0x4b2b2000 0x58>;
129 mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg",
130 "iep", "mii_rt";
131 status = "okay";
132 };
133 uio_pruss2_mem2: uio_pruss2_mem2 {
134 compatible = "ti,uio-module-drv";
135 mem = <0x4b2a8000 0x38>,
136 <0x4b2b0000 0x60>,
137 <0x4b2b2400 0x90>,
138 <0x40300000 0x40000>;
139 mem-names = "uart", "ecap", "mdio", "ocmc";
140 status = "okay";
141 };
142 uio_pruss2_evt0: uio_pruss2_evt0 {
143 compatible = "ti,uio-module-drv";
144 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>;
145 interrupt-mode = <1>;
146 status = "okay";
147 };
148 uio_pruss2_evt1: uio_pruss2_evt1 {
149 compatible = "ti,uio-module-drv";
150 interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>;
151 interrupt-mode = <1>;
152 status = "okay";
153 };
154 uio_pruss2_evt2: uio_pruss2_evt2 {
155 compatible = "ti,uio-module-drv";
156 interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>;
157 interrupt-mode = <1>;
158 status = "okay";
159 };
160 uio_pruss2_evt3: uio_pruss2_evt3 {
161 compatible = "ti,uio-module-drv";
162 interrupts = <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
163 interrupt-mode = <1>;
164 status = "okay";
165 };
166 uio_pruss2_evt4: uio_pruss2_evt4 {
167 compatible = "ti,uio-module-drv";
168 interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>;
169 interrupt-mode = <1>;
170 status = "okay";
171 };
172 uio_pruss2_evt5: uio_pruss2_evt5 {
173 compatible = "ti,uio-module-drv";
174 interrupts = <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>;
175 interrupt-mode = <1>;
176 status = "okay";
177 };
178 uio_pruss2_evt6: uio_pruss2_evt6 {
179 compatible = "ti,uio-module-drv";
180 interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>;
181 interrupt-mode = <1>;
182 status = "okay";
183 };
184 uio_pruss2_evt7: uio_pruss2_evt7 {
185 compatible = "ti,uio-module-drv";
186 interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>;
187 interrupt-mode = <1>;
188 status = "okay";
189 };
190
191 uio_pruss2_0_mem: uio_pruss2_0_mem {
192 compatible = "ti,uio-module-drv";
193 mem = <0x4b2b4000 0x3000>,
194 <0x4b2a2000 0x400>,
195 <0x4b2a2400 0x100>;
196 mem-names = "iram", "control", "debug";
197 status = "okay";
198 };
199 uio_pruss2_1_mem: uio_pruss2_1_mem {
200 compatible = "ti,uio-module-drv";
201 mem = <0x4b2b8000 0x3000>,
202 <0x4b2a4000 0x400>,
203 <0x4b2a4400 0x100>;
204 mem-names = "iram", "control", "debug";
205 status = "okay";
206 };
207};
208
209&uio_pruss2_mdio {
210 reset-gpios = <&gpio5 8 GPIO_ACTIVE_LOW>,
211 <&gpio5 9 GPIO_ACTIVE_LOW>;
212 reset-delay-us = <2>; /* PHY datasheet states 1uS min */
213};
214
215&uio_pruss2_mdio {
216 status = "okay";
217 uio_pruss2_eth0_phy: uio_pruss2_eth0_phy@0 {
218 reg = <0>;
219 };
220
221 uio_pruss2_eth1_phy: uio_pruss2_eth1_phy@1 {
222 reg = <1>;
223 };
224};
225
226&pruss2_emac0 {
227 status = "disabled";
228};
229
230&pruss2_emac1 {
231 status = "disabled";
232};
233
234&pruss2 {
235 status = "disabled";
236};
237
238&pru2_0 {
239 status = "disabled";
240};
241
242&pru2_1 {
243 status = "disabled";
244};
245
246&pruss2_intc {
247 status = "disabled";
248};
249
250&pruss2_mdio {
251 status = "disabled";
252};
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am571x.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am571x.dtsi
new file mode 100644
index 00000000..ebd61296
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am571x.dtsi
@@ -0,0 +1,29 @@
1/ {
2 reserved-memory {
3 #address-cells = <2>;
4 #size-cells = <2>;
5 ranges;
6
7 cmem_block_mem_0: cmem_block_mem@a0000000 {
8 reg = <0x0 0xa0000000 0x0 0x0c000000>;
9 no-map;
10 status = "okay";
11 };
12 };
13
14 cmem {
15 compatible = "ti,cmem";
16 #address-cells = <1>;
17 #size-cells = <0>;
18
19 #pool-size-cells = <2>;
20
21 status = "okay";
22
23 cmem_block_0: cmem_block@0 {
24 reg = <0>;
25 memory-region = <&cmem_block_mem_0>;
26 cmem-buf-pools = <1 0x0 0x0c000000>;
27 };
28 };
29};
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am5729-beagleboneai.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am5729-beagleboneai.dtsi
new file mode 100644
index 00000000..e0511d08
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am5729-beagleboneai.dtsi
@@ -0,0 +1,40 @@
1/ {
2 reserved-memory {
3 #address-cells = <2>;
4 #size-cells = <2>;
5 ranges;
6
7 cmem_block_mem_0: cmem_block_mem@a0000000 {
8 reg = <0x0 0xa0000000 0x0 0x18000000>;
9 no-map;
10 status = "okay";
11 };
12
13 cmem_block_mem_1_ocmc3: cmem_block_mem@40500000 {
14 reg = <0x0 0x40500000 0x0 0x100000>;
15 no-map;
16 status = "okay";
17 };
18 };
19
20 cmem {
21 compatible = "ti,cmem";
22 #address-cells = <1>;
23 #size-cells = <0>;
24
25 #pool-size-cells = <2>;
26
27 status = "okay";
28
29 cmem_block_0: cmem_block@0 {
30 reg = <0>;
31 memory-region = <&cmem_block_mem_0>;
32 cmem-buf-pools = <1 0x0 0x18000000>;
33 };
34
35 cmem_block_1: cmem_block@1 {
36 reg = <1>;
37 memory-region = <&cmem_block_mem_1_ocmc3>;
38 };
39 };
40};
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am572idk.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am572idk.dtsi
new file mode 100644
index 00000000..6c39e22c
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am572idk.dtsi
@@ -0,0 +1,40 @@
1/ {
2 reserved-memory {
3 #address-cells = <2>;
4 #size-cells = <2>;
5 ranges;
6
7 cmem_block_mem_0: cmem_block_mem@a0000000 {
8 reg = <0x0 0xa0000000 0x0 0x20000000>;
9 no-map;
10 status = "okay";
11 };
12
13 cmem_block_mem_1_ocmc3: cmem_block_mem@40500000 {
14 reg = <0x0 0x40500000 0x0 0x100000>;
15 no-map;
16 status = "okay";
17 };
18 };
19
20 cmem {
21 compatible = "ti,cmem";
22 #address-cells = <1>;
23 #size-cells = <0>;
24
25 #pool-size-cells = <2>;
26
27 status = "okay";
28
29 cmem_block_0: cmem_block@0 {
30 reg = <0>;
31 memory-region = <&cmem_block_mem_0>;
32 cmem-buf-pools = <1 0x0 0x20000000>;
33 };
34
35 cmem_block_1: cmem_block@1 {
36 reg = <1>;
37 memory-region = <&cmem_block_mem_1_ocmc3>;
38 };
39 };
40};
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am574x.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am574x.dtsi
new file mode 100644
index 00000000..8fb3e871
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-am574x.dtsi
@@ -0,0 +1,40 @@
1/ {
2 reserved-memory {
3 #address-cells = <2>;
4 #size-cells = <2>;
5 ranges;
6
7 cmem_block_mem_0: cmem_block_mem@a0000000 {
8 reg = <0x0 0xa0000000 0x0 0x18000000>;
9 no-map;
10 status = "okay";
11 };
12
13 cmem_block_mem_1_ocmc3: cmem_block_mem@40500000 {
14 reg = <0x0 0x40500000 0x0 0x100000>;
15 no-map;
16 status = "okay";
17 };
18 };
19
20 cmem {
21 compatible = "ti,cmem";
22 #address-cells = <1>;
23 #size-cells = <0>;
24
25 #pool-size-cells = <2>;
26
27 status = "okay";
28
29 cmem_block_0: cmem_block@0 {
30 reg = <0>;
31 memory-region = <&cmem_block_mem_0>;
32 cmem-buf-pools = <1 0x0 0x18000000>;
33 };
34
35 cmem_block_1: cmem_block@1 {
36 reg = <1>;
37 memory-region = <&cmem_block_mem_1_ocmc3>;
38 };
39 };
40};
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra71x.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra71x.dtsi
new file mode 100644
index 00000000..ebd61296
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra71x.dtsi
@@ -0,0 +1,29 @@
1/ {
2 reserved-memory {
3 #address-cells = <2>;
4 #size-cells = <2>;
5 ranges;
6
7 cmem_block_mem_0: cmem_block_mem@a0000000 {
8 reg = <0x0 0xa0000000 0x0 0x0c000000>;
9 no-map;
10 status = "okay";
11 };
12 };
13
14 cmem {
15 compatible = "ti,cmem";
16 #address-cells = <1>;
17 #size-cells = <0>;
18
19 #pool-size-cells = <2>;
20
21 status = "okay";
22
23 cmem_block_0: cmem_block@0 {
24 reg = <0>;
25 memory-region = <&cmem_block_mem_0>;
26 cmem-buf-pools = <1 0x0 0x0c000000>;
27 };
28 };
29};
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra72x.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra72x.dtsi
new file mode 100644
index 00000000..ebd61296
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra72x.dtsi
@@ -0,0 +1,29 @@
1/ {
2 reserved-memory {
3 #address-cells = <2>;
4 #size-cells = <2>;
5 ranges;
6
7 cmem_block_mem_0: cmem_block_mem@a0000000 {
8 reg = <0x0 0xa0000000 0x0 0x0c000000>;
9 no-map;
10 status = "okay";
11 };
12 };
13
14 cmem {
15 compatible = "ti,cmem";
16 #address-cells = <1>;
17 #size-cells = <0>;
18
19 #pool-size-cells = <2>;
20
21 status = "okay";
22
23 cmem_block_0: cmem_block@0 {
24 reg = <0>;
25 memory-region = <&cmem_block_mem_0>;
26 cmem-buf-pools = <1 0x0 0x0c000000>;
27 };
28 };
29};
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra76x.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra76x.dtsi
new file mode 100644
index 00000000..9d207db5
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem-dra76x.dtsi
@@ -0,0 +1,29 @@
1/ {
2 reserved-memory {
3 #address-cells = <2>;
4 #size-cells = <2>;
5 ranges;
6
7 cmem_block_mem_0: cmem_block_mem@a0000000 {
8 reg = <0x0 0xa0000000 0x0 0x18000000>;
9 no-map;
10 status = "okay";
11 };
12 };
13
14 cmem {
15 compatible = "ti,cmem";
16 #address-cells = <1>;
17 #size-cells = <0>;
18
19 #pool-size-cells = <2>;
20
21 status = "okay";
22
23 cmem_block_0: cmem_block@0 {
24 reg = <0>;
25 memory-region = <&cmem_block_mem_0>;
26 cmem-buf-pools = <1 0x0 0x18000000>;
27 };
28 };
29};
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem.dtsi
new file mode 100644
index 00000000..c7781c48
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/dra7xx/cmem.dtsi
@@ -0,0 +1,40 @@
1/ {
2 reserved-memory {
3 #address-cells = <2>;
4 #size-cells = <2>;
5 ranges;
6
7 cmem_block_mem_0: cmem_block_mem@a0000000 {
8 reg = <0x0 0xa0000000 0x0 0x0c000000>;
9 no-map;
10 status = "okay";
11 };
12
13 cmem_block_mem_1_ocmc3: cmem_block_mem@40500000 {
14 reg = <0x0 0x40500000 0x0 0x100000>;
15 no-map;
16 status = "okay";
17 };
18 };
19
20 cmem {
21 compatible = "ti,cmem";
22 #address-cells = <1>;
23 #size-cells = <0>;
24
25 #pool-size-cells = <2>;
26
27 status = "okay";
28
29 cmem_block_0: cmem_block@0 {
30 reg = <0>;
31 memory-region = <&cmem_block_mem_0>;
32 cmem-buf-pools = <1 0x0 0x0c000000>;
33 };
34
35 cmem_block_1: cmem_block@1 {
36 reg = <1>;
37 memory-region = <&cmem_block_mem_1_ocmc3>;
38 };
39 };
40};
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/ti33x/am335x-pru-uio.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/ti33x/am335x-pru-uio.dtsi
new file mode 100644
index 00000000..93a40ab5
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/ti33x/am335x-pru-uio.dtsi
@@ -0,0 +1,192 @@
1&pruss_soc_bus {
2 uio_pruss_mdio: uio_mdio@4a332400 {
3 compatible = "ti,davinci_mdio";
4 reg = <0x4a332400 0x90>;
5 clocks = <&dpll_core_m4_ck>;
6 clock-names = "fck";
7 bus_freq = <1000000>;
8 #address-cells = <1>;
9 #size-cells = <0>;
10 status = "disabled";
11 };
12
13 uio_pruss_mem: uio_pruss_mem {
14 compatible = "ti,uio-module-drv";
15 mem = <0x4a300000 0x2000>,
16 <0x4a302000 0x2000>,
17 <0x4a310000 0x3000>,
18 <0x4a320000 0x2000>,
19 <0x4a326000 0x2000>,
20 <0x4a32e000 0x31c>,
21 <0x4a332000 0x58>;
22 mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg",
23 "iep", "mii_rt";
24
25 status = "okay";
26 };
27 uio_pruss_mem2: uio_pruss_mem2 {
28 compatible = "ti,uio-module-drv";
29 mem = <0x4a328000 0xd4>,
30 <0x4a330000 0x174>,
31 <0x4a332400 0x90>,
32 <0x40302000 0x0e000>;
33 mem-names = "uart", "ecap", "mdio", "ocmc";
34 status = "okay";
35 };
36
37 uio_pruss_evt0: uio_pruss_evt0 {
38 compatible = "ti,uio-module-drv";
39 interrupts = <20>;
40 interrupt-mode = <1>;
41 status = "okay";
42 };
43 uio_pruss_evt1: uio_pruss_evt1 {
44 compatible = "ti,uio-module-drv";
45 interrupts = <21>;
46 interrupt-mode = <1>;
47 status = "okay";
48 };
49 uio_pruss_evt2: uio_pruss_evt2 {
50 compatible = "ti,uio-module-drv";
51 interrupts = <22>;
52 interrupt-mode = <1>;
53 status = "okay";
54 };
55 uio_pruss_evt3: uio_pruss_evt3 {
56 compatible = "ti,uio-module-drv";
57 interrupts = <23>;
58 interrupt-mode = <1>;
59 status = "okay";
60 };
61 uio_pruss_evt4: uio_pruss_evt4 {
62 compatible = "ti,uio-module-drv";
63 interrupts = <24>;
64 interrupt-mode = <1>;
65 status = "okay";
66 };
67 uio_pruss_evt5: uio_pruss_evt5 {
68 compatible = "ti,uio-module-drv";
69 interrupts = <25>;
70 interrupt-mode = <1>;
71 status = "okay";
72 };
73 uio_pruss_evt6: uio_pruss_evt6 {
74 compatible = "ti,uio-module-drv";
75 interrupts = <26>;
76 interrupt-mode = <1>;
77 status = "okay";
78 };
79 uio_pruss_evt7: uio_pruss_evt7 {
80 compatible = "ti,uio-module-drv";
81 interrupts = <27>;
82 interrupt-mode = <1>;
83 status = "okay";
84 };
85
86 uio_pruss_0_mem: uio_pruss_0_mem {
87 compatible = "ti,uio-module-drv";
88 mem = <0x4a334000 0x2000>,
89 <0x4a322000 0x400>,
90 <0x4a322400 0x100>;
91 mem-names = "iram", "control", "debug";
92 status = "okay";
93 };
94
95 uio_pruss_1_mem: uio_pruss_1_mem {
96 compatible = "ti,uio-module-drv";
97 mem = <0x4a338000 0x2000>,
98 <0x4a324000 0x400>,
99 <0x4a324400 0x100>;
100 mem-names = "iram", "control", "debug";
101 status = "okay";
102 };
103};
104
105&am33xx_pinmux {
106 uio_pruss_mdio_eth_default: uio_pruss_mdio_eht_default {
107 pinctrl-single,pins = <
108 AM33XX_IOPAD(0x88c, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_clk.pr1_mdio_mdclk */
109 AM33XX_IOPAD(0x888, (PIN_INPUT | MUX_MODE5)) /* gpmc_csn3.pr1_mdio_data */
110 AM33XX_IOPAD(0x89c, (PIN_INPUT_PULLUP | MUX_MODE7)) /* gpmc_ben0_cle.gpio2_5 */
111 /* disable CPSW MDIO */
112 AM33XX_IOPAD(0x948, (PIN_INPUT_PULLUP | MUX_MODE7)) /* mdio_data.gpio0_0 */
113 AM33XX_IOPAD(0x94c, (PIN_INPUT_PULLUP | MUX_MODE7)) /* mdio_clk.gpio0_1 */
114 AM33XX_IOPAD(0x8a0, (PIN_INPUT | MUX_MODE2)) /* dss_data0.pr1_mii_mt0_clk */
115 AM33XX_IOPAD(0x8b4, (PIN_OUTPUT | MUX_MODE2)) /* dss_data5.pr1_mii0_txd0 */
116 AM33XX_IOPAD(0x8b0, (PIN_OUTPUT | MUX_MODE2)) /* dss_data4.pr1_mii0_txd1 */
117 AM33XX_IOPAD(0x8ac, (PIN_OUTPUT | MUX_MODE2)) /* dss_data3.pr1_mii0_txd2 */
118 AM33XX_IOPAD(0x8a8, (PIN_OUTPUT | MUX_MODE2)) /* dss_data2.pr1_mii0_txd3 */
119 AM33XX_IOPAD(0x8cc, (PIN_INPUT | MUX_MODE5)) /* dss_data11.pr1_mii0_rxd0 */
120 AM33XX_IOPAD(0x8c8, (PIN_INPUT | MUX_MODE5)) /* dss_data10.pr1_mii0_rxd1 */
121 AM33XX_IOPAD(0x8c4, (PIN_INPUT | MUX_MODE5)) /* dss_data9.pr1_mii0_rxd2 */
122 AM33XX_IOPAD(0x8c0, (PIN_INPUT | MUX_MODE5)) /* dss_data8.pr1_mii0_rxd3 */
123 AM33XX_IOPAD(0x8a4, (PIN_OUTPUT | MUX_MODE2)) /* dss_data1.pr1_mii0_txen */
124 AM33XX_IOPAD(0x8d8, (PIN_INPUT | MUX_MODE5)) /* dss_data14.pr1_mii_mr0_clk */
125 AM33XX_IOPAD(0x8dc, (PIN_INPUT | MUX_MODE5)) /* dss_data15.pr1_mii0_rxdv */
126 AM33XX_IOPAD(0x8d4, (PIN_INPUT | MUX_MODE5)) /* dss_data13.pr1_mii0_rxer */
127 AM33XX_IOPAD(0x8d0, (PIN_INPUT | MUX_MODE5)) /* dss_data12.pr1_mii0_rxlink */
128 AM33XX_IOPAD(0x8e8, (PIN_INPUT | MUX_MODE2)) /* dss_pclk.pr1_mii0_crs */
129
130 AM33XX_IOPAD(0x840, (PIN_INPUT | MUX_MODE5)) /* gpmc_a0.pr1_mii_mt1_clk */
131 AM33XX_IOPAD(0x850, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a4.pr1_mii1_txd0 */
132 AM33XX_IOPAD(0x84c, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a3.pr1_mii1_txd1 */
133 AM33XX_IOPAD(0x848, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a2.pr1_mii1_txd2 */
134 AM33XX_IOPAD(0x844, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a1.pr1_mii1_txd3 */
135 AM33XX_IOPAD(0x860, (PIN_INPUT | MUX_MODE5)) /* gpmc_a8.pr1_mii1_rxd0 */
136 AM33XX_IOPAD(0x85c, (PIN_INPUT | MUX_MODE5)) /* gpmc_a7.pr1_mii1_rxd1 */
137 AM33XX_IOPAD(0x858, (PIN_INPUT | MUX_MODE5)) /* gpmc_a6.pr1_mii1_rxd2 */
138 AM33XX_IOPAD(0x854, (PIN_INPUT | MUX_MODE5)) /* gpmc_a5.pr1_mii1_rxd3 */
139 AM33XX_IOPAD(0x874, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_wpn.pr1_mii1_txen */
140 AM33XX_IOPAD(0x864, (PIN_INPUT | MUX_MODE5)) /* gpmc_a9.pr1_mii_mr1_clk */
141 AM33XX_IOPAD(0x868, (PIN_INPUT | MUX_MODE5)) /* gpmc_a10.pr1_mii1_rxdv */
142 AM33XX_IOPAD(0x86c, (PIN_INPUT | MUX_MODE5)) /* gpmc_a11.pr1_mii1_rxer */
143 AM33XX_IOPAD(0x878, (PIN_INPUT | MUX_MODE5)) /* gpmc_ben1.pr1_mii1_rxlink */
144 AM33XX_IOPAD(0x8ec, (PIN_INPUT | MUX_MODE2)) /* lcd_ac_bias_en.pr1_mii1_crs */
145 AM33XX_IOPAD(0x870, (PIN_INPUT | MUX_MODE5)) /* gpmc_wait0.pr1_mii1_col */
146 >;
147 };
148};
149
150&uio_pruss_mdio {
151 pinctrl-0 = <&uio_pruss_mdio_eth_default>;
152 pinctrl-names = "default";
153 reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
154 reset-delay-us = <2>; /* PHY datasheet states 1uS min */
155 status = "okay";
156
157 uio_pruss_eth0_phy: ethernet-phy@1 {
158 reg = <1>;
159 };
160
161 uio_pruss_eth1_phy: ethernet-phy@3 {
162 reg = <3>;
163 };
164};
165
166&pruss {
167 status = "disabled";
168};
169
170&pru0 {
171 status = "disabled";
172};
173
174&pru1 {
175 status = "disabled";
176};
177
178&pruss_intc {
179 status = "disabled";
180};
181
182&pruss_mdio {
183 status = "disabled";
184};
185
186&pruss_emac0 {
187 status = "disabled";
188};
189
190&pruss_emac1 {
191 status = "disabled";
192};
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/ti43x/am437x-pru-uio.dtsi b/meta-ti-bsp/recipes-kernel/linux/files/ti43x/am437x-pru-uio.dtsi
new file mode 100644
index 00000000..80993c4b
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/files/ti43x/am437x-pru-uio.dtsi
@@ -0,0 +1,292 @@
1&pruss_soc_bus {
2 uio_pruss2_mdio: uio_mdio@54432400 {
3 compatible = "ti,davinci_mdio";
4 reg = <0x54432400 0x90>;
5 clocks = <&dpll_core_m4_ck>;
6 clock-names = "fck";
7 bus_freq = <1000000>;
8 #address-cells = <1>;
9 #size-cells = <0>;
10 status = "disabled";
11 };
12
13 uio_pruss2_mem: uio_pruss2_mem {
14 compatible = "ti,uio-module-drv";
15 mem = <0x54400000 0x2000>,
16 <0x54402000 0x2000>,
17 <0x54410000 0x8000>,
18 <0x54420000 0x2000>,
19 <0x54426000 0x2000>,
20 <0x5442e000 0x31c>,
21 <0x54432000 0x58>;
22 mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg",
23 "iep", "mii_rt";
24 status = "okay";
25 };
26 uio_pruss2_mem2: uio_pruss2_mem2 {
27 compatible = "ti,uio-module-drv";
28 mem = <0x54428000 0x38>,
29 <0x54430000 0x60>,
30 <0x54432400 0x90>,
31 <0x40320000 0x20000>;
32 mem-names = "uart", "ecap", "mdio", "ocmc";
33 status = "okay";
34 };
35 uio_pruss2_evt0: uio_pruss2_evt0 {
36 compatible = "ti,uio-module-drv";
37 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
38 interrupt-mode = <1>;
39 status = "okay";
40 };
41 uio_pruss2_evt1: uio_pruss2_evt1 {
42 compatible = "ti,uio-module-drv";
43 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
44 interrupt-mode = <1>;
45 status = "okay";
46 };
47 uio_pruss2_evt2: uio_pruss2_evt2 {
48 compatible = "ti,uio-module-drv";
49 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
50 interrupt-mode = <1>;
51 status = "okay";
52 };
53 uio_pruss2_evt3: uio_pruss2_evt3 {
54 compatible = "ti,uio-module-drv";
55 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
56 interrupt-mode = <1>;
57 status = "okay";
58 };
59 uio_pruss2_evt4: uio_pruss2_evt4 {
60 compatible = "ti,uio-module-drv";
61 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
62 interrupt-mode = <1>;
63 status = "okay";
64 };
65 uio_pruss2_evt5: uio_pruss2_evt5 {
66 compatible = "ti,uio-module-drv";
67 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
68 interrupt-mode = <1>;
69 status = "okay";
70 };
71 uio_pruss2_evt6: uio_pruss2_evt6 {
72 compatible = "ti,uio-module-drv";
73 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
74 interrupt-mode = <1>;
75 status = "okay";
76 };
77 uio_pruss2_evt7: uio_pruss2_evt7 {
78 compatible = "ti,uio-module-drv";
79 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
80 interrupt-mode = <1>;
81 status = "okay";
82 };
83
84 uio_pruss2_0_mem: uio_pruss2_0_mem {
85 compatible = "ti,uio-module-drv";
86 mem = <0x54434000 0x3000>,
87 <0x54422000 0x400>,
88 <0x54422400 0x100>;
89 mem-names = "iram", "control", "debug";
90 status = "okay";
91 };
92
93 uio_pruss2_1_mem: uio_pruss2_1_mem {
94 compatible = "ti,uio-module-drv";
95 mem = <0x54438000 0x3000>,
96 <0x54424000 0x400>,
97 <0x54424400 0x100>;
98 mem-names = "iram", "control", "debug";
99 status = "okay";
100 };
101
102 uio_pruss1_mem: uio_pruss1_mem {
103 compatible = "ti,uio-module-drv";
104 mem = <0x54440000 0x1000>,
105 <0x54442000 0x1000>,
106 <0x54450000 0x8000>,
107 <0x54460000 0x2000>,
108 <0x54466000 0x2000>,
109 <0x5446e000 0x31c>,
110 <0x54472000 0x58>;
111 mem-names = "dram0", "dram1", "shrdram2", "intc", "cfg",
112 "iep", "mii_rt";
113 status = "okay";
114 };
115 uio_pruss1_mem2: uio_pruss1_mem2 {
116 compatible = "ti,uio-module-drv";
117 mem = <0x54468000 0x38>,
118 <0x54470000 0x60>,
119 <0x54472400 0x90>,
120 <0x40302000 0x1e000>;
121 mem-names = "uart", "ecap", "mdio", "ocmc";
122 status = "okay";
123 };
124 uio_pruss1_evt0: uio_pruss1_evt0 {
125 compatible = "ti,uio-module-drv";
126 interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>;
127 interrupt-mode = <1>;
128 status = "okay";
129 };
130 uio_pruss1_evt1: uio_pruss1_evt1 {
131 compatible = "ti,uio-module-drv";
132 interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>;
133 interrupt-mode = <1>;
134 status = "okay";
135 };
136 uio_pruss1_evt2: uio_pruss1_evt2 {
137 compatible = "ti,uio-module-drv";
138 interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
139 interrupt-mode = <1>;
140 status = "okay";
141 };
142 uio_pruss1_evt3: uio_pruss1_evt3 {
143 compatible = "ti,uio-module-drv";
144 interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
145 interrupt-mode = <1>;
146 status = "okay";
147 };
148 uio_pruss1_evt4: uio_pruss1_evt4 {
149 compatible = "ti,uio-module-drv";
150 interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
151 interrupt-mode = <1>;
152 status = "okay";
153 };
154 uio_pruss1_evt5: uio_pruss1_evt5 {
155 compatible = "ti,uio-module-drv";
156 interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
157 interrupt-mode = <1>;
158 status = "okay";
159 };
160 uio_pruss1_evt6: uio_pruss1_evt6 {
161 compatible = "ti,uio-module-drv";
162 interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>;
163 interrupt-mode = <1>;
164 status = "okay";
165 };
166 uio_pruss1_evt7: uio_pruss1_evt7 {
167 compatible = "ti,uio-module-drv";
168 interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
169 interrupt-mode = <1>;
170 status = "okay";
171 };
172
173 uio_pruss1_0_mem: uio_pruss1_0_mem {
174 compatible = "ti,uio-module-drv";
175 mem = <0x54474000 0x1000>,
176 <0x54462000 0x400>,
177 <0x54462400 0x100>;
178 mem-names = "iram", "control", "debug";
179 status = "okay";
180 };
181 uio_pruss1_1_mem: uio_pruss1_1_mem {
182 compatible = "ti,uio-module-drv";
183 mem = <0x54478000 0x1000>,
184 <0x54464000 0x400>,
185 <0x54464400 0x100>;
186 mem-names = "iram", "control", "debug";
187 status = "okay";
188 };
189};
190
191&am43xx_pinmux {
192 uio_pruss2_mdio_eth_default: uio_pruss2_mdio_eth_default {
193 pinctrl-single,pins = <
194 AM4372_IOPAD(0x88c, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_clk.pr1_mdio_mdclk */
195 AM4372_IOPAD(0xa70, (PIN_INPUT | MUX_MODE8)) /* xdma_event_intr0.pr1_mdio_data */
196 AM4372_IOPAD(0xa00, (PIN_INPUT_PULLUP | MUX_MODE7)) /* cam1_data6.gpio4_20 */
197 AM4372_IOPAD(0x8a0, (PIN_INPUT | MUX_MODE2)) /* dss_data0.pr1_mii_mt0_clk */
198 AM4372_IOPAD(0x8b4, (PIN_OUTPUT | MUX_MODE2)) /* dss_data5.pr1_mii0_txd0 */
199 AM4372_IOPAD(0x8b0, (PIN_OUTPUT | MUX_MODE2)) /* dss_data4.pr1_mii0_txd1 */
200 AM4372_IOPAD(0x8ac, (PIN_OUTPUT | MUX_MODE2)) /* dss_data3.pr1_mii0_txd2 */
201 AM4372_IOPAD(0x8a8, (PIN_OUTPUT | MUX_MODE2)) /* dss_data2.pr1_mii0_txd3 */
202 AM4372_IOPAD(0x8cc, (PIN_INPUT | MUX_MODE5)) /* dss_data11.pr1_mii0_rxd0 */
203 AM4372_IOPAD(0x8c8, (PIN_INPUT | MUX_MODE5)) /* dss_data10.pr1_mii0_rxd1 */
204 AM4372_IOPAD(0x8c4, (PIN_INPUT | MUX_MODE5)) /* dss_data9.pr1_mii0_rxd2 */
205 AM4372_IOPAD(0x8c0, (PIN_INPUT | MUX_MODE5)) /* dss_data8.pr1_mii0_rxd3 */
206 AM4372_IOPAD(0x8a4, (PIN_OUTPUT | MUX_MODE2)) /* dss_data1.pr1_mii0_txen */
207 AM4372_IOPAD(0x8d8, (PIN_INPUT | MUX_MODE5)) /* dss_data14.pr1_mii_mr0_clk */
208 AM4372_IOPAD(0x8dc, (PIN_INPUT | MUX_MODE5)) /* dss_data15.pr1_mii0_rxdv */
209 AM4372_IOPAD(0x8d4, (PIN_INPUT | MUX_MODE5)) /* dss_data13.pr1_mii0_rxer */
210 AM4372_IOPAD(0x8d0, (PIN_INPUT | MUX_MODE5)) /* dss_data12.pr1_mii0_rxlink */
211 AM4372_IOPAD(0xa40, (PIN_INPUT | MUX_MODE5)) /* gpio5_10.pr1_mii0_crs */
212 AM4372_IOPAD(0xa38, (PIN_INPUT | MUX_MODE5)) /* gpio5_8.pr1_mii0_col */
213 AM4372_IOPAD(0x858, (PIN_INPUT | MUX_MODE5)) /* gpmc_a6.pr1_mii_mt1_clk */
214 AM4372_IOPAD(0x854, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a5.pr1_mii1_txd0 */
215 AM4372_IOPAD(0x850, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a4.pr1_mii1_txd1 */
216 AM4372_IOPAD(0x84c, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a3.pr1_mii1_txd2 */
217 AM4372_IOPAD(0x848, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a2.pr1_mii1_txd3 */
218 AM4372_IOPAD(0x86c, (PIN_INPUT | MUX_MODE5)) /* gpmc_a11.pr1_mii1_rxd0 */
219 AM4372_IOPAD(0x868, (PIN_INPUT | MUX_MODE5)) /* gpmc_a10.pr1_mii1_rxd1 */
220 AM4372_IOPAD(0x864, (PIN_INPUT | MUX_MODE5)) /* gpmc_a9.pr1_mii1_rxd2 */
221 AM4372_IOPAD(0x860, (PIN_INPUT | MUX_MODE5)) /* gpmc_a8.pr1_mii1_rxd3 */
222 AM4372_IOPAD(0x840, (PIN_OUTPUT | MUX_MODE5)) /* gpmc_a0.pr1_mii1_txen */
223 AM4372_IOPAD(0x85c, (PIN_INPUT | MUX_MODE5)) /* gpmc_a7.pr1_mii_mr1_clk */
224 AM4372_IOPAD(0x844, (PIN_INPUT | MUX_MODE5)) /* gpmc_a1.pr1_mii1_rxdv */
225 AM4372_IOPAD(0x874, (PIN_INPUT | MUX_MODE5)) /* gpmc_wpn.pr1_mii1_rxer */
226 AM4372_IOPAD(0xa4c, (PIN_INPUT | MUX_MODE5)) /* gpio5_13.pr1_mii1_rxlink */
227 AM4372_IOPAD(0xa44, (PIN_INPUT | MUX_MODE5)) /* gpio5_11.pr1_mii1_crs */
228 AM4372_IOPAD(0x878, (PIN_INPUT | MUX_MODE5)) /* gpmc_be1n.pr1_mii1_col */
229 >;
230 };
231};
232
233&uio_pruss2_mdio {
234 pinctrl-0 = <&uio_pruss2_mdio_eth_default>;
235 pinctrl-names = "default";
236 status = "okay";
237
238 reset-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
239 reset-delay-us = <2>; /* PHY datasheet states 1uS min */
240
241 uio_pruss2_eth0_phy: uio_ethernet-phy@0 {
242 reg = <0>;
243 };
244
245 uio_pruss2_eth1_phy: uio_ethernet-phy@1 {
246 reg = <1>;
247 };
248};
249
250&pruss1 {
251 status = "disabled";
252};
253
254&pru1_0 {
255 status = "disabled";
256};
257
258&pru1_1 {
259 status = "disabled";
260};
261
262&pruss1_intc {
263 status = "disabled";
264};
265
266&pruss1_mdio {
267 status = "disabled";
268};
269
270&pruss0 {
271 status = "disabled";
272};
273
274&pru0_0 {
275 status = "disabled";
276};
277
278&pru0_1 {
279 status = "disabled";
280};
281
282&pruss0_intc {
283 status = "disabled";
284};
285
286&pruss1_emac0 {
287 status = "disabled";
288};
289
290&pruss1_emac1 {
291 status = "disabled";
292};
diff --git a/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc b/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc
new file mode 100644
index 00000000..0425c789
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/kernel-rdepends.inc
@@ -0,0 +1,27 @@
1# Pull in the devicetree files into the rootfs
2RDEPENDS:${KERNEL_PACKAGE_NAME}-base += "kernel-devicetree"
3
4# Add run-time dependency for PM firmware to the rootfs
5RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " amx3-cm3"
6RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " amx3-cm3"
7
8# Add run-time dependency for VPE VPDMA firmware to the rootfs
9RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " vpdma-fw"
10
11# Add run-time dependency for Goodix firmware to the rootfs
12RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " goodix-fw"
13
14# Add run-time dependency for PRU Ethernet firmware to the rootfs
15RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am57xx-evm = " prueth-fw prusw-fw pruhsr-fw pruprp-fw"
16RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am57xx-hs-evm = " prueth-fw prusw-fw pruhsr-fw pruprp-fw"
17RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " prueth-fw pruhsr-fw pruprp-fw"
18RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " prueth-fw pruhsr-fw pruprp-fw"
19RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx = " prueth-fw-am65x"
20RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx-evm = " prueth-fw-am65x-sr2 prusw-fw-am65x-sr2"
21RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am64xx-evm = " prueth-fw-am65x-sr2"
22
23# Add run-time dependency for Cadence MHDP firmware to the rootfs
24RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j7 = " cadence-mhdp-fw"
25
26# Add run-time dependency for Video Decoding firmware to the rootfs
27RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j7 = " vxd-dec-fw"
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/defconfig
new file mode 100644
index 00000000..d083d182
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_omap2_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/dra7xx/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/dra7xx/defconfig
new file mode 100644
index 00000000..dcb53bab
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/dra7xx/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_dra7x_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/k3/defconfig
new file mode 100644
index 00000000..b9bc6137
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/k3/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_arm64_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/omapl138/defconfig
new file mode 100644
index 00000000..b3467853
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/omapl138/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_omapl138_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/ti33x/defconfig
new file mode 100644
index 00000000..88f80fa9
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/ti33x/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_am3x_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/ti43x/defconfig
new file mode 100644
index 00000000..4b9daaf9
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline/ti43x/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_am4x_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb
new file mode 100644
index 00000000..6fe21071
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb
@@ -0,0 +1,75 @@
1SECTION = "kernel"
2SUMMARY = "Mainline Linux kernel for TI devices (with ti-upstream-tools)"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
5
6inherit kernel
7
8DEFCONFIG_BUILDER = "${WORKDIR}/ti-upstream-tools/config/defconfig_builder.sh"
9require recipes-kernel/linux/setup-defconfig.inc
10require recipes-kernel/linux/kernel-rdepends.inc
11require recipes-kernel/linux/ti-kernel.inc
12
13DEPENDS += "gmp-native"
14
15KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \
16 ${EXTRA_DTC_ARGS}"
17
18S = "${WORKDIR}/git"
19
20BRANCH = "master"
21TOOLS_BRANCH = "master"
22
23# 5.15 Mainline version
24SRCREV = "8bb7eca972ad531c9b149c0a51ab43a417385813"
25PV = "5.15+git${SRCPV}"
26
27# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
28MACHINE_KERNEL_PR:append = "b"
29PR = "${MACHINE_KERNEL_PR}"
30
31KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git"
32KERNEL_GIT_PROTOCOL = "git"
33SRC_URI += " \
34 ${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH};name=linux \
35 git://git.ti.com/ti-linux-kernel/ti-upstream-tools.git;branch=${TOOLS_BRANCH};protocol=${KERNEL_GIT_PROTOCOL};name=ti-upstream-tools;destsuffix=ti-upstream-tools \
36 file://defconfig \
37"
38
39SRCREV_ti-upstream-tools = "0f60697843bba6f8d721b14da92b1652563ccb95"
40SRCREV_FORMAT = "linux"
41
42KERNEL_DEVICETREE = ""
43
44kernel_do_compile:append() {
45 oe_runmake dtbs CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}
46 oe_runmake -C ${WORKDIR}/ti-upstream-tools LINUX=${S} DTC=${B}/scripts/dtc/dtc O=${B} CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}
47}
48
49do_install:append() {
50 for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \)`; do
51 dtb="$dtbf"
52 dtb_ext=${dtb##*.}
53 dtb_base_name=`basename $dtb .$dtb_ext`
54 dtb_path=`get_real_dtb_path_in_kernel "$dtb"`
55 install -m 0644 $dtbf ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext
56 done
57}
58
59do_deploy:append() {
60 for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \) -printf '%P\n'`; do
61 dtb="$dtbf"
62 dtb_ext=${dtb##*.}
63 dtb_base_name=`basename $dtb .$dtb_ext`
64 dtb_dir=`dirname $dtb`
65 install -d ${DEPLOYDIR}
66 install -m 0644 ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext ${DEPLOYDIR}/$dtb_base_name.$dtb_ext
67 done
68}
69
70do_shared_workdir:prepend() {
71 cd ${B}
72 echo >> Module.symvers
73}
74
75FILES:${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb"
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/defconfig
new file mode 100644
index 00000000..d083d182
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_omap2_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/dra7xx/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/dra7xx/defconfig
new file mode 100644
index 00000000..dcb53bab
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/dra7xx/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_dra7x_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/k3/defconfig
new file mode 100644
index 00000000..b9bc6137
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/k3/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_arm64_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/omapl138/defconfig
new file mode 100644
index 00000000..b3467853
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/omapl138/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_omapl138_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/ti33x/defconfig
new file mode 100644
index 00000000..88f80fa9
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/ti33x/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_am3x_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/ti43x/defconfig
new file mode 100644
index 00000000..4b9daaf9
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.10/ti43x/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_am4x_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/defconfig
new file mode 100644
index 00000000..d083d182
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_omap2_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/dra7xx/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/dra7xx/defconfig
new file mode 100644
index 00000000..dcb53bab
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/dra7xx/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_dra7x_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/k3/defconfig
new file mode 100644
index 00000000..b9bc6137
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/k3/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_arm64_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/omapl138/defconfig
new file mode 100644
index 00000000..b3467853
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/omapl138/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_omapl138_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/ti33x/defconfig
new file mode 100644
index 00000000..88f80fa9
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/ti33x/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_am3x_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/ti43x/defconfig
new file mode 100644
index 00000000..4b9daaf9
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-5.4/ti43x/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_am4x_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/defconfig
new file mode 100644
index 00000000..f0b8bab0
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_omap2_rt_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/dra7xx/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/dra7xx/defconfig
new file mode 100644
index 00000000..47e3d04a
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/dra7xx/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_dra7x_rt_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/k3/defconfig
new file mode 100644
index 00000000..cc10bfda
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/k3/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_arm64_rt_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/ti33x/defconfig
new file mode 100644
index 00000000..0a4fbac2
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/ti33x/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_am3x_rt_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/ti43x/defconfig
new file mode 100644
index 00000000..99594c81
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.10/ti43x/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_am4x_rt_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/defconfig
new file mode 100644
index 00000000..f0b8bab0
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_omap2_rt_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/dra7xx/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/dra7xx/defconfig
new file mode 100644
index 00000000..47e3d04a
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/dra7xx/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_dra7x_rt_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/k3/defconfig
new file mode 100644
index 00000000..cc10bfda
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/k3/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_arm64_rt_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/ti33x/defconfig
new file mode 100644
index 00000000..0a4fbac2
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/ti33x/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_am3x_rt_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/ti43x/defconfig
new file mode 100644
index 00000000..99594c81
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-5.4/ti43x/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_am4x_rt_release
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_5.10.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_5.10.bb
new file mode 100644
index 00000000..10325a8b
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_5.10.bb
@@ -0,0 +1,10 @@
1require linux-ti-staging_5.10.bb
2
3# Look in the generic major.minor directory for files
4# This will have priority over generic non-rt path
5FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.10:"
6
7BRANCH = "ti-rt-linux-5.10.y"
8
9SRCREV = "541ec9a6995c3dd881d6f0b63cc714a08ded457d"
10PV = "5.10.65+git${SRCPV}"
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_5.4.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_5.4.bb
new file mode 100644
index 00000000..8a0c0eaf
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_5.4.bb
@@ -0,0 +1,10 @@
1require linux-ti-staging_5.4.bb
2
3# Look in the generic major.minor directory for files
4# This will have priority over generic non-rt path
5FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.4:"
6
7BRANCH = "ti-rt-linux-5.4.y"
8
9SRCREV = "519667b0d81d74a6e55105dcd6072ae550352599"
10PV = "5.4.106+git${SRCPV}"
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/defconfig
new file mode 100644
index 00000000..5d051bd1
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_omap2_debug
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/dra7xx/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/dra7xx/defconfig
new file mode 100644
index 00000000..2b3635c3
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/dra7xx/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_dra7x_debug
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/k3/defconfig
new file mode 100644
index 00000000..56cf9302
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/k3/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_arm64_debug
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/omapl138/defconfig
new file mode 100644
index 00000000..95b61168
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/omapl138/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_omapl138_debug
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/ti33x/defconfig
new file mode 100644
index 00000000..9ab6733c
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/ti33x/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_am3x_debug
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/ti43x/defconfig
new file mode 100644
index 00000000..825c31cd
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.10/ti43x/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_am4x_debug
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/defconfig
new file mode 100644
index 00000000..5d051bd1
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_omap2_debug
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/dra7xx/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/dra7xx/defconfig
new file mode 100644
index 00000000..2b3635c3
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/dra7xx/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_dra7x_debug
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/k3/defconfig
new file mode 100644
index 00000000..56cf9302
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/k3/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_arm64_debug
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/omapl138/defconfig
new file mode 100644
index 00000000..95b61168
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/omapl138/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_omapl138_debug
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/ti33x/defconfig
new file mode 100644
index 00000000..9ab6733c
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/ti33x/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_am3x_debug
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/ti43x/defconfig
new file mode 100644
index 00000000..825c31cd
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-5.4/ti43x/defconfig
@@ -0,0 +1 @@
use-tisdk-config=ti_sdk_am4x_debug
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_5.10.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_5.10.bb
new file mode 100644
index 00000000..e57d82eb
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_5.10.bb
@@ -0,0 +1,5 @@
1require linux-ti-staging_5.10.bb
2
3# Look in the generic major.minor directory for files
4# This will have priority over generic non-rt path
5FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.10:"
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_5.4.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_5.4.bb
new file mode 100644
index 00000000..7a9a148b
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_5.4.bb
@@ -0,0 +1,5 @@
1require linux-ti-staging_5.4.bb
2
3# Look in the generic major.minor directory for files
4# This will have priority over generic non-rt path
5FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.4:"
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb
new file mode 100644
index 00000000..1a0ec5df
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.10.bb
@@ -0,0 +1,51 @@
1SECTION = "kernel"
2SUMMARY = "Linux kernel for TI devices"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
5
6inherit kernel
7
8DEFCONFIG_BUILDER = "${S}/ti_config_fragments/defconfig_builder.sh"
9require recipes-kernel/linux/setup-defconfig.inc
10require recipes-kernel/linux/cmem.inc
11require recipes-kernel/linux/ti-uio.inc
12require recipes-kernel/linux/bundle-devicetree.inc
13require recipes-kernel/linux/kernel-rdepends.inc
14require recipes-kernel/linux/ti-kernel.inc
15
16# Look in the generic major.minor directory for files
17FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.10:"
18
19KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \
20 ${EXTRA_DTC_ARGS}"
21
22S = "${WORKDIR}/git"
23
24BRANCH = "ti-linux-5.10.y"
25
26SRCREV = "dcc6bedb2c2bdb509709e4ae08303206e95ce6c2"
27PV = "5.10.65+git${SRCPV}"
28
29# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
30MACHINE_KERNEL_PR:append = "b"
31PR = "${MACHINE_KERNEL_PR}"
32
33KERNEL_GIT_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git"
34KERNEL_GIT_PROTOCOL = "git"
35SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \
36 file://defconfig"
37
38FILES:${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb"
39
40# Special configuration for remoteproc/rpmsg IPC modules
41module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample"
42module_conf_ti_k3_r5_remoteproc = "softdep ti_k3_r5_remoteproc pre: virtio_rpmsg_bus"
43module_conf_ti_k3_dsp_remoteproc = "softdep ti_k3_dsp_remoteproc pre: virtio_rpmsg_bus"
44KERNEL_MODULE_PROBECONF += "rpmsg_client_sample ti_k3_r5_remoteproc ti_k3_dsp_remoteproc"
45KERNEL_MODULE_AUTOLOAD:append:j7 = " rpmsg_kdrv_switch"
46
47# Disable SA2UL for AM64x HS and J7200 HS
48module_conf_sa2ul:am64xx-hs-evm = "blacklist sa2ul"
49KERNEL_MODULE_PROBECONF:append:am64xx-hs-evm = " sa2ul"
50module_conf_sa2ul:j7200-hs-evm = "blacklist sa2ul"
51KERNEL_MODULE_PROBECONF:append:j7200-hs-evm = " sa2ul"
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.4.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.4.bb
new file mode 100644
index 00000000..fbfa497f
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_5.4.bb
@@ -0,0 +1,43 @@
1SECTION = "kernel"
2SUMMARY = "Linux kernel for TI devices"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
5
6inherit kernel
7
8DEFCONFIG_BUILDER = "${S}/ti_config_fragments/defconfig_builder.sh"
9require recipes-kernel/linux/setup-defconfig.inc
10require recipes-kernel/linux/cmem.inc
11require recipes-kernel/linux/ti-uio.inc
12require recipes-kernel/linux/bundle-devicetree.inc
13require recipes-kernel/linux/kernel-rdepends.inc
14
15# Look in the generic major.minor directory for files
16FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.4:"
17
18KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
19
20S = "${WORKDIR}/git"
21
22BRANCH = "ti-linux-5.4.y"
23
24SRCREV = "023faefa70274929bff92dc41167b007f7523792"
25PV = "5.4.106+git${SRCPV}"
26
27# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
28MACHINE_KERNEL_PR:append = "a"
29PR = "${MACHINE_KERNEL_PR}"
30
31KERNEL_GIT_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git"
32KERNEL_GIT_PROTOCOL = "git"
33SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \
34 file://defconfig"
35
36FILES:${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb"
37
38# Special configuration for remoteproc/rpmsg IPC modules
39module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample"
40module_conf_ti_k3_r5_remoteproc = "softdep ti_k3_r5_remoteproc pre: virtio_rpmsg_bus"
41module_conf_ti_k3_dsp_remoteproc = "softdep ti_k3_dsp_remoteproc pre: virtio_rpmsg_bus"
42KERNEL_MODULE_PROBECONF += "rpmsg_client_sample ti_k3_r5_remoteproc ti_k3_dsp_remoteproc"
43KERNEL_MODULE_AUTOLOAD:append:j7 = " rpmsg_kdrv_switch"
diff --git a/meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc b/meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc
new file mode 100644
index 00000000..850a1dd8
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc
@@ -0,0 +1,92 @@
1# KERNEL_LOCALVERSION can be set to add a tag to the end of the
2# kernel version string. such as the commit id
3def 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
11KERNEL_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}"
12
13# Check the defconfig file and see if it points to an in kernel
14# defconfig that should be used, or if it is a complete config file
15# Or if it points to a combined defconfig that lists both in kernel
16# defconfig and associated config fragments.
17
18do_configure() {
19 # Always copy the defconfig file to .config to keep consistency
20 # between the case where there is a real config and the in kernel
21 # tree config
22 cp ${WORKDIR}/defconfig ${B}/.config
23
24 echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion
25 echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion
26
27 # Zero, when using "tisdk" configs, pass control to defconfig_builder
28 config=`cat ${B}/.config | grep use-tisdk-config | cut -d= -f2`
29 if [ -n "$config" ]
30 then
31 ${DEFCONFIG_BUILDER} -w ${S} -t $config
32 oe_runmake -C ${S} O=${B} "$config"_defconfig
33 else
34 # First, check if pointing to a combined config with config fragments
35 config=`cat ${B}/.config | grep use-combined-config | cut -d= -f2`
36 if [ -n "$config" ]
37 then
38 cp ${S}/$config ${B}/.config
39 fi
40
41 # Second, extract any config fragments listed in the defconfig
42 config=`cat ${B}/.config | grep config-fragment | cut -d= -f2`
43 if [ -n "$config" ]
44 then
45 configfrags=""
46 for f in $config
47 do
48 # Check if the config fragment is available
49 if [ ! -e "${S}/$f" ]
50 then
51 echo "Could not find kernel config fragment $f"
52 exit 1
53 else
54 # Sanitize config fragment files to be relative to sources
55 configfrags="$configfrags ${S}/$f"
56 fi
57 done
58 fi
59
60 # Third, check if pointing to a known in kernel defconfig
61 config=`cat ${B}/.config | grep use-kernel-config | cut -d= -f2`
62 if [ -n "$config" ]
63 then
64 oe_runmake -C ${S} O=${B} $config
65 else
66 yes '' | oe_runmake -C ${S} O=${B} oldconfig
67 fi
68 fi
69
70 # Fourth, handle config fragments specified in the recipe
71 # The assumption is that the config fragment will be specified with the absolute path.
72 # E.g. ${WORKDIR}/config1.cfg or ${S}/config2.cfg
73 if [ -n "${KERNEL_CONFIG_FRAGMENTS}" ]
74 then
75 for f in ${KERNEL_CONFIG_FRAGMENTS}
76 do
77 # Check if the config fragment is available
78 if [ ! -e "$f" ]
79 then
80 echo "Could not find kernel config fragment $f"
81 exit 1
82 fi
83 done
84 fi
85
86 # Now that all the fragments are located merge them
87 if [ -n "${KERNEL_CONFIG_FRAGMENTS}" -o -n "$configfrags" ]
88 then
89 ( cd ${WORKDIR} && ${S}/scripts/kconfig/merge_config.sh -m -r -O ${B} ${B}/.config $configfrags ${KERNEL_CONFIG_FRAGMENTS} 1>&2 )
90 yes '' | oe_runmake -C ${S} O=${B} oldconfig
91 fi
92}
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc b/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc
new file mode 100644
index 00000000..a7eb476e
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc
@@ -0,0 +1,9 @@
1# Add DTC FLAGS -@ when KERNEL_DTB_OVERLAY_SUPPORT is enabled
2
3def get_extra_dtc_args(d):
4 if d.getVar('KERNEL_DTB_OVERLAY_SUPPORT') == "1":
5 return "DTC_FLAGS=-@"
6 else:
7 return ""
8
9EXTRA_DTC_ARGS += "${@get_extra_dtc_args(d)}"
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-uio.inc b/meta-ti-bsp/recipes-kernel/linux/ti-uio.inc
new file mode 100644
index 00000000..eea7866a
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/ti-uio.inc
@@ -0,0 +1,71 @@
1SRC_URI:append:dra7xx = " file://am57xx-pru-uio.dtsi \
2 file://am571x-pru-uio.dtsi \
3"
4SRC_URI:append:ti33x = " file://am335x-pru-uio.dtsi"
5SRC_URI:append:ti43x = " file://am437x-pru-uio.dtsi"
6
7DTSI_LIST = ""
8
9do_setup_uio() {
10 if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
11 then
12 for dtsi in ${DTSI_LIST}
13 do
14 cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/
15 for dtb in ${KERNEL_DEVICETREE}
16 do
17 dts=`echo $dtb | sed -e 's|dtb$|dts|'`
18 echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts
19 done
20 done
21 fi
22}
23
24do_setup_uio:append:dra7xx() {
25
26 if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
27 then
28 dtsi="am57xx-pru-uio.dtsi"
29 cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/
30
31 dts="am572x-idk-pru-excl-uio.dts"
32 cp ${S}/arch/arm/boot/dts/am572x-idk.dts ${S}/arch/arm/boot/dts/$dts
33 echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts
34
35 dts="am574x-idk-pru-excl-uio.dts"
36 cp ${S}/arch/arm/boot/dts/am574x-idk.dts ${S}/arch/arm/boot/dts/$dts
37 echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts
38
39 dts="am571x-idk-pru-excl-uio.dts"
40 dtsi="am571x-pru-uio.dtsi"
41 cp ${S}/arch/arm/boot/dts/am571x-idk.dts ${S}/arch/arm/boot/dts/$dts
42 cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/
43 echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts
44 fi
45}
46
47do_setup_uio:append:ti33x() {
48
49 if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
50 then
51 dts="am335x-icev2-pru-excl-uio.dts"
52 dtsi="am335x-pru-uio.dtsi"
53 cp ${S}/arch/arm/boot/dts/am335x-icev2-prueth.dts ${S}/arch/arm/boot/dts/$dts
54 cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/
55 echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts
56 fi
57}
58
59do_setup_uio:append:ti43x() {
60
61 if [ "${ENABLE_TI_UIO_DEVICES}" == "1" ]
62 then
63 dts="am437x-idk-pru-excl-uio.dts"
64 dtsi="am437x-pru-uio.dtsi"
65 cp ${S}/arch/arm/boot/dts/am437x-idk-evm.dts ${S}/arch/arm/boot/dts/$dts
66 cp ${WORKDIR}/${dtsi} ${S}/arch/arm/boot/dts/
67 echo "#include \"${dtsi}\"" >> ${S}/arch/arm/boot/dts/$dts
68 fi
69}
70
71do_patch[postfuncs] += "do_setup_uio"
diff --git a/meta-ti-bsp/recipes-multimedia/libdce/libdce_3.00.14.00.bb b/meta-ti-bsp/recipes-multimedia/libdce/libdce_3.00.14.00.bb
new file mode 100644
index 00000000..42482c11
--- /dev/null
+++ b/meta-ti-bsp/recipes-multimedia/libdce/libdce_3.00.14.00.bb
@@ -0,0 +1,18 @@
1SUMMARY = "Library for remotely invoking HW accelerated codecs on IVA-HD"
2LICENSE = "BSD"
3LIC_FILES_CHKSUM = "file://libdce.h;beginline=1;endline=31;md5=0a398cf815b8b5f31f552266cd453dae"
4
5inherit autotools pkgconfig
6
7DEPENDS = "libdrm ti-ipc"
8
9SRC_URI = "git://git.omapzoom.org/repo/libdce.git;protocol=git"
10SRCREV = "f72096090e3063e85ea77cae66b2d99a48d91727"
11
12PR = "r1"
13
14S = "${WORKDIR}/git"
15EXTRA_OECONF += "IPC_HEADERS=${STAGING_INCDIR}/ti/ipc/mm"
16
17COMPATIBLE_HOST ?= "null"
18COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-bsp/recipes-security/optee/optee-%.bbappend b/meta-ti-bsp/recipes-security/optee/optee-%.bbappend
new file mode 100644
index 00000000..bc590bfd
--- /dev/null
+++ b/meta-ti-bsp/recipes-security/optee/optee-%.bbappend
@@ -0,0 +1 @@
COMPATIBLE_MACHINE:ti-soc = "ti-soc"
diff --git a/meta-ti-bsp/recipes-security/optee/optee-os_%.bbappend b/meta-ti-bsp/recipes-security/optee/optee-os_%.bbappend
new file mode 100644
index 00000000..5cb70df9
--- /dev/null
+++ b/meta-ti-bsp/recipes-security/optee/optee-os_%.bbappend
@@ -0,0 +1,91 @@
1do_compile:prepend:ti-soc() {
2 export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
3}
4
5do_compile:append:k3() {
6 ( cd ${B}/core/; \
7 cp tee-pager_v2.bin ${B}/bl32.bin; \
8 cp tee.elf ${B}/bl32.elf; \
9 )
10}
11
12# Signing procedure for legacy HS devices
13optee_sign_legacyhs() {
14 ( cd ${B}/core/; \
15 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee.bin tee.bin.signed; \
16 normfl=`echo ${OPTEEFLAVOR} | tr "_" "-"`
17 mv tee.bin.signed ${B}/$normfl.optee; \
18 )
19
20 if [ "${OPTEEPAGER}" = "y" ]; then
21 oe_runmake clean
22 oe_runmake all CFG_TEE_TA_LOG_LEVEL=0 CFG_WITH_PAGER=y
23 ( cd ${B}/core/; \
24 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee.bin tee.bin.signed; \
25 normfl=`echo ${OPTEEFLAVOR} | tr "_" "-"`
26 mv tee.bin.signed ${B}/$normfl-pager.optee; \
27 )
28 fi
29}
30
31# Signing procedure for K3 HS devices
32optee_sign_k3hs() {
33 ( cd ${B}/core/; \
34 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh tee-pager_v2.bin tee-pager.bin.signed; \
35 mv tee-pager.bin.signed ${B}/bl32.bin; \
36 cp tee.elf ${B}/bl32.elf; \
37 )
38}
39
40do_compile:append:ti43x() {
41 optee_sign_legacyhs
42}
43
44do_compile:append:dra7xx() {
45 optee_sign_legacyhs
46}
47
48do_compile:append:am65xx-hs-evm() {
49 optee_sign_k3hs
50}
51
52do_compile:append:am64xx-hs-evm() {
53 optee_sign_k3hs
54}
55
56do_compile:append:j7-hs-evm() {
57 optee_sign_k3hs
58}
59
60do_compile:append:j7200-hs-evm() {
61 optee_sign_k3hs
62}
63
64do_install:append:ti-soc() {
65 install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true
66 install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true
67 install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true
68}
69
70optee_deploy_legacyhs() {
71 cd ${DEPLOYDIR}/
72 for f in optee/*.optee; do
73 ln -sf $f ${DEPLOYDIR}/
74 done
75}
76
77do_deploy:append:ti43x() {
78 optee_deploy_legacyhs
79}
80
81do_deploy:append:dra7xx() {
82 optee_deploy_legacyhs
83}
84
85do_deploy:append:k3() {
86 ln -sf optee/bl32.bin ${DEPLOYDIR}/
87 ln -sf optee/bl32.elf ${DEPLOYDIR}/
88}
89
90# This is needed for bl32.elf
91INSANE_SKIP:${PN}:append:k3 = " textrel"
diff --git a/meta-ti-bsp/recipes-ti/README b/meta-ti-bsp/recipes-ti/README
new file mode 100644
index 00000000..b32c2842
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/README
@@ -0,0 +1 @@
Note: some of the packages in this area are not actively maintained.
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes.bb b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes.bb
new file mode 100644
index 00000000..ceefe0d6
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes.bb
@@ -0,0 +1,26 @@
1DESCRIPTION = "Userspace setup for beaglebone capes"
2
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
5
6PR = "r4"
7
8inherit allarch
9
10SRC_URI = "file://cape.service \
11 file://cape.sh \
12 file://cape-stop.sh \
13 "
14
15do_install() {
16 install -d ${D}${base_libdir}/systemd/system/
17 install -m 0644 ${WORKDIR}/cape.service ${D}${base_libdir}/systemd/system
18
19 install -d ${D}${base_libdir}/systemd/system/basic.target.wants
20 ln -sf ../cape.service ${D}${base_libdir}/systemd/system/basic.target.wants/
21
22 install -d ${D}${bindir}
23 install -m 0755 ${WORKDIR}/cape*.sh ${D}${bindir}
24}
25
26FILES:${PN} += "${base_libdir}/systemd/system"
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh
new file mode 100755
index 00000000..222a010d
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape-stop.sh
@@ -0,0 +1,14 @@
1#!/bin/sh
2for eeprom in /sys/bus/i2c/devices/3-005*/eeprom ; do
3 PARTNUMBER=$(hexdump -e '8/1 "%c"' $eeprom -s 58 -n16)
4 case $PARTNUMBER in
5 "BB-BONE-LCD3-01.")
6 echo "Turning off backlight for LCD3 cape"
7 i2cset -f -y 1 0x24 0x07 0x00;;
8 "BB-BONE-LCD4"*)
9 echo "Turning off backlight for LCD4 cape"
10 i2cset -f -y 1 0x24 0x07 0x00;;
11 *)
12 echo "unknown cape: $PARTNUMBER";;
13 esac
14done
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.service b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.service
new file mode 100644
index 00000000..ce0db719
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=Beaglebone cape support
3
4[Service]
5Type=oneshot
6RemainAfterExit=yes
7ExecStart=/usr/bin/cape.sh
8ExecStop=/usr/bin/cape-stop.sh
9
10[Install]
11WantedBy=basic.target
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.sh b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.sh
new file mode 100755
index 00000000..c279349d
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-capes/cape.sh
@@ -0,0 +1,22 @@
1#!/bin/sh
2for eeprom in /sys/bus/i2c/devices/3-005*/eeprom ; do
3 PARTNUMBER=$(hexdump -e '8/1 "%c"' $eeprom -s 58 -n16)
4 case $PARTNUMBER in
5 "BB-BONE-LCD3-01.")
6 echo "Turning on backlight for LCD3 cape"
7 i2cset -f -y 1 0x24 0x07 0x09
8 i2cset -f -y 1 0x24 0x08 0x60;;
9 "BB-BONE-LCD4"*)
10 echo "Turning on backlight for LCD4 cape"
11 i2cset -f -y 1 0x24 0x07 0x09
12 i2cset -f -y 1 0x24 0x08 0x60;;
13 "BB-BONE-WTHR-01.")
14 echo "Initializing I2C devices"
15 echo sht21 0x40 > /sys/class/i2c-adapter/i2c-3/new_device
16 echo bmp085 0x77 > /sys/class/i2c-adapter/i2c-3/new_device
17 echo tsl2550 0x39 > /sys/class/i2c-adapter/i2c-3/new_device
18 echo 1 > /sys/bus/i2c/devices/3-0039/operating_mode;;
19 *)
20 echo "unknown cape: $PARTNUMBER";;
21 esac
22done
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-getting-started.bb b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-getting-started.bb
new file mode 100644
index 00000000..25538ace
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/beaglebone-getting-started.bb
@@ -0,0 +1,21 @@
1SUMMARY = "BeagleBone Getting Started Guide"
2
3PR = "r22"
4
5inherit allarch
6
7LICENSE = "CC-BY-SA-3.0 & GPLv3+ & MIT & PD"
8LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f6f02761e31334c48f7021fb94c89aaa"
9
10SRCREV = "05bedba192646152b7bc80b0accaea75aef864e5"
11SRC_URI = "git://github.com/jadonk/beaglebone-getting-started.git;protocol=https;branch=master"
12
13S = "${WORKDIR}/git"
14
15do_install() {
16 install -d ${D}${datadir}/${PN}
17 cp -R --no-dereference --preserve=mode,links ${S}/* ${D}${datadir}/${PN}
18}
19
20FILES:${PN} += "${datadir}/${PN}"
21INSANE_SKIP:${PN} = "file-rdeps"
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init.bb b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init.bb
new file mode 100644
index 00000000..3ab00ec3
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init.bb
@@ -0,0 +1,60 @@
1DESCRIPTION = "Units to initialize usb gadgets"
2
3PR = "r19"
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
7
8COMPATIBLE_MACHINE = "(ti33x)"
9PACKAGE_ARCH = "${MACHINE_ARCH}"
10
11SRC_URI = "file://storage-gadget-init.service \
12 file://network-gadget-init.service \
13 file://udhcpd.service \
14 file://udhcpd.conf \
15 file://bone-gmass-eject.rules \
16 file://udhcpd.rules \
17 file://g-storage-reinsert.sh \
18 file://g-ether-start-service.sh \
19 file://g-ether-load.sh \
20 file://update-image-info-on-mmcblk0p1.sh \
21 "
22
23do_install() {
24 install -d ${D}${base_libdir}/systemd/system/basic.target.wants
25 install -m 0644 ${WORKDIR}/*.service ${D}${base_libdir}/systemd/system
26
27 for i in ${WORKDIR}/storage-gadget-init.service ; do
28 install -m 0644 $i ${D}${base_libdir}/systemd/system
29 ln -sf ../$(basename $i) ${D}${base_libdir}/systemd/system/basic.target.wants/
30 done
31
32 install -d ${D}${sysconfdir}/udev/rules.d
33 install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d
34 install -m 0644 ${WORKDIR}/*.conf ${D}${sysconfdir}
35
36 install -d ${D}${bindir}
37 install -m 0755 ${WORKDIR}/*.sh ${D}${bindir}
38}
39
40PACKAGES =+ "${PN}-storage ${PN}-network ${PN}-udhcpd"
41
42ALLOW_EMPTY:${PN} = "1"
43
44FILES:${PN}-storage = "${base_libdir}/systemd/system/storage-gadget-init.service \
45 ${base_libdir}/systemd/system/basic.target.wants/storage-gadget-init.service \
46 ${bindir}/g-storage-reinsert.sh \
47 ${bindir}/update-image-info-on-mmcblk0p1.sh \
48 ${sysconfdir}/udev/rules.d/bone-gmass-eject.rules"
49
50FILES:${PN}-network = "${base_libdir}/systemd/system/network-gadget-init.service \
51 ${base_libdir}/systemd/system/basic.target.wants/network-gadget-init.service \
52 ${bindir}/g-ether-load.sh \
53 ${bindir}/g-ether-start-service.sh \
54 ${sysconfdir}/udev/rules.d/udhcpd.rules"
55
56FILES:${PN}-udhcpd = "${base_libdir}/systemd/system/udhcpd.service \
57 ${base_libdir}/systemd/system/basic.target.wants/udhcpd.service \
58 ${sysconfdir}/udhcpd.conf"
59
60RRECOMMENDS:${PN} = "${PN}-storage ${PN}-network ${PN}-udhcpd"
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/bone-gmass-eject.rules b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/bone-gmass-eject.rules
new file mode 100644
index 00000000..ee6f93e2
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/bone-gmass-eject.rules
@@ -0,0 +1 @@
SUBSYSTEM=="block",ACTION=="change",KERNEL=="mmcblk0p1",RUN+="/usr/bin/g-ether-start-service.sh"
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-load.sh b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-load.sh
new file mode 100755
index 00000000..f9400649
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-load.sh
@@ -0,0 +1,46 @@
1#!/bin/sh
2
3function get_devmem()
4{
5 /usr/bin/devmem2 $1 | grep ": " | cut -d ":" -f 2|cut -d "x" -f 2
6}
7
8function hex_to_mac_addr()
9{
10 addr=$1
11 n=0
12 mac_addr=$(echo ${addr} | while read -r -n2 c; do
13 if [ ! -z "$c" ]; then
14 if [ $n -ne 0 ] ; then
15 echo -n ":${c}"
16 else
17 echo -n "${c}"
18 fi
19 fi
20 n=$(($n+1))
21 done)
22 echo ${mac_addr}
23}
24
25function reverse_bytes()
26{
27 addr=$1
28 New_addr=$(echo ${addr} | while read -r -n2 c; do
29 if [ ! -z "$c" ]; then
30 New_addr=${c}${New_addr}
31 else echo
32 echo ${New_addr}
33 fi
34 done)
35 echo ${New_addr}
36}
37
38DEVMEM_ADDR_LO=$(get_devmem 0x44e10638|bc)
39DEVMEM_ADDR_LO=$(reverse_bytes ${DEVMEM_ADDR_LO})
40
41DEVMEM_ADDR_HI=$(get_devmem 0x44e1063C)
42DEVMEM_ADDR_HI=$(reverse_bytes ${DEVMEM_ADDR_HI})
43
44DEV_ADDR=$(hex_to_mac_addr "${DEVMEM_ADDR_HI}${DEVMEM_ADDR_LO}")
45
46modprobe g_ether host_addr=${DEV_ADDR}
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh
new file mode 100755
index 00000000..6e73b155
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh
@@ -0,0 +1,10 @@
1#!/bin/sh
2if [ -a /sys/devices/platform/omap/musb-ti81xx/musb-hdrc.0/gadget/lun0/file ]
3then
4 x=$(cat /sys/devices/platform/omap/musb-ti81xx/musb-hdrc.0/gadget/lun0/file)
5 if [ -z "$x" ]
6 then
7 /bin/systemctl stop storage-gadget-init.service
8 /bin/systemctl start network-gadget-init.service
9 fi
10fi
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-storage-reinsert.sh b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-storage-reinsert.sh
new file mode 100755
index 00000000..d358640a
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/g-storage-reinsert.sh
@@ -0,0 +1,4 @@
1#!/bin/sh
2/bin/systemctl stop storage-gadget-init.service
3/bin/systemctl stop network-gadget-init.service
4/bin/systemctl start storage-gadget-init.service
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/network-gadget-init.service b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/network-gadget-init.service
new file mode 100644
index 00000000..0ee29147
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/network-gadget-init.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=Start USB Ethernet gadget
3Conflicts=storage-gadget-init.service
4
5[Service]
6RemainAfterExit=yes
7ExecStart=/usr/bin/g-ether-load.sh
8ExecStop=/sbin/rmmod g_ether
9
10[Install]
11WantedBy=gether.target
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service
new file mode 100644
index 00000000..9a8513e8
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=Start usb mass storage gadget
3After=dev-mmcblk0p1.device
4
5[Service]
6RemainAfterExit=yes
7ExecStart=/sbin/modprobe g_mass_storage file=/dev/mmcblk0p1 cdrom=0 stall=0 removable=1 nofua=1
8ExecStop=/sbin/rmmod g_mass_storage
9
10[Install]
11WantedBy=basic.target
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.conf b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.conf
new file mode 100644
index 00000000..3bcf00f0
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.conf
@@ -0,0 +1,5 @@
1start 192.168.7.1
2end 192.168.7.1
3interface usb0
4max_leases 1
5option subnet 255.255.255.252
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.rules b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.rules
new file mode 100644
index 00000000..db65f9ac
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.rules
@@ -0,0 +1,2 @@
1SUBSYSTEM=="net",ACTION=="add",KERNEL=="usb0",RUN+="/sbin/ifconfig usb0 192.168.7.2 netmask 255.255.255.252",RUN+="/bin/systemctl start udhcpd.service"
2SUBSYSTEM=="net",ACTION=="remove",KERNEL=="usb0",RUN+="/bin/systemctl stop udhcpd.service"
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.service b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.service
new file mode 100644
index 00000000..1f4ac688
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/udhcpd.service
@@ -0,0 +1,12 @@
1[Unit]
2Description=DHCP server for USB0 network gadget
3After=dev-usb0.device
4Conflicts=storage-gadget-init.service
5
6[Service]
7ExecStart=/usr/sbin/udhcpd -f -S /etc/udhcpd.conf
8ExecStop=/bin/kill -TERM $MAINPID
9KillSignal=SIGINT
10
11[Install]
12WantedBy=gether.target
diff --git a/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/update-image-info-on-mmcblk0p1.sh b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/update-image-info-on-mmcblk0p1.sh
new file mode 100755
index 00000000..a4daf734
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/beagleboard/gadget-init/update-image-info-on-mmcblk0p1.sh
@@ -0,0 +1,37 @@
1#!/bin/sh
2mount /dev/mmcblk0p1 /mnt
3echo "Image info snapshot" > /mnt/info.txt
4
5echo >> /mnt/info.txt
6echo "/etc/angstrom-version:" >> /mnt/info.txt
7cat /etc/angstrom-version >> /mnt/info.txt
8
9echo >> /mnt/info.txt
10echo "/proc/cpuinfo:" >> /mnt/info.txt
11cat /proc/cpuinfo >> /mnt/info.txt
12
13echo >> /mnt/info.txt
14echo "uname -a:" >> /mnt/info.txt
15uname -a >> /mnt/info.txt
16
17echo >> /mnt/info.txt
18echo "/proc/cmdline:" >> /mnt/info.txt
19cat /proc/cmdline >> /mnt/info.txt
20
21echo >> /mnt/info.txt
22echo "ifconfig:" >> /mnt/info.txt
23ifconfig >> /mnt/info.txt
24
25echo >> /mnt/info.txt
26echo "/etc/angstrom-build-info:" >> /mnt/info.txt
27cat /etc/angstrom-build-info >> /mnt/info.txt
28
29echo >> /mnt/info.txt
30echo "/etc/image-version-info:" >> /mnt/info.txt
31cat /etc/image-version-info >> /mnt/info.txt
32
33echo >> /mnt/info.txt
34echo "opkg list-installed:" >> /mnt/info.txt
35opkg list-installed >> /mnt/info.txt
36
37umount /mnt
diff --git a/meta-ti-bsp/recipes-ti/bios/ti-sysbios.inc b/meta-ti-bsp/recipes-ti/bios/ti-sysbios.inc
new file mode 100644
index 00000000..0009dfcc
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/bios/ti-sysbios.inc
@@ -0,0 +1,28 @@
1DESCRIPTION = "TI SYS/BIOS v6 Kernel"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios"
3SECTION = "devel"
4LICENSE = "BSD"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8require ../includes/ti-eula-unpack.inc
9
10S = "${WORKDIR}/bios_${PV}"
11
12SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/${PV}/exports/bios_setuplinux_${PV}.bin;name=sysbiosbin"
13BINFILE="bios_${PV}.bin"
14TI_BIN_UNPK_CMDS="Y: q:workdir:Y"
15
16do_install() {
17 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
18 install -d ${D}${SYSBIOS_INSTALL_DIR_RECIPE}
19 cp ${CP_ARGS} ${S}/* ${D}${SYSBIOS_INSTALL_DIR_RECIPE}
20}
21
22ALLOW_EMPTY:${PN} = "1"
23FILES:${PN}-dev += "${SYSBIOS_INSTALL_DIR_RECIPE}"
24
25INHIBIT_PACKAGE_STRIP = "1"
26INHIBIT_SYSROOT_STRIP = "1"
27INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
28INSANE_SKIP:${PN}-dev = "arch ldflags staticdev file-rdeps"
diff --git a/meta-ti-bsp/recipes-ti/bios/ti-sysbios_6.76.03.01.bb b/meta-ti-bsp/recipes-ti/bios/ti-sysbios_6.76.03.01.bb
new file mode 100644
index 00000000..d242510f
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/bios/ti-sysbios_6.76.03.01.bb
@@ -0,0 +1,16 @@
1require recipes-ti/bios/ti-sysbios.inc
2
3PE = "1"
4PV = "6_76_03_01"
5PR = "r0"
6
7LIC_FILES_CHKSUM = "file://manifest_bios_${PV}.html;md5=5cf40699c51b26d36fc01647c0b27fb1"
8
9SRC_URI[sysbiosbin.md5sum] = "647243209d66d5dd35503b0ec5a84ab9"
10SRC_URI[sysbiosbin.sha256sum] = "b762b7f2343d26d367f952488e529046785128005158cc921c3baef08e97116a"
11
12TI_BIN_UNPK_CMDS = ""
13TI_BIN_UNPK_ARGS = "--mode unattended --prefix ${WORKDIR}"
14
15BINFILE = "bios_${PV}.run"
16SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/${PV}/exports/${BINFILE};name=sysbiosbin"
diff --git a/meta-ti-bsp/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb b/meta-ti-bsp/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb
new file mode 100644
index 00000000..5851b899
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb
@@ -0,0 +1,29 @@
1DESCRIPTION = "Codec Engine for TI ARM/DSP processors"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce"
3SECTION = "devel"
4LICENSE = "BSD"
5
6require recipes-ti/includes/ti-paths.inc
7require recipes-ti/includes/ti-staging.inc
8
9PV = "3_24_00_08"
10PR = "r0"
11
12LIC_FILES_CHKSUM = "file://codec_engine_${PV}_Manifest.html;md5=de7d9c2594a6f3868e42a33b6a748ce7"
13
14SRC_URI[cetarball.md5sum] = "d66a8ccbd6cdfe9f735af9f4a07e2b9b"
15SRC_URI[cetarball.sha256sum] = "ed7b7399903bbf76af06ee6457836f344ad75b903618339bae82b3967f27ffa1"
16
17S = "${WORKDIR}/codec_engine_${PV}"
18
19SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce/${PV}/exports/codec_engine_${PV},lite.tar.gz;name=cetarball "
20
21do_install() {
22 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
23 # Install/Stage the Source Tree
24 install -d ${D}${CE_INSTALL_DIR_RECIPE}
25 cp ${CP_ARGS} ${S}/* ${D}${CE_INSTALL_DIR_RECIPE}
26}
27
28ALLOW_EMPTY:${PN} = "1"
29FILES:${PN}-dev += "${CE_INSTALL_DIR_RECIPE}"
diff --git a/meta-ti-bsp/recipes-ti/ctoolslib/libaet_git.bb b/meta-ti-bsp/recipes-ti/ctoolslib/libaet_git.bb
new file mode 100644
index 00000000..c15ab229
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ctoolslib/libaet_git.bb
@@ -0,0 +1,38 @@
1SUMMARY = "TI Emulation CTools AET library"
2DESCRIPTION = "The AETLIB library provides programmatic access to the Advanced Event Triggering capability on C6x processor cores"
3
4LICENSE = "BSD"
5
6PV = "4.19.0.0"
7
8LIC_FILES_CHKSUM = "file://../ctoolslib_manifest.html;md5=b7dd369a2e07ef9a71795ee5a9bd01bd"
9
10SRC_URI = "git://git.ti.com/sdo-emu/ctoolslib.git;protocol=git;branch=opencl_aetlib_build"
11SRCREV = "de7954abab0f0caa8a2c7b53095c30226d901a31"
12
13DEPENDS = "ti-cgt6x-native"
14PR = "r0"
15
16S = "${WORKDIR}/git/aet"
17
18DEVICE=""
19DEVICE:dra7xx = "DRA7xx"
20
21EXTRA_OEMAKE = "C6X_C_DIR=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x/include"
22
23do_install() {
24 install -d ${D}${datadir}/ti/ctoolslib/aet
25 install -d ${D}${datadir}/ti/ctoolslib/aet/include
26 install -d ${D}${datadir}/ti/ctoolslib/aet/lib
27 cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${S}/include/* ${D}${datadir}/ti/ctoolslib/aet/include/
28 install -m 0644 ${S}/build/c66/libaet.ae66 ${D}${datadir}/ti/ctoolslib/aet/lib/
29}
30
31COMPATIBLE_MACHINE = "dra7xx"
32PACKAGE_ARCH = "${MACHINE_ARCH}"
33
34FILES:${PN}-dev += "\
35 ${datadir}/ti/ctoolslib/aet \
36"
37
38ALLOW_EMPTY:${PN} = "1"
diff --git a/meta-ti-bsp/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb b/meta-ti-bsp/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb
new file mode 100644
index 00000000..e0feb02c
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb
@@ -0,0 +1,29 @@
1DESCRIPTION = "Baremetal GCC for ARM"
2LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
3
4LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=f77466c63f5787f4bd669c402aabe061"
5
6require recipes-ti/includes/ti-paths.inc
7
8SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2018q2/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2;name=gcc-arm-none"
9
10SRC_URI[gcc-arm-none.md5sum] = "299ebd3f1c2c90930d28ab82e5d8d6c0"
11SRC_URI[gcc-arm-none.sha256sum] = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69"
12
13S = "${WORKDIR}/gcc-arm-none-eabi-7-2018-q2-update"
14
15# only x86_64 is supported
16COMPATIBLE_HOST = "x86_64.*-linux"
17COMPATIBLE_HOST:class-target = "null"
18
19do_install() {
20 install -d ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
21 cp -r ${S}/. ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}
22}
23
24FILES:${PN} = "${GCC_ARM_NONE_TOOLCHAIN_RECIPE}/*"
25
26INSANE_SKIP:${PN} = "already-stripped libdir staticdev build-deps file-rdeps"
27INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
28
29BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cg-xml_2.61.00.bb b/meta-ti-bsp/recipes-ti/devtools/ti-cg-xml_2.61.00.bb
new file mode 100644
index 00000000..8e36be6d
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cg-xml_2.61.00.bb
@@ -0,0 +1,40 @@
1DESCRIPTION = "TI CG_XML"
2HOMEPAGE = "http://software-dl.ti.com/ccs/non-esd/releases/other/applications_packages/cg_xml/index.htm"
3SECTION = "devel"
4LICENSE = "BSD"
5
6require recipes-ti/includes/ti-paths.inc
7require recipes-ti/includes/ti-staging.inc
8require recipes-ti/includes/ti-unpack.inc
9
10PV = "2.61.00"
11PE = "1"
12S = "${WORKDIR}/cg_xml_${PV}"
13
14SRC_URI = "\
15 http://software-dl.ti.com/ccs/non-esd/releases/other/applications_packages/cg_xml/cg_xml_v${@'${PV}'.replace('.','_')}/cgxml-${PV}-linux-installer.run;name=cgxmlbin_linux \
16"
17LIC_FILES_CHKSUM = "file://cg_xml_${PV}_Manifest.pdf;md5=fc02a39748ba50373f32b2f4a5e3a684"
18
19SRC_URI[cgxmlbin_linux.md5sum] = "6ce60caa97bbf15158d806fb062fadff"
20SRC_URI[cgxmlbin_linux.sha256sum] = "da77cb10bd3d5de89e27e4ce8f4408a2e50775c8980225f9a828ddc242bb81f9"
21
22BINFILE="cgxml-${PV}-linux-installer.run"
23TI_BIN_UNPK_CMDS=""
24TI_BIN_UNPK_ARGS="--prefix ${S} --mode unattended"
25
26do_install() {
27 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
28 install -d ${D}${CG_XML_INSTALL_DIR_RECIPE}
29 cp ${CP_ARGS} ${S}/* ${D}${CG_XML_INSTALL_DIR_RECIPE}
30}
31
32FILES:${PN} += "${CG_XML_INSTALL_DIR_RECIPE}"
33
34INSANE_SKIP:${PN} = "arch ldflags file-rdeps"
35
36INHIBIT_PACKAGE_STRIP = "1"
37INHIBIT_SYSROOT_STRIP = "1"
38INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
39
40BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb b/meta-ti-bsp/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb
new file mode 100644
index 00000000..b7b6d9b1
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb
@@ -0,0 +1,44 @@
1SUMMARY = "TI ARM Code Generation Tools"
2HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
3LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD & BSD-4-Clause"
4
5LIC_FILES_CHKSUM = "file://ti-cgt-arm_${PV}.LTS/README.txt;md5=79631eb21b2e5b7190cd3ff1dfd41108"
6
7require recipes-ti/includes/ti-unpack.inc
8require recipes-ti/includes/ti-staging.inc
9require recipes-ti/includes/ti-paths.inc
10
11S = "${WORKDIR}/ti-cgt-arm-${PV}"
12
13PE = "1"
14PR = "r0"
15
16SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}"
17
18BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin"
19TI_BIN_UNPK_ARGS = "--prefix ${S}"
20TI_BIN_UNPK_CMDS = ""
21
22# only x86_64 is supported
23COMPATIBLE_HOST = "x86_64.*-linux"
24COMPATIBLE_HOST:class-target = "null"
25
26do_install() {
27 install -d ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
28 cp -r ${S}/ti-cgt-arm*/. ${D}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}
29}
30
31SRC_URI[cgt_arm_installer.md5sum] = "e9e668332cf86c965b4da9d1d488426b"
32SRC_URI[cgt_arm_installer.sha256sum] = "da976143128c619a278cb4214a4295c409d100f9e65ad2f4d0d1039db7cf98f4"
33
34BINFILE_NAME = "cgt_arm_installer"
35
36FILES:${PN} += "${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
37
38INHIBIT_PACKAGE_STRIP = "1"
39INHIBIT_SYSROOT_STRIP = "1"
40INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
41
42INSANE_SKIP:${PN} += "arch staticdev file-rdeps"
43
44BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cgt-pru_2.3.2.bb b/meta-ti-bsp/recipes-ti/devtools/ti-cgt-pru_2.3.2.bb
new file mode 100644
index 00000000..8b3e2a07
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cgt-pru_2.3.2.bb
@@ -0,0 +1,49 @@
1DESCRIPTION = "TI PRU Code Generation Tools"
2HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
3LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 & MIT & BSD-2-Clause & PD"
4
5LIC_FILES_CHKSUM = "file://ti-cgt-pru_${PV}/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc"
6LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-pru/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc"
7
8require recipes-ti/includes/ti-paths.inc
9require recipes-ti/includes/ti-unpack.inc
10
11BINFILE = "ti_cgt_pru_${PV}_linux_installer_x86.bin"
12BINFILE_NAME = "cgt-pru-x86"
13TI_BIN_UNPK_ARGS = "--prefix ${S}"
14TI_BIN_UNPK_CMDS = ""
15
16BINFILE:class-target = "ti_cgt_pru_${PV}_armlinuxa8hf_busybox_installer.sh"
17BINFILE_NAME:class-target = "cgt-pru-arm"
18
19SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/PRU/${PV}/${BINFILE};name=${BINFILE_NAME}"
20
21SRC_URI[cgt-pru-x86.md5sum] = "270a0ecca383f66cad3a0e2a738c6ab0"
22SRC_URI[cgt-pru-x86.sha256sum] = "af1178a059d46d67d5672df053dd2fbebb0b89a513b17b8739dbe915b4a5d71a"
23
24SRC_URI[cgt-pru-arm.md5sum] = "fbf10083af1b0e5d69b018126603bb58"
25SRC_URI[cgt-pru-arm.sha256sum] = "75ac84775a5624ea7e4fad4efc1acb7e869c79160550d48ba780068a3dce879c"
26
27do_install() {
28 install -d ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}
29 cp -r ${S}/ti-cgt-pru_${PV}/. \
30 ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}/
31}
32
33do_install:class-target() {
34 ${WORKDIR}/${BINFILE} --prefix ${D}
35}
36
37FILES:${PN} += "${datadir}/ti/*"
38
39FILES:${PN}-dbg = "${TI_CGT_PRU_INSTALL_DIR_RECIPE}/bin/.debug \
40 ${TI_CGT_PRU_INSTALL_DIR_RECIPE}/lib/.debug \
41"
42
43INHIBIT_PACKAGE_STRIP = "1"
44INHIBIT_SYSROOT_STRIP = "1"
45INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
46
47INSANE_SKIP:${PN} += "arch staticdev already-stripped file-rdeps"
48
49BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cgt470.inc b/meta-ti-bsp/recipes-ti/devtools/ti-cgt470.inc
new file mode 100644
index 00000000..f0992aa7
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cgt470.inc
@@ -0,0 +1,24 @@
1DESCRIPTION = "TI ARM Code Generation Tools"
2HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/CodeGenerationTools.htm"
3SECTION = "devel"
4LICENSE = "TI"
5
6LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600"
7
8require ../includes/ti-paths.inc
9require ../includes/ti-staging.inc
10require ../includes/ti-eula-unpack.inc
11
12S = "${WORKDIR}/cgt470_${PV}"
13
14SRC_URI = "http://install.source.dir.local/ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin;name=cgt470bin"
15
16BINFILE="ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin"
17TI_BIN_UNPK_CMDS="Y:qY:workdir: : "
18TI_BIN_UNPK_WDEXT="/cgt470_${PV}"
19
20do_install() {
21 install -d ${D}${CODEGEN_ARM_INSTALL_DIR_RECIPE}
22 cp -pPrf ${S}/* ${D}${CODEGEN_ARM_INSTALL_DIR_RECIPE}
23}
24
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cgt470_4.6.6.bb b/meta-ti-bsp/recipes-ti/devtools/ti-cgt470_4.6.6.bb
new file mode 100644
index 00000000..6ff2cc48
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cgt470_4.6.6.bb
@@ -0,0 +1,8 @@
1require ti-cgt470.inc
2
3PV = "4_6_6"
4PVwithdots = "4.6.6"
5
6SRC_URI[cgt470bin.md5sum] = "29a316dc6b8c8c3a53e0d6c956acb62b"
7SRC_URI[cgt470bin.sha256sum] = "a17bc7139f450672503c932ef53b00c425522890e031b4a7c9135fdf90815740"
8
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb b/meta-ti-bsp/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb
new file mode 100644
index 00000000..a7de8e38
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb
@@ -0,0 +1,46 @@
1SUMMARY = "TI DSP Code Generation Tools"
2DESCRIPTION = "Texas Instrument (TI) Code Generation Tools are custom \
3utilities targeted for TI embedded processors. This Digital Signal \
4Processor (DSP) suite contains tools needed to create and debug \
5applications for the C6000 DSP family. This includes tools such as: \
6compiler, linker, assembler, etc. This also includes C runtime \
7libraries and standard header files needed to produce a working DSP application."
8
9HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
10LICENSE = "TI-TSPA"
11
12LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca"
13
14S = "${WORKDIR}/c6000_7.4.16"
15
16require recipes-ti/includes/ti-paths.inc
17require recipes-ti/includes/ti-unpack.inc
18
19BINFILE = "ti_cgt_c6000_7.4.16_linux_installer_x86.bin"
20BINFILE_NAME = "cgt6x_7.4.16_x86_installer"
21TI_BIN_UNPK_ARGS = "--prefix ${WORKDIR} --mode unattended"
22TI_BIN_UNPK_CMDS=""
23
24SRC_URI = "http://install.source.dir.local/${BINFILE};name=${BINFILE_NAME}"
25
26SRC_URI[cgt6x_7.4.16_x86_installer.md5sum] = "21ca55c5b1f6b2d8d4fb7570d5eb5513"
27SRC_URI[cgt6x_7.4.16_x86_installer.sha256sum] = "baa0d1ef20397383f99f45068a6d160963a01419d42fbbb851263b54c91df82f"
28
29# only x86_64 is supported
30COMPATIBLE_HOST = "x86_64.*-linux"
31COMPATIBLE_HOST:class-target = "null"
32
33do_install() {
34 install -d ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
35 cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${WORKDIR}/c6000_7.4.16/. ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE}
36}
37
38FILES:${PN} += "${TI_CGT6X_7_INSTALL_DIR_RECIPE}"
39
40INSANE_SKIP:${PN} += "arch staticdev textrel"
41
42INHIBIT_PACKAGE_STRIP = "1"
43INHIBIT_SYSROOT_STRIP = "1"
44INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
45
46BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cgt6x_8.3.2.bb b/meta-ti-bsp/recipes-ti/devtools/ti-cgt6x_8.3.2.bb
new file mode 100644
index 00000000..fd34657a
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cgt6x_8.3.2.bb
@@ -0,0 +1,107 @@
1DESCRIPTION = "TI DSP Code Generation Tools"
2HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
3LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD"
4
5LIC_FILES_CHKSUM = "file://ti-cgt-c6000_${PV}/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1"
6LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-c6x/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1"
7
8PE = "1"
9
10require recipes-ti/includes/ti-unpack.inc
11
12COMPATIBLE_HOST:class-target = "arm.*-linux"
13
14# For now we only have hardfp version for target class
15python __anonymous() {
16 c = d.getVar("CLASSOVERRIDE")
17
18 if c == "class-target":
19 tunes = d.getVar("TUNE_FEATURES")
20 if not tunes:
21 return
22 pkgn = d.getVar("PN")
23 pkgv = d.getVar("PV")
24 if "callconvention-hard" not in tunes:
25 bb.warn("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
26 raise bb.parse.SkipPackage("%s-%s ONLY supports hardfp mode for now" % (pkgn, pkgv))
27}
28
29BINFILE = "ti_cgt_c6000_${PV}_linux_installer_x86.bin"
30BINFILE_NAME = "cgt6x_x86_installer"
31TI_BIN_UNPK_ARGS = "--prefix ${S}"
32TI_BIN_UNPK_CMDS = ""
33
34BINFILE:class-target = "ti_cgt_c6000_${PV}_armlinuxa8hf_busybox_installer.sh"
35BINFILE_NAME:class-target = "cgt6x_arm_installer"
36
37SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C6000/${PV}/${BINFILE};name=${BINFILE_NAME}"
38
39SRC_URI[cgt6x_x86_installer.md5sum] = "f1f534e6a4bdee6df39e8d0cb458d161"
40SRC_URI[cgt6x_x86_installer.sha256sum] = "1fba2a8f5532b33a23677771d686a866171ce7a0e567fed50d900d0ecd2e17e6"
41
42SRC_URI[cgt6x_arm_installer.md5sum] = "425d82308e71202ad004a36b7ec3cec9"
43SRC_URI[cgt6x_arm_installer.sha256sum] = "70c387ddde379194fed712087be6cb0ca5f4f0e65d7f29bd7462c38ee011928f"
44
45do_install() {
46 install -d ${D}${bindir}
47 for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do
48 install -m 755 ${binfile} ${D}${bindir}
49 done
50
51 install -d ${D}${datadir}/ti/cgt-c6x/bin
52 for binfile in ${S}/ti-cgt-c6000_${PV}/bin/*; do
53 install -m 755 ${binfile} ${D}${datadir}/ti/cgt-c6x/bin
54 done
55
56 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
57 cp ${CP_ARGS} ${S}/ti-cgt-c6000_${PV}/include ${D}${datadir}/ti/cgt-c6x/include
58
59 install -d ${D}${datadir}/ti/cgt-c6x/lib
60 for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.a; do
61 install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
62 done
63
64 for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.cmd; do
65 install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
66 done
67
68 for libfile in ${S}/ti-cgt-c6000_${PV}/lib/*.lib; do
69 install -m 644 ${libfile} ${D}${datadir}/ti/cgt-c6x/lib
70 done
71
72 install -d ${D}${datadir}/man/man1
73 for manfile in ${S}/ti-cgt-c6000_${PV}/man/man1/*; do
74 if [ -e ${manfile} ]; then
75 install -m 644 ${manfile} ${D}${datadir}/man/man1
76 fi
77 done
78
79 install -d ${D}${datadir}/doc/ti/cgt-c6x
80 for docfile in ${S}/ti-cgt-c6000_${PV}/*.txt; do
81 install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
82 done
83
84 for docfile in ${S}/ti-cgt-c6000_${PV}/*.html; do
85 install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
86 done
87
88 for docfile in ${S}/ti-cgt-c6000_${PV}/*.spdx; do
89 install -m 644 ${docfile} ${D}${datadir}/doc/ti/cgt-c6x
90 done
91
92}
93
94do_install:class-target() {
95 ${WORKDIR}/${BINFILE} --prefix ${D}
96}
97
98FILES:${PN} += "${datadir}/ti/*"
99
100FILES:${PN}-dbg += "${datadir}/ti/cgt-c6x/bin/.debug"
101
102INSANE_SKIP:${PN} += "staticdev"
103INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${datadir}/ti/cgt-c6x/lib/libc.a"
104
105BBCLASSEXTEND = "native nativesdk"
106
107COMPATIBLE_MACHINE:class-target = "(ti-soc)"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-cgt7x_1.2.0.bb b/meta-ti-bsp/recipes-ti/devtools/ti-cgt7x_1.2.0.bb
new file mode 100644
index 00000000..b45b52a3
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-cgt7x_1.2.0.bb
@@ -0,0 +1,49 @@
1SUMMARY = "TI DSP Code Generation Tools"
2DESCRIPTION = "Texas Instruments (TI) Code Generation Tools are custom \
3utilities targeted for TI embedded processors. This Digital Signal \
4Processor (DSP) suite contains tools needed to create and debug \
5applications for the C7000 DSP family. This includes tools such as: \
6compiler, linker, assembler, etc. This also includes C runtime \
7libraries and standard header files needed to produce a working DSP application."
8HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm"
9LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD"
10
11LIC_FILES_CHKSUM = "file://ti-cgt-c7000_${PV}.STS/C7000_Code_Generation_Tools_1.x_manifest.html;md5=f1156d241d104c281bc64a6ec8eadc64"
12
13require recipes-ti/includes/ti-unpack.inc
14require recipes-ti/includes/ti-paths.inc
15
16# only x86_64 is supported
17COMPATIBLE_HOST = "x86_64.*-linux"
18COMPATIBLE_HOST:class-target = "null"
19
20PE = "1"
21
22BINFILE = "ti_cgt_c7000_${PV}.STS_linux_installer_x86.bin"
23BINFILE_NAME = "cgt7x_x86_installer"
24
25SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C7000/${PV}.STS/${BINFILE};name=${BINFILE_NAME}"
26
27TI_BIN_UNPK_ARGS = "--prefix ${S}"
28TI_BIN_UNPK_CMDS = ""
29
30SRC_URI[cgt7x_x86_installer.md5sum] = "813840908f333dd2a31f92edec71c1fb"
31SRC_URI[cgt7x_x86_installer.sha256sum] = "21379811a8857489f72ca8ec45a46eb086ced0bdbb58e78f73a86e63984ab2f5"
32
33S = "${WORKDIR}/c7000_${PV}"
34
35do_install() {
36 install -d ${D}/${TI_CGT7X_INSTALL_DIR_RECIPE}
37 cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${WORKDIR}/c7000_${PV}/ti-cgt-c7000_${PV}.STS/. ${D}/${TI_CGT7X_INSTALL_DIR_RECIPE}
38}
39
40
41FILES:${PN} += "${TI_CGT7X_INSTALL_DIR_RECIPE}"
42
43INSANE_SKIP:${PN} += "arch staticdev textrel"
44
45INHIBIT_PACKAGE_STRIP = "1"
46INHIBIT_SYSROOT_STRIP = "1"
47INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
48
49BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-xdctools-common.inc b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools-common.inc
new file mode 100644
index 00000000..3caf7b8d
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools-common.inc
@@ -0,0 +1,70 @@
1DESCRIPTION = "TI XDCtools (RTSC - Real Time Software Components - http://rtsc.eclipse.org)"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc"
3SECTION = "devel"
4LICENSE = "BSD & GPLv2"
5
6require recipes-ti/includes/ti-paths.inc
7require recipes-ti/includes/ti-staging.inc
8
9do_install() {
10 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
11
12 install -d ${D}${XDC_INSTALL_DIR_RECIPE}
13 cp ${CP_ARGS} ${S}/* ${D}${XDC_INSTALL_DIR_RECIPE}
14}
15
16FILES:${PN}-dev = "${XDC_INSTALL_DIR_RECIPE}"
17
18BBCLASSEXTEND = "native nativesdk"
19
20INHIBIT_PACKAGE_STRIP = "1"
21INHIBIT_SYSROOT_STRIP = "1"
22INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
23INSANE_SKIP:${PN}-dev = "libdir dev-elf arch file-rdeps"
24
25# Prevent internal libs from getting picked up
26PRIVATE_LIBS = " \
27libncdb.so \
28libcdb.so \
29libjavaplugin_oji.so \
30libjavaplugin_jni.so \
31libjsound.so \
32libinstrument.so \
33libjawt.so \
34libzip.so \
35libjava_crw_demo.so \
36libjavaplugin_nscp_gcc29.so \
37libhprof.so \
38libcmm.so \
39libjdwp.so \
40libmlib_image.so \
41libjpeg.so \
42libverify.so \
43libjavaplugin_nscp.so \
44libmanagement.so \
45libunpack.so \
46librmi.so \
47libJdbcOdbc.so \
48libawt.so \
49libnet.so \
50libjaas_unix.so \
51libnio.so \
52libdcpr.so \
53libioser12.so \
54libjsoundalsa.so \
55libjava.so \
56libfontmanager.so \
57libdt_socket.so \
58libmawt.so \
59libjvm.so \
60libhpi.so \
61lib.so \
62libcairo.so.2 \
63libjli.so \
64libawt_xawt.so \
65"
66
67COMPATIBLE_HOST ?= "null"
68COMPATIBLE_HOST:ti-soc = "(.*)"
69COMPATIBLE_HOST:class-native = "(.*)"
70COMPATIBLE_HOST:class-nativesdk = "(.*)"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-xdctools-core.inc b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools-core.inc
new file mode 100644
index 00000000..47f73b6d
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools-core.inc
@@ -0,0 +1,5 @@
1require ti-xdctools-common.inc
2
3S = "${WORKDIR}/xdctools_${PV}_core"
4
5SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/${PV}/exports/xdccore/xdctools_${PV}_core_linux.zip;name=xdczip"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-xdctools.inc b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools.inc
new file mode 100644
index 00000000..1415f83e
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools.inc
@@ -0,0 +1,10 @@
1require ti-xdctools-common.inc
2require ../includes/ti-eula-unpack.inc
3
4S = "${WORKDIR}/xdctools_${PV}"
5
6SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/${PV}/exports/xdctools_setuplinux_${PV}.bin;name=xdcbin"
7
8BINFILE="xdctools_setuplinux_${PV}.bin"
9TI_BIN_UNPK_CMDS="Y:workdir:Y"
10TI_BIN_UNPK_WDEXT="/ti"
diff --git a/meta-ti-bsp/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb
new file mode 100644
index 00000000..6c3fdeb2
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb
@@ -0,0 +1,10 @@
1require recipes-ti/devtools/ti-xdctools-core.inc
2
3PE = "1"
4PV = "3_55_02_22"
5PR = "r0"
6
7LIC_FILES_CHKSUM = "file://docs/license/xdc/shelf/package.html;beginline=1;endline=140;md5=2e742b9757bc9ce0241aadba9f627ab8"
8
9SRC_URI[xdczip.md5sum] = "bb9154d677ce4724a5eac73817b23a0f"
10SRC_URI[xdczip.sha256sum] = "bf90dfbbe298458c736d81d5631db25b335e79146923a4a50fab217e02723e7b"
diff --git a/meta-ti-bsp/recipes-ti/dsplib/dsplib-c64xp_git.bb b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c64xp_git.bb
new file mode 100644
index 00000000..1550a538
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c64xp_git.bb
@@ -0,0 +1,6 @@
1include dsplib.inc
2
3MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages"
4DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
5DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}"
6DSPLIB_BUILD_TARGET = "c64Px"
diff --git a/meta-ti-bsp/recipes-ti/dsplib/dsplib-c66x_git.bb b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c66x_git.bb
new file mode 100644
index 00000000..b28d8df6
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c66x_git.bb
@@ -0,0 +1,8 @@
1include dsplib.inc
2
3MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages"
4DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}"
5DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}"
6DSPLIB_BUILD_TARGET = "c66x"
7
8DEPENDS += "mathlib-c66x"
diff --git a/meta-ti-bsp/recipes-ti/dsplib/dsplib-c674x_git.bb b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c674x_git.bb
new file mode 100644
index 00000000..47974ea1
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/dsplib/dsplib-c674x_git.bb
@@ -0,0 +1,8 @@
1include dsplib.inc
2
3MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages"
4DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}"
5DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}"
6DSPLIB_BUILD_TARGET = "c674x"
7
8DEPENDS += "mathlib-c674x"
diff --git a/meta-ti-bsp/recipes-ti/dsplib/dsplib.inc b/meta-ti-bsp/recipes-ti/dsplib/dsplib.inc
new file mode 100644
index 00000000..85d79ae3
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/dsplib/dsplib.inc
@@ -0,0 +1,78 @@
1SUMMARY = "DSPLIB contains optimized signal processing functions for TI DSPs"
2HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib"
3LICENSE = "BSD-3-Clause"
4
5require ../includes/ti-paths.inc
6
7PV = "3_4_0_4"
8PR = "r2"
9
10DEPENDS = "ti-cgt6x-native \
11 ti-xdctools-native \
12 ti-sysbios \
13 doxygen-native \
14 zip-native \
15 swtools"
16
17S = "${WORKDIR}/git"
18
19DSPLIB_GIT_BRANCH = "master"
20DSPLIB_GIT_PROTOCOL = "git"
21DSPLIB_GIT_URI = "git://git.ti.com/ep-processor-libraries/dsplib.git"
22DSPLIB_SRCREV = "0390b171042c602e07669fd28a371cc319b90161"
23
24SRC_URI = "${DSPLIB_GIT_URI};protocol=${DSPLIB_GIT_PROTOCOL};branch=${DSPLIB_GIT_BRANCH}"
25SRCREV = "${DSPLIB_SRCREV}"
26
27LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b"
28
29export DSPLIB_WORK_DIR="${S}"
30export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
31export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
32export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
33export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
34export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
35export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
36export INCDIR="${MATHLIB_INSTALL_DIR}/"
37
38PATH:append = ":${XDC_INSTALL_DIR}"
39
40XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
41XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};"
42
43export XDCPATH
44
45DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}"
46
47do_compile() {
48 cd ${DSPLIB_WORK_DIR}/ti/dsplib;
49 xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"
50}
51
52do_install() {
53 install -d ${D}${DSPLIB_INSTALL_DIR_RECIPE}
54
55 find -name "${DSPLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${DSPLIB_INSTALL_DIR_RECIPE} \;
56 cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib/. ${D}${DSPLIB_INSTALL_DIR_RECIPE}
57 rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib
58}
59
60inherit deploy
61addtask deploy before do_build after do_install
62
63do_deploy() {
64 install -d ${DEPLOYDIR}
65 # zip up files in ${D}${DSPLIB_INSTALL_DIR_RECIPE}
66 # and place the zip file in ${DEPLOYDIR}
67 mkdir ./${DSPLIB_PACKAGE_NAME}
68 cp -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/. ./${DSPLIB_PACKAGE_NAME}
69 zip -9 -y -r -q ${DEPLOYDIR}/${DSPLIB_PACKAGE_NAME}.zip ./${DSPLIB_PACKAGE_NAME}
70 rm -r ./${DSPLIB_PACKAGE_NAME}
71}
72
73ALLOW_EMPTY:${PN} = "1"
74FILES:${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}"
75
76INSANE_SKIP:${PN}-dev = "arch"
77COMPATIBLE_HOST ?= "null"
78COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components.inc b/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components.inc
new file mode 100644
index 00000000..e8b7c414
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components.inc
@@ -0,0 +1,21 @@
1DESCRIPTION = "TI Framework Components"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/fc"
3SECTION = "devel"
4LICENSE = "BSD"
5
6require recipes-ti/includes/ti-paths.inc
7
8S = "${WORKDIR}/framework_components_${PV}"
9
10SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/fc/${PV}/exports/framework_components_${PV},lite.tar.gz;name=fctarball"
11
12do_install() {
13 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
14 install -d ${D}${FC_INSTALL_DIR_RECIPE}
15 cp ${CP_ARGS} ${S}/* ${D}${FC_INSTALL_DIR_RECIPE}
16}
17
18INSANE_SKIP:${PN} = "ldflags"
19
20ALLOW_EMPTY:${PN} = "1"
21FILES:${PN}-dev += "${FC_INSTALL_DIR_RECIPE}"
diff --git a/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_2.26.00.01.bb b/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_2.26.00.01.bb
new file mode 100644
index 00000000..1ec10b15
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_2.26.00.01.bb
@@ -0,0 +1,9 @@
1require ti-framework-components.inc
2
3PV = "2_26_00_01"
4PR = "r2"
5
6LIC_FILES_CHKSUM = "file://framework_components_2_26_00_01_manifest.html;md5=3250f9da7ee72284c07f8dd840400c75"
7
8SRC_URI[fctarball.md5sum] = "40b51cade2f9ae6e6f6dca73c17065af"
9SRC_URI[fctarball.sha256sum] = "3f7a12a51dfe87310828a31518d7ef8f9039e59269c0ca24f74a68433c235048"
diff --git a/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_3.40.02.07.bb b/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_3.40.02.07.bb
new file mode 100644
index 00000000..56c00283
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/framework-components/ti-framework-components_3.40.02.07.bb
@@ -0,0 +1,9 @@
1require ti-framework-components.inc
2
3PV = "3_40_02_07"
4PR = "r0"
5
6LIC_FILES_CHKSUM = "file://framework_components_${PV}_Manifest.html;md5=0dd131dd53300f517b14dba8824f8b0a"
7
8SRC_URI[fctarball.md5sum] = "36dd2312ea8d70aa2ae0a05a24dbf54e"
9SRC_URI[fctarball.sha256sum] = "69082a0f86d12c24b39a1293ec35cf8007b850479898d5ae485ec1e8cf2e8c72"
diff --git a/meta-ti-bsp/recipes-ti/imglib/imglib-c66x.inc b/meta-ti-bsp/recipes-ti/imglib/imglib-c66x.inc
new file mode 100644
index 00000000..ab5cbdb6
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/imglib/imglib-c66x.inc
@@ -0,0 +1,34 @@
1DESCRIPTION = "IMGLIB contains optimized general-purpose image/video processing routines for TI DSPs"
2HOMEPAGE = "http://www.ti.com/tool/sprc264"
3SECTION = "devel"
4LICENSE = "BSD-3-Clause"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8require ../includes/ti-unpack.inc
9
10COMPATIBLE_MACHINE = "omap-a15"
11
12SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/imglib/${PV}/exports/${BINFILE};name=imglib"
13
14S = "${WORKDIR}/imglib-c66x-${PV}"
15
16BINFILE = "imglib_c66x_${PV}_Linux.bin"
17TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
18TI_BIN_UNPK_CMDS = ""
19
20do_install() {
21 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
22 install -d ${D}${IMGLIB_C66_INSTALL_DIR_RECIPE}
23 cp ${CP_ARGS} ${S}/* ${D}${IMGLIB_C66_INSTALL_DIR_RECIPE}
24}
25
26ALLOW_EMPTY:${PN} = "1"
27FILES:${PN}-dev += "${IMGLIB_C66_INSTALL_DIR_RECIPE}"
28
29INHIBIT_PACKAGE_STRIP = "1"
30INHIBIT_SYSROOT_STRIP = "1"
31INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
32
33RDEPENDS:${PN}-dev += "perl"
34INSANE_SKIP:${PN}-dev = "arch"
diff --git a/meta-ti-bsp/recipes-ti/imglib/imglib-c66x_3.1.1.0.bb b/meta-ti-bsp/recipes-ti/imglib/imglib-c66x_3.1.1.0.bb
new file mode 100644
index 00000000..e614352c
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/imglib/imglib-c66x_3.1.1.0.bb
@@ -0,0 +1,9 @@
1require imglib-c66x.inc
2
3PV = "3_1_1_0"
4PR = "r1"
5
6LIC_FILES_CHKSUM = "file://packages/ti/imglib/src/common/IMG_profile.h;beginline=1;endline=35;md5=a21fc16da34b650ce33a9a7143908667"
7
8SRC_URI[imglib.md5sum] = "9d64f213e040899048446df5055deeca"
9SRC_URI[imglib.sha256sum] = "f3153e51530f26cfc638efca7ca6ae1bbaf7736daf287fc972592372a676ed21"
diff --git a/meta-ti-bsp/recipes-ti/includes/ti-eula-unpack.inc b/meta-ti-bsp/recipes-ti/includes/ti-eula-unpack.inc
new file mode 100644
index 00000000..ead06100
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/includes/ti-eula-unpack.inc
@@ -0,0 +1,15 @@
1# This file defines function used for unpacking the .bin file downloaded over
2# the http and display EULA.
3# BINFILE - name of the install jammer .bin file
4# TARFILE - name of the tar file inside the install jammer
5# TI_BIN_UNPK_CMDS - contains list of commands separated with colon to be
6# passed while unpacking the bin file. The keyword
7# workdir expands to WORKDIR and commands are appendded
8# with '\n'. Eg. TI_BIN_UNPK_CMDS="Y:Y: qY:workdir"
9# TI_BIN_UNPK_WDEXT - This variable extends workdir path, if user wants to put
10# the output in some internal directory
11
12require recipes-ti/includes/ti-unpack.inc
13
14TI_BIN_UNPK_ARGS = "--mode console"
15
diff --git a/meta-ti-bsp/recipes-ti/includes/ti-paths.inc b/meta-ti-bsp/recipes-ti/includes/ti-paths.inc
new file mode 100644
index 00000000..358d7dfd
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/includes/ti-paths.inc
@@ -0,0 +1,109 @@
1installdir = "${datadir}/ti"
2
3export TOOLCHAIN_PATH ?= "${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}"
4# This is where do_install will put it
5export AUDIO_SOC_INSTALL_DIR_RECIPE = "${installdir}/ti-audio-soc-example-tree"
6export BIOSPSP_INSTALL_DIR_RECIPE = "${installdir}/ti-biospsp-tree"
7export C6ACCEL_INSTALL_DIR_RECIPE = "${installdir}/ti-c6accel-tree"
8export C6RUN_INSTALL_DIR_RECIPE = "${installdir}/ti-c6run-tree"
9export CE_INSTALL_DIR_RECIPE = "${installdir}/ti-codec-engine-tree"
10export CODEC_INSTALL_DIR_RECIPE = "${installdir}/ti-codecs-tree"
11export CODEGEN_ARM_INSTALL_DIR_RECIPE= "${installdir}/ti-cgt470-tree"
12export CODEGEN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt6x-tree"
13export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree"
14export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree"
15export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree"
16export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree"
17export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree"
18export DVTB_INSTALL_DIR_RECIPE = "${installdir}/ti-dvtb-tree"
19export EDMA3_LLD_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-tree"
20export EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-sysbios-tree"
21export FASTMATHLIB_C674P_INSTALL_DIR_RECIPE = "${installdir}/ti-fastmathlib-c67x-tree"
22export FC3_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components3-tree"
23export FC_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components-tree"
24export GFX_SDK_INSTALL_DIR_RECIPE = "${installdir}/ti-gfx-sdk-tree"
25export HDVICP20_INSTALL_DIR_RECIPE = "${installdir}/ti-hdvicp20-tree"
26export IMGLIB_C64P_INSTALL_DIR_RECIPE= "${installdir}/ti-imglib-tree"
27export IPC_INSTALL_DIR_RECIPE = "${installdir}/ti-ipc-tree"
28export LINK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplink-tree"
29export LPM_INSTALL_DIR_RECIPE = "${installdir}/ti-local-power-manager-tree"
30export OMX_INSTALL_DIR_RECIPE = "${installdir}/ti-omx-tree"
31export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree"
32export RTFS_INSTALL_DIR_RECIPE = "${installdir}/ti-rtfs-tree"
33export SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-sysbios-tree"
34export SYSLINK_INSTALL_DIR_RECIPE = "${installdir}/ti-syslink-tree"
35export SWTOOLS_INSTALL_DIR_RECIPE = "${installdir}/ti-swtools-tree"
36export UIA_INSTALL_DIR_RECIPE = "${installdir}/ti-uia-tree"
37export VICPLIB_INSTALL_DIR_RECIPE = "${installdir}/ti-vicplib-tree"
38export XDAIS_INSTALL_DIR_RECIPE = "${installdir}/ti-xdais-tree"
39export XDC_INSTALL_DIR_RECIPE = "${installdir}/ti-xdctools-tree"
40export PDK_INSTALL_DIR_RECIPE = "${installdir}/ti-pdk-tree"
41export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree"
42export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm"
43export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi"
44export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru"
45export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree"
46export MATHLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree"
47export IMGLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-imglib-c66x-tree"
48export VLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-vlib-c66x-tree"
49export CG_XML_INSTALL_DIR_RECIPE = "${installdir}/ti-cg-xml-tree"
50export OMP_INSTALL_DIR_RECIPE = "${installdir}/ti-omp-tree"
51export MPM_INSTALL_DIR_RECIPE = "${installdir}/ti-mpm-tree"
52export TI_CGT6X_7_INSTALL_DIR_RECIPE = "${installdir}/cgt6x-7"
53export TI_CGT7X_INSTALL_DIR_RECIPE = "${installdir}/cgt-c7x"
54
55
56# This is where the tools will end up in sysroot
57export BIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOS_INSTALL_DIR_RECIPE}"
58export BIOSPSP_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOSPSP_INSTALL_DIR_RECIPE}"
59export C6ACCEL_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6ACCEL_INSTALL_DIR_RECIPE}"
60export C6RUN_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6RUN_INSTALL_DIR_RECIPE}"
61export CE_INSTALL_DIR = "${STAGING_DIR_TARGET}${CE_INSTALL_DIR_RECIPE}"
62export CMEM_INSTALL_DIR = "${STAGING_DIR_TARGET}${CMEM_INSTALL_DIR_RECIPE}"
63export CODEC_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEC_INSTALL_DIR_RECIPE}"
64export CODEGEN_ARM_INSTALL_DIR= "${STAGING_DIR_TARGET}${CODEGEN_ARM_INSTALL_DIR_RECIPE}"
65export CODEGEN_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEGEN_INSTALL_DIR_RECIPE}"
66export DSP_BENCHMARK_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSP_BENCHMARK_INSTALL_DIR_RECIPE}"
67export EDMA3_LLD_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_INSTALL_DIR_RECIPE}"
68export EDMA3_LLD_SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE}"
69export FASTMATHLIB_C674P_INSTALL_DIR = "${STAGING_DIR_TARGET}${FASTMATHLIB_C674P_INSTALL_DIR_RECIPE}"
70export FC3_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC3_INSTALL_DIR_RECIPE}"
71export FC_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC_INSTALL_DIR_RECIPE}"
72export HDVICP20_INSTALL_DIR = "${STAGING_DIR_TARGET}${HDVICP20_INSTALL_DIR_RECIPE}"
73export IMGLIB_C64P_INSTALL_DIR= "${STAGING_DIR_TARGET}${IMGLIB_C64P_INSTALL_DIR_RECIPE}"
74export IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}${IPC_INSTALL_DIR_RECIPE}"
75export LINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${LINK_INSTALL_DIR_RECIPE}"
76export LPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${LPM_INSTALL_DIR_RECIPE}"
77export OMX_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMX_INSTALL_DIR_RECIPE}"
78export SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSBIOS_INSTALL_DIR_RECIPE}"
79export SYSLINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSLINK_INSTALL_DIR_RECIPE}"
80export UIA_INSTALL_DIR = "${STAGING_DIR_TARGET}${UIA_INSTALL_DIR_RECIPE}"
81export XDAIS_INSTALL_DIR = "${STAGING_DIR_TARGET}${XDAIS_INSTALL_DIR_RECIPE}"
82export XDC_INSTALL_DIR = "${STAGING_DIR_NATIVE}${XDC_INSTALL_DIR_RECIPE}"
83export PDK_INSTALL_DIR = "${STAGING_DIR_TARGET}${PDK_INSTALL_DIR_RECIPE}"
84export OSAL_INSTALL_DIR = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}"
85export M4_TOOLCHAIN_INSTALL_DIR = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}"
86export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}"
87export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}"
88export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}"
89export DSPLIB_C64P_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}"
90export DSPLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}"
91export DSPLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}"
92export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}"
93export MATHLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}"
94export IMGLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}"
95export VLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}"
96export CG_XML_INSTALL_DIR = "${STAGING_DIR_NATIVE}${CG_XML_INSTALL_DIR_RECIPE}"
97export OMP_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMP_INSTALL_DIR_RECIPE}"
98export MPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${MPM_INSTALL_DIR_RECIPE}"
99export TI_CGT6X_7_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT6X_7_INSTALL_DIR_RECIPE}"
100export GCC_LINARO_BAREMETAL_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_TOOLCHAIN_RECIPE}"
101export GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN_RECIPE}"
102export TI_CGT7X_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT7X_INSTALL_DIR_RECIPE}"
103
104
105DSPSUFFIX:omapl137 = "x674"
106DSPSUFFIX:omapl138 = "x674"
107DSPSUFFIX_ti816x = "xe674"
108DSPSUFFIX_ti814x = "xe674"
109DSPSUFFIX ?= "x64P"
diff --git a/meta-ti-bsp/recipes-ti/includes/ti-staging.inc b/meta-ti-bsp/recipes-ti/includes/ti-staging.inc
new file mode 100644
index 00000000..f18d017c
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/includes/ti-staging.inc
@@ -0,0 +1,6 @@
1INHIBIT_PACKAGE_STRIP = "1"
2
3ALLOW_EMPTY:${PN} = "1"
4ALLOW_EMPTY:${PN}-dev = "1"
5
6
diff --git a/meta-ti-bsp/recipes-ti/includes/ti-unpack.inc b/meta-ti-bsp/recipes-ti/includes/ti-unpack.inc
new file mode 100644
index 00000000..46bfb957
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/includes/ti-unpack.inc
@@ -0,0 +1,83 @@
1# This file defines function used for unpacking the .bin file downloaded over
2# the http.
3# BINFILE - name of the install jammer .bin file
4# TARFILE - name of the tar file inside the install jammer
5# TI_BIN_UNPK_ARGS - contains the arguments to be passed to the bin file.
6# TI_BIN_UNPK_CMDS - contains list of commands separated with colon to be
7# passed while unpacking the bin file. The keyword
8# workdir expands to WORKDIR and commands are appendded
9# with '\n'. Eg. TI_BIN_UNPK_CMDS="Y:Y: qY:workdir"
10# TI_BIN_UNPK_WDEXT - This variable extends workdir path, if user wants to put
11# the output in some internal directory
12
13python do_unpack () {
14 bb.build.exec_func('base_do_unpack', d)
15 bb.build.exec_func('ti_bin_do_unpack', d)
16}
17
18TI_BIN_UNPK_WDEXT ?= ""
19python ti_bin_do_unpack() {
20 import os
21
22 # InstallJammer requires 32bit version of glibc
23 if not os.path.exists('/lib/ld-linux.so.2'):
24 bb.fatal("TI installer requires 32bit glibc libraries for proper operation\nrun 'yum install glibc.i686' on Fedora or 'apt-get install libc6:i386' on Ubuntu/Debian")
25
26 localdata = bb.data.createCopy(d)
27 bb.data.update_data(localdata)
28
29 binfile = localdata.getVar('BINFILE')
30 binfile = bb.data.expand(binfile, localdata)
31
32 # Change to the working directory
33 save_cwd = os.getcwd()
34 workdir = localdata.getVar('WORKDIR')
35 workdir = bb.data.expand(workdir, localdata)
36 os.chdir(workdir)
37
38 # Get unpack args
39 arg_string = localdata.getVar('TI_BIN_UNPK_ARGS')
40 arg_string = bb.data.expand(arg_string, localdata)
41
42 # Get unpack commands
43 cmd_string = localdata.getVar('TI_BIN_UNPK_CMDS')
44 cmd_list = cmd_string.split( ":" )
45
46 # Make the InstallJammer binary executable so we can run it
47 os.chmod(binfile, 0o755)
48
49 # Run the InstallJammer binary and accept the EULA
50 filename = "HOME=%s ./%s %s" % (workdir, binfile, arg_string)
51
52 # Test executable by printing installer version or help screen (--version currently broken for some installers)
53 # - this is currently broken in some IJ installers - comment out for now
54 #if os.system(filename + " --version") != 0:
55 # print "ERROR: ti-eula-unpack: failed to execute binary installer"
56 # raise bb.build.FuncFailed()
57
58 f = os.popen(filename,'w')
59 for cmd in cmd_list:
60 if cmd == "workdir":
61 wdext = localdata.getVar('TI_BIN_UNPK_WDEXT')
62 wdext = bb.data.expand(wdext, localdata)
63 cmd = workdir+wdext
64 f.write(cmd+'\n');
65 f.close()
66
67 # Expand the tarball that was created if required
68 tarfile = localdata.getVar('TARFILE')
69 if bool(tarfile) == True:
70 tarfile = bb.data.expand(tarfile, localdata)
71 tcmd = 'tar x --no-same-owner -f %s -C %s' % (tarfile, workdir)
72 if os.system(tcmd) != 0:
73 print("ERROR: ti-eula-unpack: failed to extract tarfile")
74 raise bb.build.FuncFailed()
75
76 # Return to the previous directory
77 os.chdir(save_cwd)
78}
79
80COMPATIBLE_HOST ?= "null"
81COMPATIBLE_HOST:ti-soc = "(.*)"
82COMPATIBLE_HOST:class-native = "(.*)"
83COMPATIBLE_HOST:class-nativesdk = "(.*)"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-common.inc b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-common.inc
new file mode 100644
index 00000000..4962a3ec
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-common.inc
@@ -0,0 +1,12 @@
1PV = "3.51.00.00"
2INC_PR = "r0"
3
4PACKAGE_ARCH = "${MACHINE_ARCH}"
5COMPATIBLE_HOST ?= "null"
6COMPATIBLE_HOST:ti-soc = "(.*)"
7
8PLATFORM = "UNKNOWN"
9PLATFORM:dra7xx = "DRA7XX"
10PLATFORM:omapl138 = "OMAPL138"
11
12ALT_PLATFORM:am57xx-evm = "AM572X AM571X"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch
new file mode 100644
index 00000000..ea514695
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch
@@ -0,0 +1,40 @@
1From cca4fd812959a0cd241dd3bbebfd461ece94c9b8 Mon Sep 17 00:00:00 2001
2From: Denys Dmytriyenko <denis@denix.org>
3Date: Mon, 29 Mar 2021 19:42:00 -0400
4Subject: [PATCH] examples/ClusterMgr: sys_errlist[] has been deprecated in
5 glibc
6
7Use strerror() instead.
8
9Upstream-Status: Pending
10
11Signed-off-by: Denys Dmytriyenko <denis@denix.org>
12---
13 src/examples/templates/ex46_graph/manager/ClusterMgr.c | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/src/examples/templates/ex46_graph/manager/ClusterMgr.c b/src/examples/templates/ex46_graph/manager/ClusterMgr.c
17index 19216c9..a1fa679 100644
18--- a/src/examples/templates/ex46_graph/manager/ClusterMgr.c
19+++ b/src/examples/templates/ex46_graph/manager/ClusterMgr.c
20@@ -714,7 +714,7 @@ static pid_t ClusterMgr_system(char *cmd, bool wait)
21 pid = fork();
22
23 if (pid == -1) {
24- LOG "CM_system: fork error: %s\n", sys_errlist[errno] LOGF
25+ LOG "CM_system: fork error: %s\n", strerror(errno) LOGF
26 status = -1;
27 goto leave;
28 }
29@@ -739,7 +739,7 @@ static pid_t ClusterMgr_system(char *cmd, bool wait)
30 else {
31 /* overlay a new executable */
32 execvp(argv[0], argv);
33- LOG "CM_system: execvp error: %s\n", sys_errlist[errno] LOGF
34+ LOG "CM_system: execvp error: %s\n", strerror(errno) LOGF
35 status = -1;
36 }
37
38--
392.7.4
40
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples-linux_git.bb b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples-linux_git.bb
new file mode 100644
index 00000000..81706592
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples-linux_git.bb
@@ -0,0 +1,49 @@
1DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running bios"
2require ti-ipc-examples.inc
3
4SRC_URI += "file://0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch;patchdir=../git/ipc-examples"
5
6DEPENDS = "ti-ipc ti-xdctools-native ti-sysbios ti-ipc-rtos zip-native"
7
8do_compile:append() {
9
10 if [ "${PLATFORM}" != "UNKNOWN" ]; then
11 oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
12
13 if [ ! -z ${ALT_PLATFORM} ]; then
14 oe_runmake extract PLATFORM="${ALT_PLATFORM}" HOSTOS="linux" \
15 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
16 fi
17 oe_runmake -C examples all HOSTOS="linux" \
18 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
19 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
20
21 if [ ! -z ${ALT_PLATFORM} ]; then
22 oe_runmake -C examples all HOSTOS="linux" \
23 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
24 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
25 PLATFORM="${ALT_PLATFORM}"
26 fi
27 fi
28}
29
30do_install:append() {
31 cd ${S_ipc-examples}/src
32
33 if [ "${PLATFORM}" != "UNKNOWN" ]; then
34 # Install directory for linux examples
35 install -d ${D}${bindir}/ipc/examples
36 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
37 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
38 HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples"
39
40 if [ ! -z ${ALT_PLATFORM} ]; then
41 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
42 LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \
43 HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples" \
44 PLATFORM="${ALT_PLATFORM}"
45 fi
46 fi
47}
48
49FILES:${PN} += "${bindir}/*"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples.inc b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples.inc
new file mode 100644
index 00000000..66cd5d32
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples.inc
@@ -0,0 +1,31 @@
1HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:IPC"
2require ti-ipc-common.inc
3require ti-ipc-rtos.inc
4
5LICENSE = "BSD"
6LIC_FILES_CHKSUM = "file://${S_ipc-examples}/src/makefile;beginline=1;endline=30;md5=a52324bd5033bb49ea07bade1244ac9a"
7
8INSANE_SKIP:${PN} += "arch"
9
10ALLOW_EMPTY:${PN} = "1"
11
12IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree"
13
14do_compile() {
15
16 cd ${S_ipc-examples}/src
17 oe_runmake .examples \
18 IPCTOOLS="${S_ipc-metadata}/src/etc"
19
20 for alt_platform in ${ALT_PLATFORM}; do
21 oe_runmake .examples "PLATFORM=${alt_platform}" \
22 IPCTOOLS="${S_ipc-metadata}/src/etc"
23 done
24}
25
26do_install() {
27 cd ${S_ipc-examples}/src
28 IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'`
29}
30
31INHIBIT_PACKAGE_STRIP = "1"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples_git.bb b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples_git.bb
new file mode 100644
index 00000000..bcc8674e
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-examples_git.bb
@@ -0,0 +1,44 @@
1DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running linux"
2require ti-ipc-examples.inc
3
4DEPENDS = "ti-ipc ti-xdctools-native ti-sysbios ti-ipc-rtos zip-native"
5
6do_compile:append() {
7
8 if [ "${PLATFORM}" != "UNKNOWN" ]; then
9 oe_runmake extract HOSTOS="bios" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
10
11 for alt_platform in ${ALT_PLATFORM}; do
12 oe_runmake extract PLATFORM="${alt_platform}" HOSTOS="bios" \
13 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
14 done
15 oe_runmake -C examples all HOSTOS="bios" \
16 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}"
17 for alt_platform in ${ALT_PLATFORM}; do
18 oe_runmake -C examples all HOSTOS="bios" \
19 IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" PLATFORM="${alt_platform}"
20 done
21 fi
22}
23
24do_install:append() {
25 if [ "${PLATFORM}" != "UNKNOWN" ]; then
26 # Install directory for bios examples
27 install -d ${D}/ipc_${IPC_VERSION}/examples/bios
28 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
29 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios"
30 oe_runmake -C examples install_rov IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
31 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/bios"
32
33 for alt_platform in ${ALT_PLATFORM}; do
34 oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
35 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/${alt_platform}/bios" \
36 PLATFORM="${alt_platform}"
37 oe_runmake -C examples install_rov IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \
38 HOSTOS="bios" EXEC_DIR="${D}/ipc_${IPC_VERSION}/examples/${alt_platform}/bios" \
39 PLATFORM="${alt_platform}"
40 done
41 fi
42}
43
44FILES:${PN} += "ipc_*"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos.inc b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos.inc
new file mode 100644
index 00000000..56667ad1
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos.inc
@@ -0,0 +1,73 @@
1require recipes-ti/includes/ti-paths.inc
2
3TI_IPC_EXAMPLES_GIT_URI = "git://git.ti.com/ipc/ipc-examples.git"
4TI_IPC_EXAMPLES_DEST_SUFFIX = "git/ipc-examples"
5TI_IPC_EXAMPLES_GIT_PROTOCOL = "git"
6TI_IPC_EXAMPLES_GIT_BRANCH = "master"
7TI_IPC_EXAMPLES_NAME = "ipc-examples"
8
9SRC_URI += "${TI_IPC_EXAMPLES_GIT_URI};\
10destsuffix=${TI_IPC_EXAMPLES_DEST_SUFFIX};\
11protocol=${TI_IPC_EXAMPLES_GIT_PROTOCOL};\
12branch=${TI_IPC_EXAMPLES_GIT_BRANCH};\
13name=${TI_IPC_EXAMPLES_NAME}"
14
15TI_IPC_METADATA_GIT_URI = "git://git.ti.com/ipc/ipc-metadata.git"
16TI_IPC_METADATA_DEST_SUFFIX = "git/ipc-metadata"
17TI_IPC_METADATA_GIT_PROTOCOL = "git"
18TI_IPC_METADATA_GIT_BRANCH = "master"
19TI_IPC_METADATA_NAME = "ipc-metadata"
20
21SRC_URI += "${TI_IPC_METADATA_GIT_URI};\
22destsuffix=${TI_IPC_METADATA_DEST_SUFFIX};\
23protocol=${TI_IPC_METADATA_GIT_PROTOCOL};\
24branch=${TI_IPC_METADATA_GIT_BRANCH};\
25name=${TI_IPC_METADATA_NAME}"
26
27# Corresponds to tag: 3.51.00.00
28TI_IPC_METADATA_SRCREV = "1bf668fd6b0ec2ef6956fa55b8484d0b21a9f9e2"
29# Corresponds to tag: 3.51.00.00
30TI_IPC_EXAMPLES_SRCREV = "4707fcbbe0d136e781c4a7ffdc072be407c34358"
31
32SRCREV_FORMAT = "default"
33SRCREV_ipc-metadata = "${TI_IPC_METADATA_SRCREV}"
34SRCREV_ipc-examples = "${TI_IPC_EXAMPLES_SRCREV}"
35
36S_ipc-examples = "${WORKDIR}/git/ipc-examples"
37S_ipc-metadata = "${WORKDIR}/git/ipc-metadata"
38
39RELEASE_TYPE = "GA"
40RELEASE_SUFFIX = ""
41
42PR = "${INC_PR}.r0"
43
44DEPENDS:append:omap-a15 = " ti-cgt6x-native \
45 ti-cgt-arm-native \
46 gcc-arm-baremetal-native \
47"
48DEPENDS:append:omapl138 = " ti-cgt6x-native \
49"
50
51IPC_TARGETS = ""
52
53IPC_TARGETS:omap-a15 = "\
54 gnu.targets.arm.A15F="${GCC_ARM_NONE_TOOLCHAIN}" \
55 ti.targets.elf.C66="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
56 ti.targets.elf.C66_big_endian="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
57 ti.targets.arm.elf.M4="${M4_TOOLCHAIN_INSTALL_DIR}" \
58"
59
60IPC_TARGETS:omapl138 = "\
61 ti.targets.elf.C674="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \
62"
63
64PARALLEL_XDC = "${@oe.utils.parallel_make_argument(d, '--jobs=%d')}"
65EXTRA_OEMAKE = "\
66 PLATFORM=${PLATFORM} \
67 XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \
68 BIOS_INSTALL_DIR="${SYSBIOS_INSTALL_DIR}" \
69 ${IPC_TARGETS} \
70 ${PARALLEL_XDC} \
71 JAVA_TOOL_OPTIONS=-Xss2560k \
72"
73
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos_git.bb b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos_git.bb
new file mode 100644
index 00000000..abef3195
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-rtos_git.bb
@@ -0,0 +1,101 @@
1require ti-ipc.inc
2require ti-ipc-common.inc
3require ti-ipc-rtos.inc
4
5DEPENDS = "ti-xdctools-native ti-sysbios doxygen-native zip-native"
6
7PACKAGES =+ "${PN}-fw"
8FILES:${PN}-fw = "${base_libdir}/firmware/*"
9FILES:${PN}-dev += "${IPC_INSTALL_DIR_RECIPE}"
10
11INSANE_SKIP:${PN}-fw += "arch"
12INSANE_SKIP:${PN}-dev += "arch"
13
14ALLOW_EMPTY:${PN} = "1"
15
16IPC_PACKAGE_DIR = "${S}/ipc-package"
17
18do_compile() {
19 oe_runmake -f ipc-bios.mak clean
20 oe_runmake -f ipc-bios.mak release
21
22 cd ${S_ipc-metadata}
23 oe_runmake .all-files IPC_INSTALL_DIR="${S}" \
24 BUILD_HOST_OS="linux" \
25 RELEASE_TYPE="${RELEASE_TYPE}"
26
27 cd ${S_ipc-examples}/src
28 oe_runmake .examples \
29 IPCTOOLS="${S_ipc-metadata}/src/etc"
30 for alt_platform in ${ALT_PLATFORM}; do
31 oe_runmake .examples \
32 IPCTOOLS="${S_ipc-metadata}/src/etc" \
33 PLATFORM=${alt_platform}
34 done
35
36 if [ "${PLATFORM}" != "UNKNOWN" ]; then
37 oe_runmake extract HOSTOS="bios" IPC_INSTALL_DIR="${S}"
38 oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${S}"
39
40 for alt_platform in ${ALT_PLATFORM}; do
41 oe_runmake extract PLATFORM=${alt_platform} HOSTOS="bios" IPC_INSTALL_DIR="${S}"
42 oe_runmake extract PLATFORM=${alt_platform} HOSTOS="linux" IPC_INSTALL_DIR="${S}"
43 done
44 fi
45
46 IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'`
47 install -d ${IPC_PACKAGE_DIR}
48 # Copy docs and other meta files
49 cp -pPrf ${S_ipc-metadata}/exports/ipc_${IPC_VERSION}/* -d ${IPC_PACKAGE_DIR}
50
51 # Copy example folders corresponding to the platforms
52 if [ "${PLATFORM}" != "UNKNOWN" ]; then
53 install -d ${IPC_PACKAGE_DIR}/examples
54 cp -pPf ${S_ipc-examples}/src/examples/*.* ${IPC_PACKAGE_DIR}/examples/
55 cp -pPf ${S_ipc-examples}/src/examples/makefile ${IPC_PACKAGE_DIR}/examples/
56 cp -pPrf ${S_ipc-examples}/src/examples/${PLATFORM}* ${IPC_PACKAGE_DIR}/examples/
57 for alt_platform in ${ALT_PLATFORM}; do
58 cp -pPrf ${S_ipc-examples}/src/examples/${alt_platform}* ${IPC_PACKAGE_DIR}/examples/
59 done
60 find ${IPC_PACKAGE_DIR}/examples/ -name "*zip" -type f | xargs -I {} rm {}
61 fi
62}
63
64do_install() {
65 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
66 IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'`
67 # Copy docs and other meta files
68 install -d ${D}${IPC_INSTALL_DIR_RECIPE}
69 cp ${CP_ARGS} ${IPC_PACKAGE_DIR}/* -d ${D}${IPC_INSTALL_DIR_RECIPE}
70
71 install -d ${D}${base_libdir}/firmware/ipc
72 cp ${CP_ARGS} ${S}/packages/ti/ipc/tests/bin/* ${D}${base_libdir}/firmware/ipc || true
73}
74
75KFDSPNUM = "0"
76
77KFPLAT = ""
78
79ALTERNATIVE_PRIORITY = "5"
80
81pkg_postinst:${PN}-fw:omap-a15 () {
82 update-alternatives --install /lib/firmware/dra7-dsp1-fw.xe66 dra7-dsp1-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66 ${ALTERNATIVE_PRIORITY}
83 update-alternatives --install /lib/firmware/dra7-dsp2-fw.xe66 dra7-dsp2-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66 ${ALTERNATIVE_PRIORITY}
84 update-alternatives --install /lib/firmware/dra7-ipu1-fw.xem4 dra7-ipu1-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4 ${ALTERNATIVE_PRIORITY}
85 update-alternatives --install /lib/firmware/dra7-ipu2-fw.xem4 dra7-ipu2-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4 ${ALTERNATIVE_PRIORITY}
86}
87
88pkg_postrm:${PN}-fw:omap-a15 () {
89 update-alternatives --remove dra7-dsp1-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66
90 update-alternatives --remove dra7-dsp2-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66
91 update-alternatives --remove dra7-ipu1-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4
92 update-alternatives --remove dra7-ipu2-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4
93}
94
95pkg_postinst:${PN}-fw:omapl138 () {
96 update-alternatives --install /lib/firmware/rproc-dsp-fw rproc-dsp-fw ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674 ${ALTERNATIVE_PRIORITY}
97}
98
99pkg_postrm:${PN}-fw:omapl138 () {
100 update-alternatives --remove rproc-dsp-fw ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674
101}
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc.inc b/meta-ti-bsp/recipes-ti/ipc/ti-ipc.inc
new file mode 100644
index 00000000..34278d4b
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc.inc
@@ -0,0 +1,20 @@
1DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)"
2HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:IPC"
3
4LICENSE = "BSD"
5LIC_FILES_CHKSUM = "file://${S}/ipc-linux.mak;beginline=1;endline=30;md5=7b327f9b710fd7c95e545b91cec79255"
6
7TI_IPC_GIT_URI = "git://git.ti.com/ipc/ipcdev.git"
8TI_IPC_GIT_PROTOCOL = "git"
9TI_IPC_GIT_BRANCH = "master"
10
11#Corresponds to 3.51.00.00A
12TI_IPC_SRCREV = "7a6e343a208d2849139b7272a67abc01db806e00"
13
14BRANCH = "${TI_IPC_GIT_BRANCH}"
15SRC_URI = "${TI_IPC_GIT_URI};protocol=${TI_IPC_GIT_PROTOCOL};branch=${BRANCH};name=ipcdev"
16SRCREV = "${TI_IPC_SRCREV}"
17
18CFLAGS += "-fcommon"
19
20S = "${WORKDIR}/git"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc/0001-Add-kernel-build-dir.patch b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/0001-Add-kernel-build-dir.patch
new file mode 100644
index 00000000..71d5b2be
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/0001-Add-kernel-build-dir.patch
@@ -0,0 +1,112 @@
1From c3ada6bf49e6fcf7bc49e5bf09754f384838ca6a Mon Sep 17 00:00:00 2001
2From: Denys Dmytriyenko <denys@ti.com>
3Date: Mon, 27 Jul 2015 11:51:52 -0400
4Subject: [PATCH] Add kernel build dir
5
6We build kernel outside of the source directory and the generated version.h
7file ends up being in a separate directory from the rest of kernel headers.
8Use another variable to point to the kernel build artifacts.
9
10Signed-off-by: Denys Dmytriyenko <denys@ti.com>
11
12---
13 configure.ac | 6 ++++++
14 ipc-linux.mak | 3 +++
15 linux/src/mm/Makefile.am | 2 +-
16 packages/ti/ipc/mm/MmRpc.c | 4 ++++
17 4 files changed, 14 insertions(+), 1 deletion(-)
18
19diff --git a/configure.ac b/configure.ac
20index 4d4a559..84ac78b 100644
21--- a/configure.ac
22+++ b/configure.ac
23@@ -71,6 +71,7 @@ AC_SUBST([AM_LDFLAGS])
24 AC_ARG_VAR(PLATFORM, Platform to build. Options are: 'OMAPL138' 'OMAP54XX' '66AK2E' 'TCI6630' 'TCI6636' 'TCI6638' '66AK2G' 'DRA7XX' and 'AM65XX'. If not defined all platforms will be built.)
25 AC_ARG_VAR(CMEM_INSTALL_DIR, Installation path directory to the CMEM libraries)
26 AC_ARG_VAR(KERNEL_INSTALL_DIR, Installation path to the Linux kernel.)
27+AC_ARG_VAR(KERNEL_BUILD_DIR, Path to the Linux kernel build artifacts.)
28 AC_ARG_VAR(AF_RPMSG, Address Family used by the RPMSG driver)
29 AC_ARG_VAR(DRM_PREFIX, Installation location to the DRM library.)
30
31@@ -113,6 +114,7 @@ AS_IF([test "x$PLATFORM" = "x"], [CMEM_INSTALL_DIR=])
32 AC_SUBST([PLATFORM])
33 AC_SUBST([CMEM_INSTALL_DIR])
34 AC_SUBST([KERNEL_INSTALL_DIR])
35+AC_SUBST([KERNEL_BUILD_DIR])
36 AC_SUBST([AF_RPMSG])
37 AC_SUBST([DRM_PREFIX])
38
39@@ -130,6 +132,7 @@ AM_CONDITIONAL([AM65XX], [test "x$PLATFORM" = "xAM65XX"])
40 AM_CONDITIONAL([CMEM], [test "x$CMEM_INSTALL_DIR" != "x"])
41 AM_CONDITIONAL([KDIR], [test "x$KERNEL_INSTALL_DIR" != "x"])
42 AM_CONDITIONAL([KERNEL_INSTALL_DIR], [test -n "$KERNEL_INSTALL_DIR"])
43+AM_CONDITIONAL([KERNEL_BUILD_DIR], [test -n "$KERNEL_BUILD_DIR"])
44 AM_CONDITIONAL([DRM], [test "x$DRM_PREFIX" != "x"])
45 AM_CONDITIONAL([AF_RPMSG], [test -n "$AF_RPMSG"])
46
47@@ -160,6 +163,9 @@ You have configured to build for the '${PLATFORM}' platform
48 Your KERNEL installation directory is set to:
49 '${KERNEL_INSTALL_DIR}'
50
51+Your KERNEL build artifacts directory is set to:
52+ '${KERNEL_BUILD_DIR}'
53+
54 Your DRM installation directory is set to:
55 '${DRM_PREFIX}'
56
57diff --git a/ipc-linux.mak b/ipc-linux.mak
58index 58a9cea..4e543ff 100644
59--- a/ipc-linux.mak
60+++ b/ipc-linux.mak
61@@ -60,6 +60,7 @@ config:
62 PLATFORM=$(PLATFORM) \
63 CMEM_INSTALL_DIR=$(CMEM_INSTALL_DIR) \
64 KERNEL_INSTALL_DIR=$(KERNEL_INSTALL_DIR) \
65+ KERNEL_BUILD_DIR=$(KERNEL_BUILD_DIR) \
66 DRM_PREFIX=$(DRM_PREFIX) \
67 AF_RPMSG=$(AF_RPMSG)
68
69@@ -72,6 +73,7 @@ config-static:
70 PLATFORM=$(PLATFORM) \
71 CMEM_INSTALL_DIR=$(CMEM_INSTALL_DIR) \
72 KERNEL_INSTALL_DIR=$(KERNEL_INSTALL_DIR) \
73+ KERNEL_BUILD_DIR=$(KERNEL_BUILD_DIR) \
74 DRM_PREFIX=$(DRM_PREFIX) \
75 AF_RPMSG=$(AF_RPMSG)
76
77@@ -84,5 +86,6 @@ config-shared:
78 PLATFORM=$(PLATFORM) \
79 CMEM_INSTALL_DIR=$(CMEM_INSTALL_DIR) \
80 KERNEL_INSTALL_DIR=$(KERNEL_INSTALL_DIR) \
81+ KERNEL_BUILD_DIR=$(KERNEL_BUILD_DIR) \
82 DRM_PREFIX=$(DRM_PREFIX) \
83 AF_RPMSG=$(AF_RPMSG)
84diff --git a/linux/src/mm/Makefile.am b/linux/src/mm/Makefile.am
85index 59aa312..8fb51a3 100644
86--- a/linux/src/mm/Makefile.am
87+++ b/linux/src/mm/Makefile.am
88@@ -32,7 +32,7 @@
89 ##
90
91 # additional include paths necessary to compile the library
92-AM_CFLAGS = -Wall @AM_CFLAGS@ -DKERNEL_INSTALL_DIR="$(KERNEL_INSTALL_DIR)"
93+AM_CFLAGS = -Wall @AM_CFLAGS@ -DKERNEL_INSTALL_DIR="$(KERNEL_INSTALL_DIR)" -DKERNEL_BUILD_DIR="$(KERNEL_BUILD_DIR)"
94
95 ###############################################################################
96 # THE LIBRARIES TO BUILD
97diff --git a/packages/ti/ipc/mm/MmRpc.c b/packages/ti/ipc/mm/MmRpc.c
98index 2df7420..797e100 100644
99--- a/packages/ti/ipc/mm/MmRpc.c
100+++ b/packages/ti/ipc/mm/MmRpc.c
101@@ -56,7 +56,11 @@
102 #endif
103
104 #define linux_version_include(kd) <kd/include/generated/uapi/linux/version.h>
105+#if defined(KERNEL_BUILD_DIR)
106+#include linux_version_include(KERNEL_BUILD_DIR)
107+#else
108 #include linux_version_include(KERNEL_INSTALL_DIR)
109+#endif
110
111 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,14,0)
112 #define linux_include(kd,m) <kd/include/linux/m.h>
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc/omap_remoteproc.conf b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/omap_remoteproc.conf
new file mode 100644
index 00000000..6b5034cd
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/omap_remoteproc.conf
@@ -0,0 +1 @@
softdep omap_remoteproc pre: virtio_rpmsg_bus
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.service b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.service
new file mode 100644
index 00000000..ea26845e
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.service
@@ -0,0 +1,9 @@
1[Unit]
2Description=TI IPC Daemon
3
4[Service]
5Type=forking
6ExecStart=/usr/bin/__LAD_DAEMON__ -g -l lad.txt
7
8[Install]
9WantedBy=basic.target
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh
new file mode 100644
index 00000000..9ebfa35a
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh
@@ -0,0 +1,25 @@
1#! /bin/sh
2
3tiipclad_daemon=/usr/bin/__LAD_DAEMON__
4tiipclad_params="-g -l lad.txt"
5
6test -x "$tiipclad_daemon" || exit 0
7
8case "$1" in
9 start)
10 echo -n "Starting tiipclad daemon"
11 start-stop-daemon --start --quiet \
12 --exec $tiipclad_daemon -- $tiipclad_params
13 echo "."
14 ;;
15 stop)
16 echo -n "Stopping tiipclad daemon"
17 start-stop-daemon --stop --quiet --pidfile /var/run/tiipclad.pid
18 echo "."
19 ;;
20 *)
21 echo "Usage: /etc/init.d/tiipclad-daemon.sh {start|stop}"
22 exit 1
23esac
24
25exit 0
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc_git.bb b/meta-ti-bsp/recipes-ti/ipc/ti-ipc_git.bb
new file mode 100644
index 00000000..01b857c2
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc_git.bb
@@ -0,0 +1,63 @@
1DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)"
2HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:IPC"
3
4require ti-ipc.inc
5require ti-ipc-common.inc
6
7PR = "${INC_PR}.2"
8
9DEPENDS += "virtual/kernel"
10
11SRC_URI += "file://tiipclad-daemon.sh \
12 file://omap_remoteproc.conf \
13 file://tiipclad-daemon.service \
14 file://0001-Add-kernel-build-dir.patch \
15 "
16
17DAEMON = "UNKNOWN"
18DAEMON:dra7xx = "lad_dra7xx"
19DAEMON:omapl138 = "lad_omapl138"
20
21inherit autotools-brokensep pkgconfig update-rc.d systemd
22
23INITSCRIPT_NAME = "tiipclad-daemon.sh"
24INITSCRIPT_PARAMS = "defaults 10"
25
26SYSTEMD_SERVICE:${PN} = "tiipclad-daemon.service"
27
28EXTRA_OECONF += "PLATFORM=${PLATFORM} KERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR} KERNEL_BUILD_DIR=${STAGING_KERNEL_BUILDDIR}"
29
30do_compile[depends] += "virtual/kernel:do_shared_workdir"
31
32do_configure() {
33 ( cd ${S}; autoreconf -f -i -s )
34 oe_runconf
35}
36
37do_install:append() {
38 install -d ${D}${sysconfdir}/init.d/
39
40 # Modify the startup scripts to point to the right
41 # lad daemon executable.
42 sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.sh
43 sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.service
44
45 install -d ${D}${systemd_system_unitdir}
46 install -m 0644 ${WORKDIR}/tiipclad-daemon.service ${D}${systemd_system_unitdir}
47 install -d ${D}${sysconfdir}/init.d/
48 install -c -m 755 ${WORKDIR}/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
49}
50
51do_install:append:dra7xx() {
52 install -d ${D}${sysconfdir}/modprobe.d/
53 install -c -m 644 ${WORKDIR}/omap_remoteproc.conf ${D}${sysconfdir}/modprobe.d/
54}
55
56PACKAGES =+ "${PN}-test"
57RDEPENDS:${PN}-test += "${PN}"
58
59FILES:${PN}-test = " \
60 ${bindir}/NameServerApp \
61 ${bindir}/MessageQApp \
62 ${bindir}/MessageQMulti \
63 ${bindir}/ping_rpmsg"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples/0001-examples-Remove-use-of-includedir-and-libdir.patch b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples/0001-examples-Remove-use-of-includedir-and-libdir.patch
new file mode 100644
index 00000000..71fca1b0
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples/0001-examples-Remove-use-of-includedir-and-libdir.patch
@@ -0,0 +1,38 @@
1From 1a26cb577ba54dd9214eeb94fed0ce3a0f4603b6 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 24 Oct 2020 23:46:39 -0700
4Subject: [PATCH] examples: Remove use of includedir and libdir
5
6These point to standard include and library paths which already are used
7from sysroot relative paths secondly, they use absolute paths which
8means we are asking to add -I/usr/include which might be ok in a native
9build but not in cross build. This helps mitigate QA errors found with
10OE build system since it finds it adding host include and library search
11paths to linker/compiler commandline
12
13Upstream-Status: Pending
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 examples/Makefile.am | 5 +----
17 1 file changed, 1 insertion(+), 4 deletions(-)
18
19diff --git a/examples/Makefile.am b/examples/Makefile.am
20index 5a9bedb..d547e41 100644
21--- a/examples/Makefile.am
22+++ b/examples/Makefile.am
23@@ -1,6 +1,4 @@
24-INCLUDE = -I${includedir}
25-
26-AM_CFLAGS = -Wall -g -O2 $(INCLUDE)
27+AM_CFLAGS = -Wall -g -O2
28
29 bin_PROGRAMS = rpmsg_char_simple
30
31@@ -8,4 +6,3 @@ bin_PROGRAMS = rpmsg_char_simple
32 rpmsg_char_simple_SOURCES = rpmsg_char_simple.c
33 rpmsg_char_simple_CPPFLAGS = $(AM_CFLAGS)
34 rpmsg_char_simple_LDADD = -lpthread -lti_rpmsg_char
35-rpmsg_char_simple_LDFLAGS = -L${libdir}
36--
372.29.1
38
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples_git.bb b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples_git.bb
new file mode 100644
index 00000000..cbe4d7fd
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char-examples_git.bb
@@ -0,0 +1,13 @@
1SUMMARY = "TI RPMsg Char Sample Applications and Tests"
2
3require ti-rpmsg-char.inc
4
5SRC_URI += "file://0001-examples-Remove-use-of-includedir-and-libdir.patch"
6
7DEPENDS = "ti-rpmsg-char"
8
9inherit autotools pkgconfig
10
11EXTRA_OEMAKE = "-C ${B}/examples"
12
13PR = "r0"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char.inc b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char.inc
new file mode 100644
index 00000000..140536e7
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char.inc
@@ -0,0 +1,18 @@
1SUMMARY = "TI RPMsg Char Utility Library"
2
3LICENSE = "BSD-3-Clause"
4LIC_FILES_CHKSUM = "file://${S}/src/rpmsg_char.c;beginline=1;endline=31;md5=71987db43a2159cff5ea00505c6fce58"
5
6PROTOCOL = "git"
7BRANCH = "master"
8SRC_URI = "git://git.ti.com/rpmsg/ti-rpmsg-char.git;protocol=${PROTOCOL};branch=${BRANCH};"
9
10# Initial 0.3.1 release
11SRCREV = "0824546f61bda7715519841d9b9f0fb030ddfaf2"
12
13PV = "0.3.1+git${SRCPV}"
14
15S = "${WORKDIR}/git"
16
17COMPATIBLE_HOST ?= "null"
18COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char_git.bb b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char_git.bb
new file mode 100644
index 00000000..63711a3b
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char_git.bb
@@ -0,0 +1,7 @@
1SUMMARY = "TI RPMsg Char Utility Library"
2
3require ti-rpmsg-char.inc
4
5inherit autotools pkgconfig
6
7PR = "r0"
diff --git a/meta-ti-bsp/recipes-ti/mathlib/mathlib-c66x_git.bb b/meta-ti-bsp/recipes-ti/mathlib/mathlib-c66x_git.bb
new file mode 100644
index 00000000..22683855
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/mathlib/mathlib-c66x_git.bb
@@ -0,0 +1,5 @@
1include mathlib.inc
2
3MATHLIB_BUILD_TARGET = "c66x"
4MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C66_INSTALL_DIR_RECIPE}"
5MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}"
diff --git a/meta-ti-bsp/recipes-ti/mathlib/mathlib-c674x_git.bb b/meta-ti-bsp/recipes-ti/mathlib/mathlib-c674x_git.bb
new file mode 100644
index 00000000..1654baf2
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/mathlib/mathlib-c674x_git.bb
@@ -0,0 +1,5 @@
1include mathlib.inc
2
3MATHLIB_BUILD_TARGET = "c674x"
4MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C674_INSTALL_DIR_RECIPE}"
5MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}"
diff --git a/meta-ti-bsp/recipes-ti/mathlib/mathlib.inc b/meta-ti-bsp/recipes-ti/mathlib/mathlib.inc
new file mode 100644
index 00000000..fe75c099
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/mathlib/mathlib.inc
@@ -0,0 +1,77 @@
1SUMMARY = "MATHLIB contains optimized floating-point math functions for TI DSPs"
2HOMEPAGE = "http://git.ti.com/ep-processor-libraries/mathlib"
3LICENSE = "BSD-3-Clause"
4
5require ../includes/ti-paths.inc
6
7PV = "3_1_2_4"
8PR = "r2"
9
10DEPENDS = "ti-cgt6x-native \
11 ti-xdctools-native \
12 ti-sysbios \
13 doxygen-native \
14 zip-native \
15 swtools"
16
17S = "${WORKDIR}/git"
18
19MATHLIB_GIT_BRANCH = "master"
20MATHLIB_GIT_PROTOCOL = "git"
21MATHLIB_GIT_URI = "git://git.ti.com/ep-processor-libraries/mathlib.git"
22MATHLIB_SRCREV = "eadcc9547faf69789661b004bb0b5ef53bb69951"
23
24SRC_URI = "${MATHLIB_GIT_URI};protocol=${MATHLIB_GIT_PROTOCOL};branch=${MATHLIB_GIT_BRANCH}"
25SRCREV = "${MATHLIB_SRCREV}"
26
27LIC_FILES_CHKSUM = "file://ti/mathlib/src/acosdp/acosdp.h;beginline=1;endline=35;md5=c133f7e139b46385906c861dd9552250"
28
29export MATHLIB_WORK_DIR="${S}"
30export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
31export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
32export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}"
33export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}"
34export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools"
35export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld"
36
37PATH:append = ":${XDC_INSTALL_DIR}"
38
39XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
40XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_WORK_DIR};"
41
42export XDCPATH
43
44MATHLIB_PACKAGE_NAME = "mathlib_${MATHLIB_BUILD_TARGET}_${PV}"
45
46do_compile() {
47 cd ${MATHLIB_WORK_DIR}/ti/mathlib;
48 xdc XDCARGS="${MATHLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v"
49}
50
51do_install() {
52 install -d ${D}${MATHLIB_INSTALL_DIR_RECIPE}
53
54 find -name "${MATHLIB_PACKAGE_NAME}.zip" -exec unzip -o {} -d ${D}${MATHLIB_INSTALL_DIR_RECIPE} \;
55 cp -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/mathlib/. ${D}${MATHLIB_INSTALL_DIR_RECIPE}
56 rm -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/mathlib
57}
58
59inherit deploy
60addtask deploy before do_build after do_install
61
62do_deploy() {
63 install -d ${DEPLOYDIR}
64 # zip up files in ${D}${MATHLIB_INSTALL_DIR_RECIPE}
65 # and place the zip file in ${DEPLOYDIR}
66 mkdir ./${MATHLIB_PACKAGE_NAME}
67 cp -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/. ./${MATHLIB_PACKAGE_NAME}
68 zip -9 -y -r -q ${DEPLOYDIR}/${MATHLIB_PACKAGE_NAME}.zip ./${MATHLIB_PACKAGE_NAME}
69 rm -r ./${MATHLIB_PACKAGE_NAME}
70}
71
72ALLOW_EMPTY:${PN} = "1"
73FILES:${PN}-dev += "${MATHLIB_INSTALL_DIR_RECIPE}"
74
75INSANE_SKIP:${PN}-dev = "arch"
76COMPATIBLE_HOST ?= "null"
77COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-bsp/recipes-ti/openmp-rtos/openmp-rtos_git.bb b/meta-ti-bsp/recipes-ti/openmp-rtos/openmp-rtos_git.bb
new file mode 100644
index 00000000..59a9635d
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/openmp-rtos/openmp-rtos_git.bb
@@ -0,0 +1,62 @@
1DESCRIPTION = "TI OpenMP RTOS"
2HOMEPAGE = "git://git.ti.com/openmp/ti-openmp-dsp-runtime.git"
3LICENSE = "BSD"
4
5require recipes-ti/includes/ti-paths.inc
6
7inherit features_check
8
9REQUIRED_MACHINE_FEATURES = "dsp"
10REQUIRED_DISTRO_FEATURES = "openmp"
11
12PV = "2_06_03_00"
13PR = "r0"
14
15OPENMP_RTOS_GIT_URI = "git://git.ti.com/openmp/ti-openmp-dsp-runtime.git"
16OPENMP_RTOS_GIT_PROTOCOL = "git"
17OPENMP_RTOS_GIT_BRANCH = "master"
18
19BRANCH = "${OPENMP_RTOS_GIT_BRANCH}"
20SRC_URI = "${OPENMP_RTOS_GIT_URI};protocol=${OPENMP_RTOS_GIT_PROTOCOL};branch=${BRANCH}"
21
22SRCREV = "c090eb664d9815a36ead0e14f31e102590680fb8"
23
24LIC_FILES_CHKSUM = "file://docs/license/omp_manifest_template.html;md5=61a6972303c0447b7c056195d7ebafee"
25
26DEPENDS = "common-csl-ip-rtos doxygen-native libulm ti-xdctools-native ti-ipc-rtos ti-sysbios ti-cgt6x-native zip-native"
27
28COMPATIBLE_MACHINE = "omap-a15"
29PACKAGE_ARCH = "${MACHINE_ARCH}"
30
31S = "${WORKDIR}/git"
32export IPC_DIR = "${IPC_INSTALL_DIR}"
33export XDC_DIR = "${XDC_INSTALL_DIR}"
34export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}"
35export ULM_DIR ="${STAGING_DIR_TARGET}/usr/share/ti/ulm"
36export C6636_PDK_DIR ="${PDK_INSTALL_DIR}"
37export AM572_PDK_DIR ="${PDK_INSTALL_DIR}"
38export XDCCGROOT = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x"
39
40export BUILD_AM572 = "0"
41
42BUILD_AM572:omap-a15 = "1"
43
44RELEASE_TARGET = ""
45RELEASE_TARGET:omap-a15 = "am57xx"
46
47do_compile() {
48 make -f utils/product/Makefile .zipfile
49}
50
51do_install() {
52 install -d ${D}${OMP_INSTALL_DIR_RECIPE}
53 cp -r ${S}/exports/openmp_dsp_${RELEASE_TARGET}_*/. -d ${D}${OMP_INSTALL_DIR_RECIPE}
54}
55
56ALLOW_EMPTY:${PN} = "1"
57
58FILES:${PN}-dev += " \
59 ${OMP_INSTALL_DIR_RECIPE}/ \
60"
61
62INSANE_SKIP:${PN}-dev = "arch"
diff --git a/meta-ti-bsp/recipes-ti/osal/ti-osal.inc b/meta-ti-bsp/recipes-ti/osal/ti-osal.inc
new file mode 100644
index 00000000..dbd64f7b
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/osal/ti-osal.inc
@@ -0,0 +1,24 @@
1DESCRIPTION = "TI Operating System Abstraction Library (OSAL)"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/osal"
3LICENSE = "BSD & EPL-1.0"
4SECTION = "devel"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8
9S = "${WORKDIR}/osal_${PV}"
10
11SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/osal/${PV}/exports/osal_${PV}.tar.gz;name=osaltarball"
12
13do_install() {
14 install -d ${D}${OSAL_INSTALL_DIR_RECIPE}
15 cp -pPrf ${S}/* ${D}${OSAL_INSTALL_DIR_RECIPE}
16}
17
18INSANE_SKIP:${PN}-dev = "staticdev"
19
20ALLOW_EMPTY:${PN} = "1"
21FILES:${PN}-dev += "${OSAL_INSTALL_DIR_RECIPE}"
22
23COMPATIBLE_HOST ?= "null"
24COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-bsp/recipes-ti/osal/ti-osal_1.24.00.09.bb b/meta-ti-bsp/recipes-ti/osal/ti-osal_1.24.00.09.bb
new file mode 100644
index 00000000..226458be
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/osal/ti-osal_1.24.00.09.bb
@@ -0,0 +1,9 @@
1require ti-osal.inc
2
3PV = "1_24_00_09"
4PR = "r0"
5
6LIC_FILES_CHKSUM = "file://osal_${PV}_Manifest.html;md5=c110191994d011cee4cd02189ed3c9f4"
7
8SRC_URI[osaltarball.md5sum] = "a7ea85447fa0ff0f786d527a52fa6e8b"
9SRC_URI[osaltarball.sha256sum] = "d14f1f43c8a7965e86add69bd813cea56ea7e38abeb55de3fdcdaf4a69f19bf3"
diff --git a/meta-ti-bsp/recipes-ti/swtools/swtools_git.bb b/meta-ti-bsp/recipes-ti/swtools/swtools_git.bb
new file mode 100644
index 00000000..d3b9a9b1
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/swtools/swtools_git.bb
@@ -0,0 +1,52 @@
1SUMMARY = "TI Software Tools"
2HOMEPAGE = "https://git.ti.com/ep-processor-libraries/swtools"
3SECTION = "devel"
4LICENSE = "BSD"
5LIC_FILES_CHKSUM = "file://ti/mas/swtools/copyright.txt;md5=b1f52a1435051fdb18f8885b0384147d"
6
7require ../includes/ti-paths.inc
8
9DEPENDS = "ti-cgt6x-native \
10 ti-sysbios \
11 ti-xdctools-native"
12
13PV = "5_0_8"
14PR = "r3"
15S = "${WORKDIR}/git"
16
17SWTOOLS_GIT_BRANCH = "master"
18SWTOOLS_GIT_PROTOCOL = "git"
19SWTOOLS_GIT_URI = "git://git.ti.com/ep-processor-libraries/swtools.git"
20SWTOOLS_SRCREV = "7d1c85e686b1466cd2d535fc9cac5baf1aae24a4"
21
22SRC_URI = "${SWTOOLS_GIT_URI};protocol=${SWTOOLS_GIT_PROTOCOL};branch=${SWTOOLS_GIT_BRANCH}"
23SRCREV = "${SWTOOLS_SRCREV}"
24
25
26export C64PCODEGENTOOL = "${CGTOOLS_INSTALL_DIR}"
27export C674CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}"
28export C66CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}"
29
30PATH:append = ":${XDC_INSTALL_DIR}"
31
32XDCPATH .= "${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;"
33
34export XDCPATH
35
36do_compile() {
37 cd ${S}/ti/mas/swtools
38 xdc
39}
40
41do_install() {
42 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
43 install -d ${D}${SWTOOLS_INSTALL_DIR_RECIPE}
44 cp ${CP_ARGS} ${S}/* ${D}${SWTOOLS_INSTALL_DIR_RECIPE}
45}
46
47FILES:${PN}-dev += "${SWTOOLS_INSTALL_DIR_RECIPE}"
48
49INSANE_SKIP:${PN}-dev = "arch staticdev"
50ALLOW_EMPTY:${PN} = "1"
51COMPATIBLE_HOST ?= "null"
52COMPATIBLE_HOST:ti-soc = "(.*)"
diff --git a/meta-ti-bsp/recipes-ti/ti-rtos-bin/files/empty b/meta-ti-bsp/recipes-ti/ti-rtos-bin/files/empty
new file mode 100644
index 00000000..c6cac692
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ti-rtos-bin/files/empty
@@ -0,0 +1 @@
empty
diff --git a/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb b/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
new file mode 100644
index 00000000..c0beb550
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
@@ -0,0 +1,276 @@
1SUMMARY = "TI RTOS prebuilt binary firmware images"
2
3LICENSE = "TI-TFL"
4LIC_FILES_CHKSUM = "file://${COREBASE}/../meta-ti/licenses/TI-TFL;md5=a1b59cb7ba626b9dbbcbf00f3fbc438a"
5
6COMPATIBLE_MACHINE = "k3"
7
8PACKAGE_ARCH = "${MACHINE_ARCH}"
9
10INHIBIT_DEFAULT_DEPS = "1"
11
12inherit deploy
13inherit update-alternatives
14
15PLAT_SFX = ""
16PLAT_SFX:j7 = "j721e"
17PLAT_SFX:j7200-evm = "j7200"
18PLAT_SFX:j7200-hs-evm = "j7200"
19PLAT_SFX:am65xx = "am65xx"
20PLAT_SFX:am64xx = "am64xx"
21
22FILESEXTRAPATHS:prepend := "${METATIBASE}/recipes-bsp/ti-sci-fw/files/:"
23require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
24
25CORESDK_RTOS_VERSION ?= "08.00.00.26"
26PV = "${CORESDK_RTOS_VERSION}"
27
28CLEANBROKEN = "1"
29PR = "${INC_PR}.0"
30
31# Secure Build
32DEPENDS += "openssl-native"
33
34FILES:${PN} += "${base_libdir}"
35
36TI_SECURE_DEV_PKG ?= ""
37
38RTOS_ETH_FW_DIR = "${S}/ti-eth/${PLAT_SFX}"
39RTOS_DM_FW_DIR = "${S}/ti-dm/${PLAT_SFX}"
40RTOS_IPC_FW_DIR = "${S}/ti-ipc/${PLAT_SFX}"
41
42# For back-ward compatability keeping legacy firmware folder name
43# TODO: fix this in next version
44LEGACY_ETH_FW_DIR = "${D}${base_libdir}/firmware/ethfw/"
45LEGACY_IPC_FW_DIR = "${D}${base_libdir}/firmware/pdk-ipc/"
46LEGACY_DM_FW_DIR = "${D}${base_libdir}/firmware/pdk-ipc/"
47
48DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
49
50# J7 HS support
51do_install:prepend:j7-hs-evm() {
52 export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
53 ( cd ${RTOS_DM_FW_DIR}; \
54 mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \
55 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \
56 )
57}
58
59# J7 HS support
60do_install:prepend:j7200-hs-evm() {
61 export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
62 ( cd ${RTOS_DM_FW_DIR}; \
63 mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \
64 ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \
65 )
66}
67
68# Update the am64xx ipc binaries to be consistent with other platforms
69do_install:prepend:am64xx() {
70 ( cd ${RTOS_IPC_FW_DIR}; \
71 mv am64-main-r5f0_0-fw ipc_echo_baremetal_test_mcu1_0_release_strip.xer5f; \
72 mv am64-main-r5f0_1-fw ipc_echo_baremetal_test_mcu1_1_release_strip.xer5f; \
73 mv am64-main-r5f1_0-fw ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f; \
74 mv am64-main-r5f1_1-fw ipc_echo_baremetal_test_mcu2_1_release_strip.xer5f; \
75 mv am64-mcu-m4f0_0-fw ipc_echo_baremetal_test_mcu3_0_release_strip.xer5f; \
76 )
77}
78
79#Install all R5 & DSP ipc echo test binaries in lib/firmware/pdk-ipc, with softlinks up a level
80do_install() {
81 :
82}
83
84do_install:j7() {
85 install -d ${LEGACY_IPC_FW_DIR}
86 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
87 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
88 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
89 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
90 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
91 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c66xdsp_1_release_strip.xe66 ${LEGACY_IPC_FW_DIR}
92 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c66xdsp_2_release_strip.xe66 ${LEGACY_IPC_FW_DIR}
93 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_1_release_strip.xe71 ${LEGACY_IPC_FW_DIR}
94 # DM Firmware
95 install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR}
96 # ETH firmware
97 install -d ${LEGACY_ETH_FW_DIR}
98 install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR}
99}
100
101do_install:j7200-evm() {
102 install -d ${LEGACY_IPC_FW_DIR}
103 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
104 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
105 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
106 # DM Firmware
107 install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR}
108 # ETH firmware
109 install -d ${LEGACY_ETH_FW_DIR}
110 install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR}
111}
112
113do_install:j7200-hs-evm() {
114 install -d ${LEGACY_IPC_FW_DIR}
115 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
116 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
117 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
118 # DM Firmware
119 install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR}
120 # ETH firmware
121 install -d ${LEGACY_ETH_FW_DIR}
122 install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR}
123}
124
125do_install:am65xx() {
126 install -d ${LEGACY_IPC_FW_DIR}
127 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
128 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
129}
130
131do_install:am64xx() {
132 install -d ${LEGACY_IPC_FW_DIR}
133 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu1_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
134 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
135 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
136 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
137 install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu3_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
138}
139
140# Set up names for the firmwares
141ALTERNATIVE:${PN}:am65xx = "\
142 am65x-mcu-r5f0_0-fw \
143 am65x-mcu-r5f0_1-fw \
144 "
145
146ALTERNATIVE:${PN}:am64xx = "\
147 am64-main-r5f0_0-fw \
148 am64-main-r5f0_1-fw \
149 am64-main-r5f1_0-fw \
150 am64-main-r5f1_1-fw \
151 am64-mcu-m4f0_0-fw \
152 "
153
154ALTERNATIVE:${PN}:j7 = "\
155 j7-mcu-r5f0_0-fw \
156 j7-mcu-r5f0_1-fw \
157 j7-main-r5f0_0-fw \
158 j7-main-r5f0_1-fw \
159 j7-main-r5f1_0-fw \
160 j7-main-r5f1_1-fw \
161 j7-c66_0-fw \
162 j7-c66_1-fw \
163 j7-c71_0-fw\
164 "
165
166ALTERNATIVE:${PN}:j7200-evm = "\
167 j7200-mcu-r5f0_0-fw \
168 j7200-mcu-r5f0_1-fw \
169 j7200-main-r5f0_0-fw \
170 j7200-main-r5f0_1-fw \
171 "
172
173ALTERNATIVE:${PN}:j7200-hs-evm = "\
174 j7200-mcu-r5f0_0-fw \
175 j7200-mcu-r5f0_1-fw \
176 j7200-main-r5f0_0-fw \
177 j7200-main-r5f0_1-fw \
178 "
179
180# Set up link names for the firmwares
181
182TARGET_MCU_R5FSS0_0:am65xx = "am65x-mcu-r5f0_0-fw"
183TARGET_MCU_R5FSS0_1:am65xx = "am65x-mcu-r5f0_1-fw"
184
185TARGET_MAIN_R5FSS0_0:am64xx = "am64-main-r5f0_0-fw"
186TARGET_MAIN_R5FSS0_1:am64xx = "am64-main-r5f0_1-fw"
187TARGET_MAIN_R5FSS1_0:am64xx = "am64-main-r5f1_0-fw"
188TARGET_MAIN_R5FSS1_1:am64xx = "am64-main-r5f1_1-fw"
189TARGET_MCU_M4FSS0_0:am64xx = "am64-mcu-m4f0_0-fw"
190
191TARGET_MCU_R5FSS0_0:j7 = "j7-mcu-r5f0_0-fw"
192TARGET_MCU_R5FSS0_1:j7 = "j7-mcu-r5f0_1-fw"
193TARGET_MAIN_R5FSS0_0:j7 = "j7-main-r5f0_0-fw"
194TARGET_MAIN_R5FSS0_1:j7 = "j7-main-r5f0_1-fw"
195TARGET_MAIN_R5FSS1_0:j7 = "j7-main-r5f1_0-fw"
196TARGET_MAIN_R5FSS1_1:j7 = "j7-main-r5f1_1-fw"
197TARGET_C66_0:j7 = "j7-c66_0-fw"
198TARGET_C66_1:j7 = "j7-c66_1-fw"
199TARGET_C7X:j7 = "j7-c71_0-fw"
200
201TARGET_MCU_R5FSS0_0:j7200-evm = "j7200-mcu-r5f0_0-fw"
202TARGET_MCU_R5FSS0_1:j7200-evm = "j7200-mcu-r5f0_1-fw"
203TARGET_MAIN_R5FSS0_0:j7200-evm = "j7200-main-r5f0_0-fw"
204TARGET_MAIN_R5FSS0_1:j7200-evm = "j7200-main-r5f0_1-fw"
205
206TARGET_MCU_R5FSS0_0:j7200-hs-evm = "j7200-mcu-r5f0_0-fw"
207TARGET_MCU_R5FSS0_1:j7200-hs-evm = "j7200-mcu-r5f0_1-fw"
208TARGET_MAIN_R5FSS0_0:j7200-hs-evm = "j7200-main-r5f0_0-fw"
209TARGET_MAIN_R5FSS0_1:j7200-hs-evm = "j7200-main-r5f0_1-fw"
210
211ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}"
212ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}"
213
214ALTERNATIVE_LINK_NAME[am64-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}"
215ALTERNATIVE_LINK_NAME[am64-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}"
216ALTERNATIVE_LINK_NAME[am64-main-r5f1_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0}"
217ALTERNATIVE_LINK_NAME[am64-main-r5f1_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1}"
218ALTERNATIVE_LINK_NAME[am64-mcu-m4f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_M4FSS0_0}"
219
220ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}"
221ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}"
222ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}"
223ALTERNATIVE_LINK_NAME[j7-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}"
224ALTERNATIVE_LINK_NAME[j7-main-r5f1_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0}"
225ALTERNATIVE_LINK_NAME[j7-main-r5f1_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1}"
226ALTERNATIVE_LINK_NAME[j7-c66_0-fw] = "${base_libdir}/firmware/${TARGET_C66_0}"
227ALTERNATIVE_LINK_NAME[j7-c66_1-fw] = "${base_libdir}/firmware/${TARGET_C66_1}"
228ALTERNATIVE_LINK_NAME[j7-c71_0-fw] = "${base_libdir}/firmware/${TARGET_C7X}"
229
230ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}"
231ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}"
232ALTERNATIVE_LINK_NAME[j7200-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}"
233ALTERNATIVE_LINK_NAME[j7200-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}"
234
235# Create the firmware alternatives
236
237ALTERNATIVE_TARGET[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_0_release_strip.xer5f"
238ALTERNATIVE_TARGET[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f"
239
240ALTERNATIVE_TARGET[am64-main-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu1_0_release_strip.xer5f"
241ALTERNATIVE_TARGET[am64-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu1_1_release_strip.xer5f"
242ALTERNATIVE_TARGET[am64-main-r5f1_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f"
243ALTERNATIVE_TARGET[am64-main-r5f1_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu2_1_release_strip.xer5f"
244ALTERNATIVE_TARGET[am64-mcu-m4f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu3_0_release_strip.xer5f"
245
246ALTERNATIVE_TARGET[j7-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f"
247ALTERNATIVE_TARGET[j7-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f"
248ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f"
249ALTERNATIVE_TARGET[j7-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f"
250ALTERNATIVE_TARGET[j7-main-r5f1_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_0_release_strip.xer5f"
251ALTERNATIVE_TARGET[j7-main-r5f1_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_1_release_strip.xer5f"
252ALTERNATIVE_TARGET[j7-c66_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_1_release_strip.xe66"
253ALTERNATIVE_TARGET[j7-c66_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_2_release_strip.xe66"
254ALTERNATIVE_TARGET[j7-c71_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71"
255
256ALTERNATIVE_TARGET[j7200-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f"
257ALTERNATIVE_TARGET[j7200-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f"
258ALTERNATIVE_TARGET[j7200-main-r5f0_0-fw] = "${base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f"
259ALTERNATIVE_TARGET[j7200-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f"
260
261ALTERNATIVE_PRIORITY = "10"
262
263# make sure that lib/firmware, and all its contents are part of the package
264FILES:${PN} += "${base_libdir}/firmware"
265
266# This is used to prevent the build system to_strip the executables
267INHIBIT_PACKAGE_STRIP = "1"
268INHIBIT_SYSROOT_STRIP = "1"
269# This is used to prevent the build system to split the debug info in a separate file
270INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
271# As it likely to be a different arch from the Yocto build, disable checking by adding "arch" to INSANE_SKIP
272INSANE_SKIP:${PN} += "arch"
273
274# we don't want to configure and build the source code
275do_compile[noexec] = "1"
276do_configure[noexec] = "1"
diff --git a/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb b/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb
new file mode 100644
index 00000000..67b1d2a9
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb
@@ -0,0 +1,47 @@
1LICENSE = "BSD-3-Clause"
2LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
3
4COMPATIBLE_MACHINE = "ti-soc"
5
6PACKAGE_ARCH = "${MACHINE_ARCH}"
7
8INHIBIT_DEFAULT_DEPS = "1"
9
10inherit nopackages deploy
11
12PLAT_SFX = ""
13PLAT_SFX:j7 = "/j721e"
14PLAT_SFX:j7200-evm = "/j7200"
15PLAT_SFX:am65xx = "/am65xx"
16PLAT_SFX:am64xx = "/am64x"
17
18# Use weak assignment to set defaults to TI_RTOS_METADATA_* variables
19TI_RTOS_METADATA_URI ?= "git://git.ti.com/processor-sdk/coresdk_rtos_releases.git"
20TI_RTOS_METADATA_PROTOCOL ?= "git"
21TI_RTOS_METADATA_SRCREV ?= "2ecbf45af64bc47806623cc5bf7ab493489acaf9"
22TI_RTOS_METADATA_BRANCH ?= "master"
23TI_RTOS_METADATA_DIR ?= "${PLAT_SFX}"
24TI_RTOS_METADATA_FILE ?= "${S}${TI_RTOS_METADATA_DIR}/metadata.inc"
25TI_RTOS_METADATA_FILE:am64xx ?= "${S}${TI_RTOS_METADATA_DIR}/mcusdk_metadata.inc"
26
27PV = "1.0.0+git${SRCPV}"
28
29S = "${WORKDIR}/git"
30
31SRC_URI = "${TI_RTOS_METADATA_URI};branch=${TI_RTOS_METADATA_BRANCH};protocol=${TI_RTOS_METADATA_PROTOCOL}"
32SRCREV = "${TI_RTOS_METADATA_SRCREV}"
33
34do_configure[noexec] = "1"
35do_compile[noexec] = "1"
36do_install[noexec] = "1"
37
38do_deploy () {
39 :
40}
41
42do_deploy:k3 () {
43 install -d ${DEPLOYDIR}
44 install -m 0644 ${TI_RTOS_METADATA_FILE} ${DEPLOYDIR}/
45}
46
47addtask deploy before do_build after do_compile
diff --git a/meta-ti-bsp/recipes-ti/uio-test-pruss/uio-test-pruss_git.bb b/meta-ti-bsp/recipes-ti/uio-test-pruss/uio-test-pruss_git.bb
new file mode 100644
index 00000000..59576daa
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/uio-test-pruss/uio-test-pruss_git.bb
@@ -0,0 +1,38 @@
1DESCRIPTION = "Provides test pruss firmware for uio based tests"
2LICENSE = "BSD-3-Clause"
3PV = "1.0.2.0"
4require recipes-ti/includes/ti-paths.inc
5
6S = "${WORKDIR}/git"
7
8DEPENDS = "ti-cgt-pru-native"
9
10BRANCH = "master"
11LIC_FILES_CHKSUM = "file://Makefile;startline=1;endline=31;md5=0ee4f2c42eb6b04e37859bb55a18b144"
12
13UIO_TEST_PRUSS_GIT_URI = "git://git.ti.com/processor-sdk/uio-test-pruss.git"
14UIO_TEST_PRUSS_GIT_PROTOCOL = "git"
15SRC_URI = "${UIO_TEST_PRUSS_GIT_URI};protocol=${UIO_TEST_PRUSS_GIT_PROTOCOL};branch=${BRANCH}"
16
17# Corresponds to version 01.00.02.00
18UIO_TEST_PRUSS_SRCREV = "e52a7b099d7203ca52519650df51419e9fef7e0c"
19
20SRCREV = "${UIO_TEST_PRUSS_SRCREV}"
21
22PR = "r0"
23
24COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x"
25
26PACKAGE_ARCH = "${MACHINE_ARCH}"
27
28DEVICE_NAME = ""
29DEVICE_NAME:append:am57xx-evm = "am57xx"
30DEVICE_NAME:append:ti33x = "am33xx"
31DEVICE_NAME:append:ti43x = "am43xx"
32
33EXTRA_OEMAKE = "CGT_PRU=${TI_CGT_PRU_INSTALL_DIR} DEVICE=${DEVICE_NAME}"
34
35do_install() {
36 install -d ${D}${bindir}/
37 cp -r *.bin ${D}${bindir}/
38}
diff --git a/meta-ti-bsp/recipes-ti/vlib/vlib-c66x.inc b/meta-ti-bsp/recipes-ti/vlib/vlib-c66x.inc
new file mode 100644
index 00000000..460964b3
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/vlib/vlib-c66x.inc
@@ -0,0 +1,32 @@
1DESCRIPTION = "TI Vision Library (VLIB) for C66x"
2HOMEPAGE = "http://software-dl.ti.com/libs/vlib/latest/index_FDS.html"
3SECTION = "devel"
4LICENSE = "TI-TSPA & BSD-3-Clause"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8require ../includes/ti-eula-unpack.inc
9
10COMPATIBLE_MACHINE = "omap-a15"
11
12SRC_URI = "http://software-dl.ti.com/libs/vlib/${PV}//exports/vlib_c66x_obj_${PV}_Linux.bin;name=vlibbin"
13
14S = "${WORKDIR}/vlib_c66x_${PV}"
15
16BINFILE="vlib_c66x_obj_${PV}_Linux.bin"
17TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}"
18TI_BIN_UNPK_CMDS=""
19
20do_install() {
21 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
22 install -d ${D}${VLIB_C66_INSTALL_DIR_RECIPE}
23 cp ${CP_ARGS} ${S}/* ${D}${VLIB_C66_INSTALL_DIR_RECIPE}
24}
25
26ALLOW_EMPTY:${PN} = "1"
27FILES:${PN}-dev += "${VLIB_C66_INSTALL_DIR_RECIPE}"
28
29INHIBIT_PACKAGE_STRIP = "1"
30INHIBIT_SYSROOT_STRIP = "1"
31INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
32INSANE_SKIP:${PN}-dev = "installed-vs-shipped arch"
diff --git a/meta-ti-bsp/recipes-ti/vlib/vlib-c66x_3.2.1.0.bb b/meta-ti-bsp/recipes-ti/vlib/vlib-c66x_3.2.1.0.bb
new file mode 100644
index 00000000..e3742d10
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/vlib/vlib-c66x_3.2.1.0.bb
@@ -0,0 +1,9 @@
1require vlib-c66x.inc
2
3PV = "3_2_1_0"
4PR = "r0"
5
6LIC_FILES_CHKSUM = "file://docs/VLIB_Software_Manifest.html;md5=75151b04457c8a1ae3c2172ada0eedda"
7
8SRC_URI[vlibbin.md5sum] = "e292fa3f74be60b9110e0ebcc6840fe7"
9SRC_URI[vlibbin.sha256sum] = "05bf16473d60e0252d3a73a7c3d268e540783a226b4bda930e5f6042e7b01bd8"
diff --git a/meta-ti-bsp/recipes-ti/xdais/ti-xdais.inc b/meta-ti-bsp/recipes-ti/xdais/ti-xdais.inc
new file mode 100644
index 00000000..daa93ddf
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/xdais/ti-xdais.inc
@@ -0,0 +1,25 @@
1DESCRIPTION = "TI eXpress DSP Algorithm Interface Standard (XDAIS) specification"
2HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais"
3LICENSE = "GPLv2"
4SECTION = "devel"
5
6require ../includes/ti-paths.inc
7require ../includes/ti-staging.inc
8
9S = "${WORKDIR}/xdais_${PV}"
10
11SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais/${PV}/exports/xdais_${PV}.tar.gz;name=xdaistarball"
12
13do_install() {
14 CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
15 install -d ${D}${XDAIS_INSTALL_DIR_RECIPE}
16 cp ${CP_ARGS} ${S}/* ${D}${XDAIS_INSTALL_DIR_RECIPE}
17}
18
19INHIBIT_PACKAGE_STRIP = "1"
20INHIBIT_SYSROOT_STRIP = "1"
21INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
22INSANE_SKIP:${PN}-dev = "arch"
23
24ALLOW_EMPTY:${PN} = "1"
25FILES:${PN}-dev += "${XDAIS_INSTALL_DIR_RECIPE}"
diff --git a/meta-ti-bsp/recipes-ti/xdais/ti-xdais_6.26.01.03.bb b/meta-ti-bsp/recipes-ti/xdais/ti-xdais_6.26.01.03.bb
new file mode 100644
index 00000000..9fc4cee1
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/xdais/ti-xdais_6.26.01.03.bb
@@ -0,0 +1,11 @@
1require ti-xdais.inc
2
3PV = "6_26_01_03"
4PR = "r1"
5
6LIC_FILES_CHKSUM = "file://xdais_6_26_01_03_manifest.html;md5=a5a675d49db2f658bb98746ec80cda4e"
7
8SRC_URI[xdaistarball.md5sum] = "9b2bea3408254e737ec0d819a031adf6"
9SRC_URI[xdaistarball.sha256sum] = "d7bcbd8bcfe6fdfc5f402e4b125ced6c806dc30bc5296e98d5d43b0b5a237a0d"
10
11INSANE_SKIP:${PN} = "installed-vs-shipped"
diff --git a/meta-ti-bsp/recipes-ti/xdais/ti-xdais_7.24.00.04.bb b/meta-ti-bsp/recipes-ti/xdais/ti-xdais_7.24.00.04.bb
new file mode 100644
index 00000000..8148f73a
--- /dev/null
+++ b/meta-ti-bsp/recipes-ti/xdais/ti-xdais_7.24.00.04.bb
@@ -0,0 +1,9 @@
1require ti-xdais.inc
2
3PV = "7_24_00_04"
4PR = "r1"
5
6LIC_FILES_CHKSUM = "file://xdais_7_24_00_04_Manifest.html;md5=fd16442230745f0877cfe1c622669fd6"
7
8SRC_URI[xdaistarball.md5sum] = "f7514085b531f2ae49b37b30194e4989"
9SRC_URI[xdaistarball.sha256sum] = "79fd30377ab4c497292aeefb0565f81703d9020d1242b02ca9968c561e0de9a1"
diff --git a/meta-ti-bsp/wic/sdimage-2part-efi.wks b/meta-ti-bsp/wic/sdimage-2part-efi.wks
new file mode 100644
index 00000000..ffb8d24b
--- /dev/null
+++ b/meta-ti-bsp/wic/sdimage-2part-efi.wks
@@ -0,0 +1,7 @@
1# short-description: Create SD card image with 2 partitions and EFI support
2# long-description: Creates a partitioned SD card image for TI platforms that
3# supports EFI. Boot files are located in the first vfat partition with extra
4# reserved space. We cannot use a GPT here.
5bootloader --append="rootfstype=ext4 ro"
6part /boot --source bootimg-efi --sourceparams="loader=grub-efi" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M
7part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid
diff --git a/meta-ti-bsp/wic/sdimage-2part.wks b/meta-ti-bsp/wic/sdimage-2part.wks
new file mode 100644
index 00000000..3eab9407
--- /dev/null
+++ b/meta-ti-bsp/wic/sdimage-2part.wks
@@ -0,0 +1,6 @@
1# short-description: Create SD card image with 2 partitions
2# long-description: Creates a partitioned SD card image for TI platforms.
3# Boot files are located in the first vfat partition with extra reserved space.
4
5part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 1024 --fixed-size 128 --use-uuid
6part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 1024 --use-uuid