diff options
Diffstat (limited to 'meta-ti-bsp')
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 @@ | |||
1 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
2 | of this software and associated documentation files (the "Software"), to deal | ||
3 | in the Software without restriction, including without limitation the rights | ||
4 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
5 | copies of the Software, and to permit persons to whom the Software is | ||
6 | furnished to do so, subject to the following conditions: | ||
7 | |||
8 | The above copyright notice and this permission notice shall be included in | ||
9 | all copies or substantial portions of the Software. | ||
10 | |||
11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
12 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
13 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
14 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
15 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
16 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
17 | THE 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 @@ | |||
1 | The official OpenEmbedded/Yocto BSP layer for Texas Instruments platforms. | ||
2 | |||
3 | It is hosted on http://git.yoctoproject.org/cgit/cgit.cgi/meta-ti/ with the | ||
4 | source repository at git://git.yoctoproject.org/meta-ti | ||
5 | |||
6 | |||
7 | This layer depends on: | ||
8 | |||
9 | URI: git://git.openembedded.org/openembedded-core | ||
10 | layers: meta | ||
11 | branch: master | ||
12 | |||
13 | URI: git://git.yoctoproject.org/meta-arm | ||
14 | layers: meta-arm | ||
15 | branch: master | ||
16 | |||
17 | |||
18 | The base BSP part of meta-ti should work with different OpenEmbedded/Yocto | ||
19 | distributions and layer stacks, such as: | ||
20 | distro-less (only with OE-Core), with Yocto/Poky, with Angstrom or Arago. | ||
21 | |||
22 | Please follow the recommended setup procedures of your OE distribution. | ||
23 | |||
24 | |||
25 | Send pull requests, patches, comments or questions to: | ||
26 | meta-ti@lists.yoctoproject.org | ||
27 | |||
28 | Please note - meta-ti mailing list requires subscription for posting: | ||
29 | https://lists.yoctoproject.org/g/meta-ti | ||
30 | |||
31 | Maintainers: | ||
32 | Praneeth Bajjuri <praneeth@ti.com> | ||
33 | Denys 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 | ||
2 | BBPATH .= ":${LAYERDIR}" | ||
3 | METATIBASE := '${@os.path.normpath("${LAYERDIR}/")}' | ||
4 | |||
5 | # We have a recipes directory, add to BBFILES | ||
6 | BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend" | ||
7 | |||
8 | BBFILE_COLLECTIONS += "meta-ti-bsp" | ||
9 | BBFILE_PATTERN_meta-ti-bsp := "^${LAYERDIR}/" | ||
10 | BBFILE_PRIORITY_meta-ti-bsp = "6" | ||
11 | |||
12 | LAYERSERIES_COMPAT_meta-ti-bsp = "honister" | ||
13 | |||
14 | LICENSE_PATH += "${LAYERDIR}/licenses" | ||
15 | |||
16 | LAYERDEPENDS_meta-ti-bsp = " \ | ||
17 | core \ | ||
18 | meta-arm \ | ||
19 | " | ||
20 | |||
21 | SIGGEN_EXCLUDERECIPES_ABISAFE += " \ | ||
22 | ti-sgx-ddk-km \ | ||
23 | ti-sgx-ddk-um \ | ||
24 | " | ||
25 | |||
26 | HOSTTOOLS_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 | |||
5 | require conf/machine/include/ti33x.inc | ||
6 | |||
7 | MACHINE_GUI_CLASS = "smallscreen" | ||
8 | MACHINE_FEATURES += "touchscreen" | ||
9 | |||
10 | IMAGE_FSTYPES += "ubifs ubi" | ||
11 | |||
12 | # Normally AM335 boards use ttyS0, but ICE uses ttyS3, so try both | ||
13 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS3" | ||
14 | SERIAL_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 | ||
27 | MKUBIFS_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) | ||
35 | UBINIZE_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 | |||
5 | require conf/machine/am335x-evm.conf | ||
6 | |||
7 | UBOOT_MACHINE = "" | ||
8 | # Last config in the list is default | ||
9 | UBOOT_CONFIG ??= "uart mmc" | ||
10 | UBOOT_CONFIG[uart] = "am335x_hs_evm_uart_config" | ||
11 | UBOOT_CONFIG[mmc] = "am335x_hs_evm_config" | ||
12 | |||
13 | UBOOT_ENTRYPOINT = "0x82000000" | ||
14 | UBOOT_LOADADDRESS = "0x82000000" | ||
15 | UBOOT_RD_LOADADDRESS = "0x84000000" | ||
16 | UBOOT_RD_ENTRYPOINT = "0x84000000" | ||
17 | |||
18 | TI_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 | |||
5 | require conf/machine/include/ti43x.inc | ||
6 | |||
7 | MACHINE_GUI_CLASS = "smallscreen" | ||
8 | MACHINE_FEATURES += "touchscreen" | ||
9 | |||
10 | IMAGE_FSTYPES += "ubifs ubi" | ||
11 | |||
12 | SERIAL_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 | ||
25 | MKUBIFS_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) | ||
33 | UBINIZE_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 | |||
5 | require conf/machine/am437x-evm.conf | ||
6 | |||
7 | UBOOT_MACHINE = "am43xx_hs_evm_config" | ||
8 | |||
9 | UBOOT_ENTRYPOINT = "0x82000000" | ||
10 | UBOOT_LOADADDRESS = "0x82000000" | ||
11 | UBOOT_RD_LOADADDRESS = "0x84000000" | ||
12 | UBOOT_RD_ENTRYPOINT = "0x84000000" | ||
13 | |||
14 | TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_CAT}/am4x" | ||
15 | |||
16 | OPTEEMACHINE = "ti-am43xx" | ||
17 | OPTEEFLAVOR = "am43xx" | ||
18 | OPTEEOUTPUTMACHINE = "ti" | ||
19 | |||
20 | EXTRA_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 | |||
5 | require conf/machine/include/dra7xx.inc | ||
6 | |||
7 | MACHINE_FEATURES += "touchscreen" | ||
8 | |||
9 | SERIAL_CONSOLES = "115200;ttyS2" | ||
10 | |||
11 | KERNEL_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 | |||
30 | KERNEL_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 | |||
32 | UBOOT_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 | ||
45 | MKUBIFS_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) | ||
53 | UBINIZE_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 | |||
5 | require conf/machine/am57xx-evm.conf | ||
6 | |||
7 | UBOOT_MACHINE = "am57xx_hs_evm_config" | ||
8 | |||
9 | UBOOT_ENTRYPOINT = "0x82000000" | ||
10 | UBOOT_LOADADDRESS = "0x82000000" | ||
11 | UBOOT_RD_LOADADDRESS = "0x84000000" | ||
12 | UBOOT_RD_ENTRYPOINT = "0x84000000" | ||
13 | |||
14 | TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_AUTO}/am5x" | ||
15 | |||
16 | OPTEEMACHINE = "ti-am57xx" | ||
17 | OPTEEFLAVOR = "am57xx" | ||
18 | OPTEEOUTPUTMACHINE = "ti" | ||
19 | OPTEEPAGER = "y" | ||
20 | |||
21 | EXTRA_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 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | |||
7 | SYSFW_SOC = "am64x" | ||
8 | SYSFW_CONFIG = "evm" | ||
9 | SYSFW_SUFFIX = "gp" | ||
10 | |||
11 | UBOOT_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 | |||
5 | require conf/machine/include/am64xx.inc | ||
6 | |||
7 | UBOOT_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 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | |||
7 | SYSFW_SOC = "am64x" | ||
8 | SYSFW_CONFIG = "evm" | ||
9 | SYSFW_SUFFIX = "hs" | ||
10 | SYSFW_SYMLINK = "" | ||
11 | |||
12 | UBOOT_MACHINE = "am64x_hs_evm_r5_defconfig" | ||
13 | |||
14 | TI_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 | |||
5 | require conf/machine/include/am64xx.inc | ||
6 | |||
7 | UBOOT_MACHINE = "am64x_hs_evm_a53_defconfig" | ||
8 | |||
9 | UBOOT_ENTRYPOINT = "0x80080000" | ||
10 | UBOOT_LOADADDRESS = "0x80080000" | ||
11 | UBOOT_RD_LOADADDRESS = "0x84000000" | ||
12 | UBOOT_RD_ENTRYPOINT = "0x84000000" | ||
13 | UBOOT_DTB_LOADADDRESS = "0x83000000" | ||
14 | UBOOT_DTBO_LOADADDRESS = "0x83080000" | ||
15 | UBOOT_DTBO_OFFSET = "0x00010000" | ||
16 | |||
17 | SPL_BINARY = "tispl.bin_HS" | ||
18 | SPL_BINARYNAME = "tispl.bin" | ||
19 | UBOOT_BINARY = "u-boot.img_HS" | ||
20 | IMAGE_BOOT_FILES = "${UBOOT_BINARY}" | ||
21 | |||
22 | TI_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 | |||
7 | require conf/machine/am65xx-evm-k3r5.conf | ||
8 | SOC_FAMILY:append = ":k3r5-sr2" | ||
9 | |||
10 | SYSFW_SOC = "am65x_sr2" | ||
11 | SYSFW_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 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | |||
7 | SYSFW_SOC = "am65x" | ||
8 | SYSFW_CONFIG = "evm" | ||
9 | SYSFW_SUFFIX = "gp" | ||
10 | SYSFW_SYMLINK = "" | ||
11 | |||
12 | UBOOT_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 | |||
5 | require conf/machine/include/am65xx.inc | ||
6 | |||
7 | UBOOT_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 | |||
7 | require conf/machine/am65xx-hs-evm-k3r5.conf | ||
8 | SOC_FAMILY:append = ":k3r5-sr2" | ||
9 | |||
10 | SYSFW_SOC = "am65x_sr2" | ||
11 | SYSFW_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 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | |||
7 | SYSFW_SOC = "am65x" | ||
8 | SYSFW_CONFIG = "evm" | ||
9 | SYSFW_SUFFIX = "hs" | ||
10 | SYSFW_SYMLINK = "" | ||
11 | |||
12 | UBOOT_MACHINE = "am65x_hs_evm_r5_defconfig" | ||
13 | |||
14 | TI_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 | |||
5 | require conf/machine/include/am65xx.inc | ||
6 | |||
7 | UBOOT_MACHINE = "am65x_hs_evm_a53_defconfig" | ||
8 | |||
9 | UBOOT_ENTRYPOINT = "0x80080000" | ||
10 | UBOOT_LOADADDRESS = "0x80080000" | ||
11 | UBOOT_RD_LOADADDRESS = "0x84000000" | ||
12 | UBOOT_RD_ENTRYPOINT = "0x84000000" | ||
13 | UBOOT_DTB_LOADADDRESS = "0x83000000" | ||
14 | UBOOT_DTBO_LOADADDRESS = "0x83080000" | ||
15 | UBOOT_DTBO_OFFSET = "0x00010000" | ||
16 | |||
17 | SPL_BINARY = "tispl.bin_HS" | ||
18 | SPL_BINARYNAME = "tispl.bin" | ||
19 | UBOOT_BINARY = "u-boot.img_HS" | ||
20 | IMAGE_BOOT_FILES = "${UBOOT_BINARY}" | ||
21 | |||
22 | TI_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 | |||
5 | require conf/machine/include/dra7xx.inc | ||
6 | |||
7 | KERNEL_DEVICETREE = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revb1.dtb am57xx-beagle-x15-revc.dtb" | ||
8 | |||
9 | MACHINE_GUI_CLASS = "bigscreen" | ||
10 | |||
11 | SERIAL_CONSOLES = "115200;ttyS2" | ||
12 | |||
13 | UBOOT_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 | |||
5 | require conf/machine/include/ti33x.inc | ||
6 | |||
7 | KERNEL_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 | ||
12 | MACHINE_GUI_CLASS = "bigscreen" | ||
13 | |||
14 | SERIAL_CONSOLES = "115200;ttyS0" | ||
15 | |||
16 | IMAGE_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 | |||
5 | require conf/machine/include/dra7xx.inc | ||
6 | |||
7 | MACHINE_FEATURES += "touchscreen" | ||
8 | |||
9 | SERIAL_CONSOLES = "115200;ttyS0" | ||
10 | |||
11 | KERNEL_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 | |||
27 | UBOOT_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 | ||
40 | MKUBIFS_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) | ||
48 | UBINIZE_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 | |||
5 | require conf/machine/dra7xx-evm.conf | ||
6 | |||
7 | UBOOT_MACHINE = "dra7xx_hs_evm_config" | ||
8 | |||
9 | UBOOT_ENTRYPOINT = "0x82000000" | ||
10 | UBOOT_LOADADDRESS = "0x82000000" | ||
11 | UBOOT_RD_LOADADDRESS = "0x84000000" | ||
12 | UBOOT_RD_ENTRYPOINT = "0x84000000" | ||
13 | |||
14 | TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_AUTO}/dra7" | ||
15 | |||
16 | OPTEEMACHINE = "ti-dra7xx" | ||
17 | OPTEEFLAVOR = "dra7xx" | ||
18 | OPTEEOUTPUTMACHINE = "ti" | ||
19 | OPTEEPAGER = "y" | ||
20 | |||
21 | EXTRA_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 @@ | |||
1 | require conf/machine/include/k3.inc | ||
2 | SOC_FAMILY:append = ":am64xx" | ||
3 | |||
4 | MACHINE_FEATURES += "screen touchscreen" | ||
5 | |||
6 | SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS1" | ||
7 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
8 | |||
9 | KERNEL_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 | ||
17 | IMAGE_BOOT_FILES = "${IMAGE_BOOT_FILES_MULTI_CERT}" | ||
18 | |||
19 | do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy" | ||
20 | do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy" | ||
21 | |||
22 | TFA_BOARD = "lite" | ||
23 | OPTEEMACHINE = "k3-am65x" | ||
24 | OPTEEOUTPUTMACHINE = "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 @@ | |||
1 | require conf/machine/include/k3.inc | ||
2 | SOC_FAMILY:append = ":am65xx" | ||
3 | |||
4 | MACHINE_FEATURES += "screen touchscreen gpu" | ||
5 | |||
6 | SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS1" | ||
7 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
8 | |||
9 | KERNEL_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 | |||
23 | BBMULTICONFIG += "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 | ||
27 | IMAGE_BOOT_FILES += "sysfw-am65x-evm.itb" | ||
28 | do_image_wic[mcdepends] += "mc::k3r5-sr2:ti-sci-fw:do_deploy" | ||
29 | do_image_tar[mcdepends] += "mc::k3r5-sr2:ti-sci-fw:do_deploy" | ||
30 | |||
31 | OPTEEMACHINE = "k3-am65x" | ||
32 | OPTEEOUTPUTMACHINE = "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 @@ | |||
1 | require conf/machine/include/omap-a15.inc | ||
2 | SOC_FAMILY:append = ":dra7xx" | ||
3 | |||
4 | MACHINE_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 @@ | |||
1 | require conf/machine/include/k3.inc | ||
2 | SOC_FAMILY:append = ":j7" | ||
3 | |||
4 | OPTEEMACHINE = "k3-j721e" | ||
5 | OPTEEOUTPUTMACHINE = "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 | |||
3 | require conf/machine/include/ti-soc.inc | ||
4 | SOC_FAMILY:append = ":k3" | ||
5 | |||
6 | require conf/machine/include/arm/arch-arm64.inc | ||
7 | |||
8 | BBMULTICONFIG += "k3r5" | ||
9 | |||
10 | # Increase this everytime you change something in the kernel | ||
11 | MACHINE_KERNEL_PR = "r0" | ||
12 | |||
13 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging" | ||
14 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging" | ||
15 | PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging" | ||
16 | |||
17 | KERNEL_IMAGETYPE = "Image" | ||
18 | KERNEL_IMAGETYPES = "Image vmlinux.gz" | ||
19 | |||
20 | UBOOT_ARCH = "arm" | ||
21 | UBOOT_ENTRYPOINT = "0x80008000" | ||
22 | UBOOT_LOADADDRESS = "0x80008000" | ||
23 | |||
24 | SPL_BINARY = "tispl.bin" | ||
25 | UBOOT_SUFFIX = "img" | ||
26 | |||
27 | EXTRA_IMAGEDEPENDS += "virtual/bootloader" | ||
28 | |||
29 | TFA_PLATFORM = "k3" | ||
30 | TFA_BOARD = "generic" | ||
31 | |||
32 | MACHINE_GUI_CLASS = "smallscreen" | ||
33 | |||
34 | # Use the expected value of the ubifs filesystem's volume name in the kernel | ||
35 | # and u-boot. | ||
36 | UBI_VOLNAME = "rootfs" | ||
37 | |||
38 | # List common SoC features, may need to add touchscreen for specific machines | ||
39 | MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 alsa ethernet pci" | ||
40 | |||
41 | IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap" | ||
42 | |||
43 | IMAGE_BOOT_FILES_LEGACY = "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin sysfw.itb" | ||
44 | IMAGE_BOOT_FILES_MULTI_CERT = "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin" | ||
45 | |||
46 | IMAGE_BOOT_FILES ?= "${IMAGE_BOOT_FILES_LEGACY}" | ||
47 | IMAGE_EFI_BOOT_FILES ?= "${IMAGE_BOOT_FILES}" | ||
48 | |||
49 | EFI_PROVIDER ?= "grub-efi" | ||
50 | MACHINE_FEATURES += "efi" | ||
51 | |||
52 | WKS_FILE ?= "sdimage-2part-efi.wks" | ||
53 | do_image_wic[depends] += "virtual/bootloader:do_deploy" | ||
54 | do_image_wic[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy mc::k3r5:ti-sci-fw:do_deploy" | ||
55 | do_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 | |||
3 | require conf/machine/include/ti-soc.inc | ||
4 | SOC_FAMILY:append = ":k3r5" | ||
5 | |||
6 | # The closest of existing tunes for Cortex-R5F | ||
7 | DEFAULTTUNE = "armv7athf" | ||
8 | require 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 | ||
13 | PREFERRED_PROVIDER_virtual/kernel = "linux-dummy" | ||
14 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging" | ||
15 | PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging" | ||
16 | |||
17 | SPL_BINARY = "" | ||
18 | UBOOT_SUFFIX = "bin" | ||
19 | UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" | ||
20 | UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" | ||
21 | UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" | ||
22 | |||
23 | PACKAGECONFIG:pn-u-boot-ti-staging = "" | ||
24 | PACKAGECONFIG: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 @@ | |||
1 | require conf/machine/include/ti-soc.inc | ||
2 | SOC_FAMILY:append = ":omap-a15" | ||
3 | |||
4 | DEFAULTTUNE ?= "armv7athf-neon" | ||
5 | require conf/machine/include/arm/armv7a/tune-cortexa15.inc | ||
6 | |||
7 | # Increase this everytime you change something in the kernel | ||
8 | MACHINE_KERNEL_PR = "r7" | ||
9 | |||
10 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging" | ||
11 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging" | ||
12 | PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging" | ||
13 | |||
14 | KERNEL_IMAGETYPE = "zImage" | ||
15 | KERNEL_IMAGETYPES = "zImage uImage" | ||
16 | KERNEL_CLASSES += "kernel-uimage" | ||
17 | |||
18 | UBOOT_ARCH = "arm" | ||
19 | UBOOT_ENTRYPOINT = "0x80008000" | ||
20 | UBOOT_LOADADDRESS = "0x80008000" | ||
21 | |||
22 | DEVICETREE_FILE = "${@d.getVar('KERNEL_DEVICETREE').replace("ti/","")}" | ||
23 | |||
24 | # Generate an extlinux.conf file | ||
25 | UBOOT_EXTLINUX = "1" | ||
26 | UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}" | ||
27 | UBOOT_EXTLINUX_BOOT_FILES = " \ | ||
28 | extlinux.conf;extlinux/extlinux.conf \ | ||
29 | ${KERNEL_IMAGETYPE} \ | ||
30 | ${DEVICETREE_FILE} \ | ||
31 | " | ||
32 | |||
33 | SPL_BINARY = "MLO" | ||
34 | UBOOT_SUFFIX = "img" | ||
35 | |||
36 | EXTRA_IMAGEDEPENDS += "virtual/bootloader" | ||
37 | |||
38 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" | ||
39 | XSERVER = "xserver-xorg \ | ||
40 | xf86-input-evdev \ | ||
41 | xf86-video-fbdev" | ||
42 | |||
43 | MACHINE_GUI_CLASS = "smallscreen" | ||
44 | |||
45 | # Use the expected value of the ubifs filesystem's volume name in the kernel | ||
46 | # and u-boot. | ||
47 | UBI_VOLNAME = "rootfs" | ||
48 | |||
49 | # List common SoC features, may need to add touchscreen for specific machines | ||
50 | MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu mmip dsp gc320" | ||
51 | |||
52 | IMAGE_FSTYPES += "tar.xz wic.xz" | ||
53 | WKS_FILE ?= "sdimage-2part.wks" | ||
54 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}" | ||
55 | do_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 @@ | |||
1 | require conf/machine/include/ti-soc.inc | ||
2 | SOC_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 @@ | |||
1 | require conf/machine/include/omapl1.inc | ||
2 | SOC_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. | ||
3 | SOC_FAMILY = "ti-soc" | ||
4 | KERNEL_DTB_OVERLAY_SUPPORT ?= "1" | ||
5 | require 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 @@ | |||
1 | require conf/machine/include/ti-soc.inc | ||
2 | SOC_FAMILY:append = ":ti33x" | ||
3 | |||
4 | DEFAULTTUNE ?= "armv7athf-neon" | ||
5 | require conf/machine/include/arm/armv7a/tune-cortexa8.inc | ||
6 | |||
7 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" | ||
8 | |||
9 | # For built-in LCD, add xf86-input-tslib | ||
10 | XSERVER = "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 | ||
17 | MACHINE_GUI_CLASS = "bigscreen" | ||
18 | |||
19 | # Increase this everytime you change something in the kernel | ||
20 | MACHINE_KERNEL_PR = "r22" | ||
21 | |||
22 | # Default providers, may need to override for specific machines | ||
23 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging" | ||
24 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging" | ||
25 | PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging" | ||
26 | |||
27 | KERNEL_IMAGETYPE = "zImage" | ||
28 | |||
29 | KERNEL_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 | |||
38 | KERNEL_DEVICETREE += "${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'am335x-icev2-pru-excl-uio.dtb', '', d)}" | ||
39 | |||
40 | UBOOT_ARCH = "arm" | ||
41 | UBOOT_MACHINE = "am335x_evm_config" | ||
42 | |||
43 | UBOOT_ENTRYPOINT = "0x80008000" | ||
44 | UBOOT_LOADADDRESS = "0x80008000" | ||
45 | |||
46 | # Generate an extlinux.conf file | ||
47 | UBOOT_EXTLINUX = "1" | ||
48 | UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}" | ||
49 | UBOOT_EXTLINUX_BOOT_FILES = " \ | ||
50 | extlinux.conf;extlinux/extlinux.conf \ | ||
51 | ${KERNEL_IMAGETYPE} \ | ||
52 | ${KERNEL_DEVICETREE} \ | ||
53 | " | ||
54 | |||
55 | SPL_BINARY = "MLO" | ||
56 | UBOOT_SUFFIX = "img" | ||
57 | |||
58 | # Use the expected value of the ubifs filesystem's volume name in the kernel | ||
59 | # and u-boot. | ||
60 | UBI_VOLNAME = "rootfs" | ||
61 | |||
62 | EXTRA_IMAGEDEPENDS += "virtual/bootloader" | ||
63 | |||
64 | # List common SoC features, may need to add touchscreen for specific machines | ||
65 | MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu" | ||
66 | |||
67 | IMAGE_FSTYPES += "tar.xz wic.xz" | ||
68 | WKS_FILE ?= "sdimage-2part.wks" | ||
69 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}" | ||
70 | do_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 @@ | |||
1 | require conf/machine/include/ti-soc.inc | ||
2 | SOC_FAMILY:append = ":ti43x" | ||
3 | |||
4 | DEFAULTTUNE ?= "armv7athf-neon" | ||
5 | require conf/machine/include/arm/armv7a/tune-cortexa9.inc | ||
6 | |||
7 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" | ||
8 | |||
9 | # For built-in LCD, add xf86-input-tslib | ||
10 | XSERVER = "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 | ||
17 | MACHINE_GUI_CLASS = "bigscreen" | ||
18 | |||
19 | # Increase this everytime you change something in the kernel | ||
20 | MACHINE_KERNEL_PR = "r3" | ||
21 | |||
22 | # Default providers, may need to override for specific machines | ||
23 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging" | ||
24 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging" | ||
25 | PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging" | ||
26 | |||
27 | KERNEL_IMAGETYPE = "zImage" | ||
28 | |||
29 | KERNEL_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 | |||
35 | KERNEL_DEVICETREE += "${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'am437x-idk-pru-excl-uio.dtb', '', d)}" | ||
36 | |||
37 | UBOOT_ARCH = "arm" | ||
38 | UBOOT_MACHINE = "am43xx_evm_config" | ||
39 | |||
40 | UBOOT_ENTRYPOINT = "0x80008000" | ||
41 | UBOOT_LOADADDRESS = "0x80008000" | ||
42 | |||
43 | # Generate an extlinux.conf file | ||
44 | UBOOT_EXTLINUX = "1" | ||
45 | UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}" | ||
46 | UBOOT_EXTLINUX_BOOT_FILES = " \ | ||
47 | extlinux.conf;extlinux/extlinux.conf \ | ||
48 | ${KERNEL_IMAGETYPE} \ | ||
49 | ${KERNEL_DEVICETREE} \ | ||
50 | " | ||
51 | |||
52 | SPL_BINARY = "MLO" | ||
53 | UBOOT_SUFFIX = "img" | ||
54 | |||
55 | # Use the expected value of the ubifs filesystem's volume name in the kernel | ||
56 | # and u-boot. | ||
57 | UBI_VOLNAME = "rootfs" | ||
58 | |||
59 | EXTRA_IMAGEDEPENDS += "u-boot" | ||
60 | |||
61 | # List common SoC features, may need to add touchscreen for specific machines | ||
62 | MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu" | ||
63 | |||
64 | IMAGE_FSTYPES += "tar.xz wic.xz" | ||
65 | WKS_FILE ?= "sdimage-2part.wks" | ||
66 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}" | ||
67 | do_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 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | |||
7 | SYSFW_SOC = "j721e" | ||
8 | SYSFW_CONFIG = "evm" | ||
9 | SYSFW_SUFFIX = "gp" | ||
10 | |||
11 | UBOOT_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 | |||
5 | require conf/machine/include/j7.inc | ||
6 | |||
7 | MACHINE_FEATURES += "gpu" | ||
8 | |||
9 | SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS3" | ||
10 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
11 | |||
12 | KERNEL_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 | |||
18 | UBOOT_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 | |||
7 | require conf/machine/j7-hs-evm-k3r5.conf | ||
8 | SOC_FAMILY:append = ":k3r5-sr1-1" | ||
9 | |||
10 | SYSFW_SOC = "j721e_sr1_1" | ||
11 | SYSFW_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 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | |||
7 | SYSFW_SOC = "j721e" | ||
8 | SYSFW_CONFIG = "evm" | ||
9 | SYSFW_SUFFIX = "hs" | ||
10 | |||
11 | UBOOT_MACHINE = "j721e_hs_evm_r5_defconfig" | ||
12 | |||
13 | TI_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 | |||
5 | require conf/machine/j7-evm.conf | ||
6 | |||
7 | UBOOT_MACHINE = "j721e_hs_evm_a72_defconfig" | ||
8 | |||
9 | UBOOT_ENTRYPOINT = "0x80080000" | ||
10 | UBOOT_LOADADDRESS = "0x80080000" | ||
11 | UBOOT_RD_LOADADDRESS = "0x84000000" | ||
12 | UBOOT_RD_ENTRYPOINT = "0x84000000" | ||
13 | UBOOT_DTB_LOADADDRESS = "0x83000000" | ||
14 | UBOOT_DTBO_LOADADDRESS = "0x83080000" | ||
15 | UBOOT_DTBO_OFFSET = "0x00010000" | ||
16 | |||
17 | SPL_BINARY = "tispl.bin_HS" | ||
18 | SPL_BINARYNAME = "tispl.bin" | ||
19 | UBOOT_BINARY = "u-boot.img_HS" | ||
20 | IMAGE_BOOT_FILES = "${UBOOT_BINARY}" | ||
21 | |||
22 | BBMULTICONFIG += "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 | ||
26 | IMAGE_BOOT_FILES += "sysfw-j721e-evm.itb" | ||
27 | do_image_wic[mcdepends] += "mc::k3r5-sr1-1:ti-sci-fw:do_deploy" | ||
28 | do_image_tar[mcdepends] += "mc::k3r5-sr1-1:ti-sci-fw:do_deploy" | ||
29 | |||
30 | TI_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 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | |||
7 | SYSFW_SOC = "j7200" | ||
8 | SYSFW_CONFIG = "evm" | ||
9 | SYSFW_SUFFIX = "gp" | ||
10 | |||
11 | UBOOT_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 | |||
5 | require conf/machine/include/j7.inc | ||
6 | |||
7 | SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS3" | ||
8 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
9 | |||
10 | KERNEL_DEVICETREE = " \ | ||
11 | ti/k3-j7200-common-proc-board.dtb \ | ||
12 | " | ||
13 | |||
14 | UBOOT_MACHINE = "j7200_evm_a72_config" | ||
15 | |||
16 | # J7200 supports multi-certificate images, use the same | ||
17 | IMAGE_BOOT_FILES = "${IMAGE_BOOT_FILES_MULTI_CERT}" | ||
18 | |||
19 | do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy" | ||
20 | do_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 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | |||
7 | SYSFW_SOC = "j7200" | ||
8 | SYSFW_CONFIG = "evm" | ||
9 | SYSFW_SUFFIX = "hs" | ||
10 | |||
11 | UBOOT_MACHINE = "j7200_hs_evm_r5_defconfig" | ||
12 | |||
13 | TI_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 | |||
5 | require conf/machine/j7200-evm.conf | ||
6 | |||
7 | UBOOT_MACHINE = "j7200_hs_evm_a72_defconfig" | ||
8 | |||
9 | UBOOT_ENTRYPOINT = "0x80080000" | ||
10 | UBOOT_LOADADDRESS = "0x80080000" | ||
11 | UBOOT_RD_LOADADDRESS = "0x84000000" | ||
12 | UBOOT_RD_ENTRYPOINT = "0x84000000" | ||
13 | UBOOT_DTB_LOADADDRESS = "0x83000000" | ||
14 | UBOOT_DTBO_LOADADDRESS = "0x83080000" | ||
15 | UBOOT_DTBO_OFFSET = "0x00010000" | ||
16 | |||
17 | SPL_BINARY = "tispl.bin_HS" | ||
18 | SPL_BINARYNAME = "tispl.bin" | ||
19 | UBOOT_BINARY = "u-boot.img_HS" | ||
20 | IMAGE_BOOT_FILES = "${UBOOT_BINARY}" | ||
21 | |||
22 | TI_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 | |||
5 | require conf/machine/include/davinci.inc | ||
6 | require conf/machine/include/omapl138.inc | ||
7 | |||
8 | UBOOT_MACHINE = "omapl138_lcdk_config" | ||
9 | UBOOT_SUFFIX = "ais" | ||
10 | SPL_BINARY = "" | ||
11 | |||
12 | UBOOT_ENTRYPOINT = "0xc0008000" | ||
13 | UBOOT_LOADADDRESS = "0xc0008000" | ||
14 | |||
15 | IMAGE_FSTYPES += "tar.xz" | ||
16 | |||
17 | SERIAL_CONSOLES = "115200;ttyS2" | ||
18 | |||
19 | KERNEL_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 @@ | |||
1 | require k3r5.conf | ||
2 | |||
3 | MACHINE: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 @@ | |||
1 | require k3r5.conf | ||
2 | |||
3 | MACHINE: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 @@ | |||
1 | MAINMACHINE := "${MACHINE}" | ||
2 | |||
3 | DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MAINMACHINE}" | ||
4 | |||
5 | MACHINE: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 @@ | |||
1 | Copyright Patrick Powell 1995 | ||
2 | This code is based on code written by Patrick Powell (papowell@astart.com) | ||
3 | It may be used for any purpose as long as this notice remains intact | ||
4 | on 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 @@ | |||
1 | This license applies to the Imagination D5520 firmware image, pvdec_full_bin.fw. | ||
2 | |||
3 | Copyright (C) 2019 Texas Instruments Incorporated | ||
4 | |||
5 | All rights reserved not granted herein. | ||
6 | |||
7 | Limited License. | ||
8 | |||
9 | Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive | ||
10 | license under copyrights and patents it now or hereafter owns or controls to | ||
11 | make, have made, use, import, offer to sell and sell ("Utilize") this software | ||
12 | subject to the terms herein. With respect to the foregoing patent license, such | ||
13 | license is granted solely to the extent that any such patent is necessary to | ||
14 | Utilize the software alone. The patent license shall not apply to any | ||
15 | combinations which include this software, other than combinations with devices | ||
16 | manufactured by or for TI (âTI Devicesâ). No hardware patent is licensed | ||
17 | hereunder. | ||
18 | |||
19 | Redistributions must preserve existing copyright notices and reproduce this | ||
20 | license (including the above copyright notice and the disclaimer and | ||
21 | (if applicable) source code license limitations below) in the documentation | ||
22 | and/or other materials provided with the distribution | ||
23 | |||
24 | Redistribution and use in binary form, without modification, are permitted | ||
25 | provided 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 | |||
37 | If software source code is provided to you, modification and redistribution of | ||
38 | the 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 | |||
48 | Neither the name of Texas Instruments Incorporated nor the names of its | ||
49 | suppliers may be used to endorse or promote products derived from this | ||
50 | software without specific prior written permission. | ||
51 | |||
52 | DISCLAIMER. | ||
53 | |||
54 | THIS SOFTWARE IS PROVIDED BY TI AND TIâS LICENSORS "AS IS" AND ANY EXPRESS OR | ||
55 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
56 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
57 | EVENT SHALL TI AND TIâS LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
58 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
59 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
60 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
61 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE | ||
62 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
63 | ADVISED 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 @@ | |||
1 | TEXAS INSTRUMENTS TEXT FILE LICENSE | ||
2 | |||
3 | Copyright (c) [earliest year] - [latest year] Texas Instruments Incorporated | ||
4 | |||
5 | All rights reserved not granted herein. | ||
6 | |||
7 | Limited License. | ||
8 | |||
9 | Texas Instruments Incorporated grants a world-wide, royalty-free, | ||
10 | non-exclusive license under copyrights and patents it now or hereafter owns | ||
11 | or 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 | ||
13 | foregoing patent license, such license is granted solely to the extent that | ||
14 | any such patent is necessary to Utilize the software alone. The patent | ||
15 | license shall not apply to any combinations which include this software, | ||
16 | other than combinations with devices manufactured by or for TI ("TI | ||
17 | Devices"). No hardware patent is licensed hereunder. | ||
18 | |||
19 | Redistributions must preserve existing copyright notices and reproduce this | ||
20 | license (including the above copyright notice and the disclaimer and (if | ||
21 | applicable) source code license limitations below) in the documentation | ||
22 | and/or other materials provided with the distribution | ||
23 | |||
24 | Redistribution and use in binary form, without modification, are permitted | ||
25 | provided that the following conditions are met: | ||
26 | |||
27 | * No reverse engineering, decompilation, or disassembly of this software is | ||
28 | permitted with respect to any software provided in binary form. | ||
29 | |||
30 | * any redistribution and use are licensed by TI for use only with TI | ||
31 | Devices. | ||
32 | |||
33 | * Nothing shall obligate TI to provide you with source code for the software | ||
34 | licensed and provided to you in object code. | ||
35 | |||
36 | If software source code is provided to you, modification and redistribution | ||
37 | of the source code are permitted provided that the following conditions are | ||
38 | met: | ||
39 | |||
40 | * any redistribution and use of the source code, including any resulting | ||
41 | derivative 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 | ||
44 | code and any resulting derivative works, are licensed by TI for use only | ||
45 | with TI Devices. | ||
46 | |||
47 | Neither the name of Texas Instruments Incorporated nor the names of its | ||
48 | suppliers may be used to endorse or promote products derived from this | ||
49 | software without specific prior written permission. | ||
50 | |||
51 | DISCLAIMER. | ||
52 | |||
53 | THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS | ||
54 | OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
55 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN | ||
56 | NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
57 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
58 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, | ||
59 | OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
60 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
61 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
62 | EVEN 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 @@ | |||
1 | Texas Instruments Incorporated | ||
2 | Technology and Software Publicly Available | ||
3 | Software License Agreement | ||
4 | |||
5 | |||
6 | Important - Please read the following license agreement carefully. This is | ||
7 | a 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 | ||
9 | accept and agree to the terms of this license agreement on behalf of | ||
10 | yourself or your company (as applicable) and (2) you intend to be bound by | ||
11 | the terms of this license agreement on behalf of yourself or your company | ||
12 | (as applicable). | ||
13 | |||
14 | This Software License Agreement ("Agreement") is a legal agreement between | ||
15 | you (either an individual or entity) and Texas Instruments Incorporated | ||
16 | ("TI"), 12500 TI Boulevard, Dallas, Texas 75243. The "Licensed Materials" | ||
17 | subject to this Agreement include the software programs (in whole or in | ||
18 | part), that accompany this Agreement and set forth in the applicable | ||
19 | software manifest and which you access "on-line" and/or electronic | ||
20 | documentation (in whole or in part) associated and provided with these | ||
21 | software programs. By installing, copying or otherwise using the Licensed | ||
22 | Materials you agree to abide by the terms of this Agreement. If you choose | ||
23 | not to accept or agree with these terms, do not download or install the | ||
24 | Licensed Materials. | ||
25 | |||
26 | Note Regarding Possible Access to Open Source Software: The Licensed | ||
27 | Materials may be bundled with Open Source Software. "Open Source Software" | ||
28 | means any software licensed under terms requiring that (A) other software | ||
29 | ("Proprietary Software") incorporated, combined or distributed with such | ||
30 | software or developed using such software: (i) be disclosed or distributed | ||
31 | in source code form; or (ii) otherwise be licensed on terms inconsistent | ||
32 | with the terms of this Agreement, including but not limited to permitting | ||
33 | use 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 | ||
35 | to users of the Open Source Software and/or Proprietary Software | ||
36 | incorporated, combined or distributed with such Open Source Software or | ||
37 | developed using such Open Source Software. | ||
38 | |||
39 | You may gain access to Open Source Software, in which case such Open Source | ||
40 | Software will be listed in the applicable software manifest (in whole or in | ||
41 | part, the "Open Source Materials"). Your use of the Open Source Materials | ||
42 | is subject to the separate licensing terms applicable to such Open Source | ||
43 | Materials as specified in the applicable software manifest. For | ||
44 | clarification, this Agreement does not limit your rights under, or grant you | ||
45 | rights that supersede, the license terms of any applicable Open Source | ||
46 | Materials license agreement. If any of the Open Source Materials have been | ||
47 | provided to you in object code only, TI will provide to you or show you | ||
48 | where can access the source code versions of such Open Source Materials if | ||
49 | you contact TI at Texas Instruments Incorporated, 12500 TI Boulevard, Mail | ||
50 | Station 8638, Dallas, Texas 75243, Attention: Contracts Manager. You may | ||
51 | terminate this Agreement in the event you choose not to accept or agree with | ||
52 | the terms in any applicable Open Source Materials license agreement, | ||
53 | provided that such termination occurs within five (5) calendar days of | ||
54 | acceptance of this Agreement and you abide by all applicable license terms | ||
55 | in this Agreement until such termination. | ||
56 | |||
57 | 1. License. | ||
58 | |||
59 | a. Source Code License. For the Licensed Materials provided in source code | ||
60 | format, TI hereby grants to you a limited, non-exclusive license to | ||
61 | reproduce, use, and create modified or derivative works of the Licensed | ||
62 | Materials provided to you in source code format and to distribute an | ||
63 | unlimited number of copies of such source code Licensed Materials, or any | ||
64 | derivatives thereof, in any format. | ||
65 | |||
66 | b. Object Code License. For the Licensed Materials provided in object code | ||
67 | format, TI hereby grants to you a limited, non-exclusive license to | ||
68 | reproduce and use the Licensed Materials provided to you in object code | ||
69 | format and to distribute an unlimited number of object or executable copies | ||
70 | of such object code Licensed Materials. | ||
71 | |||
72 | 2. Termination. This Agreement is effective until terminated. Without | ||
73 | prejudice to any other rights, TI may terminate your right to use the | ||
74 | Licensed Materials under this Agreement if you fail to comply with the terms | ||
75 | of this Agreement. In such event, you shall destroy all copies of the | ||
76 | Licensed Materials, including all portions and derivatives thereof. | ||
77 | |||
78 | 3. Intellectual Property Rights. | ||
79 | |||
80 | a. The Licensed Materials being provided to you hereunder are being made | ||
81 | publicly available by TI, even though they contain copyrighted material of | ||
82 | TI and its licensors, if applicable. In no event may you alter, remove or | ||
83 | destroy any copyright notice included in the Licensed Materials. To the | ||
84 | extent that any of the Licensed Materials are provided in binary or object | ||
85 | code only, you may not unlock, decompile, reverse engineer, disassemble or | ||
86 | otherwise translate such binary or object code to human-perceivable form. | ||
87 | The source code of such reverse engineered code may contain TI trade secret | ||
88 | and other proprietary information. TI reserves all rights not specifically | ||
89 | granted under this Agreement. | ||
90 | |||
91 | b. Certain Licensed Materials may (i) require patent licenses from third | ||
92 | parties claiming patent rights covering implementation of the Licensed | ||
93 | Materials or (ii) be based on industry recognized standards or software | ||
94 | programs published by industry recognized standards bodies and certain third | ||
95 | parties may claim to own patents or copyrights that cover implementation of | ||
96 | those standards. You acknowledge and agree that this Agreement does not | ||
97 | convey a license to any such third party patents and copyrights. | ||
98 | |||
99 | c. YOU ACKNOWLEDGE AND AGREE THAT TI SHALL NOT BE LIABLE FOR AND SHALL NOT | ||
100 | DEFEND OR INDEMNIFY YOU AGAINST ANY THIRD PARTY INFRINGEMENT CLAIM THAT | ||
101 | RELATES TO OR IS BASED ON YOUR MANUFACTURE, USE, OR DISTRIBUTION OF THE | ||
102 | LICENSED MATERIALS OR YOUR MANUFACTURE, USE, OFFER FOR SALE, SALE, | ||
103 | IMPORTATION OR DISTRIBUTION OF YOUR PRODUCTS THAT INCLUDE OR INCORPORATE THE | ||
104 | LICENSED MATERIALS. | ||
105 | |||
106 | d. You acknowledge and agree that you are responsible for any fees or | ||
107 | royalties that may be payable to any third party based on such third party's | ||
108 | interests in the Licensed Materials described in Section 3(b) above (the | ||
109 | "Third Party Payment Obligations"). You agree to indemnify TI against any | ||
110 | Third Party Payment Obligations and will defend any claim, suit or | ||
111 | proceeding brought against TI insofar as such claim, suit or proceeding is | ||
112 | based on your failure to pay any Third Party Payment Obligations. | ||
113 | |||
114 | 4. Warranties and Limitations. THE LICENSED MATERIALS ARE PROVIDED "AS IS". | ||
115 | TI AND ITS LICENSORS MAKE NO WARRANTY OR REPRESENTATION, EXPRESS, IMPLIED OR | ||
116 | STATUTORY, INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTIBILITY, FITNESS FOR | ||
117 | A PARTICULAR PURPOSE, LACK OF VIRUSES, ACCURACY OR COMPLETENESS OF | ||
118 | RESPONSES, RESULTS AND LACK OF NEGLIGENCE. TI DISCLAIMS ANY WARRANTY OF | ||
119 | TITLE, QUIET ENJOYMENT, QUIET POSESSION, AND NON-INFRINGEMENT OF ANY THIRD | ||
120 | PARTY INTELLECTUAL PROPERTY RIGHTS WITH REGARD TO THE LICENSED MATERIALS OR | ||
121 | USE OF THOSE MATERIALS. | ||
122 | |||
123 | YOU ACKNOWLEDGE AND AGREE THAT THE LICENSED MATERIALS MAY NOT BE INTENDED | ||
124 | FOR PRODUCTION APPLICATIONS AND MAY CONTAIN IRREGULARITIES AND DEFECTS NOT | ||
125 | FOUND IN PRODUCTION SOFTWARE. FURTHERMORE, YOU ACKNOWLEDGE AND AGREE THAT | ||
126 | THE LICENSED MATERIALS HAVE NOT BEEN TESTED OR CERTIFIED BY ANY GOVERNMENT | ||
127 | AGENCY OR INDUSTRY REGULATORY ORGANIZATION OR ANY OTHER THIRD PARTY | ||
128 | ORGANIZATION. YOU AGREE THAT PRIOR TO USING, INCORPORATING OR DISTRIBUTING | ||
129 | THE LICENSED MATERIALS IN OR WITH ANY COMMERCIAL PRODUCT THAT YOU WILL | ||
130 | THOROUGHLY TEST THE PRODUCT AND THE FUNCTIONALITY OF THE LICENSED MATERIALS | ||
131 | IN OR WITH THAT PRODUCT AND BE SOLELY RESPONSIBLE FOR ANY PROBLEMS OR | ||
132 | FAILURES. | ||
133 | |||
134 | IN NO EVENT SHALL TI OR ITS LICENSORS BE LIABLE FOR ANY SPECIAL, INDIRECT, | ||
135 | INCIDENTAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, HOWEVER CAUSED ON ANY THEORY | ||
136 | OF LIABILITY, ARISING IN ANY WAY OUT OF THIS AGREEMENT, OR YOUR USE OF THE | ||
137 | LICENSED MATERIALS, WHETHER OR NOT TI HAS BEEN ADVISED OF THE POSSIBILITY OF | ||
138 | SUCH DAMAGES. EXCLUDED DAMAGES INCLUDE, BUT ARE NOT LIMITED TO, COST OF | ||
139 | REMOVAL OR REINSTALLATION, OUTSIDE COMPUTER TIME, LABOR COSTS, LOSS OR | ||
140 | CORRUPTION OF DATA, LOSS OF GOODWILL, LOSS OF PROFITS, LOSS OF SAVINGS, OR | ||
141 | LOSS OF USE OR INTERRUPTION OF BUSINESS OR ANY OTHER ECONOMIC LOSS. IN NO | ||
142 | EVENT WILL TI'S AGGREGATE LIABILITY UNDER THIS AGREEMENT OR ARISING OUT OF | ||
143 | YOUR USE OF THE LICENSED MATERIALS EXCEED FIVE HUNDRED U.S. DOLLARS | ||
144 | (US$500). | ||
145 | |||
146 | Because some jurisdictions do not allow the exclusion or limitation of | ||
147 | incidental or consequential damages or limitation on how long an implied | ||
148 | warranty lasts, the above limitations or exclusions may not apply to you. | ||
149 | |||
150 | 5. Export Control. The Licensed Materials may be subject to the export or | ||
151 | import regulations of certain countries. You agree to comply with all such | ||
152 | regulations and acknowledge that you have the responsibility to obtain any | ||
153 | licenses or other authorizations that may be required to export, re-export | ||
154 | or import the Licensed Materials. | ||
155 | |||
156 | 6. Governing Law, Jurisdiction and Severability. This Agreement will be | ||
157 | governed by and interpreted in accordance with the laws of the State of | ||
158 | Texas, without reference to conflict of laws principles. If for any reason | ||
159 | a court of competent jurisdiction finds any provision of the Agreement to be | ||
160 | unenforceable, that provision will be enforced to the maximum extent | ||
161 | possible to effectuate the intent of the parties and the remainder of the | ||
162 | Agreement shall continue in full force and effect. This Agreement shall not | ||
163 | be governed by the United Nations Convention on Contracts for the | ||
164 | International Sale of Goods, or by the Uniform Computer Information | ||
165 | Transactions Act (UCITA). The parties agree that non-exclusive jurisdiction | ||
166 | for any dispute arising out of or relating to this Agreement lies within the | ||
167 | courts located in the State of Texas. Notwithstanding the foregoing, any | ||
168 | judgment may be enforced in any United States or foreign court, and either | ||
169 | party may seek injunctive relief in any United States or foreign court. | ||
170 | Failure by TI to enforce any provision of this Agreement shall not be deemed | ||
171 | a waiver of future enforcement of that or any other provision in this | ||
172 | Agreement or any other agreement that may be in place between the parties. | ||
173 | |||
174 | 7. 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 | ||
176 | provisions shall apply: | ||
177 | |||
178 | a. Registration Requirements. You shall be solely responsible for | ||
179 | performing all acts and obtaining all approvals that may be required in | ||
180 | connection with this Agreement by the government of the PRC, including but | ||
181 | not limited to registering pursuant to, and otherwise complying with, the | ||
182 | PRC Measures on the Administration of Software Products, Management | ||
183 | Regulations on Technology Import-Export, and Technology Import and Export | ||
184 | Contract Registration Management Rules. Upon receipt of such approvals from | ||
185 | the government authorities, you shall forward evidence of all such approvals | ||
186 | to TI for its records. In the event that you fail to obtain any such | ||
187 | approval or registration, you shall be solely responsible for any and all | ||
188 | losses, damages or costs resulting therefrom, and shall indemnify TI for all | ||
189 | such losses, damages or costs. | ||
190 | |||
191 | b. Governing Language. This Agreement is written and executed in the | ||
192 | English language. If a translation of this Agreement is required for any | ||
193 | purpose, including but not limited to registration of the Agreement pursuant | ||
194 | to any governmental laws, regulations or rules, you shall be solely | ||
195 | responsible for creating such translation. Any translation of this | ||
196 | Agreement into a language other than English is intended solely in order to | ||
197 | comply with such laws or for reference purposes, and the English language | ||
198 | version shall be authoritative and controlling. | ||
199 | |||
200 | 8. Entire Agreement. This is the entire agreement between you and TI and | ||
201 | supersedes any prior agreement between the parties related to the subject | ||
202 | matter of this Agreement. No amendment or modification of this Agreement | ||
203 | will be effective unless in writing and signed by a duly authorized | ||
204 | representative of TI. You hereby warrant and represent that you have | ||
205 | obtained all authorizations and other applicable consents required | ||
206 | empowering 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 @@ | |||
1 | Copyright (c) 2002, 2003, 2008 Thai Open Source Software Center Ltd | ||
2 | All rights reserved. | ||
3 | |||
4 | Redistribution and use in source and binary forms, with or without | ||
5 | modification, are permitted provided that the following conditions are | ||
6 | met: | ||
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 | |||
21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
22 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
23 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
24 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR | ||
25 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
26 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
27 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
28 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
29 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
30 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
31 | SOFTWARE, 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 @@ | |||
1 | DESCRIPTION = "Firmware files for Bluetooth" | ||
2 | LICENSE = "TI-TSPA" | ||
3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f39eac9f4573be5b012e8313831e72a9" | ||
4 | |||
5 | PV = "8.7.1+git${SRCPV}" | ||
6 | |||
7 | CLEANBROKEN = "1" | ||
8 | |||
9 | SRCREV = "0ee619b598d023fffc77679f099bc2a4815510e4" | ||
10 | BRANCH = "master" | ||
11 | SRC_URI = "git://git.ti.com/ti-bt/service-packs.git;branch=${BRANCH}" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | do_compile() { | ||
16 | : | ||
17 | } | ||
18 | |||
19 | do_install() { | ||
20 | install -d ${D}${base_libdir}/firmware/ti-connectivity | ||
21 | oe_runmake "DEST_DIR=${D}" "BASE_LIB_DIR=${base_libdir}" install | ||
22 | } | ||
23 | |||
24 | FILES:${PN} += "${base_libdir}/firmware/ti-connectivity/*" | ||
diff --git a/meta-ti-bsp/recipes-bsp/cadence-mhdp-fw/cadence-mhdp-fw_git.bb b/meta-ti-bsp/recipes-bsp/cadence-mhdp-fw/cadence-mhdp-fw_git.bb new file mode 100644 index 00000000..c975e8a4 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/cadence-mhdp-fw/cadence-mhdp-fw_git.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | SUMMARY = "Cadence MHDP DP bridge firmware" | ||
2 | |||
3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
4 | |||
5 | LICENSE = "BSD-3-Clause | Apache-2.0" | ||
6 | LIC_FILES_CHKSUM = "file://LICENCE.cadence;md5=009f46816f6956cfb75ede13d3e1cee0" | ||
7 | |||
8 | PV = "${CADENCE_MHDP_FW_VERSION}" | ||
9 | PR = "${INC_PR}.0" | ||
10 | |||
11 | CLEANBROKEN = "1" | ||
12 | |||
13 | COMPATIBLE_MACHINE = "j7" | ||
14 | |||
15 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | TARGET = "mhdp8546.bin" | ||
19 | |||
20 | do_install() { | ||
21 | install -d ${D}${base_libdir}/firmware/cadence | ||
22 | install -m 0644 ${S}/cadence/${TARGET} ${D}${base_libdir}/firmware/cadence/${TARGET} | ||
23 | } | ||
24 | |||
25 | FILES:${PN} = "${base_libdir}/firmware" | ||
diff --git a/meta-ti-bsp/recipes-bsp/cm3-pm-firmware/amx3-cm3_git.bb b/meta-ti-bsp/recipes-bsp/cm3-pm-firmware/amx3-cm3_git.bb new file mode 100644 index 00000000..bd5c3693 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/cm3-pm-firmware/amx3-cm3_git.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | DESCRIPTION = "Cortex-M3 binary blob for suspend-resume" | ||
2 | |||
3 | LICENSE = "TI-TSPA" | ||
4 | LIC_FILES_CHKSUM = "file://License.txt;md5=7bdc54a749ab7a7dea999d25d99a41b8" | ||
5 | |||
6 | PV = "1.9.2" | ||
7 | PR = "r0" | ||
8 | |||
9 | SRCREV = "fb484c5e54f2e31cf0a338d2927a06a2870bcc2c" | ||
10 | BRANCH ?= "ti-v4.1.y" | ||
11 | |||
12 | SRC_URI = "git://git.ti.com/processor-firmware/ti-amx3-cm3-pm-firmware.git;protocol=git;branch=${BRANCH}" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | do_compile() { | ||
17 | make CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${SECURITY_NOPIE_CFLAGS}" | ||
18 | } | ||
19 | |||
20 | do_install() { | ||
21 | install -d ${D}${base_libdir}/firmware | ||
22 | install -m 0644 bin/am335x-pm-firmware.elf ${D}${base_libdir}/firmware/ | ||
23 | install -m 0644 bin/*-scale-data.bin ${D}${base_libdir}/firmware/ | ||
24 | } | ||
25 | |||
26 | FILES:${PN} += "${base_libdir}/firmware" | ||
27 | |||
28 | COMPATIBLE_MACHINE = "(ti-soc)" | ||
29 | TOOLCHAIN = "gcc" | ||
diff --git a/meta-ti-bsp/recipes-bsp/cmem/cmem-mod_git.bb b/meta-ti-bsp/recipes-bsp/cmem/cmem-mod_git.bb new file mode 100644 index 00000000..f7965593 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/cmem/cmem-mod_git.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | DESCRIPTION = "Kernel module for contiguous memory allocation from userspace" | ||
2 | |||
3 | include cmem.inc | ||
4 | |||
5 | # This package builds a kernel module, use kernel PR as base and append a local | ||
6 | MACHINE_KERNEL_PR:append = "a" | ||
7 | PR = "${MACHINE_KERNEL_PR}" | ||
8 | |||
9 | inherit module | ||
10 | |||
11 | EXTRA_OEMAKE += '-f lu.mak KERNEL_INSTALL_DIR="${STAGING_KERNEL_DIR}" TOOLCHAIN_PREFIX="${TOOLCHAIN_PREFIX}" EXEC_DIR="${D}/lib/modules/${KERNEL_VERSION}/extra"' | ||
12 | MAKE_TARGETS = "module" | ||
13 | |||
14 | KERNEL_MODULE_AUTOLOAD += "cmemk" | ||
15 | |||
16 | do_install:prepend() { | ||
17 | cp ${B}/src/cmem/module/Module.symvers ${B}/ || true | ||
18 | } | ||
diff --git a/meta-ti-bsp/recipes-bsp/cmem/cmem.inc b/meta-ti-bsp/recipes-bsp/cmem/cmem.inc new file mode 100644 index 00000000..aaed8f06 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/cmem/cmem.inc | |||
@@ -0,0 +1,16 @@ | |||
1 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:CMEM" | ||
2 | |||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://include/ti/cmem.h;beginline=1;endline=30;md5=26be509e4bb413905bda8309e338e2b1" | ||
5 | |||
6 | BRANCH = "master" | ||
7 | # This corresponds to version 4.20.00.01 | ||
8 | SRCREV = "86269258a48e0a9008dd9d5ebfae9da7ce843393" | ||
9 | |||
10 | PV = "4.20.00.01+git${SRCPV}" | ||
11 | |||
12 | SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | COMPATIBLE_HOST ?= "null" | ||
16 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
diff --git a/meta-ti-bsp/recipes-bsp/cmem/cmem_git.bb b/meta-ti-bsp/recipes-bsp/cmem/cmem_git.bb new file mode 100644 index 00000000..f69c22fb --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/cmem/cmem_git.bb | |||
@@ -0,0 +1,13 @@ | |||
1 | DESCRIPTION = "The cmem component supports contiguous memory allocation from userspace" | ||
2 | |||
3 | include cmem.inc | ||
4 | |||
5 | RDEPENDS:${PN} = "cmem-mod" | ||
6 | |||
7 | PR = "r0" | ||
8 | |||
9 | PACKAGES =+ "${PN}-test" | ||
10 | |||
11 | FILES:${PN}-test = "${bindir}/*" | ||
12 | |||
13 | inherit autotools | ||
diff --git a/meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb b/meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb new file mode 100755 index 00000000..ed36951f --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | SUMMARY = "R5 PSDK CPSW9G Ethernet Switch Firmware" | ||
2 | |||
3 | LICENSE = "TI-TFL" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=04ad0a015d4bb63c2b9e7b112debf3db" | ||
5 | |||
6 | PV = "6.2+git${SRCPV}" | ||
7 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
8 | |||
9 | inherit deploy | ||
10 | inherit update-alternatives | ||
11 | |||
12 | PROTOCOL = "git" | ||
13 | BRANCH = "master" | ||
14 | SRCREV = "91f1628507bf7f8716f0bc7cafe88ad7f14c94f5" | ||
15 | |||
16 | SRC_URI = "git://git.ti.com/glsdk/ti-eth-fw.git;protocol=${PROTOCOL};branch=${BRANCH}" | ||
17 | |||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | CPSW9G_FW_DIR = "${S}/ethfw" | ||
21 | CPSW9G_FW_FILENAME = "app_remoteswitchcfg_server_pdk_mem_map_strip.xer5f" | ||
22 | |||
23 | # make sure that lib/firmware, and all its contents are part of the package | ||
24 | FILES:${PN} += "${base_libdir}/firmware" | ||
25 | |||
26 | do_install() { | ||
27 | install -d ${D}${base_libdir}/firmware | ||
28 | # Ethernet firmware to be loaded on Main R5 core(needs read permission) | ||
29 | install -m 0644 ${CPSW9G_FW_DIR}/${CPSW9G_FW_FILENAME} ${D}${base_libdir}/firmware | ||
30 | } | ||
31 | |||
32 | TARGET_MAIN_R5FSS0_0 = "j7-main-r5f0_0-fw" | ||
33 | ALTERNATIVE:${PN} = "j7-main-r5f0_0-fw" | ||
34 | ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" | ||
35 | ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${CPSW9G_FW_FILENAME}" | ||
36 | ALTERNATIVE_PRIORITY = "17" | ||
37 | |||
38 | INHIBIT_PACKAGE_STRIP = "1" | ||
39 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
40 | INSANE_SKIP:${PN} += "arch" | ||
41 | |||
42 | do_compile[noexec] = "1" | ||
43 | do_configure[noexec] = "1" | ||
diff --git a/meta-ti-bsp/recipes-bsp/cuia/cuia_1.0.0.13.bb b/meta-ti-bsp/recipes-bsp/cuia/cuia_1.0.0.13.bb new file mode 100644 index 00000000..1cda366d --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/cuia/cuia_1.0.0.13.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | DESCRIPTION = "TI Unified Instrumentation Architecture in C (cUIA)" | ||
2 | LICENSE = "BSD-3-Clause" | ||
3 | LIC_FILES_CHKSUM = "file://cuia_${CUIA_PV}_manifest.html;md5=0eea94e3bb94de4ddee77653eba1c7c5" | ||
4 | |||
5 | CUIA_PV = "1_00_00_13" | ||
6 | CUIA_PVExtra = "" | ||
7 | |||
8 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/UIA/SCMCSDK/cuia_${CUIA_PV}${CUIA_PVExtra}.tar.gz;name=cuia" | ||
9 | SRC_URI[cuia.md5sum] = "ef53989ac70c191841cd656cdc8770be" | ||
10 | SRC_URI[cuia.sha256sum] = "f16d138a9146fdc7d52cba77bd30596da65835f6ffe4092baf2b33d1c1a4fb0d" | ||
11 | |||
12 | S = "${WORKDIR}/cuia_${CUIA_PV}${CUIA_PVExtra}" | ||
13 | |||
14 | CLEANBROKEN = "1" | ||
15 | |||
16 | do_compile () { | ||
17 | cd ${S} | ||
18 | oe_runmake clean | ||
19 | oe_runmake all | ||
20 | } | ||
21 | |||
22 | do_install() { | ||
23 | cd ${S} | ||
24 | oe_runmake DESTDIR=${D} libdir=${libdir} includedir=${includedir} install | ||
25 | } | ||
26 | |||
27 | COMPATIBLE_HOST ?= "null" | ||
28 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
29 | |||
30 | INSANE_SKIP:${PN} += "textrel installed-vs-shipped" | ||
diff --git a/meta-ti-bsp/recipes-bsp/dspdce-fw/dspdce-fw_git.bb b/meta-ti-bsp/recipes-bsp/dspdce-fw/dspdce-fw_git.bb new file mode 100644 index 00000000..4e863099 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/dspdce-fw/dspdce-fw_git.bb | |||
@@ -0,0 +1,65 @@ | |||
1 | SUMMARY = "Firmware for DSP for an example application called copycodectest" | ||
2 | LICENSE = "TI-TSPA" | ||
3 | LIC_FILES_CHKSUM = "file://src/ti/framework/dce/dce.c;startline=1;endline=31;md5=2c6e9aba6ed75f22b1a2b7544b1c809d" | ||
4 | |||
5 | COMPATIBLE_MACHINE = "dra7xx" | ||
6 | |||
7 | inherit features_check | ||
8 | |||
9 | REQUIRED_MACHINE_FEATURES = "dsp" | ||
10 | |||
11 | SRC_URI = "git://git.ti.com/glsdk/dspdce.git;protocol=git" | ||
12 | |||
13 | SRCREV = "de6e599f067b25c46cc0c8f74a22cc3b8aafbae8" | ||
14 | |||
15 | PV = "1.00.00.07" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | require recipes-ti/includes/ti-paths.inc | ||
20 | |||
21 | PR = "r4" | ||
22 | inherit update-alternatives | ||
23 | |||
24 | DEPENDS = "ti-xdctools-native ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-ipc-rtos ti-osal ti-cgt6x-native" | ||
25 | |||
26 | export HWVERSION = "ES10" | ||
27 | export BIOSTOOLSROOT = "${STAGING_DIR_TARGET}/usr/share/ti" | ||
28 | |||
29 | export XDCVERSION = "ti-xdctools-tree" | ||
30 | export BIOSVERSION = "ti-sysbios-tree" | ||
31 | export IPCVERSION = "ti-ipc-tree" | ||
32 | export CEVERSION = "ti-codec-engine-tree" | ||
33 | export FCVERSION = "ti-framework-components-tree" | ||
34 | export XDAISVERSION = "ti-xdais-tree" | ||
35 | export OSALVERSION = "ti-osal-tree" | ||
36 | |||
37 | export IPCSRC = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" | ||
38 | export C66XCGTOOLSPATH = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
39 | |||
40 | do_configure() { | ||
41 | cd ${S} | ||
42 | make unconfig | ||
43 | make vayu_config | ||
44 | } | ||
45 | |||
46 | do_compile() { | ||
47 | cd ${S} | ||
48 | make dspbin | ||
49 | } | ||
50 | |||
51 | TARGET = "dra7-dsp1-fw.xe66" | ||
52 | |||
53 | do_install() { | ||
54 | install -d ${D}${base_libdir}/firmware | ||
55 | install -m 0644 ${S}/dra7xx-c66x-dsp.xe66 ${D}${base_libdir}/firmware/${TARGET}.${BPN} | ||
56 | } | ||
57 | |||
58 | ALTERNATIVE:${PN} = "dra7-dsp1-fw.xe66" | ||
59 | ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = "${base_libdir}/firmware/${TARGET}" | ||
60 | ALTERNATIVE_TARGET[dra7-dsp1-fw.xe66] = "${base_libdir}/firmware/${TARGET}.${BPN}" | ||
61 | ALTERNATIVE_PRIORITY = "10" | ||
62 | |||
63 | INSANE_SKIP:${PN} = "arch" | ||
64 | |||
65 | FILES:${PN} += "${base_libdir}/firmware/*" | ||
diff --git a/meta-ti-bsp/recipes-bsp/dsptop/debugss-module-drv_git.bb b/meta-ti-bsp/recipes-bsp/dsptop/debugss-module-drv_git.bb new file mode 100644 index 00000000..a250b825 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/dsptop/debugss-module-drv_git.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | DESCRIPTION = "Debug Sub-System (DebugSS) driver for Keystone and DRA7xx devices" | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=9d4316fe434ba450dca4da25348ca5a3" | ||
4 | |||
5 | # This package builds a kernel module, use kernel PR as base and append a local | ||
6 | MACHINE_KERNEL_PR:append = "d" | ||
7 | PR = "${MACHINE_KERNEL_PR}" | ||
8 | PV:append = "+git${SRCPV}" | ||
9 | |||
10 | S = "${WORKDIR}/git/debugss_module/debugss-mod" | ||
11 | |||
12 | inherit module | ||
13 | |||
14 | PLATFORM = "" | ||
15 | PLATFORM:dra7xx = "DRA7xx_PLATFORM" | ||
16 | |||
17 | EXTRA_OEMAKE = "'PLATFORM=${PLATFORM}' KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}" | ||
18 | |||
19 | COMPATIBLE_MACHINE = "dra7xx" | ||
20 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
21 | |||
22 | include dsptop.inc | ||
diff --git a/meta-ti-bsp/recipes-bsp/dsptop/dsptop.inc b/meta-ti-bsp/recipes-bsp/dsptop/dsptop.inc new file mode 100644 index 00000000..31f775e2 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/dsptop/dsptop.inc | |||
@@ -0,0 +1,8 @@ | |||
1 | # This corresponds to version 1.4.0 | ||
2 | SRCREV = "816485e68430bbec643eac9498bfa5303eb2c2e1" | ||
3 | PV = "1.4.0" | ||
4 | INC_PR = "r2" | ||
5 | |||
6 | SRC_URI = "git://git.ti.com/sdo-emu/dsptop.git;protocol=git;branch=${BRANCH}" | ||
7 | |||
8 | BRANCH = "master" | ||
diff --git a/meta-ti-bsp/recipes-bsp/dsptop/dsptop_git.bb b/meta-ti-bsp/recipes-bsp/dsptop/dsptop_git.bb new file mode 100644 index 00000000..20818443 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/dsptop/dsptop_git.bb | |||
@@ -0,0 +1,27 @@ | |||
1 | DESCRIPTION = "TI dsptop utility." | ||
2 | LICENSE = "BSD" | ||
3 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=309825aa8f5edfcf2c44912ac094b979" | ||
4 | |||
5 | DEPENDS = "libulm ncurses" | ||
6 | |||
7 | PR = "${INC_PR}.2" | ||
8 | |||
9 | S = "${WORKDIR}/git/dsptop" | ||
10 | |||
11 | DEVICE = "" | ||
12 | DEVICE:dra7xx = "DRA7xx" | ||
13 | |||
14 | EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}"" | ||
15 | |||
16 | do_install() { | ||
17 | oe_runmake install DESTDIR=${D} | ||
18 | } | ||
19 | |||
20 | COMPATIBLE_MACHINE = "dra7xx" | ||
21 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
22 | |||
23 | RDEPENDS:${PN} = "debugss-module-drv bash" | ||
24 | |||
25 | include dsptop.inc | ||
26 | |||
27 | PARALLEL_MAKE = "" | ||
diff --git a/meta-ti-bsp/recipes-bsp/dsptop/libulm_git.bb b/meta-ti-bsp/recipes-bsp/dsptop/libulm_git.bb new file mode 100644 index 00000000..f3e7ec3c --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/dsptop/libulm_git.bb | |||
@@ -0,0 +1,45 @@ | |||
1 | SUMMARY = "TI Usage & Load Monitor Implementation" | ||
2 | LICENSE = "BSD" | ||
3 | LIC_FILES_CHKSUM = "file://../debian/copyright;md5=309825aa8f5edfcf2c44912ac094b979" | ||
4 | |||
5 | inherit features_check | ||
6 | |||
7 | REQUIRED_MACHINE_FEATURES = "dsp" | ||
8 | |||
9 | DEPENDS = "ti-cgt6x-native" | ||
10 | PR = "${INC_PR}.0" | ||
11 | |||
12 | S = "${WORKDIR}/git/dsptop/ulm" | ||
13 | |||
14 | DEVICE="" | ||
15 | DEVICE:dra7xx = "DRA7xx" | ||
16 | |||
17 | EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX}" | ||
18 | |||
19 | do_compile() { | ||
20 | oe_runmake arm XPORT_ONLY CC="${CC}" | ||
21 | oe_runmake dsp C6X_C_DIR=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x/include | ||
22 | } | ||
23 | |||
24 | do_install() { | ||
25 | install -d ${D}${includedir} | ||
26 | install -d ${D}${libdir} | ||
27 | install -d ${D}${datadir}/ti/ulm | ||
28 | cp -f tiulm.h ${D}${includedir} | ||
29 | cp -f release/libtiulm.a ${D}${libdir} | ||
30 | cp -f tiulm.h ${D}${datadir}/ti/ulm | ||
31 | cp -f release/libtiulm.ae66 ${D}${datadir}/ti/ulm | ||
32 | } | ||
33 | |||
34 | COMPATIBLE_MACHINE = "dra7xx" | ||
35 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
36 | |||
37 | FILES:${PN}-dev += "\ | ||
38 | ${datadir}/ti/ulm \ | ||
39 | " | ||
40 | |||
41 | include dsptop.inc | ||
42 | |||
43 | ALLOW_EMPTY:${PN} = "1" | ||
44 | |||
45 | PARALLEL_MAKE= "" | ||
diff --git a/meta-ti-bsp/recipes-bsp/gc320-drivers/ti-gc320-driver_5.0.11.p7.bb b/meta-ti-bsp/recipes-bsp/gc320-drivers/ti-gc320-driver_5.0.11.p7.bb new file mode 100644 index 00000000..e815ae29 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/gc320-drivers/ti-gc320-driver_5.0.11.p7.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | DESCRIPTION = "Kernel drivers for the Vivante GC320 chipset found in TI SoCs" | ||
2 | HOMEPAGE = "https://git.ti.com/graphics/ti-gc320-driver" | ||
3 | LICENSE = "MIT | GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://../LICENSE;md5=78d9818a51b9a8e9bb89dea418bac297" | ||
5 | |||
6 | inherit module features_check | ||
7 | |||
8 | REQUIRED_MACHINE_FEATURES = "gc320" | ||
9 | |||
10 | MACHINE_KERNEL_PR:append = "i" | ||
11 | PR = "${MACHINE_KERNEL_PR}" | ||
12 | |||
13 | # Need to branch out with ${PV} var | ||
14 | BRANCH = "ti-${PV}-k5.10" | ||
15 | |||
16 | SRCREV = "e2a10f31e255a65ec30a6e10b890e77d7e9cb107" | ||
17 | |||
18 | SRC_URI = "git://git.ti.com/graphics/ti-gc320-driver.git;protocol=git;branch=${BRANCH}" | ||
19 | |||
20 | S = "${WORKDIR}/git/src" | ||
21 | |||
22 | EXTRA_OEMAKE += "-f Kbuild AQROOT=${S} KERNEL_DIR=${STAGING_KERNEL_DIR} TOOLCHAIN_PATH=${TOOLCHAIN_PATH} CROSS_COMPILE=${TARGET_PREFIX} ARCH_TYPE=${TARGET_ARCH}" | ||
23 | |||
24 | do_install() { | ||
25 | install -d ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra | ||
26 | install -m 644 ${S}/galcore.ko ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra | ||
27 | } | ||
28 | |||
29 | COMPATIBLE_HOST ?= "null" | ||
30 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
diff --git a/meta-ti-bsp/recipes-bsp/goodix-fw/goodix-fw_git.bb b/meta-ti-bsp/recipes-bsp/goodix-fw/goodix-fw_git.bb new file mode 100644 index 00000000..1f1c2b81 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/goodix-fw/goodix-fw_git.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | DESCRIPTION = "Goodix GT9271 config firmware" | ||
2 | |||
3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
4 | |||
5 | LICENSE = "BSD-3-Clause" | ||
6 | LIC_FILES_CHKSUM = "file://LICENCE.Spectrum-GT9271;md5=2a6de6be7af1fe46370c684daf27c852" | ||
7 | |||
8 | PV = "${GOODIX_FW_VERSION}" | ||
9 | PR = "${INC_PR}.0" | ||
10 | |||
11 | CLEANBROKEN = "1" | ||
12 | |||
13 | COMPATIBLE_MACHINE = "dra7xx" | ||
14 | |||
15 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | ORIGIN = "DRA71x-RevA-GT9271_SpecDig_Config.bin" | ||
19 | TARGET = "goodix_9271_cfg.bin" | ||
20 | |||
21 | do_install() { | ||
22 | install -d ${D}${base_libdir}/firmware | ||
23 | install -m 0644 ${S}/ti-evm/${ORIGIN} ${D}${base_libdir}/firmware/${TARGET} | ||
24 | } | ||
25 | |||
26 | FILES:${PN} = "${base_libdir}/firmware" | ||
diff --git a/meta-ti-bsp/recipes-bsp/ipumm-fw/ipumm-fw_git.bb b/meta-ti-bsp/recipes-bsp/ipumm-fw/ipumm-fw_git.bb new file mode 100644 index 00000000..14d28258 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ipumm-fw/ipumm-fw_git.bb | |||
@@ -0,0 +1,67 @@ | |||
1 | SUMMARY = "Firmware for IPU to suppor Accelerated MM decode and encode" | ||
2 | LICENSE = "TI-TSPA" | ||
3 | |||
4 | LIC_FILES_CHKSUM = "file://Texas_Instruments_ipumm_Manifest.pdf;md5=5cc572579f07af266ab57fc17d762c7f" | ||
5 | |||
6 | COMPATIBLE_MACHINE = "dra7xx" | ||
7 | |||
8 | inherit features_check | ||
9 | |||
10 | REQUIRED_MACHINE_FEATURES = "mmip" | ||
11 | |||
12 | RDEPENDS:${PN} = "libdce" | ||
13 | |||
14 | SRC_URI = "git://git.ti.com/ivimm/ipumm.git;protocol=git" | ||
15 | |||
16 | SRCREV = "df4c50aecc9aad7ab3eb1ca9ebacfe473fcad7c5" | ||
17 | |||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | PV = "3.00.15.00" | ||
21 | PR = "r7" | ||
22 | |||
23 | require recipes-ti/includes/ti-paths.inc | ||
24 | |||
25 | inherit update-alternatives | ||
26 | |||
27 | DEPENDS = "ti-xdctools-native ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-cgt-arm-native ti-ipc-rtos" | ||
28 | |||
29 | export HWVERSION="ES10" | ||
30 | export BIOSTOOLSROOT="${STAGING_DIR_TARGET}/usr/share/ti" | ||
31 | |||
32 | export XDCVERSION="ti-xdctools-tree" | ||
33 | export BIOSVERSION="ti-sysbios-tree" | ||
34 | export IPCVERSION="ti-ipc-tree" | ||
35 | export CEVERSION="ti-codec-engine-tree" | ||
36 | export FCVERSION="ti-framework-components-tree" | ||
37 | export XDAISVERSION="ti-xdais-tree" | ||
38 | |||
39 | export TMS470CGTOOLPATH="${M4_TOOLCHAIN_INSTALL_DIR}" | ||
40 | export IPCSRC="${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" | ||
41 | |||
42 | EXTRA_OEMAKE += "XDCDIST_TREE=${STAGING_DIR_NATIVE}/usr/share/ti/${XDCVERSION}" | ||
43 | |||
44 | do_configure() { | ||
45 | oe_runmake unconfig | ||
46 | oe_runmake vayu_smp_config | ||
47 | } | ||
48 | |||
49 | do_compile() { | ||
50 | oe_runmake | ||
51 | } | ||
52 | |||
53 | TARGET = "dra7-ipu2-fw.xem4" | ||
54 | TARGET_MAP = "platform/ti/dce/baseimage/package/cfg/out/ipu/release/ipu.xem4.map" | ||
55 | |||
56 | do_install() { | ||
57 | install -d ${D}${base_libdir}/firmware | ||
58 | install -m 0644 ${S}/${TARGET} ${D}${base_libdir}/firmware/${TARGET}.${BPN} | ||
59 | install -m 0644 ${S}/${TARGET_MAP} ${D}${base_libdir}/firmware/${TARGET}.map | ||
60 | } | ||
61 | |||
62 | ALTERNATIVE:${PN} = "dra7-ipu2-fw.xem4" | ||
63 | ALTERNATIVE_LINK_NAME[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}" | ||
64 | ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${base_libdir}/firmware/${TARGET}.${BPN}" | ||
65 | ALTERNATIVE_PRIORITY = "20" | ||
66 | |||
67 | FILES:${PN} += "${base_libdir}/firmware/*" | ||
diff --git a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler-support-OpenEmbedded-nodistro-internal-aarc.patch b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler-support-OpenEmbedded-nodistro-internal-aarc.patch new file mode 100644 index 00000000..f021cc39 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-compiler-support-OpenEmbedded-nodistro-internal-aarc.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 80d32fee3d768abbd77cce77ea9a7574651460a9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denis@denix.org> | ||
3 | Date: Wed, 7 Jul 2021 13:11:56 -0400 | ||
4 | Subject: [PATCH] compiler: support OpenEmbedded "nodistro" internal aarch64 | ||
5 | toolchain | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Denys Dmytriyenko <denis@denix.org> | ||
10 | --- | ||
11 | build/linux/config/compiler.mk | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/build/linux/config/compiler.mk b/build/linux/config/compiler.mk | ||
15 | index 53a0bef..d788579 100644 | ||
16 | --- a/build/linux/config/compiler.mk | ||
17 | +++ b/build/linux/config/compiler.mk | ||
18 | @@ -65,7 +65,7 @@ define calculate-compiler-preferred-target | ||
19 | ifneq ($$(filter i386-% i486-% i586-% i686-%,$$($(1)_compiler_preferred_target)),) | ||
20 | $(1)_compiler_preferred_target := i386-linux-gnu | ||
21 | endif | ||
22 | - ifneq ($$(filter aarch64-poky-linux,$$($(1)_compiler_preferred_target)),) | ||
23 | + ifneq ($$(filter aarch64-oe-linux aarch64-poky-linux,$$($(1)_compiler_preferred_target)),) | ||
24 | $(1)_compiler_preferred_target := aarch64-linux-gnu | ||
25 | endif | ||
26 | ifneq ($$(filter armv7a-cros-linux-gnueabi armv7l-tizen-linux-gnueabi,$$($(1)_compiler_preferred_target)),) | ||
27 | -- | ||
28 | 2.7.4 | ||
29 | |||
diff --git a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.13.5776728.bb b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.13.5776728.bb new file mode 100644 index 00000000..09f6f03a --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.13.5776728.bb | |||
@@ -0,0 +1,40 @@ | |||
1 | DESCRIPTION = "Kernel drivers for the PowerVR Rogue GPU found in the TI SoCs" | ||
2 | HOMEPAGE = "http://git.ti.com/graphics/ti-img-rogue-driver" | ||
3 | LICENSE = "MIT | GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://README;beginline=14;endline=19;md5=0403c7dea01a2b8232261e805325fac2" | ||
5 | |||
6 | inherit module features_check | ||
7 | |||
8 | REQUIRED_MACHINE_FEATURES = "gpu" | ||
9 | |||
10 | MACHINE_KERNEL_PR:append = "b" | ||
11 | PR = "${MACHINE_KERNEL_PR}" | ||
12 | |||
13 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
14 | COMPATIBLE_MACHINE = "j7" | ||
15 | |||
16 | DEPENDS = "virtual/kernel" | ||
17 | |||
18 | PROVIDES = "virtual/gpudriver" | ||
19 | |||
20 | BRANCH = "1.13-5776728/linux-k5.10" | ||
21 | |||
22 | SRC_URI = " \ | ||
23 | git://git.ti.com/graphics/ti-img-rogue-driver.git;branch=${BRANCH} \ | ||
24 | file://0001-compiler-support-OpenEmbedded-nodistro-internal-aarc.patch \ | ||
25 | " | ||
26 | |||
27 | S = "${WORKDIR}/git" | ||
28 | |||
29 | SRCREV = "35a25875ae8738f82c7cabc6b077ef992b0cca84" | ||
30 | |||
31 | PVR_SOC = "j721e_linux" | ||
32 | PVR_BVNC = "22.104.208.318" | ||
33 | PVR_BUILD = "release" | ||
34 | PVR_WS = "wayland" | ||
35 | |||
36 | EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}" RGX_BVNC=${PVR_BVNC} BUILD=${PVR_BUILD} PVR_BUILD_DIR=${PVR_SOC} WINDOW_SYSTEM=${PVR_WS}' | ||
37 | |||
38 | do_install() { | ||
39 | make -C ${STAGING_KERNEL_DIR} M=${B}/binary_${PVR_SOC}_${PVR_WS}_${PVR_BUILD}/target_aarch64/kbuild INSTALL_MOD_PATH=${D}${root_prefix} PREFIX=${STAGING_DIR_HOST} modules_install | ||
40 | } | ||
diff --git a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb new file mode 100644 index 00000000..5fe6c201 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb | |||
@@ -0,0 +1,46 @@ | |||
1 | DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the TI SoCs" | ||
2 | HOMEPAGE = "https://git.ti.com/graphics/omap5-sgx-ddk-linux" | ||
3 | LICENSE = "MIT | GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://eurasia_km/README;beginline=13;endline=22;md5=74506d9b8e5edbce66c2747c50fcef12" | ||
5 | |||
6 | inherit module features_check | ||
7 | |||
8 | REQUIRED_MACHINE_FEATURES = "gpu" | ||
9 | |||
10 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k3" | ||
11 | |||
12 | MACHINE_KERNEL_PR:append = "x" | ||
13 | PR = "${MACHINE_KERNEL_PR}" | ||
14 | |||
15 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
16 | |||
17 | DEPENDS = "virtual/kernel" | ||
18 | |||
19 | PROVIDES = "virtual/gpudriver" | ||
20 | |||
21 | BRANCH = "ti-img-sgx/${PV}/k5.10" | ||
22 | |||
23 | SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-linux.git;protocol=git;branch=${BRANCH}" | ||
24 | |||
25 | S = "${WORKDIR}/git" | ||
26 | |||
27 | SRCREV = "eda7780bfd5277e16913c9bc0b0e6892b4e79063" | ||
28 | |||
29 | TARGET_PRODUCT:omap-a15 = "jacinto6evm" | ||
30 | TARGET_PRODUCT:ti33x = "ti335x" | ||
31 | TARGET_PRODUCT:ti43x = "ti437x" | ||
32 | TARGET_PRODUCT:k3 = "ti654x" | ||
33 | |||
34 | EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}" TARGET_PRODUCT=${TARGET_PRODUCT} WINDOW_SYSTEM=nulldrmws' | ||
35 | |||
36 | do_compile:prepend() { | ||
37 | cd ${S}/eurasia_km/eurasiacon/build/linux2/omap_linux | ||
38 | } | ||
39 | |||
40 | do_install() { | ||
41 | make -C ${STAGING_KERNEL_DIR} M=${B}/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild INSTALL_MOD_PATH=${D}${root_prefix} PREFIX=${STAGING_DIR_HOST} modules_install | ||
42 | } | ||
43 | |||
44 | do_install:k3() { | ||
45 | make -C ${STAGING_KERNEL_DIR} M=${B}/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_aarch64/kbuild INSTALL_MOD_PATH=${D}${root_prefix} PREFIX=${STAGING_DIR_HOST} modules_install | ||
46 | } | ||
diff --git a/meta-ti-bsp/recipes-bsp/pru/pru-icss_git.bb b/meta-ti-bsp/recipes-bsp/pru/pru-icss_git.bb new file mode 100644 index 00000000..779f96fd --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/pru/pru-icss_git.bb | |||
@@ -0,0 +1,363 @@ | |||
1 | DESCRIPTION = "Programmable Real-time Unit Software Package" | ||
2 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/PRU-ICSS" | ||
3 | LICENSE = "BSD-3-Clause & PD" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://PRU-Package-v6.1-Manifest.html;md5=1e37797ebe9254922f4278bb6047211c" | ||
6 | |||
7 | inherit update-alternatives | ||
8 | |||
9 | BRANCH = "master" | ||
10 | SRC_URI = "git://git.ti.com/pru-software-support-package/pru-software-support-package.git;protocol=git;branch=${BRANCH}" | ||
11 | SRCREV = "8eee431384b6a1a9c96ae91a8e99485176b4d2b3" | ||
12 | |||
13 | PV = "6.0.1" | ||
14 | PR = "r0" | ||
15 | |||
16 | require recipes-ti/includes/ti-paths.inc | ||
17 | |||
18 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k3" | ||
19 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
20 | |||
21 | PACKAGES:prepend = " \ | ||
22 | ${PN}-halt \ | ||
23 | ${PN}-rpmsg-echo \ | ||
24 | " | ||
25 | |||
26 | RDEPENDS:${PN}:append = " \ | ||
27 | ${PN}-halt \ | ||
28 | ${PN}-rpmsg-echo \ | ||
29 | " | ||
30 | |||
31 | DEPENDS = "ti-cgt-pru-native" | ||
32 | |||
33 | S = "${WORKDIR}/git" | ||
34 | |||
35 | export PRU_CGT = "${TI_CGT_PRU_INSTALL_DIR}" | ||
36 | export PRU_SSP = "${S}" | ||
37 | |||
38 | SUBDIRS = "examples pru_cape/pru_fw lib/src labs" | ||
39 | |||
40 | PLATFORM:ti33x = "am335x" | ||
41 | PLATFORM:ti43x = "am437x" | ||
42 | PLATFORM:omap-a15 = "am572x" | ||
43 | PLATFORM:am64xx = "am64x" | ||
44 | PLATFORM:am65xx = "am65x" | ||
45 | PLATFORM:j7 = "j721e" | ||
46 | |||
47 | do_compile() { | ||
48 | for dir in ${SUBDIRS} | ||
49 | do | ||
50 | make -C ${S}/$dir | ||
51 | done | ||
52 | } | ||
53 | |||
54 | do_install() { | ||
55 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | ||
56 | install -d ${D}${base_libdir}/firmware/pru | ||
57 | install -d ${D}${includedir} | ||
58 | cp ${CP_ARGS} ${S}/include/* ${D}${includedir} | ||
59 | install -d ${D}${libdir} | ||
60 | install -m 0644 ${S}/lib/rpmsg_lib.lib ${D}${libdir} | ||
61 | } | ||
62 | |||
63 | FILES:${PN}-staticdev = "${libdir}" | ||
64 | FILES:${PN}-dev = "${includedir}" | ||
65 | |||
66 | do_install:append:ti33x() { | ||
67 | install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU_Halt.out \ | ||
68 | ${D}${base_libdir}/firmware/pru | ||
69 | for i in 0 1 | ||
70 | do | ||
71 | install -m 0644 ${S}/examples/am335x/PRU_RPMsg_Echo_Interrupt${i}/gen/PRU_RPMsg_Echo_Interrupt${i}.out \ | ||
72 | ${D}${base_libdir}/firmware/pru | ||
73 | done | ||
74 | } | ||
75 | |||
76 | do_install:append:ti43x() { | ||
77 | install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU_Halt.out \ | ||
78 | ${D}${base_libdir}/firmware/pru | ||
79 | for i in 0 1 | ||
80 | do | ||
81 | for j in 0 1 | ||
82 | do | ||
83 | install -m 0644 ${S}/examples/am437x/PRU_RPMsg_Echo_Interrupt${i}_${j}/gen/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
84 | ${D}${base_libdir}/firmware/pru | ||
85 | done | ||
86 | done | ||
87 | } | ||
88 | |||
89 | do_install:append:omap-a15() { | ||
90 | install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU_Halt.out \ | ||
91 | ${D}${base_libdir}/firmware/pru | ||
92 | for i in 1 2 | ||
93 | do | ||
94 | for j in 0 1 | ||
95 | do | ||
96 | install -m 0644 ${S}/examples/am572x/PRU_RPMsg_Echo_Interrupt${i}_${j}/gen/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
97 | ${D}${base_libdir}/firmware/pru | ||
98 | done | ||
99 | done | ||
100 | } | ||
101 | |||
102 | do_install:append:am64xx(){ | ||
103 | for i in 0 1 | ||
104 | do | ||
105 | install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU${i}/PRU_Halt_${i}.out \ | ||
106 | ${D}${base_libdir}/firmware/pru | ||
107 | install -m 644 ${S}/examples/${PLATFORM}/RTU_Halt/gen/RTU${i}/RTU_Halt_${i}.out \ | ||
108 | ${D}${base_libdir}/firmware/pru | ||
109 | install -m 644 ${S}/examples/${PLATFORM}/TX_PRU_Halt/gen/TX_PRU${i}/TX_PRU_Halt_${i}.out \ | ||
110 | ${D}${base_libdir}/firmware/pru | ||
111 | done | ||
112 | for i in 0 1 | ||
113 | do | ||
114 | for j in 0 1 | ||
115 | do | ||
116 | install -m 0644 ${S}/examples/${PLATFORM}/PRU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
117 | ${D}${base_libdir}/firmware/pru | ||
118 | install -m 0644 ${S}/examples/${PLATFORM}/RTU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/RTU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
119 | ${D}${base_libdir}/firmware/pru | ||
120 | done | ||
121 | done | ||
122 | } | ||
123 | |||
124 | do_install:append:am65xx() { | ||
125 | for i in 0 1 | ||
126 | do | ||
127 | install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU${i}/PRU_Halt_${i}.out \ | ||
128 | ${D}${base_libdir}/firmware/pru | ||
129 | install -m 644 ${S}/examples/${PLATFORM}/RTU_Halt/gen/RTU${i}/RTU_Halt_${i}.out \ | ||
130 | ${D}${base_libdir}/firmware/pru | ||
131 | install -m 644 ${S}/examples/${PLATFORM}/TX_PRU_Halt/gen/TX_PRU${i}/TX_PRU_Halt_${i}.out \ | ||
132 | ${D}${base_libdir}/firmware/pru | ||
133 | done | ||
134 | for i in 0 1 2 | ||
135 | do | ||
136 | for j in 0 1 | ||
137 | do | ||
138 | install -m 0644 ${S}/examples/am65x/PRU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
139 | ${D}${base_libdir}/firmware/pru | ||
140 | install -m 0644 ${S}/examples/am65x/RTU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/RTU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
141 | ${D}${base_libdir}/firmware/pru | ||
142 | |||
143 | done | ||
144 | done | ||
145 | } | ||
146 | |||
147 | do_install:append:j7() { | ||
148 | for i in 0 1 | ||
149 | do | ||
150 | install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU${i}/PRU_Halt_${i}.out \ | ||
151 | ${D}${base_libdir}/firmware/pru | ||
152 | install -m 644 ${S}/examples/${PLATFORM}/RTU_Halt/gen/RTU${i}/RTU_Halt_${i}.out \ | ||
153 | ${D}${base_libdir}/firmware/pru | ||
154 | install -m 644 ${S}/examples/${PLATFORM}/TX_PRU_Halt/gen/TX_PRU${i}/TX_PRU_Halt_${i}.out \ | ||
155 | ${D}${base_libdir}/firmware/pru | ||
156 | done | ||
157 | for i in 0 1 | ||
158 | do | ||
159 | for j in 0 1 | ||
160 | do | ||
161 | install -m 0644 ${S}/examples/j721e/PRU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
162 | ${D}${base_libdir}/firmware/pru | ||
163 | install -m 0644 ${S}/examples/j721e/RTU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/RTU_RPMsg_Echo_Interrupt${i}_${j}.out \ | ||
164 | ${D}${base_libdir}/firmware/pru | ||
165 | |||
166 | done | ||
167 | done | ||
168 | } | ||
169 | |||
170 | |||
171 | FILES:${PN}-halt = "${base_libdir}/firmware/pru/PRU_Halt* ${base_libdir}/firmware/pru/RTU_Halt* ${base_libdir}/firmware/pru/TX_PRU_Halt*" | ||
172 | FILES:${PN}-rpmsg-echo = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt* ${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt*" | ||
173 | |||
174 | # Set up names for the firmwares | ||
175 | PRU_ICSS_ALTERNATIVES:ti33x = "am335x-pru0-fw am335x-pru1-fw" | ||
176 | PRU_ICSS_ALTERNATIVES:ti43x = "am437x-pru0_0-fw am437x-pru0_1-fw am437x-pru1_0-fw am437x-pru1_1-fw" | ||
177 | PRU_ICSS_ALTERNATIVES:omap-a15 = "am57xx-pru1_0-fw am57xx-pru1_1-fw am57xx-pru2_0-fw am57xx-pru2_1-fw" | ||
178 | PRU_ICSS_ALTERNATIVES:am64xx = "am64x-pru0_0-fw am64x-pru0_1-fw am64x-pru1_0-fw am64x-pru1_1-fw am64x-rtu0_0-fw am64x-rtu0_1-fw am64x-rtu1_0-fw am64x-rtu1_1-fw" | ||
179 | PRU_ICSS_ALTERNATIVES:am65xx = "am65x-pru0_0-fw am65x-pru0_1-fw am65x-pru1_0-fw am65x-pru1_1-fw am65x-pru2_0-fw am65x-pru2_1-fw am65x-rtu0_0-fw am65x-rtu0_1-fw am65x-rtu1_0-fw am65x-rtu1_1-fw am65x-rtu2_0-fw am65x-rtu2_1-fw" | ||
180 | PRU_ICSS_ALTERNATIVES:j7 = "j7-pru0_0-fw j7-pru0_1-fw j7-pru1_0-fw j7-pru1_1-fw j7-rtu0_0-fw j7-rtu0_1-fw j7-rtu1_0-fw j7-rtu1_1-fw" | ||
181 | |||
182 | # Set up link names for the firmwares | ||
183 | ALTERNATIVE_LINK_NAME[am335x-pru0-fw] = "${base_libdir}/firmware/am335x-pru0-fw" | ||
184 | ALTERNATIVE_LINK_NAME[am335x-pru1-fw] = "${base_libdir}/firmware/am335x-pru1-fw" | ||
185 | |||
186 | ALTERNATIVE_LINK_NAME[am437x-pru0_0-fw] = "${base_libdir}/firmware/am437x-pru0_0-fw" | ||
187 | ALTERNATIVE_LINK_NAME[am437x-pru0_1-fw] = "${base_libdir}/firmware/am437x-pru0_1-fw" | ||
188 | ALTERNATIVE_LINK_NAME[am437x-pru1_0-fw] = "${base_libdir}/firmware/am437x-pru1_0-fw" | ||
189 | ALTERNATIVE_LINK_NAME[am437x-pru1_1-fw] = "${base_libdir}/firmware/am437x-pru1_1-fw" | ||
190 | |||
191 | ALTERNATIVE_LINK_NAME[am57xx-pru1_0-fw] = "${base_libdir}/firmware/am57xx-pru1_0-fw" | ||
192 | ALTERNATIVE_LINK_NAME[am57xx-pru1_1-fw] = "${base_libdir}/firmware/am57xx-pru1_1-fw" | ||
193 | ALTERNATIVE_LINK_NAME[am57xx-pru2_0-fw] = "${base_libdir}/firmware/am57xx-pru2_0-fw" | ||
194 | ALTERNATIVE_LINK_NAME[am57xx-pru2_1-fw] = "${base_libdir}/firmware/am57xx-pru2_1-fw" | ||
195 | |||
196 | ALTERNATIVE_LINK_NAME[am64x-pru0_0-fw] = "${base_libdir}/firmware/am64x-pru0_0-fw" | ||
197 | ALTERNATIVE_LINK_NAME[am64x-pru0_1-fw] = "${base_libdir}/firmware/am64x-pru0_1-fw" | ||
198 | ALTERNATIVE_LINK_NAME[am64x-pru1_0-fw] = "${base_libdir}/firmware/am64x-pru1_0-fw" | ||
199 | ALTERNATIVE_LINK_NAME[am64x-pru1_1-fw] = "${base_libdir}/firmware/am64x-pru1_1-fw" | ||
200 | ALTERNATIVE_LINK_NAME[am64x-rtu0_0-fw] = "${base_libdir}/firmware/am64x-rtu0_0-fw" | ||
201 | ALTERNATIVE_LINK_NAME[am64x-rtu0_1-fw] = "${base_libdir}/firmware/am64x-rtu0_1-fw" | ||
202 | ALTERNATIVE_LINK_NAME[am64x-rtu1_0-fw] = "${base_libdir}/firmware/am64x-rtu1_0-fw" | ||
203 | ALTERNATIVE_LINK_NAME[am64x-rtu1_1-fw] = "${base_libdir}/firmware/am64x-rtu1_1-fw" | ||
204 | ALTERNATIVE_LINK_NAME[am64x-txpru0_0-fw] = "${base_libdir}/firmware/am64x-txpru0_0-fw" | ||
205 | ALTERNATIVE_LINK_NAME[am64x-txpru0_1-fw] = "${base_libdir}/firmware/am64x-txpru0_1-fw" | ||
206 | ALTERNATIVE_LINK_NAME[am64x-txpru1_0-fw] = "${base_libdir}/firmware/am64x-txpru1_0-fw" | ||
207 | ALTERNATIVE_LINK_NAME[am64x-txpru1_1-fw] = "${base_libdir}/firmware/am64x-txpru1_1-fw" | ||
208 | |||
209 | ALTERNATIVE_LINK_NAME[am65x-pru0_0-fw] = "${base_libdir}/firmware/am65x-pru0_0-fw" | ||
210 | ALTERNATIVE_LINK_NAME[am65x-pru0_1-fw] = "${base_libdir}/firmware/am65x-pru0_1-fw" | ||
211 | ALTERNATIVE_LINK_NAME[am65x-pru1_0-fw] = "${base_libdir}/firmware/am65x-pru1_0-fw" | ||
212 | ALTERNATIVE_LINK_NAME[am65x-pru1_1-fw] = "${base_libdir}/firmware/am65x-pru1_1-fw" | ||
213 | ALTERNATIVE_LINK_NAME[am65x-pru2_0-fw] = "${base_libdir}/firmware/am65x-pru2_0-fw" | ||
214 | ALTERNATIVE_LINK_NAME[am65x-pru2_1-fw] = "${base_libdir}/firmware/am65x-pru2_1-fw" | ||
215 | ALTERNATIVE_LINK_NAME[am65x-rtu0_0-fw] = "${base_libdir}/firmware/am65x-rtu0_0-fw" | ||
216 | ALTERNATIVE_LINK_NAME[am65x-rtu0_1-fw] = "${base_libdir}/firmware/am65x-rtu0_1-fw" | ||
217 | ALTERNATIVE_LINK_NAME[am65x-rtu1_0-fw] = "${base_libdir}/firmware/am65x-rtu1_0-fw" | ||
218 | ALTERNATIVE_LINK_NAME[am65x-rtu1_1-fw] = "${base_libdir}/firmware/am65x-rtu1_1-fw" | ||
219 | ALTERNATIVE_LINK_NAME[am65x-rtu2_0-fw] = "${base_libdir}/firmware/am65x-rtu2_0-fw" | ||
220 | ALTERNATIVE_LINK_NAME[am65x-rtu2_1-fw] = "${base_libdir}/firmware/am65x-rtu2_1-fw" | ||
221 | ALTERNATIVE_LINK_NAME[am65x-txpru0_0-fw] = "${base_libdir}/firmware/am65x-txpru0_0-fw" | ||
222 | ALTERNATIVE_LINK_NAME[am65x-txpru0_1-fw] = "${base_libdir}/firmware/am65x-txpru0_1-fw" | ||
223 | ALTERNATIVE_LINK_NAME[am65x-txpru1_0-fw] = "${base_libdir}/firmware/am65x-txpru1_0-fw" | ||
224 | ALTERNATIVE_LINK_NAME[am65x-txpru1_1-fw] = "${base_libdir}/firmware/am65x-txpru1_1-fw" | ||
225 | ALTERNATIVE_LINK_NAME[am65x-txpru2_0-fw] = "${base_libdir}/firmware/am65x-txpru2_0-fw" | ||
226 | ALTERNATIVE_LINK_NAME[am65x-txpru2_1-fw] = "${base_libdir}/firmware/am65x-txpru2_1-fw" | ||
227 | |||
228 | ALTERNATIVE_LINK_NAME[j7-pru0_0-fw] = "${base_libdir}/firmware/j7-pru0_0-fw" | ||
229 | ALTERNATIVE_LINK_NAME[j7-pru0_1-fw] = "${base_libdir}/firmware/j7-pru0_1-fw" | ||
230 | ALTERNATIVE_LINK_NAME[j7-pru1_0-fw] = "${base_libdir}/firmware/j7-pru1_0-fw" | ||
231 | ALTERNATIVE_LINK_NAME[j7-pru1_1-fw] = "${base_libdir}/firmware/j7-pru1_1-fw" | ||
232 | ALTERNATIVE_LINK_NAME[j7-rtu0_0-fw] = "${base_libdir}/firmware/j7-rtu0_0-fw" | ||
233 | ALTERNATIVE_LINK_NAME[j7-rtu0_1-fw] = "${base_libdir}/firmware/j7-rtu0_1-fw" | ||
234 | ALTERNATIVE_LINK_NAME[j7-rtu1_0-fw] = "${base_libdir}/firmware/j7-rtu1_0-fw" | ||
235 | ALTERNATIVE_LINK_NAME[j7-rtu1_1-fw] = "${base_libdir}/firmware/j7-rtu1_1-fw" | ||
236 | ALTERNATIVE_LINK_NAME[j7-txpru0_0-fw] = "${base_libdir}/firmware/j7-txpru0_0-fw" | ||
237 | ALTERNATIVE_LINK_NAME[j7-txpru0_1-fw] = "${base_libdir}/firmware/j7-txpru0_1-fw" | ||
238 | ALTERNATIVE_LINK_NAME[j7-txpru1_0-fw] = "${base_libdir}/firmware/j7-txpru1_0-fw" | ||
239 | ALTERNATIVE_LINK_NAME[j7-txpru1_1-fw] = "${base_libdir}/firmware/j7-txpru1_1-fw" | ||
240 | |||
241 | # Create the pru-icss-halt firmware alternatives | ||
242 | ALTERNATIVE:pru-icss-halt = "${PRU_ICSS_ALTERNATIVES}" | ||
243 | |||
244 | # Only Halt firmware images are supported for the Tx_PRU cores | ||
245 | ALTERNATIVE:pru-icss-halt:append:am64xx = " am64x-txpru0_0-fw am64x-txpru0_1-fw am64x-txpru1_0-fw am64x-txpru1_1-fw" | ||
246 | ALTERNATIVE:pru-icss-halt:append:am65xx = " am65x-txpru0_0-fw am65x-txpru0_1-fw am65x-txpru1_0-fw am65x-txpru1_1-fw am65x-txpru2_0-fw am65x-txpru2_1-fw" | ||
247 | ALTERNATIVE:pru-icss-halt:append:j7 = " j7-txpru0_0-fw j7-txpru0_1-fw j7-txpru1_0-fw j7-txpru1_1-fw" | ||
248 | |||
249 | ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
250 | ALTERNATIVE_TARGET_pru-icss-halt[am335x-pru1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
251 | |||
252 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
253 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
254 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
255 | ALTERNATIVE_TARGET_pru-icss-halt[am437x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
256 | |||
257 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
258 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
259 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
260 | ALTERNATIVE_TARGET_pru-icss-halt[am57xx-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out" | ||
261 | |||
262 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
263 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
264 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
265 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
266 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
267 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
268 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
269 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
270 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
271 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
272 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
273 | ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
274 | |||
275 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
276 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
277 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
278 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
279 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
280 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
281 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
282 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
283 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
284 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
285 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu2_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
286 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-rtu2_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
287 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
288 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
289 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
290 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
291 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru2_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
292 | ALTERNATIVE_TARGET_pru-icss-halt[am65x-txpru2_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
293 | |||
294 | ALTERNATIVE_TARGET_pru-icss-halt[j7-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
295 | ALTERNATIVE_TARGET_pru-icss-halt[j7-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
296 | ALTERNATIVE_TARGET_pru-icss-halt[j7-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out" | ||
297 | ALTERNATIVE_TARGET_pru-icss-halt[j7-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out" | ||
298 | ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
299 | ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
300 | ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out" | ||
301 | ALTERNATIVE_TARGET_pru-icss-halt[j7-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out" | ||
302 | ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
303 | ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
304 | ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out" | ||
305 | ALTERNATIVE_TARGET_pru-icss-halt[j7-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out" | ||
306 | |||
307 | |||
308 | ALTERNATIVE_PRIORITY_pru-icss-halt = "50" | ||
309 | |||
310 | # Create the pru-icss-rpmsg-echo firmware alternatives | ||
311 | ALTERNATIVE:pru-icss-rpmsg-echo = "${PRU_ICSS_ALTERNATIVES}" | ||
312 | |||
313 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am335x-pru0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0.out" | ||
314 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am335x-pru1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1.out" | ||
315 | |||
316 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out" | ||
317 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out" | ||
318 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
319 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am437x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
320 | |||
321 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
322 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
323 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_0.out" | ||
324 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am57xx-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_1.out" | ||
325 | |||
326 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out" | ||
327 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out" | ||
328 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
329 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
330 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out" | ||
331 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out" | ||
332 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out" | ||
333 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out" | ||
334 | |||
335 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out" | ||
336 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out" | ||
337 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
338 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
339 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru2_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_0.out" | ||
340 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru2_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt2_1.out" | ||
341 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out" | ||
342 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out" | ||
343 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out" | ||
344 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out" | ||
345 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu2_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt2_0.out" | ||
346 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-rtu2_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt2_1.out" | ||
347 | |||
348 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out" | ||
349 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out" | ||
350 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out" | ||
351 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out" | ||
352 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out" | ||
353 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out" | ||
354 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out" | ||
355 | ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[j7-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out" | ||
356 | |||
357 | ALTERNATIVE_PRIORITY_pru-icss-rpmsg-echo = "100" | ||
358 | |||
359 | ALLOW_EMPTY:${PN} = "1" | ||
360 | |||
361 | # This installs PRU firmware, so skip "arch" QA check | ||
362 | INSANE_SKIP:${PN}-halt = "arch" | ||
363 | INSANE_SKIP:${PN}-rpmsg-echo = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/pru/ti-pru-sw-edma-driver_1.00.00.bb b/meta-ti-bsp/recipes-bsp/pru/ti-pru-sw-edma-driver_1.00.00.bb new file mode 100644 index 00000000..98ab387c --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/pru/ti-pru-sw-edma-driver_1.00.00.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | DESCRIPTION = "Builds eDMA module used by eDMA libraries for PRU sw example applications" | ||
2 | HOMEPAGE = "https://gforge.ti.com/gf/project/pru_sw/" | ||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://edmautils.c;beginline=1;endline=23;md5=312e9cb8a37a044c617c98a9e980ad1b" | ||
5 | |||
6 | COMPATIBLE_MACHINE = "omapl138" | ||
7 | |||
8 | INHIBIT_PACKAGE_STRIP = "1" | ||
9 | |||
10 | MACHINE_KERNEL_PR:append = "b" | ||
11 | PR = "${MACHINE_KERNEL_PR}" | ||
12 | PV:append = "+svn${SRCPV}" | ||
13 | |||
14 | SRC_URI = "svn://gforge.ti.com/svn/pru_sw/;module=trunk;protocol=https;user=anonymous;pswd=''" | ||
15 | |||
16 | SRCREV = "33" | ||
17 | |||
18 | S = "${WORKDIR}/trunk/peripheral_lib/edma_driver/module" | ||
19 | |||
20 | inherit module | ||
21 | |||
22 | EXTRA_OEMAKE += "KERNEL_DIR='${STAGING_KERNEL_DIR}'" | ||
23 | |||
24 | do_compile:prepend () { | ||
25 | export CCTOOL_PREFIX="${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX}" | ||
26 | } | ||
27 | |||
28 | do_install () { | ||
29 | install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/pru | ||
30 | install -m 0755 ${S}/edmautils.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/pru/ | ||
31 | } | ||
diff --git a/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x-sr2_git.bb b/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x-sr2_git.bb new file mode 100644 index 00000000..e398cc80 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x-sr2_git.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | SUMMARY = "PRU Ethernet firmware for AM65xx SR2.0" | ||
2 | |||
3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
4 | |||
5 | PV = "${PRUETH_FW_AM65X_SR2_VERSION}" | ||
6 | PR = "${INC_PR}.0" | ||
7 | |||
8 | CLEANBROKEN = "1" | ||
9 | |||
10 | COMPATIBLE_MACHINE = "am65xx-evm|am64xx-evm" | ||
11 | |||
12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | TARGET = " \ | ||
17 | am65x-sr2-pru0-prueth-fw.elf \ | ||
18 | am65x-sr2-pru1-prueth-fw.elf \ | ||
19 | am65x-sr2-rtu0-prueth-fw.elf \ | ||
20 | am65x-sr2-rtu1-prueth-fw.elf \ | ||
21 | am65x-sr2-txpru0-prueth-fw.elf \ | ||
22 | am65x-sr2-txpru1-prueth-fw.elf \ | ||
23 | " | ||
24 | |||
25 | do_install() { | ||
26 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
27 | for f in ${TARGET}; do | ||
28 | install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f | ||
29 | done | ||
30 | } | ||
31 | |||
32 | FILES:${PN} = "${base_libdir}/firmware" | ||
33 | |||
34 | INSANE_SKIP:${PN} = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb b/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb new file mode 100644 index 00000000..804a563f --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | SUMMARY = "PRU Ethernet firmware for AM65x SR1.0" | ||
2 | |||
3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
4 | |||
5 | PV = "${PRUETH_FW_AM65X_VERSION}" | ||
6 | PR = "${INC_PR}.0" | ||
7 | |||
8 | CLEANBROKEN = "1" | ||
9 | |||
10 | COMPATIBLE_MACHINE = "am65xx" | ||
11 | |||
12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | TARGET = " \ | ||
17 | am65x-pru0-prueth-fw.elf \ | ||
18 | am65x-pru1-prueth-fw.elf \ | ||
19 | am65x-rtu0-prueth-fw.elf \ | ||
20 | am65x-rtu1-prueth-fw.elf \ | ||
21 | " | ||
22 | |||
23 | do_install() { | ||
24 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
25 | for f in ${TARGET}; do | ||
26 | install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f | ||
27 | done | ||
28 | } | ||
29 | |||
30 | FILES:${PN} = "${base_libdir}/firmware" | ||
31 | |||
32 | INSANE_SKIP:${PN} = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw_5.6.15.bb b/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw_5.6.15.bb new file mode 100644 index 00000000..4ca06be0 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/prueth-fw/prueth-fw_5.6.15.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | SUMMARY = "PRU Ethernet firmware for AM57xx, AM437x and AM335x" | ||
2 | |||
3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
4 | |||
5 | PR = "${INC_PR}.0" | ||
6 | |||
7 | CLEANBROKEN = "1" | ||
8 | |||
9 | COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm" | ||
10 | |||
11 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | TARGET = "" | ||
16 | TARGET:ti33x = "am335x-pru0-prueth-fw.elf am335x-pru1-prueth-fw.elf" | ||
17 | TARGET:ti43x = "am437x-pru0-prueth-fw.elf am437x-pru1-prueth-fw.elf" | ||
18 | TARGET:am57xx-evm = "am57xx-pru0-prueth-fw.elf am57xx-pru1-prueth-fw.elf" | ||
19 | TARGET:am57xx-hs-evm = "am57xx-pru0-prueth-fw.elf am57xx-pru1-prueth-fw.elf" | ||
20 | |||
21 | do_install() { | ||
22 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
23 | for f in ${TARGET}; do | ||
24 | install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f | ||
25 | done | ||
26 | } | ||
27 | |||
28 | |||
29 | FILES:${PN} = "${base_libdir}/firmware" | ||
30 | |||
31 | INSANE_SKIP:${PN} = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/pruhsr-fw/pruhsr-fw_2.17.25.bb b/meta-ti-bsp/recipes-bsp/pruhsr-fw/pruhsr-fw_2.17.25.bb new file mode 100644 index 00000000..618b1ad6 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/pruhsr-fw/pruhsr-fw_2.17.25.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | SUMMARY = "PRU HSR firmware for AM335x/AM437x/AM57xx" | ||
2 | |||
3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
4 | |||
5 | PE = "1" | ||
6 | PR = "${INC_PR}.0" | ||
7 | |||
8 | CLEANBROKEN = "1" | ||
9 | |||
10 | COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm" | ||
11 | |||
12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | TARGET = "" | ||
17 | TARGET:ti33x = "am335x-pru0-pruhsr-fw.elf am335x-pru1-pruhsr-fw.elf" | ||
18 | TARGET:ti43x = "am437x-pru0-pruhsr-fw.elf am437x-pru1-pruhsr-fw.elf" | ||
19 | TARGET:am57xx-evm = "am57xx-pru0-pruhsr-fw.elf am57xx-pru1-pruhsr-fw.elf" | ||
20 | TARGET:am57xx-hs-evm = "am57xx-pru0-pruhsr-fw.elf am57xx-pru1-pruhsr-fw.elf" | ||
21 | |||
22 | do_install() { | ||
23 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
24 | for f in ${TARGET}; do | ||
25 | install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f | ||
26 | done | ||
27 | } | ||
28 | |||
29 | FILES:${PN} = "${base_libdir}/firmware" | ||
30 | |||
31 | INSANE_SKIP:${PN} = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/pruprp-fw/pruprp-fw_2.17.25.bb b/meta-ti-bsp/recipes-bsp/pruprp-fw/pruprp-fw_2.17.25.bb new file mode 100644 index 00000000..707640b4 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/pruprp-fw/pruprp-fw_2.17.25.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | SUMMARY = "PRU PRP firmware for AM335x/AM437x/AM57xx" | ||
2 | |||
3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
4 | |||
5 | PE = "1" | ||
6 | PR = "${INC_PR}.0" | ||
7 | |||
8 | CLEANBROKEN = "1" | ||
9 | |||
10 | COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm" | ||
11 | |||
12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | TARGET = "" | ||
17 | TARGET:ti33x = "am335x-pru0-pruprp-fw.elf am335x-pru1-pruprp-fw.elf" | ||
18 | TARGET:ti43x = "am437x-pru0-pruprp-fw.elf am437x-pru1-pruprp-fw.elf" | ||
19 | TARGET:am57xx-evm = "am57xx-pru0-pruprp-fw.elf am57xx-pru1-pruprp-fw.elf" | ||
20 | TARGET:am57xx-hs-evm = "am57xx-pru0-pruprp-fw.elf am57xx-pru1-pruprp-fw.elf" | ||
21 | |||
22 | |||
23 | do_install() { | ||
24 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
25 | for f in ${TARGET}; do | ||
26 | install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f | ||
27 | done | ||
28 | } | ||
29 | |||
30 | FILES:${PN} = "${base_libdir}/firmware" | ||
31 | |||
32 | INSANE_SKIP:${PN} = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw-am65x-sr2_git.bb b/meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw-am65x-sr2_git.bb new file mode 100644 index 00000000..2d0d3f9e --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw-am65x-sr2_git.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | SUMMARY = "PRU Ethernet Switch firmware for AM65xx SR2.0" | ||
2 | |||
3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
4 | |||
5 | PV = "${PRUETH_FW_AM65X_SR2_VERSION}" | ||
6 | PR = "${INC_PR}.0" | ||
7 | |||
8 | CLEANBROKEN = "1" | ||
9 | |||
10 | COMPATIBLE_MACHINE = "am65xx-evm" | ||
11 | |||
12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | TARGET = " \ | ||
17 | am65x-sr2-pru0-prusw-fw.elf \ | ||
18 | am65x-sr2-pru1-prusw-fw.elf \ | ||
19 | am65x-sr2-rtu0-prusw-fw.elf \ | ||
20 | am65x-sr2-rtu1-prusw-fw.elf \ | ||
21 | am65x-sr2-txpru0-prusw-fw.elf \ | ||
22 | am65x-sr2-txpru1-prusw-fw.elf \ | ||
23 | " | ||
24 | |||
25 | do_install() { | ||
26 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
27 | for f in ${TARGET}; do | ||
28 | install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f | ||
29 | done | ||
30 | } | ||
31 | |||
32 | FILES:${PN} = "${base_libdir}/firmware" | ||
33 | |||
34 | INSANE_SKIP:${PN} = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw_3.2.9.bb b/meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw_3.2.9.bb new file mode 100644 index 00000000..3ded0dc4 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/prusw-fw/prusw-fw_3.2.9.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | SUMMARY = "PRU Switch firmware for AM57xx, AM437x and AM335x" | ||
2 | |||
3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
4 | |||
5 | PR = "${INC_PR}.0" | ||
6 | |||
7 | CLEANBROKEN = "1" | ||
8 | |||
9 | COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm" | ||
10 | |||
11 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | TARGET = "" | ||
16 | TARGET:ti33x = "am335x-pru0-prusw-fw.elf am335x-pru1-prusw-fw.elf" | ||
17 | TARGET:ti43x = "am437x-pru0-prusw-fw.elf am437x-pru1-prusw-fw.elf" | ||
18 | TARGET:am57xx-evm = "am57xx-pru0-prusw-fw.elf am57xx-pru1-prusw-fw.elf" | ||
19 | TARGET:am57xx-hs-evm = "am57xx-pru0-prusw-fw.elf am57xx-pru1-prusw-fw.elf" | ||
20 | |||
21 | do_install() { | ||
22 | install -d ${D}${base_libdir}/firmware/ti-pruss | ||
23 | for f in ${TARGET}; do | ||
24 | install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f | ||
25 | done | ||
26 | } | ||
27 | |||
28 | |||
29 | FILES:${PN} = "${base_libdir}/firmware" | ||
30 | |||
31 | INSANE_SKIP:${PN} = "arch" | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/viddec-test-app_1.0.0.bb b/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/viddec-test-app_1.0.0.bb new file mode 100644 index 00000000..9fb473b7 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/viddec-test-app_1.0.0.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | SUMMARY = "Test applications for TI DEC (v4l2 decoder for IMG D5520)" | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://main.c;beginline=1;endline=14;md5=f17e17d664f72942124e4fcf06c178ee" | ||
4 | |||
5 | DEPENDS = "libdrm ffmpeg" | ||
6 | |||
7 | inherit autotools pkgconfig | ||
8 | |||
9 | COMPATIBLE_MACHINE = "j7" | ||
10 | |||
11 | PR = "r1" | ||
12 | SRCREV = "94a80c8c090dbfdc7fafd4e5bb78c2091e715af2" | ||
13 | |||
14 | EXTRA_OEMAKE = "CC="${CC}"" | ||
15 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
16 | |||
17 | BRANCH = "master" | ||
18 | SRC_URI = "git://git.ti.com/jacinto7_multimedia/viddec-test-app.git;protocol=git;branch=${BRANCH}" | ||
19 | |||
20 | S = "${WORKDIR}/git" | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/videnc-test-app_1.0.0.bb b/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/videnc-test-app_1.0.0.bb new file mode 100644 index 00000000..3a128b92 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/videnc-test-app_1.0.0.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | SUMMARY = "Test applications for TI ENC (v4l2 encoder for IMG VXE384)" | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://main.c;beginline=1;endline=14;md5=3545dd5bdf513840937d38c10b866605" | ||
4 | |||
5 | DEPENDS = "libdrm" | ||
6 | |||
7 | inherit autotools pkgconfig | ||
8 | |||
9 | COMPATIBLE_MACHINE = "j7" | ||
10 | |||
11 | PR = "r0" | ||
12 | SRCREV = "a5e7d820bea1be24f25a8369d4d4521c784f869a" | ||
13 | |||
14 | EXTRA_OEMAKE = "CC="${CC}"" | ||
15 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
16 | |||
17 | BRANCH = "master" | ||
18 | SRC_URI = "git://git.ti.com/jacinto7_multimedia/videnc-test-app.git;protocol=git;branch=${BRANCH}" | ||
19 | |||
20 | S = "${WORKDIR}/git" | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/vxd-dec-fw_git.bb b/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/vxd-dec-fw_git.bb new file mode 100644 index 00000000..3563cc7e --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/vxd-dec-fw_git.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | SUMMARY = "Video Decoding Firmware" | ||
2 | LICENSE = "TI-IMG" | ||
3 | LIC_FILES_CHKSUM = "file://LICENSE.ti-img;md5=84ca7278930db001870686ad997d6bb1" | ||
4 | |||
5 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
6 | |||
7 | PV = "${IMG_DEC_FW_VERSION}" | ||
8 | PR = "${INC_PR}.0" | ||
9 | |||
10 | CLEANBROKEN = "1" | ||
11 | |||
12 | COMPATIBLE_MACHINE = "j7" | ||
13 | |||
14 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
15 | |||
16 | S = "${WORKDIR}/git" | ||
17 | TARGET = "pvdec_full_bin.fw" | ||
18 | |||
19 | do_install() { | ||
20 | install -d ${D}${base_libdir}/firmware | ||
21 | install -m 0644 ${S}/ti-img/${TARGET} ${D}${base_libdir}/firmware/${TARGET} | ||
22 | } | ||
23 | |||
24 | FILES:${PN} = "${base_libdir}/firmware" | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc b/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc new file mode 100644 index 00000000..f1607686 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc | |||
@@ -0,0 +1,35 @@ | |||
1 | SUMMARY = "TI SCI firmware (SYSFW)" | ||
2 | |||
3 | LICENSE = "TI-TFL" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=b5aebf0668bdf95621259288c4a46d76" | ||
5 | |||
6 | PV = "2021.09a" | ||
7 | INC_PR = "r1" | ||
8 | |||
9 | # Firmware versions | ||
10 | CORESDK_RTOS_VERSION = "08.01.00.02" | ||
11 | SERDES_FW_VERSION = "3.3.0.2c" | ||
12 | NETCP_SA_FW_VERSION = "1.0.0" | ||
13 | NETCP_PA_FW_VERSION = "3.0.2.3" | ||
14 | QMSS_PDSP_FW_VERSION = "1.0.0.9" | ||
15 | PRUETH_FW_AM65X_VERSION = "08.00.00.20" | ||
16 | PRUETH_FW_AM65X_SR2_VERSION = "02.02.09.07" | ||
17 | GOODIX_FW_VERSION = "1.0.0.0" | ||
18 | CADENCE_MHDP_FW_VERSION = "1.2.17" | ||
19 | IMG_DEC_FW_VERSION = "1.0" | ||
20 | |||
21 | TI_LINUX_FW_SRCREV ?= "c96a734a059889e571dcf30c0638157c690a6e6e" | ||
22 | SRCREV = "${TI_LINUX_FW_SRCREV}" | ||
23 | |||
24 | BRANCH ?= "ti-linux-firmware" | ||
25 | |||
26 | K3_IMAGE_GEN_SRCREV ?= "489c767a153ff26e9230746e04dd4b1ad0809901" | ||
27 | SRCREV_imggen = "${K3_IMAGE_GEN_SRCREV}" | ||
28 | SRCREV_FORMAT = "imggen" | ||
29 | |||
30 | SRC_URI = " \ | ||
31 | git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH} \ | ||
32 | git://git.ti.com/k3-image-gen/k3-image-gen.git;protocol=git;branch=master;destsuffix=imggen;name=imggen \ | ||
33 | " | ||
34 | |||
35 | S = "${WORKDIR}/git" | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/files/0001-Makefile-Skip-signing-of-binaries-for-combined-boot-.patch b/meta-ti-bsp/recipes-bsp/ti-sci-fw/files/0001-Makefile-Skip-signing-of-binaries-for-combined-boot-.patch new file mode 100644 index 00000000..196f3d3f --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/files/0001-Makefile-Skip-signing-of-binaries-for-combined-boot-.patch | |||
@@ -0,0 +1,64 @@ | |||
1 | From 2efc79702a47f9cbbeecbb2f604577f1ec8c95ba Mon Sep 17 00:00:00 2001 | ||
2 | From: Yogesh Siraswar <yogeshs@ti.com> | ||
3 | Date: Wed, 8 Dec 2021 17:50:19 -0600 | ||
4 | Subject: [KIG PATCH] Makefile: Skip signing of binaries for combined boot hs | ||
5 | images | ||
6 | |||
7 | Combined sysfw binaries used in tiboot.bin do not require signed images. | ||
8 | This fixes issues with AM64x HS and J7200 HS boot images | ||
9 | |||
10 | Upstream-Status: Submitted | ||
11 | Signed-off-by: Yogesh Siraswar <yogeshs@ti.com> | ||
12 | --- | ||
13 | Makefile | 8 +++++++- | ||
14 | soc/am64x/Makefile | 1 + | ||
15 | soc/j7200/Makefile | 1 + | ||
16 | 3 files changed, 9 insertions(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/Makefile b/Makefile | ||
19 | index 47b3b20..ab465df 100644 | ||
20 | --- a/Makefile | ||
21 | +++ b/Makefile | ||
22 | @@ -215,8 +215,14 @@ $(soc_objroot)/%.o: %.c | ||
23 | $(CROSS_COMPILE)gcc $(CFLAGS) -c -o $@-pre-validated $< | ||
24 | python3 ./scripts/sysfw_boardcfg_validator.py -b $@-pre-validated -i -o $@ -s $(SOC) -l $@.log | ||
25 | |||
26 | -# On HS board configuration binaries must be signed | ||
27 | +# On HS board configuration binaries must be signed unless it is combined boot image | ||
28 | ifdef HS | ||
29 | +ifndef COMBINED_BOOT_IMAGE | ||
30 | +SIGN_BINARY=1 | ||
31 | +endif | ||
32 | +endif | ||
33 | + | ||
34 | +ifdef SIGN_BINARY | ||
35 | %.bin.unsigned: %.o | ||
36 | $(CROSS_COMPILE)objcopy -S -O binary $< $@ | ||
37 | %.bin: %.bin.unsigned | ||
38 | diff --git a/soc/am64x/Makefile b/soc/am64x/Makefile | ||
39 | index bfbe3e5..33ebbd0 100644 | ||
40 | --- a/soc/am64x/Makefile | ||
41 | +++ b/soc/am64x/Makefile | ||
42 | @@ -31,6 +31,7 @@ | ||
43 | # | ||
44 | |||
45 | SBL_LOADADDDR ?= 0x70000000 | ||
46 | +COMBINED_BOOT_IMAGE = 1 | ||
47 | COMBINED_SYSFW_BRDCFG_LOADADDR ?= 0x7b000 | ||
48 | LOADADDR ?= 0x44000 | ||
49 | SCIFS = sci | ||
50 | diff --git a/soc/j7200/Makefile b/soc/j7200/Makefile | ||
51 | index 3b754f7..0baef51 100644 | ||
52 | --- a/soc/j7200/Makefile | ||
53 | +++ b/soc/j7200/Makefile | ||
54 | @@ -31,6 +31,7 @@ | ||
55 | # | ||
56 | |||
57 | SBL_LOADADDDR ?= 0x41c00000 | ||
58 | +COMBINED_BOOT_IMAGE = 1 | ||
59 | COMBINED_TIFS_BRDCFG_LOADADDR ?= 0x7f000 | ||
60 | COMBINED_DM_BRDCFG_LOADADDR ?= 0x41c80000 | ||
61 | LOADADDR ?= 0x40000 | ||
62 | -- | ||
63 | 2.17.1 | ||
64 | |||
diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb new file mode 100644 index 00000000..bab4acf0 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw-source_git.bb | |||
@@ -0,0 +1,45 @@ | |||
1 | # ti-sci-fw builds and packages multiple config variants via multiconfig | ||
2 | # Let's take a page from gcc-source as a common recipe for all gcc stages, | ||
3 | # but also to provide a single package for MAINMACHINE of all multiconfigs | ||
4 | |||
5 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
6 | |||
7 | SUMMARY += "- sources" | ||
8 | |||
9 | COMPATIBLE_MACHINE = "k3" | ||
10 | |||
11 | EXCLUDE_FROM_WORLD = "1" | ||
12 | INHIBIT_DEFAULT_DEPS = "1" | ||
13 | DEPENDS = "" | ||
14 | |||
15 | PACKAGES = "${PN}" | ||
16 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
17 | |||
18 | do_configure[noexec] = "1" | ||
19 | do_compile[noexec] = "1" | ||
20 | |||
21 | SRCIPK_SRC_DIR = "${WORKDIR}/imggen" | ||
22 | SRCIPK_INSTALL_DIR = "board-support/k3-image-gen-${PV}" | ||
23 | FILES:${PN} = "${SRCIPK_INSTALL_DIR}" | ||
24 | |||
25 | do_install() { | ||
26 | # Copy sources for packaging | ||
27 | mkdir -p ${D}/${SRCIPK_INSTALL_DIR} | ||
28 | if [ -e ${SRCIPK_SRC_DIR} ]; then | ||
29 | if [ "${SRCIPK_SRC_DIR}" = "${WORKDIR}" ]; then | ||
30 | excludes='--exclude ./temp --exclude ${D}' | ||
31 | fi | ||
32 | tar -C ${SRCIPK_SRC_DIR} -cO $excludes . | tar -C ${D}/${SRCIPK_INSTALL_DIR} -xpf - | ||
33 | fi | ||
34 | |||
35 | # Fix up patches/ directory to contain actual patches instead of symlinks | ||
36 | if [ -e ${D}/${SRCIPK_INSTALL_DIR}/patches ] | ||
37 | then | ||
38 | mv ${D}/${SRCIPK_INSTALL_DIR}/patches ${D}/${SRCIPK_INSTALL_DIR}/patches-links | ||
39 | cp -rL ${D}/${SRCIPK_INSTALL_DIR}/patches-links ${D}/${SRCIPK_INSTALL_DIR}/patches | ||
40 | rm -rf ${D}/${SRCIPK_INSTALL_DIR}/patches-links | ||
41 | fi | ||
42 | } | ||
43 | |||
44 | # Do not perform any QA checks on source package | ||
45 | INSANE_SKIP:${PN} += "${ALL_QA}" | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb new file mode 100644 index 00000000..2dad0fe0 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | |||
@@ -0,0 +1,160 @@ | |||
1 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
2 | |||
3 | DEPENDS = "openssl-native u-boot-mkimage-native dtc-native" | ||
4 | DEPENDS:append:j7200-evm-k3r5 = " virtual/bootloader" | ||
5 | DEPENDS:append:j7200-hs-evm-k3r5 = " virtual/bootloader" | ||
6 | DEPENDS:append:am64xx-evm-k3r5 = " virtual/bootloader" | ||
7 | DEPENDS:append:am64xx-hs-evm-k3r5 = " virtual/bootloader" | ||
8 | |||
9 | CLEANBROKEN = "1" | ||
10 | PR = "${INC_PR}.1" | ||
11 | |||
12 | # Loaded by R5F core | ||
13 | COMPATIBLE_MACHINE = "k3r5" | ||
14 | COMPATIBLE_MACHINE:aarch64 = "null" | ||
15 | |||
16 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
17 | |||
18 | TI_SECURE_DEV_PKG ?= "" | ||
19 | export TI_SECURE_DEV_PKG | ||
20 | |||
21 | SYSFW_SOC ?= "unknown" | ||
22 | SYSFW_CONFIG ?= "unknown" | ||
23 | |||
24 | SYSFW_PREFIX = "ti-sci-firmware" | ||
25 | SYSFW_PREFIX:j7-evm-k3r5 = "ti-fs-firmware" | ||
26 | SYSFW_PREFIX:j7200-evm-k3r5 = "ti-fs-firmware" | ||
27 | SYSFW_PREFIX:j7-hs-evm-k3r5 = "ti-fs-firmware" | ||
28 | SYSFW_PREFIX:j7-hs-evm-k3r5-sr1-1 = "ti-fs-firmware" | ||
29 | SYSFW_PREFIX:j7200-hs-evm-k3r5 = "ti-fs-firmware" | ||
30 | |||
31 | SYSFW_SUFFIX ?= "unknown" | ||
32 | |||
33 | SYSFW_BASE = "${SYSFW_PREFIX}-${SYSFW_SOC}-${SYSFW_SUFFIX}" | ||
34 | SYSFW_BASE:append = "${@['','*']['${SYSFW_SUFFIX}' == 'hs']}" | ||
35 | |||
36 | SYSFW_TISCI = "${S}/ti-sysfw/${SYSFW_BASE}.bin" | ||
37 | |||
38 | SYSFW_BINARY = "sysfw-${SYSFW_SOC}-${SYSFW_CONFIG}.itb" | ||
39 | SYSFW_VBINARY = "sysfw-${PV}-${SYSFW_SOC}-${SYSFW_CONFIG}.itb" | ||
40 | SYSFW_IMAGE = "sysfw-${SYSFW_SOC}-${SYSFW_CONFIG}.itb" | ||
41 | SYSFW_SYMLINK ?= "sysfw.itb" | ||
42 | |||
43 | CFLAGS[unexport] = "1" | ||
44 | LDFLAGS[unexport] = "1" | ||
45 | AS[unexport] = "1" | ||
46 | LD[unexport] = "1" | ||
47 | |||
48 | do_configure[noexec] = "1" | ||
49 | |||
50 | SRC_URI:append:j7200-hs-evm-k3r5 = " \ | ||
51 | file://0001-Makefile-Skip-signing-of-binaries-for-combined-boot-.patch;patchdir=../imggen" | ||
52 | SRC_URI:append:am64xx-hs-evm-k3r5 = " \ | ||
53 | file://0001-Makefile-Skip-signing-of-binaries-for-combined-boot-.patch;patchdir=../imggen" | ||
54 | |||
55 | EXTRA_OEMAKE = "\ | ||
56 | CROSS_COMPILE=${TARGET_PREFIX} SYSFW_DL_URL='' SYSFW_HS_DL_URL='' SYSFW_HS_INNER_CERT_DL_URL='' \ | ||
57 | SYSFW_PATH="${SYSFW_TISCI}" SOC=${SYSFW_SOC} CONFIG=${SYSFW_CONFIG} \ | ||
58 | " | ||
59 | EXTRA_OEMAKE_HS = " \ | ||
60 | HS=1 SW_REV=1 SYSFW_HS_PATH="${S}/ti-sysfw/${SYSFW_BASE}-enc.bin" SYSFW_HS_INNER_CERT_PATH="${S}/ti-sysfw/${SYSFW_BASE}-cert.bin" \ | ||
61 | " | ||
62 | EXTRA_OEMAKE:append = "${@['',' ${EXTRA_OEMAKE_HS}']['${SYSFW_SUFFIX}' == 'hs']}" | ||
63 | |||
64 | EXTRA_OEMAKE:append:j7200-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | ||
65 | EXTRA_OEMAKE:append:j7200-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | ||
66 | EXTRA_OEMAKE:append:am64xx-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | ||
67 | EXTRA_OEMAKE:append:am64xx-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin"" | ||
68 | |||
69 | do_compile() { | ||
70 | cd ${WORKDIR}/imggen/ | ||
71 | oe_runmake | ||
72 | } | ||
73 | |||
74 | do_install() { | ||
75 | install -d ${D}/boot | ||
76 | install -m 644 ${WORKDIR}/imggen/${SYSFW_BINARY} ${D}/boot/${SYSFW_VBINARY} | ||
77 | ln -sf ${SYSFW_VBINARY} ${D}/boot/${SYSFW_IMAGE} | ||
78 | if [ ! -z "${SYSFW_SYMLINK}" ]; then | ||
79 | ln -sf ${SYSFW_VBINARY} ${D}/boot/${SYSFW_SYMLINK} | ||
80 | fi | ||
81 | } | ||
82 | |||
83 | FILES:${PN} = "/boot" | ||
84 | |||
85 | inherit deploy | ||
86 | |||
87 | do_deploy () { | ||
88 | install -d ${DEPLOYDIR} | ||
89 | install -m 644 ${WORKDIR}/imggen/${SYSFW_BINARY} ${DEPLOYDIR}/${SYSFW_VBINARY} | ||
90 | rm -f ${DEPLOYDIR}/${SYSFW_IMAGE} | ||
91 | ln -sf ${SYSFW_VBINARY} ${DEPLOYDIR}/${SYSFW_IMAGE} | ||
92 | if [ ! -z "${SYSFW_SYMLINK}" ]; then | ||
93 | rm -f ${DEPLOYDIR}/${SYSFW_SYMLINK} | ||
94 | ln -sf ${SYSFW_VBINARY} ${DEPLOYDIR}/${SYSFW_SYMLINK} | ||
95 | fi | ||
96 | |||
97 | install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/ | ||
98 | } | ||
99 | |||
100 | do_install:j7200-evm-k3r5() { | ||
101 | install -d ${D}/boot | ||
102 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} | ||
103 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_SYMLINK} | ||
104 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} | ||
105 | } | ||
106 | |||
107 | do_deploy:j7200-evm-k3r5() { | ||
108 | install -d ${DEPLOYDIR} | ||
109 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} | ||
110 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK} | ||
111 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY} | ||
112 | install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/ | ||
113 | } | ||
114 | |||
115 | do_install:j7200-hs-evm-k3r5() { | ||
116 | install -d ${D}/boot | ||
117 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} | ||
118 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_SYMLINK} | ||
119 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} | ||
120 | } | ||
121 | |||
122 | do_deploy:j7200-hs-evm-k3r5() { | ||
123 | install -d ${DEPLOYDIR} | ||
124 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} | ||
125 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK} | ||
126 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY} | ||
127 | install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/ | ||
128 | } | ||
129 | |||
130 | do_install:am64xx-evm-k3r5() { | ||
131 | install -d ${D}/boot | ||
132 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} | ||
133 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_SYMLINK} | ||
134 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} | ||
135 | } | ||
136 | |||
137 | do_deploy:am64xx-evm-k3r5() { | ||
138 | install -d ${DEPLOYDIR} | ||
139 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} | ||
140 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK} | ||
141 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY} | ||
142 | install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/ | ||
143 | } | ||
144 | |||
145 | do_install:am64xx-hs-evm-k3r5() { | ||
146 | install -d ${D}/boot | ||
147 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE} | ||
148 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_SYMLINK} | ||
149 | ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY} | ||
150 | } | ||
151 | |||
152 | do_deploy:am64xx-hs-evm-k3r5() { | ||
153 | install -d ${DEPLOYDIR} | ||
154 | install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE} | ||
155 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK} | ||
156 | ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY} | ||
157 | install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/ | ||
158 | } | ||
159 | |||
160 | addtask deploy before do_build after do_compile | ||
diff --git a/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend b/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend new file mode 100644 index 00000000..8fe7c08e --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend | |||
@@ -0,0 +1,41 @@ | |||
1 | PV:k3 = "2.5" | ||
2 | LIC_FILES_CHKSUM:k3 = "file://license.rst;md5=1dd070c98a281d18d9eefd938729b031" | ||
3 | BRANCH:k3 = "ti-atf" | ||
4 | SRC_URI:k3 = "git://git.ti.com/atf/arm-trusted-firmware.git;branch=${BRANCH};name=tfa" | ||
5 | SRCREV_tfa:k3 = "0693f356eb2a25adf8758d98058120bed082cc73" | ||
6 | COMPATIBLE_MACHINE:k3 = "k3" | ||
7 | TFA_BUILD_TARGET:k3 = "all" | ||
8 | TFA_INSTALL_TARGET:k3 = "bl31" | ||
9 | TFA_SPD:k3 = "opteed" | ||
10 | |||
11 | do_compile:append:am65xx-hs-evm() { | ||
12 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} | ||
13 | ( cd ${BUILD_DIR}; \ | ||
14 | mv bl31.bin bl31.bin.unsigned; \ | ||
15 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \ | ||
16 | ) | ||
17 | } | ||
18 | |||
19 | do_compile:append:am64xx-hs-evm() { | ||
20 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} | ||
21 | ( cd ${BUILD_DIR}; \ | ||
22 | mv bl31.bin bl31.bin.unsigned; \ | ||
23 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \ | ||
24 | ) | ||
25 | } | ||
26 | |||
27 | do_compile:append:j7-hs-evm() { | ||
28 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} | ||
29 | ( cd ${BUILD_DIR}; \ | ||
30 | mv bl31.bin bl31.bin.unsigned; \ | ||
31 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \ | ||
32 | ) | ||
33 | } | ||
34 | |||
35 | do_compile:append:j7200-hs-evm() { | ||
36 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} | ||
37 | ( cd ${BUILD_DIR}; \ | ||
38 | mv bl31.bin bl31.bin.unsigned; \ | ||
39 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \ | ||
40 | ) | ||
41 | } | ||
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-mainline_git.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-mainline_git.bb new file mode 100644 index 00000000..76aaa4b2 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-mainline_git.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | require u-boot-ti.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025" | ||
4 | |||
5 | PR = "r0" | ||
6 | |||
7 | PV = "2021.10" | ||
8 | |||
9 | # For the un-initiated: | ||
10 | # The actual URL you'd use with a git clone for example would be: | ||
11 | # https://source.denx.de/u-boot/u-boot.git/ | ||
12 | # However, in the context of OE, we have to explicitly split things up: | ||
13 | # a) we want it to use git fetcher - hence git:// prefix in GIT_URI (if we | ||
14 | # used https here, we'd endup attempting wget instead of git) | ||
15 | # b) and we want git fetcher to use https protocol, hence GIT_PROTOCOL as https | ||
16 | UBOOT_GIT_URI = "git://source.denx.de/u-boot/u-boot.git" | ||
17 | UBOOT_GIT_PROTOCOL = "https" | ||
18 | SRCREV = "d80bb749fab53da72c4a0e09b8c2d2aaa3103c91" | ||
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2020.01.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2020.01.bb new file mode 100644 index 00000000..e1bdae46 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2020.01.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | require u-boot-ti.inc | ||
2 | |||
3 | PR = "r36" | ||
4 | |||
5 | BRANCH = "ti-u-boot-2020.01" | ||
6 | |||
7 | SRCREV = "2781231a33c3d779e32445f4fe55164c45d6d7c1" | ||
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2021.01.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2021.01.bb new file mode 100644 index 00000000..d304df87 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2021.01.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require u-boot-ti.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025" | ||
4 | |||
5 | PR = "r16" | ||
6 | |||
7 | BRANCH = "ti-u-boot-2021.01" | ||
8 | |||
9 | SRCREV = "15769936a559b1840f50b83f94ee0c636b245001" | ||
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc new file mode 100644 index 00000000..4b9f543c --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | |||
@@ -0,0 +1,290 @@ | |||
1 | # UBOOT_LOCALVERSION can be set to add a tag to the end of the | ||
2 | # U-boot version string. such as the commit id | ||
3 | def get_git_revision(p): | ||
4 | import subprocess | ||
5 | |||
6 | try: | ||
7 | return subprocess.Popen("git rev-parse HEAD 2>/dev/null ", cwd=p, shell=True, stdout=subprocess.PIPE, universal_newlines=True).communicate()[0].rstrip() | ||
8 | except OSError: | ||
9 | return None | ||
10 | |||
11 | UBOOT_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}" | ||
12 | |||
13 | UBOOT_SUFFIX ?= "img" | ||
14 | SPL_BINARY ?= "MLO" | ||
15 | |||
16 | require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot-common.inc | ||
17 | require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc | ||
18 | |||
19 | FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot:" | ||
20 | |||
21 | SUMMARY = "u-boot bootloader for TI devices" | ||
22 | |||
23 | LICENSE = "GPLv2+" | ||
24 | LIC_FILES_CHKSUM = "file://Licenses/README;md5=30503fd321432fc713238f582193b78e" | ||
25 | |||
26 | BRANCH ?= "master" | ||
27 | UBOOT_GIT_URI = "git://git.ti.com/ti-u-boot/ti-u-boot.git" | ||
28 | UBOOT_GIT_PROTOCOL = "git" | ||
29 | SRC_URI = "${UBOOT_GIT_URI};protocol=${UBOOT_GIT_PROTOCOL};branch=${BRANCH}" | ||
30 | |||
31 | PV:append = "+git${SRCPV}" | ||
32 | |||
33 | # u-boot needs devtree compiler to parse dts files | ||
34 | DEPENDS += "dtc-native bc-native lzop-native flex-native bison-native" | ||
35 | |||
36 | DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" | ||
37 | |||
38 | PACKAGECONFIG[atf] = "ATF=${STAGING_DIR_HOST}/firmware/bl31.bin,,trusted-firmware-a" | ||
39 | PACKAGECONFIG[optee] = "TEE=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/bl32.bin,,optee-os" | ||
40 | PACKAGECONFIG[dm] = "DM=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/pdk-ipc/${DM_FIRMWARE},,ti-rtos-firmware" | ||
41 | |||
42 | PACKAGECONFIG:append:aarch64 = " atf optee" | ||
43 | PACKAGECONFIG:append:j7 = " dm" | ||
44 | |||
45 | COMPATIBLE_MACHINE = "(ti-soc)" | ||
46 | |||
47 | EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}" | ||
48 | |||
49 | PROVIDES += "u-boot" | ||
50 | PKG:${PN} = "u-boot" | ||
51 | PKG:${PN}-dev = "u-boot-dev" | ||
52 | PKG:${PN}-dbg = "u-boot-dbg" | ||
53 | |||
54 | S = "${WORKDIR}/git" | ||
55 | |||
56 | # Support for secure devices - detailed info is in doc/README.ti-secure | ||
57 | TI_SECURE_DEV_PKG ?= "" | ||
58 | export TI_SECURE_DEV_PKG | ||
59 | |||
60 | SYSROOT_DIRS += "/boot" | ||
61 | |||
62 | # SPL (Second Program Loader) to be loaded over UART | ||
63 | SPL_UART_BINARY = "u-boot-spl.bin" | ||
64 | SPL_UART_BINARY:k3r5 = "" | ||
65 | SPL_UART_BINARY:lego-ev3 = "" | ||
66 | SPL_UART_BINARY:j7200-evm-k3r5 = "u-boot-spl.bin" | ||
67 | SPL_UART_BINARY:j7200-hs-evm-k3r5 = "u-boot-spl.bin" | ||
68 | SPL_UART_BINARY:am64xx-evm-k3r5 = "u-boot-spl.bin" | ||
69 | SPL_UART_BINARY:am64xx-hs-evm-k3r5 = "u-boot-spl.bin" | ||
70 | |||
71 | SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" | ||
72 | SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" | ||
73 | |||
74 | # SPI NOR Flash binaries | ||
75 | UBOOT_SPI_SPL_BINARY = "u-boot-spl.bin" | ||
76 | UBOOT_SPI_BINARY = "u-boot.img" | ||
77 | UBOOT_SPI_GPH_BINARY = "u-boot-spi.gph" | ||
78 | |||
79 | # SPI NOR Flash deployed images | ||
80 | UBOOT_SPI_SPL_IMAGE = "u-boot-spl-${MACHINE}-${PV}-${PR}.bin" | ||
81 | UBOOT_SPI_SPL_SYMLINK = "u-boot-spl-${MACHINE}.bin" | ||
82 | UBOOT_SPI_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.img" | ||
83 | UBOOT_SPI_SYMLINK = "u-boot-${MACHINE}.img" | ||
84 | UBOOT_SPI_GPH_IMAGE = "u-boot-spi-${MACHINE}-${PV}-${PR}.gph" | ||
85 | UBOOT_SPI_GPH_SYMLINK = "u-boot-spi-${MACHINE}.gph" | ||
86 | |||
87 | # HS XLD | ||
88 | UBOOT_HS_XLD_BINARY = "u-boot-spl_HS_X-LOADER" | ||
89 | UBOOT_HS_XLD_IMAGE = "u-boot-spl_HS_X-LOADER-${MACHINE}-${PV}-${PR}" | ||
90 | UBOOT_HS_XLD_SYMLINK = "u-boot-spl_HS_X-LOADER-${MACHINE}" | ||
91 | |||
92 | # HS MLO | ||
93 | UBOOT_HS_MLO_BINARY = "u-boot_HS_MLO" | ||
94 | UBOOT_HS_MLO_IMAGE = "u-boot_HS_MLO-${MACHINE}-${PV}-${PR}" | ||
95 | UBOOT_HS_MLO_SYMLINK = "u-boot_HS_MLO-${MACHINE}" | ||
96 | |||
97 | # HS ISSW | ||
98 | UBOOT_HS_ISSW_BINARY = "u-boot-spl_HS_ISSW" | ||
99 | UBOOT_HS_ISSW_IMAGE = "u-boot-spl_HS_ISSW-${MACHINE}-${PV}-${PR}" | ||
100 | UBOOT_HS_ISSW_SYMLINK = "u-boot-spl_HS_ISSW-${MACHINE}" | ||
101 | |||
102 | # HS 2ND | ||
103 | UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND" | ||
104 | UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" | ||
105 | UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" | ||
106 | |||
107 | do_install:append () { | ||
108 | if [ -n "${UBOOT_CONFIG}" ] | ||
109 | then | ||
110 | for config in ${UBOOT_MACHINE}; do | ||
111 | i=$(expr $i + 1); | ||
112 | for type in ${UBOOT_CONFIG}; do | ||
113 | j=$(expr $j + 1); | ||
114 | if [ $j -eq $i ] | ||
115 | then | ||
116 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | ||
117 | install ${B}/${config}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE}-${type} | ||
118 | ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY}-${type} | ||
119 | ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY} | ||
120 | fi | ||
121 | if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then | ||
122 | install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE}-${type} | ||
123 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY}-${type} | ||
124 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY} | ||
125 | fi | ||
126 | if [ -f ${B}/${config}/${UBOOT_HS_MLO_BINARY} ]; then | ||
127 | install ${B}/${config}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE}-${type} | ||
128 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY}-${type} | ||
129 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY} | ||
130 | fi | ||
131 | if [ -f ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ]; then | ||
132 | install ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ${D}/boot/${UBOOT_HS_ISSW_IMAGE}-${type} | ||
133 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${D}/boot/${UBOOT_HS_ISSW_BINARY}-${type} | ||
134 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${D}/boot/${UBOOT_HS_ISSW_BINARY} | ||
135 | fi | ||
136 | if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then | ||
137 | install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE}-${type} | ||
138 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY}-${type} | ||
139 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY} | ||
140 | fi | ||
141 | fi | ||
142 | done | ||
143 | unset j | ||
144 | done | ||
145 | unset i | ||
146 | else | ||
147 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | ||
148 | install ${B}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} | ||
149 | ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY} | ||
150 | fi | ||
151 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then | ||
152 | install ${B}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE} | ||
153 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${D}/boot/${UBOOT_HS_XLD_BINARY} | ||
154 | fi | ||
155 | if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then | ||
156 | install ${B}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE} | ||
157 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${D}/boot/${UBOOT_HS_MLO_BINARY} | ||
158 | fi | ||
159 | if [ -f ${B}/${UBOOT_HS_ISSW_BINARY} ]; then | ||
160 | install ${B}/${UBOOT_HS_ISSW_BINARY} ${D}/boot/${UBOOT_HS_ISSW_IMAGE} | ||
161 | ln -sf ${UBOOT_HS_ISSW_IMAGE} ${D}/boot/${UBOOT_HS_ISSW_BINARY} | ||
162 | fi | ||
163 | if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then | ||
164 | install ${B}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE} | ||
165 | ln -sf ${UBOOT_HS_2ND_IMAGE} ${D}/boot/${UBOOT_HS_2ND_BINARY} | ||
166 | fi | ||
167 | fi | ||
168 | } | ||
169 | |||
170 | do_deploy:append () { | ||
171 | if [ -n "${UBOOT_CONFIG}" ] | ||
172 | then | ||
173 | for config in ${UBOOT_MACHINE}; do | ||
174 | i=$(expr $i + 1); | ||
175 | for type in ${UBOOT_CONFIG}; do | ||
176 | j=$(expr $j + 1); | ||
177 | if [ $j -eq $i ] | ||
178 | then | ||
179 | cd ${DEPLOYDIR} | ||
180 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | ||
181 | install ${B}/${config}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE}-${type} | ||
182 | rm -f ${DEPLOYDIR}/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_SYMLINK} | ||
183 | ln -sf ${SPL_UART_IMAGE}-${type} ${DEPLOYDIR}/${SPL_UART_BINARY}-${type} | ||
184 | ln -sf ${SPL_UART_IMAGE}-${type} ${DEPLOYDIR}/${SPL_UART_BINARY} | ||
185 | ln -sf ${SPL_UART_IMAGE}-${type} ${DEPLOYDIR}/${SPL_UART_SYMLINK}-${type} | ||
186 | ln -sf ${SPL_UART_IMAGE}-${type} ${DEPLOYDIR}/${SPL_UART_SYMLINK} | ||
187 | fi | ||
188 | if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then | ||
189 | install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${DEPLOYDIR}/${UBOOT_HS_XLD_IMAGE}-${type} | ||
190 | rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK} | ||
191 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_SYMLINK}-${type} | ||
192 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_SYMLINK} | ||
193 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_BINARY}-${type} | ||
194 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_BINARY} | ||
195 | fi | ||
196 | if [ -f ${B}/${config}/${UBOOT_HS_MLO_BINARY} ]; then | ||
197 | install ${B}/${config}/${UBOOT_HS_MLO_BINARY} ${DEPLOYDIR}/${UBOOT_HS_MLO_IMAGE}-${type} | ||
198 | rm -f ${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_SYMLINK} | ||
199 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_SYMLINK}-${type} | ||
200 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_SYMLINK} | ||
201 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY}-${type} | ||
202 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY} | ||
203 | fi | ||
204 | if [ -f ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ]; then | ||
205 | install ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ${DEPLOYDIR}/${UBOOT_HS_ISSW_IMAGE}-${type} | ||
206 | rm -f ${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_SYMLINK} | ||
207 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_SYMLINK}-${type} | ||
208 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_SYMLINK} | ||
209 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_BINARY}-${type} | ||
210 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_BINARY} | ||
211 | fi | ||
212 | if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then | ||
213 | install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${DEPLOYDIR}/${UBOOT_HS_2ND_IMAGE}-${type} | ||
214 | rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK} | ||
215 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK}-${type} | ||
216 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK} | ||
217 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY}-${type} | ||
218 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY} | ||
219 | fi | ||
220 | fi | ||
221 | done | ||
222 | unset j | ||
223 | done | ||
224 | unset i | ||
225 | else | ||
226 | cd ${DEPLOYDIR} | ||
227 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | ||
228 | install ${B}/spl/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_IMAGE} | ||
229 | rm -f ${DEPLOYDIR}/${SPL_UART_BINARY} ${DEPLOYDIR}/${SPL_UART_SYMLINK} | ||
230 | ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_BINARY} | ||
231 | ln -sf ${SPL_UART_IMAGE} ${DEPLOYDIR}/${SPL_UART_SYMLINK} | ||
232 | fi | ||
233 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then | ||
234 | install ${B}/${UBOOT_HS_XLD_BINARY} ${DEPLOYDIR}/${UBOOT_HS_XLD_IMAGE} | ||
235 | rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK} | ||
236 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_SYMLINK} | ||
237 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_BINARY} | ||
238 | fi | ||
239 | if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then | ||
240 | install ${B}/${UBOOT_HS_MLO_BINARY} ${DEPLOYDIR}/${UBOOT_HS_MLO_IMAGE} | ||
241 | rm -f ${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_SYMLINK} | ||
242 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_SYMLINK} | ||
243 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_BINARY} | ||
244 | fi | ||
245 | if [ -f ${B}/${UBOOT_HS_ISSW_BINARY} ]; then | ||
246 | install ${B}/${UBOOT_HS_ISSW_BINARY} ${DEPLOYDIR}/${UBOOT_HS_ISSW_IMAGE} | ||
247 | rm -f ${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_SYMLINK} | ||
248 | ln -sf ${UBOOT_HS_ISSW_IMAGE} ${UBOOT_HS_ISSW_SYMLINK} | ||
249 | ln -sf ${UBOOT_HS_ISSW_IMAGE} ${UBOOT_HS_ISSW_BINARY} | ||
250 | fi | ||
251 | if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then | ||
252 | install ${B}/${UBOOT_HS_2ND_BINARY} ${DEPLOYDIR}/${UBOOT_HS_2ND_IMAGE} | ||
253 | rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK} | ||
254 | ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_SYMLINK} | ||
255 | ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_BINARY} | ||
256 | fi | ||
257 | fi | ||
258 | |||
259 | rm ${DEPLOYDIR}/u-boot-initial-env || true | ||
260 | rm ${DEPLOYDIR}/${PN}-initial-env || true | ||
261 | rm ${DEPLOYDIR}/u-boot-initial-env-${MACHINE} || true | ||
262 | rm ${DEPLOYDIR}/${PN}-initial-env-${MACHINE} || true | ||
263 | rm ${DEPLOYDIR}/u-boot-initial-env-${MACHINE}-${PV}-${PR} || true | ||
264 | rm ${DEPLOYDIR}/${PN}-initial-env-${MACHINE}-${PV}-${PR} || true | ||
265 | } | ||
266 | |||
267 | # j7200 uses combined image for tiboot3.bin that includes u-boot-spl.bin and sysfw | ||
268 | # along with board PM/RM configs generated by k3-image-gen and comes from ti-sci-fw | ||
269 | # hence move the legacy u-boot's tiboot3.bin and u-boot-spl.bin out of the way | ||
270 | do_deploy:append:j7200-evm-k3r5 () { | ||
271 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
272 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
273 | } | ||
274 | |||
275 | do_deploy:append:j7200-hs-evm-k3r5 () { | ||
276 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
277 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
278 | } | ||
279 | |||
280 | do_deploy:append:am64xx-evm-k3r5 () { | ||
281 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
282 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
283 | } | ||
284 | |||
285 | do_deploy:append:am64xx-hs-evm-k3r5 () { | ||
286 | mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true | ||
287 | mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true | ||
288 | } | ||
289 | |||
290 | TOOLCHAIN = "gcc" | ||
diff --git a/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb new file mode 100644 index 00000000..dc17a1e9 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | DESCRIPTION = "Test code for user space IO (UIO) driver" | ||
2 | |||
3 | include uio-module-drv.inc | ||
4 | |||
5 | PR = "r1" | ||
6 | |||
7 | COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x" | ||
8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
9 | |||
10 | DEVICE_NAME:omap-a15 = "am57xx" | ||
11 | DEVICE_NAME:ti33x = "am33xx" | ||
12 | DEVICE_NAME:ti43x = "am43xx" | ||
13 | RDEPENDS:${PN} = "uio-module-drv" | ||
14 | |||
15 | do_compile() { | ||
16 | oe_runmake -C ${S} test "DEVICE=${DEVICE_NAME}" | ||
17 | } | ||
18 | |||
19 | do_install() { | ||
20 | install -d ${D}${bindir}/ | ||
21 | install -c -m 755 ${S}/test/uio_mem_test ${D}${bindir}/. | ||
22 | install -c -m 755 ${S}/test/uio_int_test ${D}${bindir}/. | ||
23 | } | ||
24 | |||
25 | do_install:append:omap-a15 () { | ||
26 | install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/. | ||
27 | } | ||
28 | |||
29 | do_install:append:ti33x () { | ||
30 | install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/. | ||
31 | } | ||
32 | |||
33 | do_install:append:ti43x () { | ||
34 | install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test ${D}${bindir}/. | ||
35 | } | ||
diff --git a/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv.inc b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv.inc new file mode 100644 index 00000000..8081d021 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv.inc | |||
@@ -0,0 +1,19 @@ | |||
1 | LICENSE = "BSD" | ||
2 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2b7c96eb2aed7b0f6f922214dbde9016" | ||
3 | |||
4 | BRANCH = "master" | ||
5 | # This corresponds to version 02.02.01.00 | ||
6 | UIO_MODULE_DRV_SRCREV = "bda9260f2220840a60ec0fbc8011cbadf3cf1b91" | ||
7 | |||
8 | PV = "2.2.1.0+git${SRCPV}" | ||
9 | |||
10 | UIO_MODULE_DRV_GIT_URI = "git://git.ti.com/keystone-linux/uio-module-drv.git" | ||
11 | UIO_MODULE_DRV_GIT_PROTOCOL = "git" | ||
12 | SRC_URI = "${UIO_MODULE_DRV_GIT_URI};protocol=${UIO_MODULE_DRV_GIT_PROTOCOL};branch=${BRANCH}" | ||
13 | |||
14 | SRCREV = "${UIO_MODULE_DRV_SRCREV}" | ||
15 | |||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | COMPATIBLE_HOST ?= "null" | ||
19 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
diff --git a/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv/0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv/0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch new file mode 100644 index 00000000..955ef558 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv/0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From b5c4036dac06817bffd0be21c5fa1b7f75f74e4b Mon Sep 17 00:00:00 2001 | ||
2 | From: Suman Anna <s-anna@ti.com> | ||
3 | Date: Mon, 19 Apr 2021 13:15:51 -0500 | ||
4 | Subject: [PATCH] uio-module-drv: Replace ioremap_nocache with ioremap | ||
5 | |||
6 | The ioremap_nocache is the same as the regular ioremap and its | ||
7 | definition has been dropped from the Linux kernel v5.6 onwards in | ||
8 | commit 4bdc0d676a64 ("remove ioremap_nocache and devm_ioremap_nocache") | ||
9 | [1]. The uio-module-drv module fails to build against these newer | ||
10 | kernels, so fix it by simply replacing ioremap_nocache with ioremap. | ||
11 | |||
12 | [1] | ||
13 | https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4bdc0d676a643140bdf17dbf7eafedee3d496a3c | ||
14 | |||
15 | Signed-off-by: Suman Anna <s-anna@ti.com> | ||
16 | --- | ||
17 | uio_module_drv.c | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/uio_module_drv.c b/uio_module_drv.c | ||
21 | index 5a67dd199e21..7cc6005d1f05 100644 | ||
22 | --- a/uio_module_drv.c | ||
23 | +++ b/uio_module_drv.c | ||
24 | @@ -240,7 +240,7 @@ static ssize_t uio_module_drv_transfer(struct file *file, char __user *buf, | ||
25 | return -EINVAL; | ||
26 | } | ||
27 | |||
28 | - virt_addr_p = ioremap_nocache(phys_addr, count); | ||
29 | + virt_addr_p = ioremap(phys_addr, count); | ||
30 | if (!virt_addr_p) { | ||
31 | dev_err(uio_module_drv->dev, "Mapping of virtual memory failed\n"); | ||
32 | return(-ENOMEM); | ||
33 | -- | ||
34 | 2.30.1 | ||
35 | |||
diff --git a/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv_git.bb b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv_git.bb new file mode 100644 index 00000000..2bb1f0b3 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv_git.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | DESCRIPTION = "User space IO (UIO) driver for on-chip modules" | ||
2 | |||
3 | include uio-module-drv.inc | ||
4 | |||
5 | FILESEXTRAPATHS:prepend:= "${THISDIR}/${PN}:" | ||
6 | |||
7 | SRC_URI += "file://0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch" | ||
8 | |||
9 | # This package builds a kernel module, use kernel PR as base and append a local | ||
10 | MACHINE_KERNEL_PR:append = "d" | ||
11 | PR = "${MACHINE_KERNEL_PR}" | ||
12 | |||
13 | module_auto_load_uio-module-drv = "uio-module-drv" | ||
14 | |||
15 | inherit module | ||
16 | |||
17 | do_install:append () { | ||
18 | install -d ${D}${includedir} | ||
19 | cp *.h ${D}${includedir} | ||
20 | } | ||
21 | |||
22 | KERNEL_MODULE_AUTOLOAD += "uio_module_drv" | ||
diff --git a/meta-ti-bsp/recipes-bsp/vis-fw/vis_01.50.07.15.bb b/meta-ti-bsp/recipes-bsp/vis-fw/vis_01.50.07.15.bb new file mode 100644 index 00000000..498be36b --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/vis-fw/vis_01.50.07.15.bb | |||
@@ -0,0 +1,36 @@ | |||
1 | DESCRIPTION = "Radio Application Firmware" | ||
2 | LICENSE = "TI-TSPA" | ||
3 | LIC_FILES_CHKSUM = "file://${S}/J6_VIS_DEMO_LINUX_BINARY_01.50.07.15-Manifest.html;md5=a59aa54b9470f555cf086b91dca0afa3" | ||
4 | |||
5 | COMPATIBLE_MACHINE = "dra7xx" | ||
6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
7 | |||
8 | PR = "r1" | ||
9 | |||
10 | SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/vis/01_50_07_15/exports/vis-dra7xx-evm-01.50.07.15.tar.gz;protocol=http" | ||
11 | |||
12 | SRC_URI[md5sum] = "fe8b00e398fb3b7ada0c15b601867acb" | ||
13 | SRC_URI[sha256sum] = "6e2aa47ae892910616ebdc96646af778af9a59ca0657716ab4fa4b24a9afae69" | ||
14 | |||
15 | S = "${WORKDIR}" | ||
16 | |||
17 | DSPAPP = "dra7-dsp1-fw-radio.xe66" | ||
18 | GPPAPP = "RadioApp" | ||
19 | |||
20 | do_install() { | ||
21 | install -d ${D}${base_libdir}/firmware | ||
22 | install -d ${D}${bindir} | ||
23 | install ${S}/prebuilt/${DSPAPP} ${D}${base_libdir}/firmware/${DSPAPP} | ||
24 | install -m 0755 ${S}/prebuilt/${GPPAPP} ${D}${bindir}/${GPPAPP} | ||
25 | } | ||
26 | |||
27 | PACKAGES += "${PN}-fw" | ||
28 | RDEPENDS:${PN} += "${PN}-fw" | ||
29 | |||
30 | FILES:${PN}-fw += "${base_libdir}/firmware/${DSPAPP}" | ||
31 | |||
32 | INSANE_SKIP:${PN} = "ldflags" | ||
33 | INSANE_SKIP:${PN}-fw = "arch" | ||
34 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
35 | INHIBIT_PACKAGE_STRIP = "1" | ||
36 | INHIBIT_SYSROOT_STRIP = "1" | ||
diff --git a/meta-ti-bsp/recipes-bsp/vpdma-fw/vpdma-fw_03-2012.bb b/meta-ti-bsp/recipes-bsp/vpdma-fw/vpdma-fw_03-2012.bb new file mode 100644 index 00000000..c7b2a7bb --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/vpdma-fw/vpdma-fw_03-2012.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | DESCRIPTION = "VPDMA firmware for Video Input Port and Video Processing Engine" | ||
2 | |||
3 | LICENSE = "TI-TSPA" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=fd463c9500441ed91d07a0331baa635c" | ||
5 | |||
6 | COMPATIBLE_MACHINE = "dra7xx" | ||
7 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
8 | |||
9 | DEPENDS += "virtual/kernel" | ||
10 | |||
11 | SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/vpdma-fw/03-2012/exports/vpdma-fw_03-2012.tar.gz;protocol=http;name=dra7xx-evm" | ||
12 | SRC_URI[dra7xx-evm.md5sum] = "80176df1350c21d9efa90171789c546e" | ||
13 | SRC_URI[dra7xx-evm.sha256sum] = "a0b254ffd0c7f481cb3989e632088f5e4a233c73a1c676faa3061721ea60dc90" | ||
14 | |||
15 | S = "${WORKDIR}/vpdma-fw-${PV}" | ||
16 | TARGET = "vpdma-1b8.bin" | ||
17 | |||
18 | do_install() { | ||
19 | mkdir -p ${D}${base_libdir}/firmware | ||
20 | cp ${S}/${TARGET} ${D}${base_libdir}/firmware/${TARGET} | ||
21 | } | ||
22 | |||
23 | FILES:${PN} += "${base_libdir}/firmware/${TARGET}" | ||
24 | |||
25 | PR = "r1" | ||
diff --git a/meta-ti-bsp/recipes-bsp/vpe-tests/vpe-tests_git.bb b/meta-ti-bsp/recipes-bsp/vpe-tests/vpe-tests_git.bb new file mode 100644 index 00000000..92c425b1 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/vpe-tests/vpe-tests_git.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | DESCRIPTION = "VPE test program" | ||
2 | |||
3 | LICENSE = "BSD" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=74d2f71d8898c54e3d1c9d0058c484aa" | ||
5 | |||
6 | DEPENDS = "virtual/kernel vpdma-fw" | ||
7 | |||
8 | PR = "r3" | ||
9 | |||
10 | COMPATIBLE_MACHINE = "dra7xx" | ||
11 | |||
12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
13 | |||
14 | SRCREV = "e3d8db1aa935775f9d196ad7428e0cd9864a36ca" | ||
15 | BRANCH ?= "master" | ||
16 | |||
17 | SRC_URI = "git://git.ti.com/vpe_tests/vpe_tests.git;protocol=git;branch=${BRANCH}" | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | FLOATABI = "${@bb.utils.contains("TUNE_FEATURES", "vfp", bb.utils.contains("TUNE_FEATURES", "callconvention-hard", " -mfloat-abi=hard", " -mfloat-abi=softfp", d), "" ,d)}" | ||
22 | |||
23 | # The test application needs additional include headers from the kernel | ||
24 | EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc ${FLOATABI}" KDIR="${STAGING_KERNEL_DIR}/include/uapi -I${STAGING_KERNEL_DIR}/include"' | ||
25 | |||
26 | do_install() { | ||
27 | oe_runmake DESTDIR="${D}" install | ||
28 | rm -rf ${D}${base_libdir}/firmware/vpdma-*.bin | ||
29 | rmdir -p ${D}${base_libdir}/firmware || true | ||
30 | } | ||
diff --git a/meta-ti-bsp/recipes-bsp/wl18xx-fw/wl18xx-fw/0001-Add-Makefile-to-install-firmware-files.patch b/meta-ti-bsp/recipes-bsp/wl18xx-fw/wl18xx-fw/0001-Add-Makefile-to-install-firmware-files.patch new file mode 100644 index 00000000..a8db0770 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/wl18xx-fw/wl18xx-fw/0001-Add-Makefile-to-install-firmware-files.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 3a8fc3ccf00796254d6cef4b6d4cd70dc37012e1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Fri, 10 Mar 2017 13:28:29 -0500 | ||
4 | Subject: [PATCH] Add Makefile to install firmware files | ||
5 | |||
6 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
7 | --- | ||
8 | Makefile | 9 +++++++++ | ||
9 | 1 file changed, 9 insertions(+) | ||
10 | create mode 100644 Makefile | ||
11 | |||
12 | diff --git a/Makefile b/Makefile | ||
13 | new file mode 100644 | ||
14 | index 0000000..1cf38e3 | ||
15 | --- /dev/null | ||
16 | +++ b/Makefile | ||
17 | @@ -0,0 +1,9 @@ | ||
18 | +# Installs the the ti-connectivity wlan firmware files into the root file system | ||
19 | + | ||
20 | +install: | ||
21 | + @if [ ! -d $(DESTDIR) ] ; then \ | ||
22 | + echo "Target filesystem directory doesn't exist."; \ | ||
23 | + exit 1; \ | ||
24 | + fi | ||
25 | + install -d $(DEST_DIR)/lib/firmware/ti-connectivity | ||
26 | + cp *.bin $(DEST_DIR)/lib/firmware/ti-connectivity/ | ||
27 | -- | ||
28 | 2.7.4 | ||
29 | |||
diff --git a/meta-ti-bsp/recipes-bsp/wl18xx-fw/wl18xx-fw_8.9.0.0.86.bb b/meta-ti-bsp/recipes-bsp/wl18xx-fw/wl18xx-fw_8.9.0.0.86.bb new file mode 100644 index 00000000..48b500a8 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/wl18xx-fw/wl18xx-fw_8.9.0.0.86.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | DESCRIPTION = "Firmware files for use with TI wl18xx" | ||
2 | LICENSE = "TI-TSPA" | ||
3 | LIC_FILES_CHKSUM = "file://LICENCE;md5=4977a0fe767ee17765ae63c435a32a9e" | ||
4 | |||
5 | SRC_URI = " \ | ||
6 | git://git.ti.com/wilink8-wlan/wl18xx_fw.git;protocol=git;branch=${BRANCH} \ | ||
7 | file://0001-Add-Makefile-to-install-firmware-files.patch \ | ||
8 | " | ||
9 | |||
10 | SRCREV = "5ec05007f2662f460f881c5868311fd3ab7e6e71" | ||
11 | BRANCH = "master" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | CLEANBROKEN = "1" | ||
16 | |||
17 | do_compile() { | ||
18 | : | ||
19 | } | ||
20 | |||
21 | do_install() { | ||
22 | oe_runmake 'DEST_DIR=${D}' install | ||
23 | } | ||
24 | |||
25 | FILES:${PN} = "/lib/firmware/ti-connectivity/*" | ||
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 @@ | |||
1 | DESCRIPTION = "Shared Transport Line Discipline User Mode initialisation Manager Daemon" | ||
2 | LICENSE = "GPLv2+" | ||
3 | LIC_FILES_CHKSUM = "file://uim.c;beginline=1;endline=18;md5=9f0bbfbc10c67689e81a523e2976c31e" | ||
4 | |||
5 | INITSCRIPT_NAME = "uim-sysfs" | ||
6 | INITSCRIPT_PARAMS = "defaults 03" | ||
7 | |||
8 | inherit update-rc.d | ||
9 | |||
10 | SRCREV = "a75f45be2d5c74fc1dd913d08afc30f09a230aa9" | ||
11 | SRC_URI = "git://git.ti.com/ti-bt/uim.git" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | do_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 @@ | |||
1 | From e3f694496322d3679dd9b007dc3caa4343f0f376 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 11 Aug 2020 18:12:58 -0700 | ||
4 | Subject: [PATCH] plt.h: Do not define EFUSE_PARAMETER_TYPE_ENMT type enum in | ||
5 | header file | ||
6 | |||
7 | gcc10 uses -fno-common by default and this causes multiple definitions | ||
8 | of this enum in all files including plt.h file, therefore just define | ||
9 | the type in header file | ||
10 | |||
11 | Fixes | ||
12 | arm-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 | |||
14 | Upstream-Status: Pending | ||
15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
16 | --- | ||
17 | plt.h | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/plt.h b/plt.h | ||
21 | index 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 | -- | ||
34 | 2.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 @@ | |||
1 | DESCRIPTION = "The calibrator utility for TI wireless solution based on wl18xx driver" | ||
2 | LICENSE = "BSD" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=4725015cb0be7be389cf06deeae3683d" | ||
4 | |||
5 | DEPENDS = "libnl" | ||
6 | RDEPENDS:${PN} = "wl18xx-fw" | ||
7 | |||
8 | #Tag: R8.7_SP3 (8.7.3) | ||
9 | SRCREV = "5048b59a444ac59ba7171d6e122d5a84581aebf2" | ||
10 | SRC_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 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | export CROSS_COMPILE = "${TARGET_PREFIX}" | ||
17 | |||
18 | EXTRA_OEMAKE = "CFLAGS="${CFLAGS} -I${STAGING_INCDIR}/libnl3/ -DCONFIG_LIBNL32 " \ | ||
19 | LDFLAGS="${LDFLAGS} -L${STAGING_LIBDIR}" \ | ||
20 | CC="${CC}" \ | ||
21 | NLVER=3" | ||
22 | |||
23 | do_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 @@ | |||
1 | From ba1ac3862c8c3b2dbb615dc342b7fb1eaa96900f Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Fri, 10 Nov 2017 17:02:39 -0500 | ||
4 | Subject: [PATCH] print_stat.sh: replace /system/bin/sh with /bin/sh | ||
5 | |||
6 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
7 | --- | ||
8 | testing/print_stat.sh | 2 +- | ||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/testing/print_stat.sh b/testing/print_stat.sh | ||
12 | index 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 | -- | ||
22 | 2.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 @@ | |||
1 | DESCRIPTION = "Scripts and configuration files for TI wireless drivers" | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://README;beginline=1;endline=21;md5=b8d6a0865f50159bf5c0d175d1f4a705" | ||
4 | |||
5 | # Tag: R8.7_SP3 (8.7.3) | ||
6 | SRCREV = "a07b6e711d2a70608101d3d6cdc5749c4d8a96d5" | ||
7 | BRANCH = "sitara-scripts" | ||
8 | SRC_URI = "git://git.ti.com/wilink8-wlan/wl18xx-target-scripts.git;protocol=git;branch=${BRANCH} \ | ||
9 | file://0001-print_stat.sh-replace-system-bin-sh-with-bin-sh.patch \ | ||
10 | " | ||
11 | |||
12 | PR = "r1" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | FILES:${PN} += "${datadir}/wl18xx/" | ||
17 | |||
18 | do_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 @@ | |||
1 | DESCRIPTION = "Configuration utility for TI wireless drivers" | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://README;beginline=1;endline=21;md5=adc05a1903d3f107f85c90328e3a9438" | ||
4 | |||
5 | # Tag: R8.7_SP3 (8.7.3) | ||
6 | SRCREV = "5048b59a444ac59ba7171d6e122d5a84581aebf2" | ||
7 | SRC_URI = "git://git.ti.com/wilink8-wlan/18xx-ti-utils.git" | ||
8 | |||
9 | S = "${WORKDIR}/git/wlconf" | ||
10 | |||
11 | EXTRA_OEMAKE = "CC="${CC}"" | ||
12 | |||
13 | do_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 | |||
33 | FILES:${PN} += " \ | ||
34 | ${sbindir}/wlconf \ | ||
35 | ${sbindir}/wlconf/official_inis \ | ||
36 | /lib/firmware/ti-connectivity/wl18xx-conf.bin \ | ||
37 | " | ||
38 | |||
39 | FILES:${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 | ||
3 | SUBSYSTEM=="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 | ||
17 | SUBSYSTEM=="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 @@ | |||
1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | ||
2 | |||
3 | SRC_URI:append:ti-soc = " \ | ||
4 | file://omap-tty.rules \ | ||
5 | file://firmware.rules \ | ||
6 | " | ||
7 | |||
8 | PR:append:ti-soc = ".3" | ||
9 | |||
10 | do_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 | ||
2 | SRCREV = "dd0c82fb5763a6b32dc6d68e561efb66ab8283d7" | ||
3 | |||
4 | PV = "1.1.0" | ||
5 | INC_PR = "r7" | ||
6 | |||
7 | SRC_URI = "git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=${BRANCH}" | ||
8 | |||
9 | BRANCH = "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 @@ | |||
1 | From 0aa294e2bbd37a42266e59cb67687e57bfba4a88 Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Sat, 15 Feb 2020 15:59:37 -0500 | ||
4 | Subject: [PATCH] libbfd.h: suppress GCC9 -Wstringop-truncation | ||
5 | |||
6 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
7 | --- | ||
8 | gdbc6x/bfd/libbfd.h | 4 ++++ | ||
9 | 1 file changed, 4 insertions(+) | ||
10 | |||
11 | diff --git a/gdbc6x/bfd/libbfd.h b/gdbc6x/bfd/libbfd.h | ||
12 | index 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 | -- | ||
27 | 2.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 | |||
3 | GDB_DEVICE_NAME='/dev/gdbtty$i' | ||
4 | DSP_FIRMWARE_NAME='/lib/firmware/dra7-dsp$[$i+1]-fw.xe66' | ||
5 | |||
6 | DSP_L2_GLOBAL_OFFSET="40000000" | ||
7 | DSP_L2_GLOBAL_SHIFT="00800000" | ||
8 | |||
9 | case "$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 | ;; | ||
46 | esac | ||
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 @@ | |||
1 | DESCRIPTION = "GNU debugger for TI C6X DSP." | ||
2 | SECTION = "devel" | ||
3 | LICENSE = "GPLv3+" | ||
4 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=bf0fe2872eb3dfeebb2cbe38206fe81f" | ||
5 | |||
6 | DEPENDS = "ncurses bison-native texinfo flex-native gettext" | ||
7 | |||
8 | COMPATIBLE_MACHINE = "dra7xx" | ||
9 | |||
10 | PR = "${INC_PR}.1" | ||
11 | |||
12 | SRC_URI:append = " \ | ||
13 | file://init \ | ||
14 | file://0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch;striplevel=2 \ | ||
15 | " | ||
16 | |||
17 | S = "${WORKDIR}/git/gdbc6x" | ||
18 | |||
19 | inherit update-rc.d | ||
20 | inherit gettext | ||
21 | |||
22 | CFLAGS += "-fcommon" | ||
23 | |||
24 | do_configure () { | ||
25 | cd ${S} | ||
26 | ./configure --program-suffix=c6x --target=tic6x-elf-tirtos --host=${HOST_SYS} --prefix=${S}/install_gdb | ||
27 | } | ||
28 | |||
29 | do_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 | |||
42 | RDEPENDS:${PN} = "gdbserverproxy-module-drv bash" | ||
43 | |||
44 | include gdbc6x.inc | ||
45 | |||
46 | INITSCRIPT_NAME = "gdbserverproxy" | ||
47 | INITSCRIPT_PARAMS = "defaults 95" | ||
48 | |||
49 | PARALLEL_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 @@ | |||
1 | DESCRIPTION = "TI gdb-server to be used with c6xgdb." | ||
2 | LICENSE = "BSD" | ||
3 | LIC_FILES_CHKSUM = "file://../debian/copyright;md5=82c616b6c8f9c11c46feaaf8f9a11495" | ||
4 | |||
5 | DEPENDS = "ti-xdais ti-framework-components ti-cgt6x-native ti-sysbios ti-xdctools-native" | ||
6 | |||
7 | PR = "${INC_PR}.0" | ||
8 | |||
9 | S = "${WORKDIR}/git/gdbserver-c6x/src" | ||
10 | |||
11 | PLATFORM = "" | ||
12 | PLATFORM:dra7xx = "DRA7xx_PLATFORM" | ||
13 | |||
14 | EXTRA_OEMAKE = "PLATFORM=${PLATFORM}" | ||
15 | |||
16 | export XDAIS_DIR = "${XDAIS_INSTALL_DIR}" | ||
17 | export FC_DIR = "${FC_INSTALL_DIR}" | ||
18 | export TI_CGT_INSTALL = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
19 | export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}" | ||
20 | export 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. | ||
24 | EXTRA_OECONF = "--disable-nls" | ||
25 | do_configure() { | ||
26 | : | ||
27 | } | ||
28 | |||
29 | do_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 | |||
36 | COMPATIBLE_MACHINE = "dra7xx" | ||
37 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
38 | |||
39 | FILES:${PN}-dev += "\ | ||
40 | ${datadir}/ti/gdbc6x \ | ||
41 | " | ||
42 | |||
43 | include gdbc6x.inc | ||
44 | |||
45 | require recipes-ti/includes/ti-paths.inc | ||
46 | |||
47 | ALLOW_EMPTY:${PN} = "1" | ||
48 | |||
49 | PARALLEL_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 @@ | |||
1 | DESCRIPTION = "Interface for GDB to commincate witha TI C66X DSP" | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=75859989545e37968a99b631ef42722e" | ||
4 | |||
5 | # This package builds a kernel module, use kernel PR as base and append a local | ||
6 | MACHINE_KERNEL_PR:append = "b" | ||
7 | PR = "${MACHINE_KERNEL_PR}" | ||
8 | PV:append = "+git${SRCPV}" | ||
9 | |||
10 | S = "${WORKDIR}/git/kernel_module/gdbproxy-mod" | ||
11 | |||
12 | inherit module | ||
13 | |||
14 | PLATFORM = "" | ||
15 | PLATFORM:dra7xx = "DRA7xx_PLATFORM" | ||
16 | |||
17 | EXTRA_OEMAKE = "PLATFORM=${PLATFORM} KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}" | ||
18 | |||
19 | # The following is to prevent an unused configure.ac from erroneously | ||
20 | # triggering the QA check for gettext. | ||
21 | EXTRA_OECONF = "--disable-nls" | ||
22 | do_configure() { | ||
23 | : | ||
24 | } | ||
25 | |||
26 | COMPATIBLE_MACHINE = "dra7xx" | ||
27 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
28 | |||
29 | include gdbc6x.inc | ||
30 | |||
31 | KERNEL_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 @@ | |||
1 | SUMMARY = "ION Userspace Memory Allocator Library" | ||
2 | HOMEPAGE = "https://github.com/glneo/libion" | ||
3 | LICENSE = "Apache-2.0" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" | ||
5 | |||
6 | PV = "1.0.0" | ||
7 | |||
8 | BRANCH = "master" | ||
9 | SRC_URI = "git://github.com/glneo/libion.git;protocol=https;branch=${BRANCH}" | ||
10 | SRCREV = "7e138fc31febbb67734792c1a911439bfd6d23eb" | ||
11 | |||
12 | S = "${WORKDIR}/git" | ||
13 | |||
14 | inherit 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 @@ | |||
1 | SUMMARY = "Diagnostic tool for TI K3 processors" | ||
2 | |||
3 | LICENSE = "BSD-3-Clause" | ||
4 | LIC_FILES_CHKSUM = "file://common/k3conf.c;beginline=1;endline=34;md5=7154c0ffcd418064ffa528e34e70ca9d" | ||
5 | |||
6 | PV = "0.2+git${SRCPV}" | ||
7 | |||
8 | COMPATIBLE_MACHINE = "k3" | ||
9 | |||
10 | BRANCH ?= "master" | ||
11 | SRCREV = "79f007cd462384ce22e750e9002b714878f56892" | ||
12 | |||
13 | SRC_URI = "git://git.ti.com/k3conf/k3conf.git;protocol=git;branch=${BRANCH}" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | do_compile () { | ||
18 | oe_runmake CC="${CC}" CROSS_COMPILE=${TARGET_PREFIX} all | ||
19 | } | ||
20 | |||
21 | do_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 @@ | |||
1 | DESCRIPTION = "Userspace libraries for GC320 chipset on TI SoCs" | ||
2 | HOMEPAGE = "https://git.ti.com/graphics/ti-gc320-libs" | ||
3 | LICENSE = "TI-TSPA" | ||
4 | LIC_FILES_CHKSUM = "file://Manifest.html;md5=a9121e8936ace09820d23f7626daaca5" | ||
5 | |||
6 | inherit features_check | ||
7 | |||
8 | REQUIRED_MACHINE_FEATURES = "gc320" | ||
9 | |||
10 | COMPATIBLE_MACHINE = "omap-a15" | ||
11 | |||
12 | CLEANBROKEN = "1" | ||
13 | |||
14 | BRANCH = "ti-${PV}" | ||
15 | |||
16 | SRC_URI = "git://git.ti.com/graphics/ti-gc320-libs.git;protocol=git;branch=${BRANCH}" | ||
17 | SRCREV = "c0afab259de59909cfe74c01f3f7fbaa147f94b5" | ||
18 | |||
19 | RRECOMMENDS:${PN} = "ti-gc320-driver" | ||
20 | |||
21 | # There's only hardfp version available | ||
22 | python __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 | |||
33 | TARGET_PRODUCT = "jacinto6evm" | ||
34 | |||
35 | PR = "r3" | ||
36 | |||
37 | S = "${WORKDIR}/git" | ||
38 | |||
39 | EXTRA_OEMAKE += "DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT} LIBDIR=${libdir}" | ||
40 | |||
41 | do_install() { | ||
42 | oe_runmake install | ||
43 | chown -R root:root ${D} | ||
44 | } | ||
45 | |||
46 | INSANE_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 @@ | |||
1 | DESCRIPTION = "Userspace libraries for PowerVR Rogue GPU on TI SoCs" | ||
2 | HOMEPAGE = "http://git.ti.com/graphics/ti-img-rogue-umlibs" | ||
3 | LICENSE = "TI-TFL" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=7232b98c1c58f99e3baa03de5207e76f" | ||
5 | |||
6 | inherit features_check | ||
7 | |||
8 | REQUIRED_MACHINE_FEATURES = "gpu" | ||
9 | |||
10 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
11 | COMPATIBLE_MACHINE = "j7" | ||
12 | |||
13 | PR = "r3" | ||
14 | |||
15 | BRANCH = "linuxws/dunfell/k5.10/${PV}" | ||
16 | |||
17 | SRC_URI = "git://git.ti.com/graphics/ti-img-rogue-umlibs.git;branch=${BRANCH}" | ||
18 | |||
19 | SRCREV = "5ef38353c38d921a65ea6df75c7b6ce710b66034" | ||
20 | |||
21 | PVR_SOC ?= "j721e_linux" | ||
22 | PVR_BUILD ?= "release" | ||
23 | PVR_WS = "wayland" | ||
24 | |||
25 | INITSCRIPT_NAME = "rc.pvr" | ||
26 | INITSCRIPT_PARAMS = "defaults 8" | ||
27 | |||
28 | inherit update-rc.d | ||
29 | |||
30 | PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2 virtual/libgbm" | ||
31 | |||
32 | DEPENDS += "libdrm wayland expat" | ||
33 | RDEPENDS:${PN} += "bash" | ||
34 | RDEPENDS:${PN} += "wayland expat" | ||
35 | |||
36 | RPROVIDES:${PN} = "libegl libgles1 libgles2 libgbm" | ||
37 | RPROVIDES:${PN}-dev = "libegl-dev libgles1-dev libgles2-dev libgbm-dev" | ||
38 | RPROVIDES:${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg" | ||
39 | |||
40 | RREPLACES:${PN} = "libegl libgles1 liblges2 libgbm" | ||
41 | RREPLACES:${PN}-dev = "libegl-dev libgles1-dev libgles2-dev libgbm-dev" | ||
42 | RREPLACES:${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg" | ||
43 | |||
44 | RCONFLICTS:${PN} = "libegl libgles1 libgles2 libgbm" | ||
45 | RCONFLICTS:${PN}-dev = "libegl-dev libgles1-dev libgles2-dev libgbm-dev" | ||
46 | RCONFLICTS:${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg" | ||
47 | |||
48 | RRECOMMENDS:${PN} += "ti-img-rogue-driver" | ||
49 | |||
50 | S = "${WORKDIR}/git" | ||
51 | |||
52 | do_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 | |||
57 | FILES:${PN} += " ${base_libdir}/firmware/" | ||
58 | FILES:${PN} += " ${datadir}/" | ||
59 | |||
60 | PACKAGES =+ "${PN}-plugins" | ||
61 | FILES:${PN}-plugins = "${libdir}/libGLESv2.so ${libdir}/libGLESv1_CM.so ${libdir}/libEGL.so ${libdir}/dri/pvr_dri.so" | ||
62 | RDEPENDS:${PN} += "${PN}-plugins" | ||
63 | |||
64 | ALLOW_EMPTY:${PN}-plugins = "1" | ||
65 | |||
66 | INSANE_SKIP:${PN} += "ldflags arch already-stripped" | ||
67 | INSANE_SKIP:${PN}-plugins = "dev-so" | ||
68 | |||
69 | CLEANBROKEN = "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 @@ | |||
1 | DESCRIPTION = "Userspace libraries for PowerVR SGX chipset on TI SoCs" | ||
2 | HOMEPAGE = "https://git.ti.com/graphics/omap5-sgx-ddk-um-linux" | ||
3 | LICENSE = "TI-TSPA" | ||
4 | LIC_FILES_CHKSUM = "file://TI-Linux-Graphics-DDK-UM-Manifest.doc;md5=b17390502bc89535c86cfbbae961a2a8" | ||
5 | |||
6 | inherit features_check | ||
7 | |||
8 | REQUIRED_MACHINE_FEATURES = "gpu" | ||
9 | |||
10 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
11 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k3" | ||
12 | |||
13 | PR = "r37" | ||
14 | |||
15 | BRANCH = "ti-img-sgx/dunfell/${PV}" | ||
16 | |||
17 | SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}" | ||
18 | SRCREV = "742cf38aba13e1ba1a910cf1f036a1a212c263b6" | ||
19 | |||
20 | TARGET_PRODUCT:omap-a15 = "jacinto6evm" | ||
21 | TARGET_PRODUCT:ti33x = "ti335x" | ||
22 | TARGET_PRODUCT:ti43x = "ti437x" | ||
23 | TARGET_PRODUCT:k3 = "ti654x" | ||
24 | |||
25 | INITSCRIPT_NAME = "rc.pvr" | ||
26 | INITSCRIPT_PARAMS = "defaults 8" | ||
27 | |||
28 | inherit update-rc.d | ||
29 | |||
30 | PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2 virtual/libgbm" | ||
31 | |||
32 | DEPENDS += "libdrm udev wayland wayland-protocols libffi expat" | ||
33 | DEPENDS:append:libc-musl = " gcompat" | ||
34 | RDEPENDS:${PN} += "libdrm libdrm-omap udev wayland wayland-protocols libffi expat" | ||
35 | |||
36 | RPROVIDES:${PN} = "libegl libgles1 libgles2 libgbm" | ||
37 | RPROVIDES:${PN}-dev = "libegl-dev libgles1-dev libgles2-dev libgbm-dev" | ||
38 | RPROVIDES:${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg libgbm-dbg" | ||
39 | |||
40 | RREPLACES:${PN} = "libegl libgles1 libgles2 libgbm" | ||
41 | RREPLACES:${PN}-dev = "libegl-dev libgles1-dev libgles2-dev libgbm-dev" | ||
42 | RREPLACES:${PN}-dbg = "libegl-dbg libgles1-dbg libgles2-dbg libgbm-dbg" | ||
43 | |||
44 | RCONFLICTS:${PN} = "libegl libgles1 libgles2 libgbm" | ||
45 | RCONFLICTS:${PN}-dev = "libegl-dev libgles1-dev libgles2-dev libgbm-dev" | ||
46 | RCONFLICTS:${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 | ||
49 | RPROVIDES:${PN} += "libGLESv2.so.1" | ||
50 | |||
51 | RRECOMMENDS:${PN} += "ti-sgx-ddk-km" | ||
52 | |||
53 | S = "${WORKDIR}/git" | ||
54 | |||
55 | do_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 | |||
62 | FILES:${PN} = "${bindir}/*" | ||
63 | FILES:${PN} += " ${libdir}/*" | ||
64 | FILES:${PN} += "${includedir}/*" | ||
65 | FILES:${PN} += "${sysconfdir}/*" | ||
66 | |||
67 | INSANE_SKIP:${PN} += "dev-so ldflags useless-rpaths" | ||
68 | INSANE_SKIP:${PN} += "already-stripped dev-deps" | ||
69 | |||
70 | CLEANBROKEN = "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 | |||
5 | do_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 | ||
4 | CMEM_MACHINE = "${MACHINE}" | ||
5 | CMEM_MACHINE:am57xx-evm = "am571x am572x am572idk am5729-beagleboneai am574x" | ||
6 | CMEM_MACHINE:am57xx-hs-evm = "am571x am572x am572idk am5729-beagleboneai am574x" | ||
7 | CMEM_MACHINE:dra7xx-evm = "dra71x dra72x dra74x dra76x" | ||
8 | CMEM_MACHINE:dra7xx-hs-evm = "dra71x dra72x dra74x dra76x" | ||
9 | |||
10 | # Set cmem.dtsi per machine or machine variant | ||
11 | CMEM_DTSI = "cmem.dtsi" | ||
12 | CMEM_DTSI_am571x = "cmem-am571x.dtsi" | ||
13 | CMEM_DTSI_am572idk = "cmem-am572idk.dtsi" | ||
14 | CMEM_DTSI_am5729-beagleboneai = "cmem-am5729-beagleboneai.dtsi" | ||
15 | CMEM_DTSI_am574x = "cmem-am574x.dtsi" | ||
16 | CMEM_DTSI_dra71x = "cmem-dra71x.dtsi" | ||
17 | CMEM_DTSI_dra72x = "cmem-dra72x.dtsi" | ||
18 | CMEM_DTSI_dra76x = "cmem-dra76x.dtsi" | ||
19 | |||
20 | # Split device trees between variants | ||
21 | CMEM_DEVICETREE = "${KERNEL_DEVICETREE}" | ||
22 | CMEM_DEVICETREE_am571x = "am571x-idk.dtb am571x-idk-lcd-osd101t2045.dtb am571x-idk-lcd-osd101t2587.dtb" | ||
23 | CMEM_DEVICETREE_am572x = "am57xx-beagle-x15.dtb am57xx-beagle-x15-revc.dtb" | ||
24 | CMEM_DEVICETREE_am572idk = "am572x-idk.dtb am572x-idk-lcd-osd101t2045.dtb am572x-idk-lcd-osd101t2587.dtb" | ||
25 | CMEM_DEVICETREE_am5729-beagleboneai = "am5729-beagleboneai.dtb" | ||
26 | CMEM_DEVICETREE_am574x = "am574x-idk.dtb am574x-idk-lcd-osd101t2587.dtb" | ||
27 | CMEM_DEVICETREE_dra71x = "dra71-evm.dtb" | ||
28 | CMEM_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" | ||
30 | CMEM_DEVICETREE_dra74x = "dra7-evm.dtb dra7-evm-lcd-osd101t2045.dtb dra7-evm-lcd-osd101t2587.dtb" | ||
31 | CMEM_DEVICETREE_dra76x = "dra76-evm.dtb dra76-evm-tfp410.dtb" | ||
32 | |||
33 | # Flag to enable CMEM injection | ||
34 | RESERVE_CMEM ?= "0" | ||
35 | |||
36 | # Variables which influence setup_cmem | ||
37 | CMEM_VARS = "RESERVE_CMEM CMEM_MACHINE" | ||
38 | CMEM_VARS += "CMEM_DTSI ${@' '.join(map(lambda s: 'CMEM_DTSI_' + s, (d.getVar('CMEM_MACHINE') or '').split()))}" | ||
39 | CMEM_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 | ||
42 | python 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 | |||
60 | python 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 | |||
95 | do_patch[postfuncs] += "do_setup_cmem" | ||
96 | do_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 | ||
2 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base += "kernel-devicetree" | ||
3 | |||
4 | # Add run-time dependency for PM firmware to the rootfs | ||
5 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " amx3-cm3" | ||
6 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " amx3-cm3" | ||
7 | |||
8 | # Add run-time dependency for VPE VPDMA firmware to the rootfs | ||
9 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " vpdma-fw" | ||
10 | |||
11 | # Add run-time dependency for Goodix firmware to the rootfs | ||
12 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:dra7xx = " goodix-fw" | ||
13 | |||
14 | # Add run-time dependency for PRU Ethernet firmware to the rootfs | ||
15 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am57xx-evm = " prueth-fw prusw-fw pruhsr-fw pruprp-fw" | ||
16 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am57xx-hs-evm = " prueth-fw prusw-fw pruhsr-fw pruprp-fw" | ||
17 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti43x = " prueth-fw pruhsr-fw pruprp-fw" | ||
18 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:ti33x = " prueth-fw pruhsr-fw pruprp-fw" | ||
19 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx = " prueth-fw-am65x" | ||
20 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am65xx-evm = " prueth-fw-am65x-sr2 prusw-fw-am65x-sr2" | ||
21 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:am64xx-evm = " prueth-fw-am65x-sr2" | ||
22 | |||
23 | # Add run-time dependency for Cadence MHDP firmware to the rootfs | ||
24 | RDEPENDS:${KERNEL_PACKAGE_NAME}-base:append:j7 = " cadence-mhdp-fw" | ||
25 | |||
26 | # Add run-time dependency for Video Decoding firmware to the rootfs | ||
27 | RDEPENDS:${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 @@ | |||
1 | SECTION = "kernel" | ||
2 | SUMMARY = "Mainline Linux kernel for TI devices (with ti-upstream-tools)" | ||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
5 | |||
6 | inherit kernel | ||
7 | |||
8 | DEFCONFIG_BUILDER = "${WORKDIR}/ti-upstream-tools/config/defconfig_builder.sh" | ||
9 | require recipes-kernel/linux/setup-defconfig.inc | ||
10 | require recipes-kernel/linux/kernel-rdepends.inc | ||
11 | require recipes-kernel/linux/ti-kernel.inc | ||
12 | |||
13 | DEPENDS += "gmp-native" | ||
14 | |||
15 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \ | ||
16 | ${EXTRA_DTC_ARGS}" | ||
17 | |||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | BRANCH = "master" | ||
21 | TOOLS_BRANCH = "master" | ||
22 | |||
23 | # 5.15 Mainline version | ||
24 | SRCREV = "8bb7eca972ad531c9b149c0a51ab43a417385813" | ||
25 | PV = "5.15+git${SRCPV}" | ||
26 | |||
27 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | ||
28 | MACHINE_KERNEL_PR:append = "b" | ||
29 | PR = "${MACHINE_KERNEL_PR}" | ||
30 | |||
31 | KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git" | ||
32 | KERNEL_GIT_PROTOCOL = "git" | ||
33 | SRC_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 | |||
39 | SRCREV_ti-upstream-tools = "0f60697843bba6f8d721b14da92b1652563ccb95" | ||
40 | SRCREV_FORMAT = "linux" | ||
41 | |||
42 | KERNEL_DEVICETREE = "" | ||
43 | |||
44 | kernel_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 | |||
49 | do_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 | |||
59 | do_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 | |||
70 | do_shared_workdir:prepend() { | ||
71 | cd ${B} | ||
72 | echo >> Module.symvers | ||
73 | } | ||
74 | |||
75 | FILES:${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 @@ | |||
1 | require 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 | ||
5 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.10:" | ||
6 | |||
7 | BRANCH = "ti-rt-linux-5.10.y" | ||
8 | |||
9 | SRCREV = "541ec9a6995c3dd881d6f0b63cc714a08ded457d" | ||
10 | PV = "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 @@ | |||
1 | require 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 | ||
5 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.4:" | ||
6 | |||
7 | BRANCH = "ti-rt-linux-5.4.y" | ||
8 | |||
9 | SRCREV = "519667b0d81d74a6e55105dcd6072ae550352599" | ||
10 | PV = "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 @@ | |||
1 | require 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 | ||
5 | FILESEXTRAPATHS: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 @@ | |||
1 | require 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 | ||
5 | FILESEXTRAPATHS: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 @@ | |||
1 | SECTION = "kernel" | ||
2 | SUMMARY = "Linux kernel for TI devices" | ||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
5 | |||
6 | inherit kernel | ||
7 | |||
8 | DEFCONFIG_BUILDER = "${S}/ti_config_fragments/defconfig_builder.sh" | ||
9 | require recipes-kernel/linux/setup-defconfig.inc | ||
10 | require recipes-kernel/linux/cmem.inc | ||
11 | require recipes-kernel/linux/ti-uio.inc | ||
12 | require recipes-kernel/linux/bundle-devicetree.inc | ||
13 | require recipes-kernel/linux/kernel-rdepends.inc | ||
14 | require recipes-kernel/linux/ti-kernel.inc | ||
15 | |||
16 | # Look in the generic major.minor directory for files | ||
17 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.10:" | ||
18 | |||
19 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \ | ||
20 | ${EXTRA_DTC_ARGS}" | ||
21 | |||
22 | S = "${WORKDIR}/git" | ||
23 | |||
24 | BRANCH = "ti-linux-5.10.y" | ||
25 | |||
26 | SRCREV = "dcc6bedb2c2bdb509709e4ae08303206e95ce6c2" | ||
27 | PV = "5.10.65+git${SRCPV}" | ||
28 | |||
29 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | ||
30 | MACHINE_KERNEL_PR:append = "b" | ||
31 | PR = "${MACHINE_KERNEL_PR}" | ||
32 | |||
33 | KERNEL_GIT_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git" | ||
34 | KERNEL_GIT_PROTOCOL = "git" | ||
35 | SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ | ||
36 | file://defconfig" | ||
37 | |||
38 | FILES:${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb" | ||
39 | |||
40 | # Special configuration for remoteproc/rpmsg IPC modules | ||
41 | module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" | ||
42 | module_conf_ti_k3_r5_remoteproc = "softdep ti_k3_r5_remoteproc pre: virtio_rpmsg_bus" | ||
43 | module_conf_ti_k3_dsp_remoteproc = "softdep ti_k3_dsp_remoteproc pre: virtio_rpmsg_bus" | ||
44 | KERNEL_MODULE_PROBECONF += "rpmsg_client_sample ti_k3_r5_remoteproc ti_k3_dsp_remoteproc" | ||
45 | KERNEL_MODULE_AUTOLOAD:append:j7 = " rpmsg_kdrv_switch" | ||
46 | |||
47 | # Disable SA2UL for AM64x HS and J7200 HS | ||
48 | module_conf_sa2ul:am64xx-hs-evm = "blacklist sa2ul" | ||
49 | KERNEL_MODULE_PROBECONF:append:am64xx-hs-evm = " sa2ul" | ||
50 | module_conf_sa2ul:j7200-hs-evm = "blacklist sa2ul" | ||
51 | KERNEL_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 @@ | |||
1 | SECTION = "kernel" | ||
2 | SUMMARY = "Linux kernel for TI devices" | ||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" | ||
5 | |||
6 | inherit kernel | ||
7 | |||
8 | DEFCONFIG_BUILDER = "${S}/ti_config_fragments/defconfig_builder.sh" | ||
9 | require recipes-kernel/linux/setup-defconfig.inc | ||
10 | require recipes-kernel/linux/cmem.inc | ||
11 | require recipes-kernel/linux/ti-uio.inc | ||
12 | require recipes-kernel/linux/bundle-devicetree.inc | ||
13 | require recipes-kernel/linux/kernel-rdepends.inc | ||
14 | |||
15 | # Look in the generic major.minor directory for files | ||
16 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-5.4:" | ||
17 | |||
18 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" | ||
19 | |||
20 | S = "${WORKDIR}/git" | ||
21 | |||
22 | BRANCH = "ti-linux-5.4.y" | ||
23 | |||
24 | SRCREV = "023faefa70274929bff92dc41167b007f7523792" | ||
25 | PV = "5.4.106+git${SRCPV}" | ||
26 | |||
27 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | ||
28 | MACHINE_KERNEL_PR:append = "a" | ||
29 | PR = "${MACHINE_KERNEL_PR}" | ||
30 | |||
31 | KERNEL_GIT_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git" | ||
32 | KERNEL_GIT_PROTOCOL = "git" | ||
33 | SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ | ||
34 | file://defconfig" | ||
35 | |||
36 | FILES:${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb" | ||
37 | |||
38 | # Special configuration for remoteproc/rpmsg IPC modules | ||
39 | module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" | ||
40 | module_conf_ti_k3_r5_remoteproc = "softdep ti_k3_r5_remoteproc pre: virtio_rpmsg_bus" | ||
41 | module_conf_ti_k3_dsp_remoteproc = "softdep ti_k3_dsp_remoteproc pre: virtio_rpmsg_bus" | ||
42 | KERNEL_MODULE_PROBECONF += "rpmsg_client_sample ti_k3_r5_remoteproc ti_k3_dsp_remoteproc" | ||
43 | KERNEL_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 | ||
3 | def get_git_revision(p): | ||
4 | import subprocess | ||
5 | |||
6 | try: | ||
7 | return subprocess.Popen("git rev-parse HEAD 2>/dev/null ", cwd=p, shell=True, stdout=subprocess.PIPE, universal_newlines=True).communicate()[0].rstrip() | ||
8 | except OSError: | ||
9 | return None | ||
10 | |||
11 | KERNEL_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 | |||
18 | do_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 | |||
3 | def get_extra_dtc_args(d): | ||
4 | if d.getVar('KERNEL_DTB_OVERLAY_SUPPORT') == "1": | ||
5 | return "DTC_FLAGS=-@" | ||
6 | else: | ||
7 | return "" | ||
8 | |||
9 | EXTRA_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 @@ | |||
1 | SRC_URI:append:dra7xx = " file://am57xx-pru-uio.dtsi \ | ||
2 | file://am571x-pru-uio.dtsi \ | ||
3 | " | ||
4 | SRC_URI:append:ti33x = " file://am335x-pru-uio.dtsi" | ||
5 | SRC_URI:append:ti43x = " file://am437x-pru-uio.dtsi" | ||
6 | |||
7 | DTSI_LIST = "" | ||
8 | |||
9 | do_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 | |||
24 | do_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 | |||
47 | do_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 | |||
59 | do_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 | |||
71 | do_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 @@ | |||
1 | SUMMARY = "Library for remotely invoking HW accelerated codecs on IVA-HD" | ||
2 | LICENSE = "BSD" | ||
3 | LIC_FILES_CHKSUM = "file://libdce.h;beginline=1;endline=31;md5=0a398cf815b8b5f31f552266cd453dae" | ||
4 | |||
5 | inherit autotools pkgconfig | ||
6 | |||
7 | DEPENDS = "libdrm ti-ipc" | ||
8 | |||
9 | SRC_URI = "git://git.omapzoom.org/repo/libdce.git;protocol=git" | ||
10 | SRCREV = "f72096090e3063e85ea77cae66b2d99a48d91727" | ||
11 | |||
12 | PR = "r1" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | EXTRA_OECONF += "IPC_HEADERS=${STAGING_INCDIR}/ti/ipc/mm" | ||
16 | |||
17 | COMPATIBLE_HOST ?= "null" | ||
18 | COMPATIBLE_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 @@ | |||
1 | do_compile:prepend:ti-soc() { | ||
2 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} | ||
3 | } | ||
4 | |||
5 | do_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 | ||
13 | optee_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 | ||
32 | optee_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 | |||
40 | do_compile:append:ti43x() { | ||
41 | optee_sign_legacyhs | ||
42 | } | ||
43 | |||
44 | do_compile:append:dra7xx() { | ||
45 | optee_sign_legacyhs | ||
46 | } | ||
47 | |||
48 | do_compile:append:am65xx-hs-evm() { | ||
49 | optee_sign_k3hs | ||
50 | } | ||
51 | |||
52 | do_compile:append:am64xx-hs-evm() { | ||
53 | optee_sign_k3hs | ||
54 | } | ||
55 | |||
56 | do_compile:append:j7-hs-evm() { | ||
57 | optee_sign_k3hs | ||
58 | } | ||
59 | |||
60 | do_compile:append:j7200-hs-evm() { | ||
61 | optee_sign_k3hs | ||
62 | } | ||
63 | |||
64 | do_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 | |||
70 | optee_deploy_legacyhs() { | ||
71 | cd ${DEPLOYDIR}/ | ||
72 | for f in optee/*.optee; do | ||
73 | ln -sf $f ${DEPLOYDIR}/ | ||
74 | done | ||
75 | } | ||
76 | |||
77 | do_deploy:append:ti43x() { | ||
78 | optee_deploy_legacyhs | ||
79 | } | ||
80 | |||
81 | do_deploy:append:dra7xx() { | ||
82 | optee_deploy_legacyhs | ||
83 | } | ||
84 | |||
85 | do_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 | ||
91 | INSANE_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 @@ | |||
1 | DESCRIPTION = "Userspace setup for beaglebone capes" | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
5 | |||
6 | PR = "r4" | ||
7 | |||
8 | inherit allarch | ||
9 | |||
10 | SRC_URI = "file://cape.service \ | ||
11 | file://cape.sh \ | ||
12 | file://cape-stop.sh \ | ||
13 | " | ||
14 | |||
15 | do_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 | |||
26 | FILES:${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 | ||
2 | for 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 | ||
14 | done | ||
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] | ||
2 | Description=Beaglebone cape support | ||
3 | |||
4 | [Service] | ||
5 | Type=oneshot | ||
6 | RemainAfterExit=yes | ||
7 | ExecStart=/usr/bin/cape.sh | ||
8 | ExecStop=/usr/bin/cape-stop.sh | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=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 | ||
2 | for 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 | ||
22 | done | ||
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 @@ | |||
1 | SUMMARY = "BeagleBone Getting Started Guide" | ||
2 | |||
3 | PR = "r22" | ||
4 | |||
5 | inherit allarch | ||
6 | |||
7 | LICENSE = "CC-BY-SA-3.0 & GPLv3+ & MIT & PD" | ||
8 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f6f02761e31334c48f7021fb94c89aaa" | ||
9 | |||
10 | SRCREV = "05bedba192646152b7bc80b0accaea75aef864e5" | ||
11 | SRC_URI = "git://github.com/jadonk/beaglebone-getting-started.git;protocol=https;branch=master" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | do_install() { | ||
16 | install -d ${D}${datadir}/${PN} | ||
17 | cp -R --no-dereference --preserve=mode,links ${S}/* ${D}${datadir}/${PN} | ||
18 | } | ||
19 | |||
20 | FILES:${PN} += "${datadir}/${PN}" | ||
21 | INSANE_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 @@ | |||
1 | DESCRIPTION = "Units to initialize usb gadgets" | ||
2 | |||
3 | PR = "r19" | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
7 | |||
8 | COMPATIBLE_MACHINE = "(ti33x)" | ||
9 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
10 | |||
11 | SRC_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 | |||
23 | do_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 | |||
40 | PACKAGES =+ "${PN}-storage ${PN}-network ${PN}-udhcpd" | ||
41 | |||
42 | ALLOW_EMPTY:${PN} = "1" | ||
43 | |||
44 | FILES:${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 | |||
50 | FILES:${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 | |||
56 | FILES:${PN}-udhcpd = "${base_libdir}/systemd/system/udhcpd.service \ | ||
57 | ${base_libdir}/systemd/system/basic.target.wants/udhcpd.service \ | ||
58 | ${sysconfdir}/udhcpd.conf" | ||
59 | |||
60 | RRECOMMENDS:${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 | |||
3 | function get_devmem() | ||
4 | { | ||
5 | /usr/bin/devmem2 $1 | grep ": " | cut -d ":" -f 2|cut -d "x" -f 2 | ||
6 | } | ||
7 | |||
8 | function 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 | |||
25 | function 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 | |||
38 | DEVMEM_ADDR_LO=$(get_devmem 0x44e10638|bc) | ||
39 | DEVMEM_ADDR_LO=$(reverse_bytes ${DEVMEM_ADDR_LO}) | ||
40 | |||
41 | DEVMEM_ADDR_HI=$(get_devmem 0x44e1063C) | ||
42 | DEVMEM_ADDR_HI=$(reverse_bytes ${DEVMEM_ADDR_HI}) | ||
43 | |||
44 | DEV_ADDR=$(hex_to_mac_addr "${DEVMEM_ADDR_HI}${DEVMEM_ADDR_LO}") | ||
45 | |||
46 | modprobe 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 | ||
2 | if [ -a /sys/devices/platform/omap/musb-ti81xx/musb-hdrc.0/gadget/lun0/file ] | ||
3 | then | ||
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 | ||
10 | fi | ||
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] | ||
2 | Description=Start USB Ethernet gadget | ||
3 | Conflicts=storage-gadget-init.service | ||
4 | |||
5 | [Service] | ||
6 | RemainAfterExit=yes | ||
7 | ExecStart=/usr/bin/g-ether-load.sh | ||
8 | ExecStop=/sbin/rmmod g_ether | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=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] | ||
2 | Description=Start usb mass storage gadget | ||
3 | After=dev-mmcblk0p1.device | ||
4 | |||
5 | [Service] | ||
6 | RemainAfterExit=yes | ||
7 | ExecStart=/sbin/modprobe g_mass_storage file=/dev/mmcblk0p1 cdrom=0 stall=0 removable=1 nofua=1 | ||
8 | ExecStop=/sbin/rmmod g_mass_storage | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=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 @@ | |||
1 | start 192.168.7.1 | ||
2 | end 192.168.7.1 | ||
3 | interface usb0 | ||
4 | max_leases 1 | ||
5 | option 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 @@ | |||
1 | SUBSYSTEM=="net",ACTION=="add",KERNEL=="usb0",RUN+="/sbin/ifconfig usb0 192.168.7.2 netmask 255.255.255.252",RUN+="/bin/systemctl start udhcpd.service" | ||
2 | SUBSYSTEM=="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] | ||
2 | Description=DHCP server for USB0 network gadget | ||
3 | After=dev-usb0.device | ||
4 | Conflicts=storage-gadget-init.service | ||
5 | |||
6 | [Service] | ||
7 | ExecStart=/usr/sbin/udhcpd -f -S /etc/udhcpd.conf | ||
8 | ExecStop=/bin/kill -TERM $MAINPID | ||
9 | KillSignal=SIGINT | ||
10 | |||
11 | [Install] | ||
12 | WantedBy=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 | ||
2 | mount /dev/mmcblk0p1 /mnt | ||
3 | echo "Image info snapshot" > /mnt/info.txt | ||
4 | |||
5 | echo >> /mnt/info.txt | ||
6 | echo "/etc/angstrom-version:" >> /mnt/info.txt | ||
7 | cat /etc/angstrom-version >> /mnt/info.txt | ||
8 | |||
9 | echo >> /mnt/info.txt | ||
10 | echo "/proc/cpuinfo:" >> /mnt/info.txt | ||
11 | cat /proc/cpuinfo >> /mnt/info.txt | ||
12 | |||
13 | echo >> /mnt/info.txt | ||
14 | echo "uname -a:" >> /mnt/info.txt | ||
15 | uname -a >> /mnt/info.txt | ||
16 | |||
17 | echo >> /mnt/info.txt | ||
18 | echo "/proc/cmdline:" >> /mnt/info.txt | ||
19 | cat /proc/cmdline >> /mnt/info.txt | ||
20 | |||
21 | echo >> /mnt/info.txt | ||
22 | echo "ifconfig:" >> /mnt/info.txt | ||
23 | ifconfig >> /mnt/info.txt | ||
24 | |||
25 | echo >> /mnt/info.txt | ||
26 | echo "/etc/angstrom-build-info:" >> /mnt/info.txt | ||
27 | cat /etc/angstrom-build-info >> /mnt/info.txt | ||
28 | |||
29 | echo >> /mnt/info.txt | ||
30 | echo "/etc/image-version-info:" >> /mnt/info.txt | ||
31 | cat /etc/image-version-info >> /mnt/info.txt | ||
32 | |||
33 | echo >> /mnt/info.txt | ||
34 | echo "opkg list-installed:" >> /mnt/info.txt | ||
35 | opkg list-installed >> /mnt/info.txt | ||
36 | |||
37 | umount /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 @@ | |||
1 | DESCRIPTION = "TI SYS/BIOS v6 Kernel" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | require ../includes/ti-eula-unpack.inc | ||
9 | |||
10 | S = "${WORKDIR}/bios_${PV}" | ||
11 | |||
12 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/${PV}/exports/bios_setuplinux_${PV}.bin;name=sysbiosbin" | ||
13 | BINFILE="bios_${PV}.bin" | ||
14 | TI_BIN_UNPK_CMDS="Y: q:workdir:Y" | ||
15 | |||
16 | do_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 | |||
22 | ALLOW_EMPTY:${PN} = "1" | ||
23 | FILES:${PN}-dev += "${SYSBIOS_INSTALL_DIR_RECIPE}" | ||
24 | |||
25 | INHIBIT_PACKAGE_STRIP = "1" | ||
26 | INHIBIT_SYSROOT_STRIP = "1" | ||
27 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
28 | INSANE_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 @@ | |||
1 | require recipes-ti/bios/ti-sysbios.inc | ||
2 | |||
3 | PE = "1" | ||
4 | PV = "6_76_03_01" | ||
5 | PR = "r0" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://manifest_bios_${PV}.html;md5=5cf40699c51b26d36fc01647c0b27fb1" | ||
8 | |||
9 | SRC_URI[sysbiosbin.md5sum] = "647243209d66d5dd35503b0ec5a84ab9" | ||
10 | SRC_URI[sysbiosbin.sha256sum] = "b762b7f2343d26d367f952488e529046785128005158cc921c3baef08e97116a" | ||
11 | |||
12 | TI_BIN_UNPK_CMDS = "" | ||
13 | TI_BIN_UNPK_ARGS = "--mode unattended --prefix ${WORKDIR}" | ||
14 | |||
15 | BINFILE = "bios_${PV}.run" | ||
16 | SRC_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 @@ | |||
1 | DESCRIPTION = "Codec Engine for TI ARM/DSP processors" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | |||
6 | require recipes-ti/includes/ti-paths.inc | ||
7 | require recipes-ti/includes/ti-staging.inc | ||
8 | |||
9 | PV = "3_24_00_08" | ||
10 | PR = "r0" | ||
11 | |||
12 | LIC_FILES_CHKSUM = "file://codec_engine_${PV}_Manifest.html;md5=de7d9c2594a6f3868e42a33b6a748ce7" | ||
13 | |||
14 | SRC_URI[cetarball.md5sum] = "d66a8ccbd6cdfe9f735af9f4a07e2b9b" | ||
15 | SRC_URI[cetarball.sha256sum] = "ed7b7399903bbf76af06ee6457836f344ad75b903618339bae82b3967f27ffa1" | ||
16 | |||
17 | S = "${WORKDIR}/codec_engine_${PV}" | ||
18 | |||
19 | SRC_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 | |||
21 | do_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 | |||
28 | ALLOW_EMPTY:${PN} = "1" | ||
29 | FILES:${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 @@ | |||
1 | SUMMARY = "TI Emulation CTools AET library" | ||
2 | DESCRIPTION = "The AETLIB library provides programmatic access to the Advanced Event Triggering capability on C6x processor cores" | ||
3 | |||
4 | LICENSE = "BSD" | ||
5 | |||
6 | PV = "4.19.0.0" | ||
7 | |||
8 | LIC_FILES_CHKSUM = "file://../ctoolslib_manifest.html;md5=b7dd369a2e07ef9a71795ee5a9bd01bd" | ||
9 | |||
10 | SRC_URI = "git://git.ti.com/sdo-emu/ctoolslib.git;protocol=git;branch=opencl_aetlib_build" | ||
11 | SRCREV = "de7954abab0f0caa8a2c7b53095c30226d901a31" | ||
12 | |||
13 | DEPENDS = "ti-cgt6x-native" | ||
14 | PR = "r0" | ||
15 | |||
16 | S = "${WORKDIR}/git/aet" | ||
17 | |||
18 | DEVICE="" | ||
19 | DEVICE:dra7xx = "DRA7xx" | ||
20 | |||
21 | EXTRA_OEMAKE = "C6X_C_DIR=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x/include" | ||
22 | |||
23 | do_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 | |||
31 | COMPATIBLE_MACHINE = "dra7xx" | ||
32 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
33 | |||
34 | FILES:${PN}-dev += "\ | ||
35 | ${datadir}/ti/ctoolslib/aet \ | ||
36 | " | ||
37 | |||
38 | ALLOW_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 @@ | |||
1 | DESCRIPTION = "Baremetal GCC for ARM" | ||
2 | LICENSE = "GPL-3.0-with-GCC-exception & GPLv3" | ||
3 | |||
4 | LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=f77466c63f5787f4bd669c402aabe061" | ||
5 | |||
6 | require recipes-ti/includes/ti-paths.inc | ||
7 | |||
8 | SRC_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 | |||
10 | SRC_URI[gcc-arm-none.md5sum] = "299ebd3f1c2c90930d28ab82e5d8d6c0" | ||
11 | SRC_URI[gcc-arm-none.sha256sum] = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69" | ||
12 | |||
13 | S = "${WORKDIR}/gcc-arm-none-eabi-7-2018-q2-update" | ||
14 | |||
15 | # only x86_64 is supported | ||
16 | COMPATIBLE_HOST = "x86_64.*-linux" | ||
17 | COMPATIBLE_HOST:class-target = "null" | ||
18 | |||
19 | do_install() { | ||
20 | install -d ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE} | ||
21 | cp -r ${S}/. ${D}${GCC_ARM_NONE_TOOLCHAIN_RECIPE} | ||
22 | } | ||
23 | |||
24 | FILES:${PN} = "${GCC_ARM_NONE_TOOLCHAIN_RECIPE}/*" | ||
25 | |||
26 | INSANE_SKIP:${PN} = "already-stripped libdir staticdev build-deps file-rdeps" | ||
27 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
28 | |||
29 | BBCLASSEXTEND = "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 @@ | |||
1 | DESCRIPTION = "TI CG_XML" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/ccs/non-esd/releases/other/applications_packages/cg_xml/index.htm" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | |||
6 | require recipes-ti/includes/ti-paths.inc | ||
7 | require recipes-ti/includes/ti-staging.inc | ||
8 | require recipes-ti/includes/ti-unpack.inc | ||
9 | |||
10 | PV = "2.61.00" | ||
11 | PE = "1" | ||
12 | S = "${WORKDIR}/cg_xml_${PV}" | ||
13 | |||
14 | SRC_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 | " | ||
17 | LIC_FILES_CHKSUM = "file://cg_xml_${PV}_Manifest.pdf;md5=fc02a39748ba50373f32b2f4a5e3a684" | ||
18 | |||
19 | SRC_URI[cgxmlbin_linux.md5sum] = "6ce60caa97bbf15158d806fb062fadff" | ||
20 | SRC_URI[cgxmlbin_linux.sha256sum] = "da77cb10bd3d5de89e27e4ce8f4408a2e50775c8980225f9a828ddc242bb81f9" | ||
21 | |||
22 | BINFILE="cgxml-${PV}-linux-installer.run" | ||
23 | TI_BIN_UNPK_CMDS="" | ||
24 | TI_BIN_UNPK_ARGS="--prefix ${S} --mode unattended" | ||
25 | |||
26 | do_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 | |||
32 | FILES:${PN} += "${CG_XML_INSTALL_DIR_RECIPE}" | ||
33 | |||
34 | INSANE_SKIP:${PN} = "arch ldflags file-rdeps" | ||
35 | |||
36 | INHIBIT_PACKAGE_STRIP = "1" | ||
37 | INHIBIT_SYSROOT_STRIP = "1" | ||
38 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
39 | |||
40 | BBCLASSEXTEND = "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 @@ | |||
1 | SUMMARY = "TI ARM Code Generation Tools" | ||
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
3 | LICENSE = "(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 | |||
5 | LIC_FILES_CHKSUM = "file://ti-cgt-arm_${PV}.LTS/README.txt;md5=79631eb21b2e5b7190cd3ff1dfd41108" | ||
6 | |||
7 | require recipes-ti/includes/ti-unpack.inc | ||
8 | require recipes-ti/includes/ti-staging.inc | ||
9 | require recipes-ti/includes/ti-paths.inc | ||
10 | |||
11 | S = "${WORKDIR}/ti-cgt-arm-${PV}" | ||
12 | |||
13 | PE = "1" | ||
14 | PR = "r0" | ||
15 | |||
16 | SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/TMS470/${PV}.LTS/${BINFILE};name=${BINFILE_NAME}" | ||
17 | |||
18 | BINFILE = "ti_cgt_tms470_${PV}.LTS_linux_installer_x86.bin" | ||
19 | TI_BIN_UNPK_ARGS = "--prefix ${S}" | ||
20 | TI_BIN_UNPK_CMDS = "" | ||
21 | |||
22 | # only x86_64 is supported | ||
23 | COMPATIBLE_HOST = "x86_64.*-linux" | ||
24 | COMPATIBLE_HOST:class-target = "null" | ||
25 | |||
26 | do_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 | |||
31 | SRC_URI[cgt_arm_installer.md5sum] = "e9e668332cf86c965b4da9d1d488426b" | ||
32 | SRC_URI[cgt_arm_installer.sha256sum] = "da976143128c619a278cb4214a4295c409d100f9e65ad2f4d0d1039db7cf98f4" | ||
33 | |||
34 | BINFILE_NAME = "cgt_arm_installer" | ||
35 | |||
36 | FILES:${PN} += "${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}" | ||
37 | |||
38 | INHIBIT_PACKAGE_STRIP = "1" | ||
39 | INHIBIT_SYSROOT_STRIP = "1" | ||
40 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
41 | |||
42 | INSANE_SKIP:${PN} += "arch staticdev file-rdeps" | ||
43 | |||
44 | BBCLASSEXTEND = "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 @@ | |||
1 | DESCRIPTION = "TI PRU Code Generation Tools" | ||
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
3 | LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Hewlett-Packard & AFL-3.0 & MIT & BSD-2-Clause & PD" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://ti-cgt-pru_${PV}/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc" | ||
6 | LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-pru/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc" | ||
7 | |||
8 | require recipes-ti/includes/ti-paths.inc | ||
9 | require recipes-ti/includes/ti-unpack.inc | ||
10 | |||
11 | BINFILE = "ti_cgt_pru_${PV}_linux_installer_x86.bin" | ||
12 | BINFILE_NAME = "cgt-pru-x86" | ||
13 | TI_BIN_UNPK_ARGS = "--prefix ${S}" | ||
14 | TI_BIN_UNPK_CMDS = "" | ||
15 | |||
16 | BINFILE:class-target = "ti_cgt_pru_${PV}_armlinuxa8hf_busybox_installer.sh" | ||
17 | BINFILE_NAME:class-target = "cgt-pru-arm" | ||
18 | |||
19 | SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/PRU/${PV}/${BINFILE};name=${BINFILE_NAME}" | ||
20 | |||
21 | SRC_URI[cgt-pru-x86.md5sum] = "270a0ecca383f66cad3a0e2a738c6ab0" | ||
22 | SRC_URI[cgt-pru-x86.sha256sum] = "af1178a059d46d67d5672df053dd2fbebb0b89a513b17b8739dbe915b4a5d71a" | ||
23 | |||
24 | SRC_URI[cgt-pru-arm.md5sum] = "fbf10083af1b0e5d69b018126603bb58" | ||
25 | SRC_URI[cgt-pru-arm.sha256sum] = "75ac84775a5624ea7e4fad4efc1acb7e869c79160550d48ba780068a3dce879c" | ||
26 | |||
27 | do_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 | |||
33 | do_install:class-target() { | ||
34 | ${WORKDIR}/${BINFILE} --prefix ${D} | ||
35 | } | ||
36 | |||
37 | FILES:${PN} += "${datadir}/ti/*" | ||
38 | |||
39 | FILES:${PN}-dbg = "${TI_CGT_PRU_INSTALL_DIR_RECIPE}/bin/.debug \ | ||
40 | ${TI_CGT_PRU_INSTALL_DIR_RECIPE}/lib/.debug \ | ||
41 | " | ||
42 | |||
43 | INHIBIT_PACKAGE_STRIP = "1" | ||
44 | INHIBIT_SYSROOT_STRIP = "1" | ||
45 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
46 | |||
47 | INSANE_SKIP:${PN} += "arch staticdev already-stripped file-rdeps" | ||
48 | |||
49 | BBCLASSEXTEND = "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 @@ | |||
1 | DESCRIPTION = "TI ARM Code Generation Tools" | ||
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/CodeGenerationTools.htm" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "TI" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=62f46f1125a152a2e213b414db7ac600" | ||
7 | |||
8 | require ../includes/ti-paths.inc | ||
9 | require ../includes/ti-staging.inc | ||
10 | require ../includes/ti-eula-unpack.inc | ||
11 | |||
12 | S = "${WORKDIR}/cgt470_${PV}" | ||
13 | |||
14 | SRC_URI = "http://install.source.dir.local/ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin;name=cgt470bin" | ||
15 | |||
16 | BINFILE="ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin" | ||
17 | TI_BIN_UNPK_CMDS="Y:qY:workdir: : " | ||
18 | TI_BIN_UNPK_WDEXT="/cgt470_${PV}" | ||
19 | |||
20 | do_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 @@ | |||
1 | require ti-cgt470.inc | ||
2 | |||
3 | PV = "4_6_6" | ||
4 | PVwithdots = "4.6.6" | ||
5 | |||
6 | SRC_URI[cgt470bin.md5sum] = "29a316dc6b8c8c3a53e0d6c956acb62b" | ||
7 | SRC_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 @@ | |||
1 | SUMMARY = "TI DSP Code Generation Tools" | ||
2 | DESCRIPTION = "Texas Instrument (TI) Code Generation Tools are custom \ | ||
3 | utilities targeted for TI embedded processors. This Digital Signal \ | ||
4 | Processor (DSP) suite contains tools needed to create and debug \ | ||
5 | applications for the C6000 DSP family. This includes tools such as: \ | ||
6 | compiler, linker, assembler, etc. This also includes C runtime \ | ||
7 | libraries and standard header files needed to produce a working DSP application." | ||
8 | |||
9 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
10 | LICENSE = "TI-TSPA" | ||
11 | |||
12 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca" | ||
13 | |||
14 | S = "${WORKDIR}/c6000_7.4.16" | ||
15 | |||
16 | require recipes-ti/includes/ti-paths.inc | ||
17 | require recipes-ti/includes/ti-unpack.inc | ||
18 | |||
19 | BINFILE = "ti_cgt_c6000_7.4.16_linux_installer_x86.bin" | ||
20 | BINFILE_NAME = "cgt6x_7.4.16_x86_installer" | ||
21 | TI_BIN_UNPK_ARGS = "--prefix ${WORKDIR} --mode unattended" | ||
22 | TI_BIN_UNPK_CMDS="" | ||
23 | |||
24 | SRC_URI = "http://install.source.dir.local/${BINFILE};name=${BINFILE_NAME}" | ||
25 | |||
26 | SRC_URI[cgt6x_7.4.16_x86_installer.md5sum] = "21ca55c5b1f6b2d8d4fb7570d5eb5513" | ||
27 | SRC_URI[cgt6x_7.4.16_x86_installer.sha256sum] = "baa0d1ef20397383f99f45068a6d160963a01419d42fbbb851263b54c91df82f" | ||
28 | |||
29 | # only x86_64 is supported | ||
30 | COMPATIBLE_HOST = "x86_64.*-linux" | ||
31 | COMPATIBLE_HOST:class-target = "null" | ||
32 | |||
33 | do_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 | |||
38 | FILES:${PN} += "${TI_CGT6X_7_INSTALL_DIR_RECIPE}" | ||
39 | |||
40 | INSANE_SKIP:${PN} += "arch staticdev textrel" | ||
41 | |||
42 | INHIBIT_PACKAGE_STRIP = "1" | ||
43 | INHIBIT_SYSROOT_STRIP = "1" | ||
44 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
45 | |||
46 | BBCLASSEXTEND = "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 @@ | |||
1 | DESCRIPTION = "TI DSP Code Generation Tools" | ||
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
3 | LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://ti-cgt-c6000_${PV}/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1" | ||
6 | LIC_FILES_CHKSUM:class-target = "file://usr/share/doc/ti/cgt-c6x/C6000CodeGenerationTools_8.3.x_manifest.html;md5=d06c6f9acebf78df4108a8535396e9f1" | ||
7 | |||
8 | PE = "1" | ||
9 | |||
10 | require recipes-ti/includes/ti-unpack.inc | ||
11 | |||
12 | COMPATIBLE_HOST:class-target = "arm.*-linux" | ||
13 | |||
14 | # For now we only have hardfp version for target class | ||
15 | python __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 | |||
29 | BINFILE = "ti_cgt_c6000_${PV}_linux_installer_x86.bin" | ||
30 | BINFILE_NAME = "cgt6x_x86_installer" | ||
31 | TI_BIN_UNPK_ARGS = "--prefix ${S}" | ||
32 | TI_BIN_UNPK_CMDS = "" | ||
33 | |||
34 | BINFILE:class-target = "ti_cgt_c6000_${PV}_armlinuxa8hf_busybox_installer.sh" | ||
35 | BINFILE_NAME:class-target = "cgt6x_arm_installer" | ||
36 | |||
37 | SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C6000/${PV}/${BINFILE};name=${BINFILE_NAME}" | ||
38 | |||
39 | SRC_URI[cgt6x_x86_installer.md5sum] = "f1f534e6a4bdee6df39e8d0cb458d161" | ||
40 | SRC_URI[cgt6x_x86_installer.sha256sum] = "1fba2a8f5532b33a23677771d686a866171ce7a0e567fed50d900d0ecd2e17e6" | ||
41 | |||
42 | SRC_URI[cgt6x_arm_installer.md5sum] = "425d82308e71202ad004a36b7ec3cec9" | ||
43 | SRC_URI[cgt6x_arm_installer.sha256sum] = "70c387ddde379194fed712087be6cb0ca5f4f0e65d7f29bd7462c38ee011928f" | ||
44 | |||
45 | do_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 | |||
94 | do_install:class-target() { | ||
95 | ${WORKDIR}/${BINFILE} --prefix ${D} | ||
96 | } | ||
97 | |||
98 | FILES:${PN} += "${datadir}/ti/*" | ||
99 | |||
100 | FILES:${PN}-dbg += "${datadir}/ti/cgt-c6x/bin/.debug" | ||
101 | |||
102 | INSANE_SKIP:${PN} += "staticdev" | ||
103 | INHIBIT_PACKAGE_STRIP_FILES = "${PKGD}${datadir}/ti/cgt-c6x/lib/libc.a" | ||
104 | |||
105 | BBCLASSEXTEND = "native nativesdk" | ||
106 | |||
107 | COMPATIBLE_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 @@ | |||
1 | SUMMARY = "TI DSP Code Generation Tools" | ||
2 | DESCRIPTION = "Texas Instruments (TI) Code Generation Tools are custom \ | ||
3 | utilities targeted for TI embedded processors. This Digital Signal \ | ||
4 | Processor (DSP) suite contains tools needed to create and debug \ | ||
5 | applications for the C7000 DSP family. This includes tools such as: \ | ||
6 | compiler, linker, assembler, etc. This also includes C runtime \ | ||
7 | libraries and standard header files needed to produce a working DSP application." | ||
8 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | ||
9 | LICENSE = "(TI-TSPA & Thai-Open-Source-Software-Center) & BSD-3-Clause & BSL-1.0 & Patrick-Powell & AFL-3.0 & MIT & BSD-2-Clause & PD" | ||
10 | |||
11 | LIC_FILES_CHKSUM = "file://ti-cgt-c7000_${PV}.STS/C7000_Code_Generation_Tools_1.x_manifest.html;md5=f1156d241d104c281bc64a6ec8eadc64" | ||
12 | |||
13 | require recipes-ti/includes/ti-unpack.inc | ||
14 | require recipes-ti/includes/ti-paths.inc | ||
15 | |||
16 | # only x86_64 is supported | ||
17 | COMPATIBLE_HOST = "x86_64.*-linux" | ||
18 | COMPATIBLE_HOST:class-target = "null" | ||
19 | |||
20 | PE = "1" | ||
21 | |||
22 | BINFILE = "ti_cgt_c7000_${PV}.STS_linux_installer_x86.bin" | ||
23 | BINFILE_NAME = "cgt7x_x86_installer" | ||
24 | |||
25 | SRC_URI = "http://software-dl.ti.com/codegen/esd/cgt_public_sw/C7000/${PV}.STS/${BINFILE};name=${BINFILE_NAME}" | ||
26 | |||
27 | TI_BIN_UNPK_ARGS = "--prefix ${S}" | ||
28 | TI_BIN_UNPK_CMDS = "" | ||
29 | |||
30 | SRC_URI[cgt7x_x86_installer.md5sum] = "813840908f333dd2a31f92edec71c1fb" | ||
31 | SRC_URI[cgt7x_x86_installer.sha256sum] = "21379811a8857489f72ca8ec45a46eb086ced0bdbb58e78f73a86e63984ab2f5" | ||
32 | |||
33 | S = "${WORKDIR}/c7000_${PV}" | ||
34 | |||
35 | do_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 | |||
41 | FILES:${PN} += "${TI_CGT7X_INSTALL_DIR_RECIPE}" | ||
42 | |||
43 | INSANE_SKIP:${PN} += "arch staticdev textrel" | ||
44 | |||
45 | INHIBIT_PACKAGE_STRIP = "1" | ||
46 | INHIBIT_SYSROOT_STRIP = "1" | ||
47 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
48 | |||
49 | BBCLASSEXTEND = "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 @@ | |||
1 | DESCRIPTION = "TI XDCtools (RTSC - Real Time Software Components - http://rtsc.eclipse.org)" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD & GPLv2" | ||
5 | |||
6 | require recipes-ti/includes/ti-paths.inc | ||
7 | require recipes-ti/includes/ti-staging.inc | ||
8 | |||
9 | do_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 | |||
16 | FILES:${PN}-dev = "${XDC_INSTALL_DIR_RECIPE}" | ||
17 | |||
18 | BBCLASSEXTEND = "native nativesdk" | ||
19 | |||
20 | INHIBIT_PACKAGE_STRIP = "1" | ||
21 | INHIBIT_SYSROOT_STRIP = "1" | ||
22 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
23 | INSANE_SKIP:${PN}-dev = "libdir dev-elf arch file-rdeps" | ||
24 | |||
25 | # Prevent internal libs from getting picked up | ||
26 | PRIVATE_LIBS = " \ | ||
27 | libncdb.so \ | ||
28 | libcdb.so \ | ||
29 | libjavaplugin_oji.so \ | ||
30 | libjavaplugin_jni.so \ | ||
31 | libjsound.so \ | ||
32 | libinstrument.so \ | ||
33 | libjawt.so \ | ||
34 | libzip.so \ | ||
35 | libjava_crw_demo.so \ | ||
36 | libjavaplugin_nscp_gcc29.so \ | ||
37 | libhprof.so \ | ||
38 | libcmm.so \ | ||
39 | libjdwp.so \ | ||
40 | libmlib_image.so \ | ||
41 | libjpeg.so \ | ||
42 | libverify.so \ | ||
43 | libjavaplugin_nscp.so \ | ||
44 | libmanagement.so \ | ||
45 | libunpack.so \ | ||
46 | librmi.so \ | ||
47 | libJdbcOdbc.so \ | ||
48 | libawt.so \ | ||
49 | libnet.so \ | ||
50 | libjaas_unix.so \ | ||
51 | libnio.so \ | ||
52 | libdcpr.so \ | ||
53 | libioser12.so \ | ||
54 | libjsoundalsa.so \ | ||
55 | libjava.so \ | ||
56 | libfontmanager.so \ | ||
57 | libdt_socket.so \ | ||
58 | libmawt.so \ | ||
59 | libjvm.so \ | ||
60 | libhpi.so \ | ||
61 | lib.so \ | ||
62 | libcairo.so.2 \ | ||
63 | libjli.so \ | ||
64 | libawt_xawt.so \ | ||
65 | " | ||
66 | |||
67 | COMPATIBLE_HOST ?= "null" | ||
68 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
69 | COMPATIBLE_HOST:class-native = "(.*)" | ||
70 | COMPATIBLE_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 @@ | |||
1 | require ti-xdctools-common.inc | ||
2 | |||
3 | S = "${WORKDIR}/xdctools_${PV}_core" | ||
4 | |||
5 | SRC_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 @@ | |||
1 | require ti-xdctools-common.inc | ||
2 | require ../includes/ti-eula-unpack.inc | ||
3 | |||
4 | S = "${WORKDIR}/xdctools_${PV}" | ||
5 | |||
6 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/${PV}/exports/xdctools_setuplinux_${PV}.bin;name=xdcbin" | ||
7 | |||
8 | BINFILE="xdctools_setuplinux_${PV}.bin" | ||
9 | TI_BIN_UNPK_CMDS="Y:workdir:Y" | ||
10 | TI_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 @@ | |||
1 | require recipes-ti/devtools/ti-xdctools-core.inc | ||
2 | |||
3 | PE = "1" | ||
4 | PV = "3_55_02_22" | ||
5 | PR = "r0" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://docs/license/xdc/shelf/package.html;beginline=1;endline=140;md5=2e742b9757bc9ce0241aadba9f627ab8" | ||
8 | |||
9 | SRC_URI[xdczip.md5sum] = "bb9154d677ce4724a5eac73817b23a0f" | ||
10 | SRC_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 @@ | |||
1 | include dsplib.inc | ||
2 | |||
3 | MATHLIB_INSTALL_DIR = "${MATHLIB_C64P_INSTALL_DIR}/packages" | ||
4 | DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C64P_INSTALL_DIR_RECIPE}" | ||
5 | DSPLIB_INSTALL_DIR = "${DSPLIB_C64P_INSTALL_DIR}" | ||
6 | DSPLIB_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 @@ | |||
1 | include dsplib.inc | ||
2 | |||
3 | MATHLIB_INSTALL_DIR = "${MATHLIB_C66_INSTALL_DIR}/packages" | ||
4 | DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C66_INSTALL_DIR_RECIPE}" | ||
5 | DSPLIB_INSTALL_DIR = "${DSPLIB_C66_INSTALL_DIR}" | ||
6 | DSPLIB_BUILD_TARGET = "c66x" | ||
7 | |||
8 | DEPENDS += "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 @@ | |||
1 | include dsplib.inc | ||
2 | |||
3 | MATHLIB_INSTALL_DIR = "${MATHLIB_C674_INSTALL_DIR}/packages" | ||
4 | DSPLIB_INSTALL_DIR_RECIPE = "${DSPLIB_C674_INSTALL_DIR_RECIPE}" | ||
5 | DSPLIB_INSTALL_DIR = "${DSPLIB_C674_INSTALL_DIR}" | ||
6 | DSPLIB_BUILD_TARGET = "c674x" | ||
7 | |||
8 | DEPENDS += "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 @@ | |||
1 | SUMMARY = "DSPLIB contains optimized signal processing functions for TI DSPs" | ||
2 | HOMEPAGE = "http://git.ti.com/ep-processor-libraries/dsplib" | ||
3 | LICENSE = "BSD-3-Clause" | ||
4 | |||
5 | require ../includes/ti-paths.inc | ||
6 | |||
7 | PV = "3_4_0_4" | ||
8 | PR = "r2" | ||
9 | |||
10 | DEPENDS = "ti-cgt6x-native \ | ||
11 | ti-xdctools-native \ | ||
12 | ti-sysbios \ | ||
13 | doxygen-native \ | ||
14 | zip-native \ | ||
15 | swtools" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | DSPLIB_GIT_BRANCH = "master" | ||
20 | DSPLIB_GIT_PROTOCOL = "git" | ||
21 | DSPLIB_GIT_URI = "git://git.ti.com/ep-processor-libraries/dsplib.git" | ||
22 | DSPLIB_SRCREV = "0390b171042c602e07669fd28a371cc319b90161" | ||
23 | |||
24 | SRC_URI = "${DSPLIB_GIT_URI};protocol=${DSPLIB_GIT_PROTOCOL};branch=${DSPLIB_GIT_BRANCH}" | ||
25 | SRCREV = "${DSPLIB_SRCREV}" | ||
26 | |||
27 | LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b" | ||
28 | |||
29 | export DSPLIB_WORK_DIR="${S}" | ||
30 | export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
31 | export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
32 | export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
33 | export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}" | ||
34 | export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools" | ||
35 | export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld" | ||
36 | export INCDIR="${MATHLIB_INSTALL_DIR}/" | ||
37 | |||
38 | PATH:append = ":${XDC_INSTALL_DIR}" | ||
39 | |||
40 | XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" | ||
41 | XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};" | ||
42 | |||
43 | export XDCPATH | ||
44 | |||
45 | DSPLIB_PACKAGE_NAME = "dsplib_${DSPLIB_BUILD_TARGET}_${PV}" | ||
46 | |||
47 | do_compile() { | ||
48 | cd ${DSPLIB_WORK_DIR}/ti/dsplib; | ||
49 | xdc XDCARGS="${DSPLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v" | ||
50 | } | ||
51 | |||
52 | do_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 | |||
60 | inherit deploy | ||
61 | addtask deploy before do_build after do_install | ||
62 | |||
63 | do_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 | |||
73 | ALLOW_EMPTY:${PN} = "1" | ||
74 | FILES:${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}" | ||
75 | |||
76 | INSANE_SKIP:${PN}-dev = "arch" | ||
77 | COMPATIBLE_HOST ?= "null" | ||
78 | COMPATIBLE_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 @@ | |||
1 | DESCRIPTION = "TI Framework Components" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/fc" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | |||
6 | require recipes-ti/includes/ti-paths.inc | ||
7 | |||
8 | S = "${WORKDIR}/framework_components_${PV}" | ||
9 | |||
10 | SRC_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 | |||
12 | do_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 | |||
18 | INSANE_SKIP:${PN} = "ldflags" | ||
19 | |||
20 | ALLOW_EMPTY:${PN} = "1" | ||
21 | FILES:${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 @@ | |||
1 | require ti-framework-components.inc | ||
2 | |||
3 | PV = "2_26_00_01" | ||
4 | PR = "r2" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://framework_components_2_26_00_01_manifest.html;md5=3250f9da7ee72284c07f8dd840400c75" | ||
7 | |||
8 | SRC_URI[fctarball.md5sum] = "40b51cade2f9ae6e6f6dca73c17065af" | ||
9 | SRC_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 @@ | |||
1 | require ti-framework-components.inc | ||
2 | |||
3 | PV = "3_40_02_07" | ||
4 | PR = "r0" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://framework_components_${PV}_Manifest.html;md5=0dd131dd53300f517b14dba8824f8b0a" | ||
7 | |||
8 | SRC_URI[fctarball.md5sum] = "36dd2312ea8d70aa2ae0a05a24dbf54e" | ||
9 | SRC_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 @@ | |||
1 | DESCRIPTION = "IMGLIB contains optimized general-purpose image/video processing routines for TI DSPs" | ||
2 | HOMEPAGE = "http://www.ti.com/tool/sprc264" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD-3-Clause" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | require ../includes/ti-unpack.inc | ||
9 | |||
10 | COMPATIBLE_MACHINE = "omap-a15" | ||
11 | |||
12 | SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/imglib/${PV}/exports/${BINFILE};name=imglib" | ||
13 | |||
14 | S = "${WORKDIR}/imglib-c66x-${PV}" | ||
15 | |||
16 | BINFILE = "imglib_c66x_${PV}_Linux.bin" | ||
17 | TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}" | ||
18 | TI_BIN_UNPK_CMDS = "" | ||
19 | |||
20 | do_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 | |||
26 | ALLOW_EMPTY:${PN} = "1" | ||
27 | FILES:${PN}-dev += "${IMGLIB_C66_INSTALL_DIR_RECIPE}" | ||
28 | |||
29 | INHIBIT_PACKAGE_STRIP = "1" | ||
30 | INHIBIT_SYSROOT_STRIP = "1" | ||
31 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
32 | |||
33 | RDEPENDS:${PN}-dev += "perl" | ||
34 | INSANE_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 @@ | |||
1 | require imglib-c66x.inc | ||
2 | |||
3 | PV = "3_1_1_0" | ||
4 | PR = "r1" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://packages/ti/imglib/src/common/IMG_profile.h;beginline=1;endline=35;md5=a21fc16da34b650ce33a9a7143908667" | ||
7 | |||
8 | SRC_URI[imglib.md5sum] = "9d64f213e040899048446df5055deeca" | ||
9 | SRC_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 | |||
12 | require recipes-ti/includes/ti-unpack.inc | ||
13 | |||
14 | TI_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 @@ | |||
1 | installdir = "${datadir}/ti" | ||
2 | |||
3 | export TOOLCHAIN_PATH ?= "${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}" | ||
4 | # This is where do_install will put it | ||
5 | export AUDIO_SOC_INSTALL_DIR_RECIPE = "${installdir}/ti-audio-soc-example-tree" | ||
6 | export BIOSPSP_INSTALL_DIR_RECIPE = "${installdir}/ti-biospsp-tree" | ||
7 | export C6ACCEL_INSTALL_DIR_RECIPE = "${installdir}/ti-c6accel-tree" | ||
8 | export C6RUN_INSTALL_DIR_RECIPE = "${installdir}/ti-c6run-tree" | ||
9 | export CE_INSTALL_DIR_RECIPE = "${installdir}/ti-codec-engine-tree" | ||
10 | export CODEC_INSTALL_DIR_RECIPE = "${installdir}/ti-codecs-tree" | ||
11 | export CODEGEN_ARM_INSTALL_DIR_RECIPE= "${installdir}/ti-cgt470-tree" | ||
12 | export CODEGEN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt6x-tree" | ||
13 | export DSP_BENCHMARK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsp-benchmark-tree" | ||
14 | export DSPLIB_C64P_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c64p-tree" | ||
15 | export DSPLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c674x-tree" | ||
16 | export DSPLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplib-c66x-tree" | ||
17 | export DVSDK_DEMOS_INSTALL_DIR_RECIPE= "${installdir}/ti-dvsdk-demos-tree" | ||
18 | export DVTB_INSTALL_DIR_RECIPE = "${installdir}/ti-dvtb-tree" | ||
19 | export EDMA3_LLD_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-tree" | ||
20 | export EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-edma3lld-sysbios-tree" | ||
21 | export FASTMATHLIB_C674P_INSTALL_DIR_RECIPE = "${installdir}/ti-fastmathlib-c67x-tree" | ||
22 | export FC3_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components3-tree" | ||
23 | export FC_INSTALL_DIR_RECIPE = "${installdir}/ti-framework-components-tree" | ||
24 | export GFX_SDK_INSTALL_DIR_RECIPE = "${installdir}/ti-gfx-sdk-tree" | ||
25 | export HDVICP20_INSTALL_DIR_RECIPE = "${installdir}/ti-hdvicp20-tree" | ||
26 | export IMGLIB_C64P_INSTALL_DIR_RECIPE= "${installdir}/ti-imglib-tree" | ||
27 | export IPC_INSTALL_DIR_RECIPE = "${installdir}/ti-ipc-tree" | ||
28 | export LINK_INSTALL_DIR_RECIPE = "${installdir}/ti-dsplink-tree" | ||
29 | export LPM_INSTALL_DIR_RECIPE = "${installdir}/ti-local-power-manager-tree" | ||
30 | export OMX_INSTALL_DIR_RECIPE = "${installdir}/ti-omx-tree" | ||
31 | export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree" | ||
32 | export RTFS_INSTALL_DIR_RECIPE = "${installdir}/ti-rtfs-tree" | ||
33 | export SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-sysbios-tree" | ||
34 | export SYSLINK_INSTALL_DIR_RECIPE = "${installdir}/ti-syslink-tree" | ||
35 | export SWTOOLS_INSTALL_DIR_RECIPE = "${installdir}/ti-swtools-tree" | ||
36 | export UIA_INSTALL_DIR_RECIPE = "${installdir}/ti-uia-tree" | ||
37 | export VICPLIB_INSTALL_DIR_RECIPE = "${installdir}/ti-vicplib-tree" | ||
38 | export XDAIS_INSTALL_DIR_RECIPE = "${installdir}/ti-xdais-tree" | ||
39 | export XDC_INSTALL_DIR_RECIPE = "${installdir}/ti-xdctools-tree" | ||
40 | export PDK_INSTALL_DIR_RECIPE = "${installdir}/ti-pdk-tree" | ||
41 | export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree" | ||
42 | export M4_TOOLCHAIN_INSTALL_DIR_RECIPE = "${installdir}/ti-cgt-arm" | ||
43 | export GCC_ARM_NONE_TOOLCHAIN_RECIPE = "${installdir}/gcc-arm-none-eabi" | ||
44 | export TI_CGT_PRU_INSTALL_DIR_RECIPE = "${installdir}/cgt-pru" | ||
45 | export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree" | ||
46 | export MATHLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree" | ||
47 | export IMGLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-imglib-c66x-tree" | ||
48 | export VLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-vlib-c66x-tree" | ||
49 | export CG_XML_INSTALL_DIR_RECIPE = "${installdir}/ti-cg-xml-tree" | ||
50 | export OMP_INSTALL_DIR_RECIPE = "${installdir}/ti-omp-tree" | ||
51 | export MPM_INSTALL_DIR_RECIPE = "${installdir}/ti-mpm-tree" | ||
52 | export TI_CGT6X_7_INSTALL_DIR_RECIPE = "${installdir}/cgt6x-7" | ||
53 | export TI_CGT7X_INSTALL_DIR_RECIPE = "${installdir}/cgt-c7x" | ||
54 | |||
55 | |||
56 | # This is where the tools will end up in sysroot | ||
57 | export BIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOS_INSTALL_DIR_RECIPE}" | ||
58 | export BIOSPSP_INSTALL_DIR = "${STAGING_DIR_TARGET}${BIOSPSP_INSTALL_DIR_RECIPE}" | ||
59 | export C6ACCEL_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6ACCEL_INSTALL_DIR_RECIPE}" | ||
60 | export C6RUN_INSTALL_DIR = "${STAGING_DIR_TARGET}${C6RUN_INSTALL_DIR_RECIPE}" | ||
61 | export CE_INSTALL_DIR = "${STAGING_DIR_TARGET}${CE_INSTALL_DIR_RECIPE}" | ||
62 | export CMEM_INSTALL_DIR = "${STAGING_DIR_TARGET}${CMEM_INSTALL_DIR_RECIPE}" | ||
63 | export CODEC_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEC_INSTALL_DIR_RECIPE}" | ||
64 | export CODEGEN_ARM_INSTALL_DIR= "${STAGING_DIR_TARGET}${CODEGEN_ARM_INSTALL_DIR_RECIPE}" | ||
65 | export CODEGEN_INSTALL_DIR = "${STAGING_DIR_TARGET}${CODEGEN_INSTALL_DIR_RECIPE}" | ||
66 | export DSP_BENCHMARK_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSP_BENCHMARK_INSTALL_DIR_RECIPE}" | ||
67 | export EDMA3_LLD_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_INSTALL_DIR_RECIPE}" | ||
68 | export EDMA3_LLD_SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${EDMA3_LLD_SYSBIOS_INSTALL_DIR_RECIPE}" | ||
69 | export FASTMATHLIB_C674P_INSTALL_DIR = "${STAGING_DIR_TARGET}${FASTMATHLIB_C674P_INSTALL_DIR_RECIPE}" | ||
70 | export FC3_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC3_INSTALL_DIR_RECIPE}" | ||
71 | export FC_INSTALL_DIR = "${STAGING_DIR_TARGET}${FC_INSTALL_DIR_RECIPE}" | ||
72 | export HDVICP20_INSTALL_DIR = "${STAGING_DIR_TARGET}${HDVICP20_INSTALL_DIR_RECIPE}" | ||
73 | export IMGLIB_C64P_INSTALL_DIR= "${STAGING_DIR_TARGET}${IMGLIB_C64P_INSTALL_DIR_RECIPE}" | ||
74 | export IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}${IPC_INSTALL_DIR_RECIPE}" | ||
75 | export LINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${LINK_INSTALL_DIR_RECIPE}" | ||
76 | export LPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${LPM_INSTALL_DIR_RECIPE}" | ||
77 | export OMX_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMX_INSTALL_DIR_RECIPE}" | ||
78 | export SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSBIOS_INSTALL_DIR_RECIPE}" | ||
79 | export SYSLINK_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSLINK_INSTALL_DIR_RECIPE}" | ||
80 | export UIA_INSTALL_DIR = "${STAGING_DIR_TARGET}${UIA_INSTALL_DIR_RECIPE}" | ||
81 | export XDAIS_INSTALL_DIR = "${STAGING_DIR_TARGET}${XDAIS_INSTALL_DIR_RECIPE}" | ||
82 | export XDC_INSTALL_DIR = "${STAGING_DIR_NATIVE}${XDC_INSTALL_DIR_RECIPE}" | ||
83 | export PDK_INSTALL_DIR = "${STAGING_DIR_TARGET}${PDK_INSTALL_DIR_RECIPE}" | ||
84 | export OSAL_INSTALL_DIR = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}" | ||
85 | export M4_TOOLCHAIN_INSTALL_DIR = "${STAGING_DIR_NATIVE}${M4_TOOLCHAIN_INSTALL_DIR_RECIPE}" | ||
86 | export GCC_ARM_NONE_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_ARM_NONE_TOOLCHAIN_RECIPE}" | ||
87 | export TI_CGT_PRU_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT_PRU_INSTALL_DIR_RECIPE}" | ||
88 | export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}" | ||
89 | export DSPLIB_C64P_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C64P_INSTALL_DIR_RECIPE}" | ||
90 | export DSPLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C674_INSTALL_DIR_RECIPE}" | ||
91 | export DSPLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${DSPLIB_C66_INSTALL_DIR_RECIPE}" | ||
92 | export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DIR_RECIPE}" | ||
93 | export MATHLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}" | ||
94 | export IMGLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${IMGLIB_C66_INSTALL_DIR_RECIPE}" | ||
95 | export VLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${VLIB_C66_INSTALL_DIR_RECIPE}" | ||
96 | export CG_XML_INSTALL_DIR = "${STAGING_DIR_NATIVE}${CG_XML_INSTALL_DIR_RECIPE}" | ||
97 | export OMP_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMP_INSTALL_DIR_RECIPE}" | ||
98 | export MPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${MPM_INSTALL_DIR_RECIPE}" | ||
99 | export TI_CGT6X_7_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT6X_7_INSTALL_DIR_RECIPE}" | ||
100 | export GCC_LINARO_BAREMETAL_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_TOOLCHAIN_RECIPE}" | ||
101 | export GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN = "${STAGING_DIR_NATIVE}${GCC_LINARO_BAREMETAL_AARCH64_TOOLCHAIN_RECIPE}" | ||
102 | export TI_CGT7X_INSTALL_DIR = "${STAGING_DIR_NATIVE}${TI_CGT7X_INSTALL_DIR_RECIPE}" | ||
103 | |||
104 | |||
105 | DSPSUFFIX:omapl137 = "x674" | ||
106 | DSPSUFFIX:omapl138 = "x674" | ||
107 | DSPSUFFIX_ti816x = "xe674" | ||
108 | DSPSUFFIX_ti814x = "xe674" | ||
109 | DSPSUFFIX ?= "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 @@ | |||
1 | INHIBIT_PACKAGE_STRIP = "1" | ||
2 | |||
3 | ALLOW_EMPTY:${PN} = "1" | ||
4 | ALLOW_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 | |||
13 | python do_unpack () { | ||
14 | bb.build.exec_func('base_do_unpack', d) | ||
15 | bb.build.exec_func('ti_bin_do_unpack', d) | ||
16 | } | ||
17 | |||
18 | TI_BIN_UNPK_WDEXT ?= "" | ||
19 | python 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 | |||
80 | COMPATIBLE_HOST ?= "null" | ||
81 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
82 | COMPATIBLE_HOST:class-native = "(.*)" | ||
83 | COMPATIBLE_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 @@ | |||
1 | PV = "3.51.00.00" | ||
2 | INC_PR = "r0" | ||
3 | |||
4 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
5 | COMPATIBLE_HOST ?= "null" | ||
6 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
7 | |||
8 | PLATFORM = "UNKNOWN" | ||
9 | PLATFORM:dra7xx = "DRA7XX" | ||
10 | PLATFORM:omapl138 = "OMAPL138" | ||
11 | |||
12 | ALT_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 @@ | |||
1 | From cca4fd812959a0cd241dd3bbebfd461ece94c9b8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denis@denix.org> | ||
3 | Date: Mon, 29 Mar 2021 19:42:00 -0400 | ||
4 | Subject: [PATCH] examples/ClusterMgr: sys_errlist[] has been deprecated in | ||
5 | glibc | ||
6 | |||
7 | Use strerror() instead. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-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 | |||
16 | diff --git a/src/examples/templates/ex46_graph/manager/ClusterMgr.c b/src/examples/templates/ex46_graph/manager/ClusterMgr.c | ||
17 | index 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 | -- | ||
39 | 2.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 @@ | |||
1 | DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running bios" | ||
2 | require ti-ipc-examples.inc | ||
3 | |||
4 | SRC_URI += "file://0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch;patchdir=../git/ipc-examples" | ||
5 | |||
6 | DEPENDS = "ti-ipc ti-xdctools-native ti-sysbios ti-ipc-rtos zip-native" | ||
7 | |||
8 | do_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 | |||
30 | do_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 | |||
49 | FILES:${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 @@ | |||
1 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:IPC" | ||
2 | require ti-ipc-common.inc | ||
3 | require ti-ipc-rtos.inc | ||
4 | |||
5 | LICENSE = "BSD" | ||
6 | LIC_FILES_CHKSUM = "file://${S_ipc-examples}/src/makefile;beginline=1;endline=30;md5=a52324bd5033bb49ea07bade1244ac9a" | ||
7 | |||
8 | INSANE_SKIP:${PN} += "arch" | ||
9 | |||
10 | ALLOW_EMPTY:${PN} = "1" | ||
11 | |||
12 | IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" | ||
13 | |||
14 | do_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 | |||
26 | do_install() { | ||
27 | cd ${S_ipc-examples}/src | ||
28 | IPC_VERSION=`echo ${PV}${RELEASE_SUFFIX} | sed -e 's|\.|_|g'` | ||
29 | } | ||
30 | |||
31 | INHIBIT_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 @@ | |||
1 | DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running linux" | ||
2 | require ti-ipc-examples.inc | ||
3 | |||
4 | DEPENDS = "ti-ipc ti-xdctools-native ti-sysbios ti-ipc-rtos zip-native" | ||
5 | |||
6 | do_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 | |||
24 | do_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 | |||
44 | FILES:${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 @@ | |||
1 | require recipes-ti/includes/ti-paths.inc | ||
2 | |||
3 | TI_IPC_EXAMPLES_GIT_URI = "git://git.ti.com/ipc/ipc-examples.git" | ||
4 | TI_IPC_EXAMPLES_DEST_SUFFIX = "git/ipc-examples" | ||
5 | TI_IPC_EXAMPLES_GIT_PROTOCOL = "git" | ||
6 | TI_IPC_EXAMPLES_GIT_BRANCH = "master" | ||
7 | TI_IPC_EXAMPLES_NAME = "ipc-examples" | ||
8 | |||
9 | SRC_URI += "${TI_IPC_EXAMPLES_GIT_URI};\ | ||
10 | destsuffix=${TI_IPC_EXAMPLES_DEST_SUFFIX};\ | ||
11 | protocol=${TI_IPC_EXAMPLES_GIT_PROTOCOL};\ | ||
12 | branch=${TI_IPC_EXAMPLES_GIT_BRANCH};\ | ||
13 | name=${TI_IPC_EXAMPLES_NAME}" | ||
14 | |||
15 | TI_IPC_METADATA_GIT_URI = "git://git.ti.com/ipc/ipc-metadata.git" | ||
16 | TI_IPC_METADATA_DEST_SUFFIX = "git/ipc-metadata" | ||
17 | TI_IPC_METADATA_GIT_PROTOCOL = "git" | ||
18 | TI_IPC_METADATA_GIT_BRANCH = "master" | ||
19 | TI_IPC_METADATA_NAME = "ipc-metadata" | ||
20 | |||
21 | SRC_URI += "${TI_IPC_METADATA_GIT_URI};\ | ||
22 | destsuffix=${TI_IPC_METADATA_DEST_SUFFIX};\ | ||
23 | protocol=${TI_IPC_METADATA_GIT_PROTOCOL};\ | ||
24 | branch=${TI_IPC_METADATA_GIT_BRANCH};\ | ||
25 | name=${TI_IPC_METADATA_NAME}" | ||
26 | |||
27 | # Corresponds to tag: 3.51.00.00 | ||
28 | TI_IPC_METADATA_SRCREV = "1bf668fd6b0ec2ef6956fa55b8484d0b21a9f9e2" | ||
29 | # Corresponds to tag: 3.51.00.00 | ||
30 | TI_IPC_EXAMPLES_SRCREV = "4707fcbbe0d136e781c4a7ffdc072be407c34358" | ||
31 | |||
32 | SRCREV_FORMAT = "default" | ||
33 | SRCREV_ipc-metadata = "${TI_IPC_METADATA_SRCREV}" | ||
34 | SRCREV_ipc-examples = "${TI_IPC_EXAMPLES_SRCREV}" | ||
35 | |||
36 | S_ipc-examples = "${WORKDIR}/git/ipc-examples" | ||
37 | S_ipc-metadata = "${WORKDIR}/git/ipc-metadata" | ||
38 | |||
39 | RELEASE_TYPE = "GA" | ||
40 | RELEASE_SUFFIX = "" | ||
41 | |||
42 | PR = "${INC_PR}.r0" | ||
43 | |||
44 | DEPENDS:append:omap-a15 = " ti-cgt6x-native \ | ||
45 | ti-cgt-arm-native \ | ||
46 | gcc-arm-baremetal-native \ | ||
47 | " | ||
48 | DEPENDS:append:omapl138 = " ti-cgt6x-native \ | ||
49 | " | ||
50 | |||
51 | IPC_TARGETS = "" | ||
52 | |||
53 | IPC_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 | |||
60 | IPC_TARGETS:omapl138 = "\ | ||
61 | ti.targets.elf.C674="${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" \ | ||
62 | " | ||
63 | |||
64 | PARALLEL_XDC = "${@oe.utils.parallel_make_argument(d, '--jobs=%d')}" | ||
65 | EXTRA_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 @@ | |||
1 | require ti-ipc.inc | ||
2 | require ti-ipc-common.inc | ||
3 | require ti-ipc-rtos.inc | ||
4 | |||
5 | DEPENDS = "ti-xdctools-native ti-sysbios doxygen-native zip-native" | ||
6 | |||
7 | PACKAGES =+ "${PN}-fw" | ||
8 | FILES:${PN}-fw = "${base_libdir}/firmware/*" | ||
9 | FILES:${PN}-dev += "${IPC_INSTALL_DIR_RECIPE}" | ||
10 | |||
11 | INSANE_SKIP:${PN}-fw += "arch" | ||
12 | INSANE_SKIP:${PN}-dev += "arch" | ||
13 | |||
14 | ALLOW_EMPTY:${PN} = "1" | ||
15 | |||
16 | IPC_PACKAGE_DIR = "${S}/ipc-package" | ||
17 | |||
18 | do_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 | |||
64 | do_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 | |||
75 | KFDSPNUM = "0" | ||
76 | |||
77 | KFPLAT = "" | ||
78 | |||
79 | ALTERNATIVE_PRIORITY = "5" | ||
80 | |||
81 | pkg_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 | |||
88 | pkg_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 | |||
95 | pkg_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 | |||
99 | pkg_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 @@ | |||
1 | DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)" | ||
2 | HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:IPC" | ||
3 | |||
4 | LICENSE = "BSD" | ||
5 | LIC_FILES_CHKSUM = "file://${S}/ipc-linux.mak;beginline=1;endline=30;md5=7b327f9b710fd7c95e545b91cec79255" | ||
6 | |||
7 | TI_IPC_GIT_URI = "git://git.ti.com/ipc/ipcdev.git" | ||
8 | TI_IPC_GIT_PROTOCOL = "git" | ||
9 | TI_IPC_GIT_BRANCH = "master" | ||
10 | |||
11 | #Corresponds to 3.51.00.00A | ||
12 | TI_IPC_SRCREV = "7a6e343a208d2849139b7272a67abc01db806e00" | ||
13 | |||
14 | BRANCH = "${TI_IPC_GIT_BRANCH}" | ||
15 | SRC_URI = "${TI_IPC_GIT_URI};protocol=${TI_IPC_GIT_PROTOCOL};branch=${BRANCH};name=ipcdev" | ||
16 | SRCREV = "${TI_IPC_SRCREV}" | ||
17 | |||
18 | CFLAGS += "-fcommon" | ||
19 | |||
20 | S = "${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 @@ | |||
1 | From c3ada6bf49e6fcf7bc49e5bf09754f384838ca6a Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@ti.com> | ||
3 | Date: Mon, 27 Jul 2015 11:51:52 -0400 | ||
4 | Subject: [PATCH] Add kernel build dir | ||
5 | |||
6 | We build kernel outside of the source directory and the generated version.h | ||
7 | file ends up being in a separate directory from the rest of kernel headers. | ||
8 | Use another variable to point to the kernel build artifacts. | ||
9 | |||
10 | Signed-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 | |||
19 | diff --git a/configure.ac b/configure.ac | ||
20 | index 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 | |||
57 | diff --git a/ipc-linux.mak b/ipc-linux.mak | ||
58 | index 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) | ||
84 | diff --git a/linux/src/mm/Makefile.am b/linux/src/mm/Makefile.am | ||
85 | index 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 | ||
97 | diff --git a/packages/ti/ipc/mm/MmRpc.c b/packages/ti/ipc/mm/MmRpc.c | ||
98 | index 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] | ||
2 | Description=TI IPC Daemon | ||
3 | |||
4 | [Service] | ||
5 | Type=forking | ||
6 | ExecStart=/usr/bin/__LAD_DAEMON__ -g -l lad.txt | ||
7 | |||
8 | [Install] | ||
9 | WantedBy=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 | |||
3 | tiipclad_daemon=/usr/bin/__LAD_DAEMON__ | ||
4 | tiipclad_params="-g -l lad.txt" | ||
5 | |||
6 | test -x "$tiipclad_daemon" || exit 0 | ||
7 | |||
8 | case "$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 | ||
23 | esac | ||
24 | |||
25 | exit 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 @@ | |||
1 | DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)" | ||
2 | HOMEPAGE="http://processors.wiki.ti.com/index.php/Category:IPC" | ||
3 | |||
4 | require ti-ipc.inc | ||
5 | require ti-ipc-common.inc | ||
6 | |||
7 | PR = "${INC_PR}.2" | ||
8 | |||
9 | DEPENDS += "virtual/kernel" | ||
10 | |||
11 | SRC_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 | |||
17 | DAEMON = "UNKNOWN" | ||
18 | DAEMON:dra7xx = "lad_dra7xx" | ||
19 | DAEMON:omapl138 = "lad_omapl138" | ||
20 | |||
21 | inherit autotools-brokensep pkgconfig update-rc.d systemd | ||
22 | |||
23 | INITSCRIPT_NAME = "tiipclad-daemon.sh" | ||
24 | INITSCRIPT_PARAMS = "defaults 10" | ||
25 | |||
26 | SYSTEMD_SERVICE:${PN} = "tiipclad-daemon.service" | ||
27 | |||
28 | EXTRA_OECONF += "PLATFORM=${PLATFORM} KERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR} KERNEL_BUILD_DIR=${STAGING_KERNEL_BUILDDIR}" | ||
29 | |||
30 | do_compile[depends] += "virtual/kernel:do_shared_workdir" | ||
31 | |||
32 | do_configure() { | ||
33 | ( cd ${S}; autoreconf -f -i -s ) | ||
34 | oe_runconf | ||
35 | } | ||
36 | |||
37 | do_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 | |||
51 | do_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 | |||
56 | PACKAGES =+ "${PN}-test" | ||
57 | RDEPENDS:${PN}-test += "${PN}" | ||
58 | |||
59 | FILES:${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 @@ | |||
1 | From 1a26cb577ba54dd9214eeb94fed0ce3a0f4603b6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 24 Oct 2020 23:46:39 -0700 | ||
4 | Subject: [PATCH] examples: Remove use of includedir and libdir | ||
5 | |||
6 | These point to standard include and library paths which already are used | ||
7 | from sysroot relative paths secondly, they use absolute paths which | ||
8 | means we are asking to add -I/usr/include which might be ok in a native | ||
9 | build but not in cross build. This helps mitigate QA errors found with | ||
10 | OE build system since it finds it adding host include and library search | ||
11 | paths to linker/compiler commandline | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | examples/Makefile.am | 5 +---- | ||
17 | 1 file changed, 1 insertion(+), 4 deletions(-) | ||
18 | |||
19 | diff --git a/examples/Makefile.am b/examples/Makefile.am | ||
20 | index 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 | -- | ||
37 | 2.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 @@ | |||
1 | SUMMARY = "TI RPMsg Char Sample Applications and Tests" | ||
2 | |||
3 | require ti-rpmsg-char.inc | ||
4 | |||
5 | SRC_URI += "file://0001-examples-Remove-use-of-includedir-and-libdir.patch" | ||
6 | |||
7 | DEPENDS = "ti-rpmsg-char" | ||
8 | |||
9 | inherit autotools pkgconfig | ||
10 | |||
11 | EXTRA_OEMAKE = "-C ${B}/examples" | ||
12 | |||
13 | PR = "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 @@ | |||
1 | SUMMARY = "TI RPMsg Char Utility Library" | ||
2 | |||
3 | LICENSE = "BSD-3-Clause" | ||
4 | LIC_FILES_CHKSUM = "file://${S}/src/rpmsg_char.c;beginline=1;endline=31;md5=71987db43a2159cff5ea00505c6fce58" | ||
5 | |||
6 | PROTOCOL = "git" | ||
7 | BRANCH = "master" | ||
8 | SRC_URI = "git://git.ti.com/rpmsg/ti-rpmsg-char.git;protocol=${PROTOCOL};branch=${BRANCH};" | ||
9 | |||
10 | # Initial 0.3.1 release | ||
11 | SRCREV = "0824546f61bda7715519841d9b9f0fb030ddfaf2" | ||
12 | |||
13 | PV = "0.3.1+git${SRCPV}" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | COMPATIBLE_HOST ?= "null" | ||
18 | COMPATIBLE_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 @@ | |||
1 | SUMMARY = "TI RPMsg Char Utility Library" | ||
2 | |||
3 | require ti-rpmsg-char.inc | ||
4 | |||
5 | inherit autotools pkgconfig | ||
6 | |||
7 | PR = "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 @@ | |||
1 | include mathlib.inc | ||
2 | |||
3 | MATHLIB_BUILD_TARGET = "c66x" | ||
4 | MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C66_INSTALL_DIR_RECIPE}" | ||
5 | MATHLIB_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 @@ | |||
1 | include mathlib.inc | ||
2 | |||
3 | MATHLIB_BUILD_TARGET = "c674x" | ||
4 | MATHLIB_INSTALL_DIR_RECIPE = "${MATHLIB_C674_INSTALL_DIR_RECIPE}" | ||
5 | MATHLIB_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 @@ | |||
1 | SUMMARY = "MATHLIB contains optimized floating-point math functions for TI DSPs" | ||
2 | HOMEPAGE = "http://git.ti.com/ep-processor-libraries/mathlib" | ||
3 | LICENSE = "BSD-3-Clause" | ||
4 | |||
5 | require ../includes/ti-paths.inc | ||
6 | |||
7 | PV = "3_1_2_4" | ||
8 | PR = "r2" | ||
9 | |||
10 | DEPENDS = "ti-cgt6x-native \ | ||
11 | ti-xdctools-native \ | ||
12 | ti-sysbios \ | ||
13 | doxygen-native \ | ||
14 | zip-native \ | ||
15 | swtools" | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | MATHLIB_GIT_BRANCH = "master" | ||
20 | MATHLIB_GIT_PROTOCOL = "git" | ||
21 | MATHLIB_GIT_URI = "git://git.ti.com/ep-processor-libraries/mathlib.git" | ||
22 | MATHLIB_SRCREV = "eadcc9547faf69789661b004bb0b5ef53bb69951" | ||
23 | |||
24 | SRC_URI = "${MATHLIB_GIT_URI};protocol=${MATHLIB_GIT_PROTOCOL};branch=${MATHLIB_GIT_BRANCH}" | ||
25 | SRCREV = "${MATHLIB_SRCREV}" | ||
26 | |||
27 | LIC_FILES_CHKSUM = "file://ti/mathlib/src/acosdp/acosdp.h;beginline=1;endline=35;md5=c133f7e139b46385906c861dd9552250" | ||
28 | |||
29 | export MATHLIB_WORK_DIR="${S}" | ||
30 | export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
31 | export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
32 | export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | ||
33 | export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}" | ||
34 | export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools" | ||
35 | export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld" | ||
36 | |||
37 | PATH:append = ":${XDC_INSTALL_DIR}" | ||
38 | |||
39 | XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" | ||
40 | XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_WORK_DIR};" | ||
41 | |||
42 | export XDCPATH | ||
43 | |||
44 | MATHLIB_PACKAGE_NAME = "mathlib_${MATHLIB_BUILD_TARGET}_${PV}" | ||
45 | |||
46 | do_compile() { | ||
47 | cd ${MATHLIB_WORK_DIR}/ti/mathlib; | ||
48 | xdc XDCARGS="${MATHLIB_BUILD_TARGET} bundle" XDCOPTIONS="-v" | ||
49 | } | ||
50 | |||
51 | do_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 | |||
59 | inherit deploy | ||
60 | addtask deploy before do_build after do_install | ||
61 | |||
62 | do_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 | |||
72 | ALLOW_EMPTY:${PN} = "1" | ||
73 | FILES:${PN}-dev += "${MATHLIB_INSTALL_DIR_RECIPE}" | ||
74 | |||
75 | INSANE_SKIP:${PN}-dev = "arch" | ||
76 | COMPATIBLE_HOST ?= "null" | ||
77 | COMPATIBLE_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 @@ | |||
1 | DESCRIPTION = "TI OpenMP RTOS" | ||
2 | HOMEPAGE = "git://git.ti.com/openmp/ti-openmp-dsp-runtime.git" | ||
3 | LICENSE = "BSD" | ||
4 | |||
5 | require recipes-ti/includes/ti-paths.inc | ||
6 | |||
7 | inherit features_check | ||
8 | |||
9 | REQUIRED_MACHINE_FEATURES = "dsp" | ||
10 | REQUIRED_DISTRO_FEATURES = "openmp" | ||
11 | |||
12 | PV = "2_06_03_00" | ||
13 | PR = "r0" | ||
14 | |||
15 | OPENMP_RTOS_GIT_URI = "git://git.ti.com/openmp/ti-openmp-dsp-runtime.git" | ||
16 | OPENMP_RTOS_GIT_PROTOCOL = "git" | ||
17 | OPENMP_RTOS_GIT_BRANCH = "master" | ||
18 | |||
19 | BRANCH = "${OPENMP_RTOS_GIT_BRANCH}" | ||
20 | SRC_URI = "${OPENMP_RTOS_GIT_URI};protocol=${OPENMP_RTOS_GIT_PROTOCOL};branch=${BRANCH}" | ||
21 | |||
22 | SRCREV = "c090eb664d9815a36ead0e14f31e102590680fb8" | ||
23 | |||
24 | LIC_FILES_CHKSUM = "file://docs/license/omp_manifest_template.html;md5=61a6972303c0447b7c056195d7ebafee" | ||
25 | |||
26 | DEPENDS = "common-csl-ip-rtos doxygen-native libulm ti-xdctools-native ti-ipc-rtos ti-sysbios ti-cgt6x-native zip-native" | ||
27 | |||
28 | COMPATIBLE_MACHINE = "omap-a15" | ||
29 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
30 | |||
31 | S = "${WORKDIR}/git" | ||
32 | export IPC_DIR = "${IPC_INSTALL_DIR}" | ||
33 | export XDC_DIR = "${XDC_INSTALL_DIR}" | ||
34 | export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}" | ||
35 | export ULM_DIR ="${STAGING_DIR_TARGET}/usr/share/ti/ulm" | ||
36 | export C6636_PDK_DIR ="${PDK_INSTALL_DIR}" | ||
37 | export AM572_PDK_DIR ="${PDK_INSTALL_DIR}" | ||
38 | export XDCCGROOT = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | ||
39 | |||
40 | export BUILD_AM572 = "0" | ||
41 | |||
42 | BUILD_AM572:omap-a15 = "1" | ||
43 | |||
44 | RELEASE_TARGET = "" | ||
45 | RELEASE_TARGET:omap-a15 = "am57xx" | ||
46 | |||
47 | do_compile() { | ||
48 | make -f utils/product/Makefile .zipfile | ||
49 | } | ||
50 | |||
51 | do_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 | |||
56 | ALLOW_EMPTY:${PN} = "1" | ||
57 | |||
58 | FILES:${PN}-dev += " \ | ||
59 | ${OMP_INSTALL_DIR_RECIPE}/ \ | ||
60 | " | ||
61 | |||
62 | INSANE_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 @@ | |||
1 | DESCRIPTION = "TI Operating System Abstraction Library (OSAL)" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/osal" | ||
3 | LICENSE = "BSD & EPL-1.0" | ||
4 | SECTION = "devel" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | |||
9 | S = "${WORKDIR}/osal_${PV}" | ||
10 | |||
11 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/osal/${PV}/exports/osal_${PV}.tar.gz;name=osaltarball" | ||
12 | |||
13 | do_install() { | ||
14 | install -d ${D}${OSAL_INSTALL_DIR_RECIPE} | ||
15 | cp -pPrf ${S}/* ${D}${OSAL_INSTALL_DIR_RECIPE} | ||
16 | } | ||
17 | |||
18 | INSANE_SKIP:${PN}-dev = "staticdev" | ||
19 | |||
20 | ALLOW_EMPTY:${PN} = "1" | ||
21 | FILES:${PN}-dev += "${OSAL_INSTALL_DIR_RECIPE}" | ||
22 | |||
23 | COMPATIBLE_HOST ?= "null" | ||
24 | COMPATIBLE_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 @@ | |||
1 | require ti-osal.inc | ||
2 | |||
3 | PV = "1_24_00_09" | ||
4 | PR = "r0" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://osal_${PV}_Manifest.html;md5=c110191994d011cee4cd02189ed3c9f4" | ||
7 | |||
8 | SRC_URI[osaltarball.md5sum] = "a7ea85447fa0ff0f786d527a52fa6e8b" | ||
9 | SRC_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 @@ | |||
1 | SUMMARY = "TI Software Tools" | ||
2 | HOMEPAGE = "https://git.ti.com/ep-processor-libraries/swtools" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "BSD" | ||
5 | LIC_FILES_CHKSUM = "file://ti/mas/swtools/copyright.txt;md5=b1f52a1435051fdb18f8885b0384147d" | ||
6 | |||
7 | require ../includes/ti-paths.inc | ||
8 | |||
9 | DEPENDS = "ti-cgt6x-native \ | ||
10 | ti-sysbios \ | ||
11 | ti-xdctools-native" | ||
12 | |||
13 | PV = "5_0_8" | ||
14 | PR = "r3" | ||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | SWTOOLS_GIT_BRANCH = "master" | ||
18 | SWTOOLS_GIT_PROTOCOL = "git" | ||
19 | SWTOOLS_GIT_URI = "git://git.ti.com/ep-processor-libraries/swtools.git" | ||
20 | SWTOOLS_SRCREV = "7d1c85e686b1466cd2d535fc9cac5baf1aae24a4" | ||
21 | |||
22 | SRC_URI = "${SWTOOLS_GIT_URI};protocol=${SWTOOLS_GIT_PROTOCOL};branch=${SWTOOLS_GIT_BRANCH}" | ||
23 | SRCREV = "${SWTOOLS_SRCREV}" | ||
24 | |||
25 | |||
26 | export C64PCODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" | ||
27 | export C674CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" | ||
28 | export C66CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" | ||
29 | |||
30 | PATH:append = ":${XDC_INSTALL_DIR}" | ||
31 | |||
32 | XDCPATH .= "${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" | ||
33 | |||
34 | export XDCPATH | ||
35 | |||
36 | do_compile() { | ||
37 | cd ${S}/ti/mas/swtools | ||
38 | xdc | ||
39 | } | ||
40 | |||
41 | do_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 | |||
47 | FILES:${PN}-dev += "${SWTOOLS_INSTALL_DIR_RECIPE}" | ||
48 | |||
49 | INSANE_SKIP:${PN}-dev = "arch staticdev" | ||
50 | ALLOW_EMPTY:${PN} = "1" | ||
51 | COMPATIBLE_HOST ?= "null" | ||
52 | COMPATIBLE_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 @@ | |||
1 | SUMMARY = "TI RTOS prebuilt binary firmware images" | ||
2 | |||
3 | LICENSE = "TI-TFL" | ||
4 | LIC_FILES_CHKSUM = "file://${COREBASE}/../meta-ti/licenses/TI-TFL;md5=a1b59cb7ba626b9dbbcbf00f3fbc438a" | ||
5 | |||
6 | COMPATIBLE_MACHINE = "k3" | ||
7 | |||
8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
9 | |||
10 | INHIBIT_DEFAULT_DEPS = "1" | ||
11 | |||
12 | inherit deploy | ||
13 | inherit update-alternatives | ||
14 | |||
15 | PLAT_SFX = "" | ||
16 | PLAT_SFX:j7 = "j721e" | ||
17 | PLAT_SFX:j7200-evm = "j7200" | ||
18 | PLAT_SFX:j7200-hs-evm = "j7200" | ||
19 | PLAT_SFX:am65xx = "am65xx" | ||
20 | PLAT_SFX:am64xx = "am64xx" | ||
21 | |||
22 | FILESEXTRAPATHS:prepend := "${METATIBASE}/recipes-bsp/ti-sci-fw/files/:" | ||
23 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
24 | |||
25 | CORESDK_RTOS_VERSION ?= "08.00.00.26" | ||
26 | PV = "${CORESDK_RTOS_VERSION}" | ||
27 | |||
28 | CLEANBROKEN = "1" | ||
29 | PR = "${INC_PR}.0" | ||
30 | |||
31 | # Secure Build | ||
32 | DEPENDS += "openssl-native" | ||
33 | |||
34 | FILES:${PN} += "${base_libdir}" | ||
35 | |||
36 | TI_SECURE_DEV_PKG ?= "" | ||
37 | |||
38 | RTOS_ETH_FW_DIR = "${S}/ti-eth/${PLAT_SFX}" | ||
39 | RTOS_DM_FW_DIR = "${S}/ti-dm/${PLAT_SFX}" | ||
40 | RTOS_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 | ||
44 | LEGACY_ETH_FW_DIR = "${D}${base_libdir}/firmware/ethfw/" | ||
45 | LEGACY_IPC_FW_DIR = "${D}${base_libdir}/firmware/pdk-ipc/" | ||
46 | LEGACY_DM_FW_DIR = "${D}${base_libdir}/firmware/pdk-ipc/" | ||
47 | |||
48 | DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" | ||
49 | |||
50 | # J7 HS support | ||
51 | do_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 | ||
60 | do_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 | ||
69 | do_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 | ||
80 | do_install() { | ||
81 | : | ||
82 | } | ||
83 | |||
84 | do_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 | |||
101 | do_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 | |||
113 | do_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 | |||
125 | do_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 | |||
131 | do_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 | ||
141 | ALTERNATIVE:${PN}:am65xx = "\ | ||
142 | am65x-mcu-r5f0_0-fw \ | ||
143 | am65x-mcu-r5f0_1-fw \ | ||
144 | " | ||
145 | |||
146 | ALTERNATIVE:${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 | |||
154 | ALTERNATIVE:${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 | |||
166 | ALTERNATIVE:${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 | |||
173 | ALTERNATIVE:${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 | |||
182 | TARGET_MCU_R5FSS0_0:am65xx = "am65x-mcu-r5f0_0-fw" | ||
183 | TARGET_MCU_R5FSS0_1:am65xx = "am65x-mcu-r5f0_1-fw" | ||
184 | |||
185 | TARGET_MAIN_R5FSS0_0:am64xx = "am64-main-r5f0_0-fw" | ||
186 | TARGET_MAIN_R5FSS0_1:am64xx = "am64-main-r5f0_1-fw" | ||
187 | TARGET_MAIN_R5FSS1_0:am64xx = "am64-main-r5f1_0-fw" | ||
188 | TARGET_MAIN_R5FSS1_1:am64xx = "am64-main-r5f1_1-fw" | ||
189 | TARGET_MCU_M4FSS0_0:am64xx = "am64-mcu-m4f0_0-fw" | ||
190 | |||
191 | TARGET_MCU_R5FSS0_0:j7 = "j7-mcu-r5f0_0-fw" | ||
192 | TARGET_MCU_R5FSS0_1:j7 = "j7-mcu-r5f0_1-fw" | ||
193 | TARGET_MAIN_R5FSS0_0:j7 = "j7-main-r5f0_0-fw" | ||
194 | TARGET_MAIN_R5FSS0_1:j7 = "j7-main-r5f0_1-fw" | ||
195 | TARGET_MAIN_R5FSS1_0:j7 = "j7-main-r5f1_0-fw" | ||
196 | TARGET_MAIN_R5FSS1_1:j7 = "j7-main-r5f1_1-fw" | ||
197 | TARGET_C66_0:j7 = "j7-c66_0-fw" | ||
198 | TARGET_C66_1:j7 = "j7-c66_1-fw" | ||
199 | TARGET_C7X:j7 = "j7-c71_0-fw" | ||
200 | |||
201 | TARGET_MCU_R5FSS0_0:j7200-evm = "j7200-mcu-r5f0_0-fw" | ||
202 | TARGET_MCU_R5FSS0_1:j7200-evm = "j7200-mcu-r5f0_1-fw" | ||
203 | TARGET_MAIN_R5FSS0_0:j7200-evm = "j7200-main-r5f0_0-fw" | ||
204 | TARGET_MAIN_R5FSS0_1:j7200-evm = "j7200-main-r5f0_1-fw" | ||
205 | |||
206 | TARGET_MCU_R5FSS0_0:j7200-hs-evm = "j7200-mcu-r5f0_0-fw" | ||
207 | TARGET_MCU_R5FSS0_1:j7200-hs-evm = "j7200-mcu-r5f0_1-fw" | ||
208 | TARGET_MAIN_R5FSS0_0:j7200-hs-evm = "j7200-main-r5f0_0-fw" | ||
209 | TARGET_MAIN_R5FSS0_1:j7200-hs-evm = "j7200-main-r5f0_1-fw" | ||
210 | |||
211 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" | ||
212 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" | ||
213 | |||
214 | ALTERNATIVE_LINK_NAME[am64-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" | ||
215 | ALTERNATIVE_LINK_NAME[am64-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}" | ||
216 | ALTERNATIVE_LINK_NAME[am64-main-r5f1_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0}" | ||
217 | ALTERNATIVE_LINK_NAME[am64-main-r5f1_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1}" | ||
218 | ALTERNATIVE_LINK_NAME[am64-mcu-m4f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_M4FSS0_0}" | ||
219 | |||
220 | ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" | ||
221 | ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" | ||
222 | ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" | ||
223 | ALTERNATIVE_LINK_NAME[j7-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}" | ||
224 | ALTERNATIVE_LINK_NAME[j7-main-r5f1_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0}" | ||
225 | ALTERNATIVE_LINK_NAME[j7-main-r5f1_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1}" | ||
226 | ALTERNATIVE_LINK_NAME[j7-c66_0-fw] = "${base_libdir}/firmware/${TARGET_C66_0}" | ||
227 | ALTERNATIVE_LINK_NAME[j7-c66_1-fw] = "${base_libdir}/firmware/${TARGET_C66_1}" | ||
228 | ALTERNATIVE_LINK_NAME[j7-c71_0-fw] = "${base_libdir}/firmware/${TARGET_C7X}" | ||
229 | |||
230 | ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" | ||
231 | ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" | ||
232 | ALTERNATIVE_LINK_NAME[j7200-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" | ||
233 | ALTERNATIVE_LINK_NAME[j7200-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}" | ||
234 | |||
235 | # Create the firmware alternatives | ||
236 | |||
237 | ALTERNATIVE_TARGET[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_0_release_strip.xer5f" | ||
238 | ALTERNATIVE_TARGET[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f" | ||
239 | |||
240 | ALTERNATIVE_TARGET[am64-main-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu1_0_release_strip.xer5f" | ||
241 | ALTERNATIVE_TARGET[am64-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu1_1_release_strip.xer5f" | ||
242 | ALTERNATIVE_TARGET[am64-main-r5f1_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f" | ||
243 | ALTERNATIVE_TARGET[am64-main-r5f1_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu2_1_release_strip.xer5f" | ||
244 | ALTERNATIVE_TARGET[am64-mcu-m4f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu3_0_release_strip.xer5f" | ||
245 | |||
246 | ALTERNATIVE_TARGET[j7-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f" | ||
247 | ALTERNATIVE_TARGET[j7-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f" | ||
248 | ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f" | ||
249 | ALTERNATIVE_TARGET[j7-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f" | ||
250 | ALTERNATIVE_TARGET[j7-main-r5f1_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_0_release_strip.xer5f" | ||
251 | ALTERNATIVE_TARGET[j7-main-r5f1_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_1_release_strip.xer5f" | ||
252 | ALTERNATIVE_TARGET[j7-c66_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_1_release_strip.xe66" | ||
253 | ALTERNATIVE_TARGET[j7-c66_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_2_release_strip.xe66" | ||
254 | ALTERNATIVE_TARGET[j7-c71_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71" | ||
255 | |||
256 | ALTERNATIVE_TARGET[j7200-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f" | ||
257 | ALTERNATIVE_TARGET[j7200-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f" | ||
258 | ALTERNATIVE_TARGET[j7200-main-r5f0_0-fw] = "${base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f" | ||
259 | ALTERNATIVE_TARGET[j7200-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f" | ||
260 | |||
261 | ALTERNATIVE_PRIORITY = "10" | ||
262 | |||
263 | # make sure that lib/firmware, and all its contents are part of the package | ||
264 | FILES:${PN} += "${base_libdir}/firmware" | ||
265 | |||
266 | # This is used to prevent the build system to_strip the executables | ||
267 | INHIBIT_PACKAGE_STRIP = "1" | ||
268 | INHIBIT_SYSROOT_STRIP = "1" | ||
269 | # This is used to prevent the build system to split the debug info in a separate file | ||
270 | INHIBIT_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 | ||
272 | INSANE_SKIP:${PN} += "arch" | ||
273 | |||
274 | # we don't want to configure and build the source code | ||
275 | do_compile[noexec] = "1" | ||
276 | do_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 @@ | |||
1 | LICENSE = "BSD-3-Clause" | ||
2 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9" | ||
3 | |||
4 | COMPATIBLE_MACHINE = "ti-soc" | ||
5 | |||
6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
7 | |||
8 | INHIBIT_DEFAULT_DEPS = "1" | ||
9 | |||
10 | inherit nopackages deploy | ||
11 | |||
12 | PLAT_SFX = "" | ||
13 | PLAT_SFX:j7 = "/j721e" | ||
14 | PLAT_SFX:j7200-evm = "/j7200" | ||
15 | PLAT_SFX:am65xx = "/am65xx" | ||
16 | PLAT_SFX:am64xx = "/am64x" | ||
17 | |||
18 | # Use weak assignment to set defaults to TI_RTOS_METADATA_* variables | ||
19 | TI_RTOS_METADATA_URI ?= "git://git.ti.com/processor-sdk/coresdk_rtos_releases.git" | ||
20 | TI_RTOS_METADATA_PROTOCOL ?= "git" | ||
21 | TI_RTOS_METADATA_SRCREV ?= "2ecbf45af64bc47806623cc5bf7ab493489acaf9" | ||
22 | TI_RTOS_METADATA_BRANCH ?= "master" | ||
23 | TI_RTOS_METADATA_DIR ?= "${PLAT_SFX}" | ||
24 | TI_RTOS_METADATA_FILE ?= "${S}${TI_RTOS_METADATA_DIR}/metadata.inc" | ||
25 | TI_RTOS_METADATA_FILE:am64xx ?= "${S}${TI_RTOS_METADATA_DIR}/mcusdk_metadata.inc" | ||
26 | |||
27 | PV = "1.0.0+git${SRCPV}" | ||
28 | |||
29 | S = "${WORKDIR}/git" | ||
30 | |||
31 | SRC_URI = "${TI_RTOS_METADATA_URI};branch=${TI_RTOS_METADATA_BRANCH};protocol=${TI_RTOS_METADATA_PROTOCOL}" | ||
32 | SRCREV = "${TI_RTOS_METADATA_SRCREV}" | ||
33 | |||
34 | do_configure[noexec] = "1" | ||
35 | do_compile[noexec] = "1" | ||
36 | do_install[noexec] = "1" | ||
37 | |||
38 | do_deploy () { | ||
39 | : | ||
40 | } | ||
41 | |||
42 | do_deploy:k3 () { | ||
43 | install -d ${DEPLOYDIR} | ||
44 | install -m 0644 ${TI_RTOS_METADATA_FILE} ${DEPLOYDIR}/ | ||
45 | } | ||
46 | |||
47 | addtask 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 @@ | |||
1 | DESCRIPTION = "Provides test pruss firmware for uio based tests" | ||
2 | LICENSE = "BSD-3-Clause" | ||
3 | PV = "1.0.2.0" | ||
4 | require recipes-ti/includes/ti-paths.inc | ||
5 | |||
6 | S = "${WORKDIR}/git" | ||
7 | |||
8 | DEPENDS = "ti-cgt-pru-native" | ||
9 | |||
10 | BRANCH = "master" | ||
11 | LIC_FILES_CHKSUM = "file://Makefile;startline=1;endline=31;md5=0ee4f2c42eb6b04e37859bb55a18b144" | ||
12 | |||
13 | UIO_TEST_PRUSS_GIT_URI = "git://git.ti.com/processor-sdk/uio-test-pruss.git" | ||
14 | UIO_TEST_PRUSS_GIT_PROTOCOL = "git" | ||
15 | SRC_URI = "${UIO_TEST_PRUSS_GIT_URI};protocol=${UIO_TEST_PRUSS_GIT_PROTOCOL};branch=${BRANCH}" | ||
16 | |||
17 | # Corresponds to version 01.00.02.00 | ||
18 | UIO_TEST_PRUSS_SRCREV = "e52a7b099d7203ca52519650df51419e9fef7e0c" | ||
19 | |||
20 | SRCREV = "${UIO_TEST_PRUSS_SRCREV}" | ||
21 | |||
22 | PR = "r0" | ||
23 | |||
24 | COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x" | ||
25 | |||
26 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
27 | |||
28 | DEVICE_NAME = "" | ||
29 | DEVICE_NAME:append:am57xx-evm = "am57xx" | ||
30 | DEVICE_NAME:append:ti33x = "am33xx" | ||
31 | DEVICE_NAME:append:ti43x = "am43xx" | ||
32 | |||
33 | EXTRA_OEMAKE = "CGT_PRU=${TI_CGT_PRU_INSTALL_DIR} DEVICE=${DEVICE_NAME}" | ||
34 | |||
35 | do_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 @@ | |||
1 | DESCRIPTION = "TI Vision Library (VLIB) for C66x" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/libs/vlib/latest/index_FDS.html" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "TI-TSPA & BSD-3-Clause" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | require ../includes/ti-eula-unpack.inc | ||
9 | |||
10 | COMPATIBLE_MACHINE = "omap-a15" | ||
11 | |||
12 | SRC_URI = "http://software-dl.ti.com/libs/vlib/${PV}//exports/vlib_c66x_obj_${PV}_Linux.bin;name=vlibbin" | ||
13 | |||
14 | S = "${WORKDIR}/vlib_c66x_${PV}" | ||
15 | |||
16 | BINFILE="vlib_c66x_obj_${PV}_Linux.bin" | ||
17 | TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}" | ||
18 | TI_BIN_UNPK_CMDS="" | ||
19 | |||
20 | do_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 | |||
26 | ALLOW_EMPTY:${PN} = "1" | ||
27 | FILES:${PN}-dev += "${VLIB_C66_INSTALL_DIR_RECIPE}" | ||
28 | |||
29 | INHIBIT_PACKAGE_STRIP = "1" | ||
30 | INHIBIT_SYSROOT_STRIP = "1" | ||
31 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
32 | INSANE_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 @@ | |||
1 | require vlib-c66x.inc | ||
2 | |||
3 | PV = "3_2_1_0" | ||
4 | PR = "r0" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://docs/VLIB_Software_Manifest.html;md5=75151b04457c8a1ae3c2172ada0eedda" | ||
7 | |||
8 | SRC_URI[vlibbin.md5sum] = "e292fa3f74be60b9110e0ebcc6840fe7" | ||
9 | SRC_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 @@ | |||
1 | DESCRIPTION = "TI eXpress DSP Algorithm Interface Standard (XDAIS) specification" | ||
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais" | ||
3 | LICENSE = "GPLv2" | ||
4 | SECTION = "devel" | ||
5 | |||
6 | require ../includes/ti-paths.inc | ||
7 | require ../includes/ti-staging.inc | ||
8 | |||
9 | S = "${WORKDIR}/xdais_${PV}" | ||
10 | |||
11 | SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais/${PV}/exports/xdais_${PV}.tar.gz;name=xdaistarball" | ||
12 | |||
13 | do_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 | |||
19 | INHIBIT_PACKAGE_STRIP = "1" | ||
20 | INHIBIT_SYSROOT_STRIP = "1" | ||
21 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
22 | INSANE_SKIP:${PN}-dev = "arch" | ||
23 | |||
24 | ALLOW_EMPTY:${PN} = "1" | ||
25 | FILES:${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 @@ | |||
1 | require ti-xdais.inc | ||
2 | |||
3 | PV = "6_26_01_03" | ||
4 | PR = "r1" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://xdais_6_26_01_03_manifest.html;md5=a5a675d49db2f658bb98746ec80cda4e" | ||
7 | |||
8 | SRC_URI[xdaistarball.md5sum] = "9b2bea3408254e737ec0d819a031adf6" | ||
9 | SRC_URI[xdaistarball.sha256sum] = "d7bcbd8bcfe6fdfc5f402e4b125ced6c806dc30bc5296e98d5d43b0b5a237a0d" | ||
10 | |||
11 | INSANE_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 @@ | |||
1 | require ti-xdais.inc | ||
2 | |||
3 | PV = "7_24_00_04" | ||
4 | PR = "r1" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://xdais_7_24_00_04_Manifest.html;md5=fd16442230745f0877cfe1c622669fd6" | ||
7 | |||
8 | SRC_URI[xdaistarball.md5sum] = "f7514085b531f2ae49b37b30194e4989" | ||
9 | SRC_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. | ||
5 | bootloader --append="rootfstype=ext4 ro" | ||
6 | part /boot --source bootimg-efi --sourceparams="loader=grub-efi" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M | ||
7 | part / --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 | |||
5 | part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 1024 --fixed-size 128 --use-uuid | ||
6 | part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 1024 --use-uuid | ||