diff options
292 files changed, 4883 insertions, 2830 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..ae174429 --- /dev/null +++ b/.gitignore | |||
@@ -0,0 +1,6 @@ | |||
1 | *.pyc | ||
2 | *.pyo | ||
3 | *.swp | ||
4 | *.orig | ||
5 | *.rej | ||
6 | *~ | ||
@@ -1,9 +1,2 @@ | |||
1 | |||
2 | This TODO list allows us to track certain actions and lists of patches that | 1 | This TODO list allows us to track certain actions and lists of patches that |
3 | need to be removed at a future date. | 2 | need to be removed at a future date. |
4 | |||
5 | |||
6 | May 2024 - nanbield EOL | ||
7 | ----------------------- | ||
8 | - Remove python3-yamllint: Temporarily carry this new recipe | ||
9 | |||
diff --git a/check_yocto_rules.json b/check_yocto_rules.json new file mode 100644 index 00000000..237aa6a3 --- /dev/null +++ b/check_yocto_rules.json | |||
@@ -0,0 +1,32 @@ | |||
1 | { | ||
2 | "APPEND-1" : { | ||
3 | "skip_vars" : [ "ALTERNATIVE", "FILES", "INSANE_SKIP", "RDEPENDS", "RRECOMMENDS" ] | ||
4 | }, | ||
5 | "APPEND-2" : { | ||
6 | "skip_vars" : [ "KERNEL_LOCALVERSION", "PR", "PV", "S" ], | ||
7 | "file_regex" : { | ||
8 | "meta-ti-bsp\\/recipes-graphics\\/mesa\\/mesa-pvr_\\S+\\.bb" : { | ||
9 | "skip_vars": [ "GALLIUMDRIVERS", "VULKAN_DRIVERS" ] | ||
10 | }, | ||
11 | "meta-ti-bsp\\/recipes-graphics\\/mesa\\/mesa-pvr\\.inc" : { | ||
12 | "skip_vars": [ "TOOLS", "TOOLS_DEPS", "GALLIUMDRIVERS", "VULKAN_DRIVERS" ] | ||
13 | } | ||
14 | } | ||
15 | }, | ||
16 | "GUARD-1" : { | ||
17 | "skip_files" : [ | ||
18 | "meta-ti-bsp/recipes-core/udev/eudev_%.bbappend", | ||
19 | "meta-ti-bsp/recipes-devtools/binutils/binutils-cross-canadian_%.bbappend", | ||
20 | "meta-ti-bsp/recipes-security/optee/optee-%.bbappend", | ||
21 | "meta-ti-bsp/dynamic-layers/openembedded-layer/recipes-bsp/u-boot/u-boot-ti-%.bbappend" | ||
22 | ] | ||
23 | }, | ||
24 | "GUARD-2" : { | ||
25 | "skip_vars" : [ "k3" , "ti-soc" ] | ||
26 | }, | ||
27 | "SUMMARY-1" : { | ||
28 | "skip_files" : [ | ||
29 | "meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb" | ||
30 | ] | ||
31 | } | ||
32 | } | ||
diff --git a/meta-beagle/COPYING.MIT b/meta-beagle/COPYING.MIT new file mode 100644 index 00000000..89de3547 --- /dev/null +++ b/meta-beagle/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-beagle/README b/meta-beagle/README new file mode 100644 index 00000000..a17e6433 --- /dev/null +++ b/meta-beagle/README | |||
@@ -0,0 +1,31 @@ | |||
1 | OpenEmbedded/Yocto layer that extends meta-ti-bsp with BeagleBoard.org 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 | URI: git://git.yoctoproject.org/meta-ti | ||
18 | branch: master | ||
19 | revision: HEAD | ||
20 | layers: meta-ti-bsp | ||
21 | |||
22 | |||
23 | Send pull requests, patches, comments or questions to: | ||
24 | meta-ti@lists.yoctoproject.org | ||
25 | |||
26 | Please note - meta-ti mailing list requires subscription for posting: | ||
27 | https://lists.yoctoproject.org/g/meta-ti | ||
28 | |||
29 | Maintainers: | ||
30 | Denys Dmytriyenko <denys@konsulko.com> | ||
31 | Ryan Eatmon <reatmon@ti.com> | ||
diff --git a/meta-beagle/SECURITY b/meta-beagle/SECURITY new file mode 100644 index 00000000..367adc34 --- /dev/null +++ b/meta-beagle/SECURITY | |||
@@ -0,0 +1,20 @@ | |||
1 | How to Report a Potential Vulnerability? | ||
2 | ======================================== | ||
3 | |||
4 | If you would like to report a public issue (for example, one with a released | ||
5 | CVE number), please report it to the mailing list: | ||
6 | |||
7 | https://lists.yoctoproject.org/g/meta-ti | ||
8 | |||
9 | If you are dealing with a not-yet released or urgent issue, please send a | ||
10 | message to one of the maintainers listed in the README. Include as many | ||
11 | details as possible: | ||
12 | - the layer or software module affected | ||
13 | - the recipe and its version | ||
14 | - any example code, if available | ||
15 | |||
16 | Branches maintained with security fixes | ||
17 | --------------------------------------- | ||
18 | |||
19 | See https://wiki.yoctoproject.org/wiki/Releases for the list of current | ||
20 | releases. We only accept patches for the LTS releases and the master branch. | ||
diff --git a/meta-beagle/conf/layer.conf b/meta-beagle/conf/layer.conf new file mode 100644 index 00000000..87a12268 --- /dev/null +++ b/meta-beagle/conf/layer.conf | |||
@@ -0,0 +1,17 @@ | |||
1 | # We have a conf and classes directory, append to BBPATH | ||
2 | BBPATH .= ":${LAYERDIR}" | ||
3 | |||
4 | # We have a recipes directory, add to BBFILES | ||
5 | BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend" | ||
6 | |||
7 | BBFILE_COLLECTIONS += "meta-beagle" | ||
8 | BBFILE_PATTERN_meta-beagle := "^${LAYERDIR}/" | ||
9 | BBFILE_PRIORITY_meta-beagle = "6" | ||
10 | |||
11 | LAYERSERIES_COMPAT_meta-beagle = "whinlatter" | ||
12 | |||
13 | LAYERDEPENDS_meta-beagle = " \ | ||
14 | meta-ti-bsp \ | ||
15 | " | ||
16 | |||
17 | HOSTTOOLS_NONFATAL += "lz4c" | ||
diff --git a/meta-beagle/conf/machine/beagle-x15.conf b/meta-beagle/conf/machine/beagle-x15.conf new file mode 100644 index 00000000..d0368924 --- /dev/null +++ b/meta-beagle/conf/machine/beagle-x15.conf | |||
@@ -0,0 +1,48 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: BeagleBoard X15 | ||
3 | #@DESCRIPTION: Machine configuration for the BeagleBoard X15 | ||
4 | |||
5 | require conf/machine/include/am57xx.inc | ||
6 | require conf/machine/include/beagle-bsp.inc | ||
7 | |||
8 | KERNEL_DEVICETREE_PREFIX = " \ | ||
9 | ti/omap/am57xx-beagle-x15 \ | ||
10 | ti/omap/am57xx-idk-lcd \ | ||
11 | " | ||
12 | |||
13 | KERNEL_DEVICETREE:bsp-bb_org-6_6 = " \ | ||
14 | ti/omap/am571x-idk.dtb \ | ||
15 | ti/omap/am571x-idk-touchscreen.dtbo \ | ||
16 | ti/omap/am5729-beagleboneai.dtb \ | ||
17 | ti/omap/am572x-idk.dtb \ | ||
18 | ti/omap/am572x-idk-touchscreen.dtbo \ | ||
19 | ti/omap/am574x-idk.dtb \ | ||
20 | ti/omap/am57xx-beagle-x15.dtb \ | ||
21 | ti/omap/am57xx-beagle-x15-revb1.dtb \ | ||
22 | ti/omap/am57xx-beagle-x15-revc.dtb \ | ||
23 | ti/omap/am57xx-evm.dtbo \ | ||
24 | ti/omap/am57xx-idk-lcd-osd101t2045.dtbo \ | ||
25 | ti/omap/am57xx-idk-lcd-osd101t2587.dtbo \ | ||
26 | " | ||
27 | |||
28 | KERNEL_DEVICETREE:bsp-bb_org-6_12 = " \ | ||
29 | ti/omap/am571x-idk.dtb \ | ||
30 | ti/omap/am571x-idk-touchscreen.dtbo \ | ||
31 | ti/omap/am5729-beagleboneai.dtb \ | ||
32 | ti/omap/am572x-idk.dtb \ | ||
33 | ti/omap/am572x-idk-touchscreen.dtbo \ | ||
34 | ti/omap/am574x-idk.dtb \ | ||
35 | ti/omap/am57xx-beagle-x15.dtb \ | ||
36 | ti/omap/am57xx-beagle-x15-revb1.dtb \ | ||
37 | ti/omap/am57xx-beagle-x15-revc.dtb \ | ||
38 | ti/omap/am57xx-evm.dtbo \ | ||
39 | ti/omap/am57xx-evm-ov10635.dtbo \ | ||
40 | ti/omap/am57xx-idk-lcd-osd101t2045.dtbo \ | ||
41 | ti/omap/am57xx-idk-lcd-osd101t2587.dtbo \ | ||
42 | " | ||
43 | |||
44 | MACHINE_GUI_CLASS = "bigscreen" | ||
45 | |||
46 | SERIAL_CONSOLES = "115200;ttyS2" | ||
47 | |||
48 | UBOOT_MACHINE = "am57xx_evm_config" | ||
diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf b/meta-beagle/conf/machine/beaglebone-ai64-k3r5.conf index f57ae065..1bdfd7a1 100644 --- a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf +++ b/meta-beagle/conf/machine/beaglebone-ai64-k3r5.conf | |||
@@ -3,6 +3,7 @@ | |||
3 | #@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core) | 3 | #@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core) |
4 | 4 | ||
5 | require conf/machine/include/k3r5.inc | 5 | require conf/machine/include/k3r5.inc |
6 | require conf/machine/include/beagle-bsp.inc | ||
6 | 7 | ||
7 | SYSFW_SOC = "j721e" | 8 | SYSFW_SOC = "j721e" |
8 | SYSFW_CONFIG = "evm" | 9 | SYSFW_CONFIG = "evm" |
@@ -14,10 +15,4 @@ UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" | |||
14 | UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" | 15 | UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" |
15 | UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" | 16 | UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" |
16 | 17 | ||
17 | UBOOT_MACHINE = "j721e_evm_r5_defconfig" | 18 | UBOOT_MACHINE = "j721e_beagleboneai64_r5_defconfig" |
18 | |||
19 | |||
20 | # UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build | ||
21 | # along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc | ||
22 | # under meta-ti-bsp/recipes-bsp/u-boot/ for more details. | ||
23 | UBOOT_CONFIG_FRAGMENTS = "j721e_beagleboneai64_r5.config" | ||
diff --git a/meta-beagle/conf/machine/beaglebone-ai64.conf b/meta-beagle/conf/machine/beaglebone-ai64.conf new file mode 100644 index 00000000..0504832c --- /dev/null +++ b/meta-beagle/conf/machine/beaglebone-ai64.conf | |||
@@ -0,0 +1,95 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: BeagleBone AI-64 (A72) | ||
3 | #@DESCRIPTION: Machine configuration for the BeagleBone AI-64 board (A72 core) | ||
4 | |||
5 | require conf/machine/include/j721e.inc | ||
6 | require conf/machine/include/beagle-bsp.inc | ||
7 | |||
8 | UBOOT_MACHINE = "j721e_beagleboneai64_a72_defconfig" | ||
9 | |||
10 | SPL_BINARY = "tispl.bin_unsigned" | ||
11 | |||
12 | KERNEL_DEVICETREE_PREFIX = " \ | ||
13 | ti/k3-j721e \ | ||
14 | " | ||
15 | |||
16 | KERNEL_DEVICETREE:bsp-bb_org-6_6 = " \ | ||
17 | ti/k3-j721e-beagleboneai64-BBORG_MOTOR.dtbo \ | ||
18 | ti/k3-j721e-beagleboneai64-dsi-rpi-7inch-panel.dtbo \ | ||
19 | ti/k3-j721e-beagleboneai64.dtb \ | ||
20 | ti/k3-j721e-beagleboneai64-microtips-mf070zima-lcd3.dtbo \ | ||
21 | ti/k3-j721e-beagleboneai64-pwm-epwm0-p8_13.dtbo \ | ||
22 | ti/k3-j721e-beagleboneai64-pwm-epwm0-p8_13-p8_19.dtbo \ | ||
23 | ti/k3-j721e-beagleboneai64-pwm-epwm0-p8_19.dtbo \ | ||
24 | ti/k3-j721e-beagleboneai64-pwm-epwm2-p9_14.dtbo \ | ||
25 | ti/k3-j721e-beagleboneai64-pwm-epwm2-p9_14-p9_16.dtbo \ | ||
26 | ti/k3-j721e-beagleboneai64-pwm-epwm2-p9_16.dtbo \ | ||
27 | ti/k3-j721e-beagleboneai64-pwm-epwm4-p9_25.dtbo \ | ||
28 | ti/k3-j721e-beagleboneai64-spi-mcspi1-cs0.dtbo \ | ||
29 | ti/k3-j721e-beagleboneai64-spi-mcspi1-cs0-no-miso.dtbo \ | ||
30 | ti/k3-j721e-beagleboneai64-spi-mcspi2-cs0.dtbo \ | ||
31 | ti/k3-j721e-beagleboneai64-spi-mcspi3-cs0-no-miso.dtbo \ | ||
32 | ti/k3-j721e-beagleboneai64-spi-mcspi6-cs0-cs1.dtbo \ | ||
33 | ti/k3-j721e-beagleboneai64-spi-mcspi6-cs0.dtbo \ | ||
34 | ti/k3-j721e-beagleboneai64-spi-mcspi6-cs1-no-miso.dtbo \ | ||
35 | ti/k3-j721e-beagleboneai64-spi-mcspi7-cs0.dtbo \ | ||
36 | ti/k3-j721e-common-proc-board.dtb \ | ||
37 | ti/k3-j721e-common-proc-board-infotainment.dtbo \ | ||
38 | ti/k3-j721e-evm-csi2-ov5640.dtbo \ | ||
39 | ti/k3-j721e-evm-ethfw.dtbo \ | ||
40 | ti/k3-j721e-evm-fusion.dtbo \ | ||
41 | ti/k3-j721e-evm-gesi-exp-board.dtbo \ | ||
42 | ti/k3-j721e-evm-ina2xx.dtbo \ | ||
43 | ti/k3-j721e-evm-pcie0-ep.dtbo \ | ||
44 | ti/k3-j721e-evm-pcie1-ep.dtbo \ | ||
45 | ti/k3-j721e-evm-quad-port-eth-exp.dtbo \ | ||
46 | ti/k3-j721e-sk-csi2-dual-imx219.dtbo \ | ||
47 | ti/k3-j721e-sk-csi2-ov5640.dtbo \ | ||
48 | ti/k3-j721e-sk.dtb \ | ||
49 | ti/k3-j721e-sk-fpdlink-fusion.dtbo \ | ||
50 | ti/k3-j721e-sk-rpi-hdr-ehrpwm.dtbo \ | ||
51 | " | ||
52 | |||
53 | KERNEL_DEVICETREE:bsp-bb_org-6_12 = " \ | ||
54 | ti/k3-j721e-beagleboneai64-BBORG_MOTOR.dtbo \ | ||
55 | ti/k3-j721e-beagleboneai64-dsi-rpi-7inch-panel.dtbo \ | ||
56 | ti/k3-j721e-beagleboneai64.dtb \ | ||
57 | ti/k3-j721e-beagleboneai64-microtips-mf070zima-lcd3.dtbo \ | ||
58 | ti/k3-j721e-beagleboneai64-pwm-epwm0-p8_13.dtbo \ | ||
59 | ti/k3-j721e-beagleboneai64-pwm-epwm0-p8_13-p8_19.dtbo \ | ||
60 | ti/k3-j721e-beagleboneai64-pwm-epwm0-p8_19.dtbo \ | ||
61 | ti/k3-j721e-beagleboneai64-pwm-epwm2-p9_14.dtbo \ | ||
62 | ti/k3-j721e-beagleboneai64-pwm-epwm2-p9_14-p9_16.dtbo \ | ||
63 | ti/k3-j721e-beagleboneai64-pwm-epwm2-p9_16.dtbo \ | ||
64 | ti/k3-j721e-beagleboneai64-pwm-epwm4-p9_25.dtbo \ | ||
65 | ti/k3-j721e-beagleboneai64-spi-mcspi1-cs0.dtbo \ | ||
66 | ti/k3-j721e-beagleboneai64-spi-mcspi1-cs0-no-miso.dtbo \ | ||
67 | ti/k3-j721e-beagleboneai64-spi-mcspi2-cs0.dtbo \ | ||
68 | ti/k3-j721e-beagleboneai64-spi-mcspi3-cs0-no-miso.dtbo \ | ||
69 | ti/k3-j721e-beagleboneai64-spi-mcspi6-cs0-cs1.dtbo \ | ||
70 | ti/k3-j721e-beagleboneai64-spi-mcspi6-cs0.dtbo \ | ||
71 | ti/k3-j721e-beagleboneai64-spi-mcspi6-cs1-no-miso.dtbo \ | ||
72 | ti/k3-j721e-beagleboneai64-spi-mcspi7-cs0.dtbo \ | ||
73 | ti/k3-j721e-common-proc-board.dtb \ | ||
74 | ti/k3-j721e-common-proc-board-infotainment.dtbo \ | ||
75 | ti/k3-j721e-evm-csi2-ov5640.dtbo \ | ||
76 | ti/k3-j721e-evm-ethfw.dtbo \ | ||
77 | ti/k3-j721e-evm-fusion.dtbo \ | ||
78 | ti/k3-j721e-evm-gesi-exp-board.dtbo \ | ||
79 | ti/k3-j721e-evm-pcie0-ep.dtbo \ | ||
80 | ti/k3-j721e-evm-pcie1-ep.dtbo \ | ||
81 | ti/k3-j721e-evm-pcie-ntb.dtbo \ | ||
82 | ti/k3-j721e-evm-quad-port-eth-exp.dtbo \ | ||
83 | ti/k3-j721e-evm-ub954.dtbo \ | ||
84 | ti/k3-j721e-sk-csi2-dual-imx219.dtbo \ | ||
85 | ti/k3-j721e-sk-csi2-ov5640.dtbo \ | ||
86 | ti/k3-j721e-sk.dtb \ | ||
87 | ti/k3-j721e-sk-fpdlink-fusion.dtbo \ | ||
88 | " | ||
89 | |||
90 | MACHINE_GUI_CLASS = "bigscreen" | ||
91 | |||
92 | # TI has moved a driver out of its kernel tree and into an out of tree module. | ||
93 | # We need to not include that for older kernels since the module is still in | ||
94 | # the kernel. | ||
95 | TI_VXE_VXD_DRIVER:bsp-bb_org-6_6 = "" | ||
diff --git a/meta-beagle/conf/machine/beaglebone.conf b/meta-beagle/conf/machine/beaglebone.conf new file mode 100644 index 00000000..50d09e3e --- /dev/null +++ b/meta-beagle/conf/machine/beaglebone.conf | |||
@@ -0,0 +1,62 @@ | |||
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 | require conf/machine/include/beagle-bsp.inc | ||
7 | |||
8 | KERNEL_DEVICETREE_PREFIX = " \ | ||
9 | ti/omap/am335x-bone \ | ||
10 | ti/omap/am335x-pocketbeagle \ | ||
11 | ti/omap/am335x-sancloud-bbe \ | ||
12 | " | ||
13 | |||
14 | KERNEL_DEVICETREE:bsp-bb_org-6_6 = " \ | ||
15 | ti/omap/am335x-boneblack.dtb \ | ||
16 | ti/omap/am335x-boneblack-revd.dtb \ | ||
17 | ti/omap/am335x-boneblack-uboot.dtb \ | ||
18 | ti/omap/am335x-boneblack-uboot-univ.dtb \ | ||
19 | ti/omap/am335x-boneblack-wireless.dtb \ | ||
20 | ti/omap/am335x-boneblue.dtb \ | ||
21 | ti/omap/am335x-bone.dtb \ | ||
22 | ti/omap/am335x-bonegreen.dtb \ | ||
23 | ti/omap/am335x-bonegreen-gateway.dtb \ | ||
24 | ti/omap/am335x-bonegreen-wireless.dtb \ | ||
25 | ti/omap/am335x-bonegreen-wireless-uboot-univ.dtb \ | ||
26 | ti/omap/am335x-evm.dtb \ | ||
27 | ti/omap/am335x-evmsk.dtb \ | ||
28 | ti/omap/am335x-icev2.dtb \ | ||
29 | ti/omap/am335x-osd3358-sm-red.dtb \ | ||
30 | ti/omap/am335x-pocketbeagle.dtb \ | ||
31 | ti/omap/am335x-sancloud-bbe.dtb \ | ||
32 | ti/omap/am335x-sancloud-bbe-extended-wifi.dtb \ | ||
33 | ti/omap/am335x-sancloud-bbe-lite.dtb \ | ||
34 | " | ||
35 | |||
36 | KERNEL_DEVICETREE:bsp-bb_org-6_12 = " \ | ||
37 | ti/omap/am335x-boneblack.dtb \ | ||
38 | ti/omap/am335x-boneblack-revd.dtb \ | ||
39 | ti/omap/am335x-boneblack-uboot.dtb \ | ||
40 | ti/omap/am335x-boneblack-uboot-univ.dtb \ | ||
41 | ti/omap/am335x-boneblack-wireless.dtb \ | ||
42 | ti/omap/am335x-boneblue.dtb \ | ||
43 | ti/omap/am335x-bone.dtb \ | ||
44 | ti/omap/am335x-bonegreen.dtb \ | ||
45 | ti/omap/am335x-bonegreen-eco.dtb \ | ||
46 | ti/omap/am335x-bonegreen-gateway.dtb \ | ||
47 | ti/omap/am335x-bonegreen-wireless.dtb \ | ||
48 | ti/omap/am335x-bonegreen-wireless-uboot-univ.dtb \ | ||
49 | ti/omap/am335x-evm.dtb \ | ||
50 | ti/omap/am335x-evmsk.dtb \ | ||
51 | ti/omap/am335x-icev2.dtb \ | ||
52 | ti/omap/am335x-osd3358-sm-red.dtb \ | ||
53 | ti/omap/am335x-pocketbeagle.dtb \ | ||
54 | ti/omap/am335x-sancloud-bbe.dtb \ | ||
55 | ti/omap/am335x-sancloud-bbe-extended-wifi.dtb \ | ||
56 | ti/omap/am335x-sancloud-bbe-lite.dtb \ | ||
57 | " | ||
58 | |||
59 | MACHINE_GUI_CLASS = "bigscreen" | ||
60 | MACHINE_FEATURES += "screen" | ||
61 | |||
62 | SERIAL_CONSOLES = "115200;ttyS0" | ||
diff --git a/meta-beagle/conf/machine/beagleplay-k3r5.conf b/meta-beagle/conf/machine/beagleplay-k3r5.conf new file mode 100644 index 00000000..ea4c5160 --- /dev/null +++ b/meta-beagle/conf/machine/beagleplay-k3r5.conf | |||
@@ -0,0 +1,7 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: BeaglePlay (R5F) | ||
3 | #@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core) | ||
4 | |||
5 | require conf/machine/beagleplay-ti-k3r5.conf | ||
6 | |||
7 | require conf/machine/include/beagle-bsp.inc | ||
diff --git a/meta-beagle/conf/machine/beagleplay.conf b/meta-beagle/conf/machine/beagleplay.conf new file mode 100644 index 00000000..06f0e123 --- /dev/null +++ b/meta-beagle/conf/machine/beagleplay.conf | |||
@@ -0,0 +1,62 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: BeaglePlay (A53) | ||
3 | #@DESCRIPTION: Machine configuration for the BeaglePlay board (A53 core) | ||
4 | |||
5 | require conf/machine/beagleplay-ti.conf | ||
6 | |||
7 | require conf/machine/include/beagle-bsp.inc | ||
8 | |||
9 | KERNEL_DEVICETREE:bsp-bb_org-6_6 = " \ | ||
10 | ti/k3-am625-beagleplay-csi2-ov5640.dtbo \ | ||
11 | ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtbo \ | ||
12 | ti/k3-am625-beagleplay.dtb \ | ||
13 | ti/k3-am625-beagleplay-lincolntech-lcd185-panel.dtbo \ | ||
14 | ti/k3-am625-minimal.dtb \ | ||
15 | ti/k3-am625-sk.dtb \ | ||
16 | ti/k3-am625-sk-ecap-capture.dtbo \ | ||
17 | ti/k3-am625-sk-lincolntech-lcd185-panel.dtbo \ | ||
18 | ti/k3-am625-sk-m2-cc3301.dtbo \ | ||
19 | ti/k3-am625-sk-mcspi-loopback.dtbo \ | ||
20 | ti/k3-am625-sk-microtips-mf101hie-panel.dtbo \ | ||
21 | ti/k3-am625-sk-rpi-hdr-ehrpwm.dtbo \ | ||
22 | ti/k3-am62x-sk-csi2-imx219.dtbo \ | ||
23 | ti/k3-am62x-sk-csi2-ov5640.dtbo \ | ||
24 | ti/k3-am62x-sk-csi2-tevi-ov5640.dtbo \ | ||
25 | ti/k3-am62x-sk-csi2-v3link-fusion.dtbo \ | ||
26 | ti/k3-am62x-sk-dmtimer-pwm.dtbo \ | ||
27 | ti/k3-am62x-sk-eqep.dtbo \ | ||
28 | ti/k3-am62x-sk-fastboot-disable-hdmi.dtbo \ | ||
29 | ti/k3-am62x-sk-hdmi-audio.dtbo \ | ||
30 | ti/k3-am62x-sk-lpm-wkup-sources.dtbo \ | ||
31 | ti/k3-am62x-sk-mcan.dtbo \ | ||
32 | ti/k3-am62x-sk-microtips-mf103hie-lcd2.dtbo \ | ||
33 | ti/k3-am62x-sk-pwm.dtbo \ | ||
34 | " | ||
35 | |||
36 | KERNEL_DEVICETREE:bsp-bb_org-6_12 = " \ | ||
37 | ti/k3-am625-beagleplay-bcfserial-no-firmware.dtbo \ | ||
38 | ti/k3-am625-beagleplay-csi2-ov5640.dtbo \ | ||
39 | ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtbo \ | ||
40 | ti/k3-am625-beagleplay.dtb \ | ||
41 | ti/k3-am625-beagleplay-lincolntech-lcd185-panel.dtbo \ | ||
42 | ti/k3-am625-sk.dtb \ | ||
43 | ti/k3-am625-sk-lincolntech-lcd185-panel.dtbo \ | ||
44 | ti/k3-am625-sk-m2-cc3351.dtbo \ | ||
45 | ti/k3-am625-sk-mcspi-loopback.dtbo \ | ||
46 | ti/k3-am625-sk-microtips-mf101hie-panel.dtbo \ | ||
47 | ti/k3-am625-sk-rpi-hdr-ehrpwm.dtbo \ | ||
48 | ti/k3-am62x-sk-csi2-imx219.dtbo \ | ||
49 | ti/k3-am62x-sk-csi2-ov5640.dtbo \ | ||
50 | ti/k3-am62x-sk-csi2-tevi-ov5640.dtbo \ | ||
51 | ti/k3-am62x-sk-csi2-v3link-fusion.dtbo \ | ||
52 | ti/k3-am62x-sk-dmtimer-pwm.dtbo \ | ||
53 | ti/k3-am62x-sk-ecap-capture.dtbo \ | ||
54 | ti/k3-am62x-sk-eqep.dtbo \ | ||
55 | ti/k3-am62x-sk-fastboot-disable-hdmi.dtbo \ | ||
56 | ti/k3-am62x-sk-hdmi-audio.dtbo \ | ||
57 | ti/k3-am62x-sk-lpm-io-ddr-wkup-sources.dtbo \ | ||
58 | ti/k3-am62x-sk-lpm-wkup-sources.dtbo \ | ||
59 | ti/k3-am62x-sk-mcan.dtbo \ | ||
60 | ti/k3-am62x-sk-microtips-mf103hie-lcd2.dtbo \ | ||
61 | ti/k3-am62x-sk-pwm.dtbo \ | ||
62 | " | ||
diff --git a/meta-beagle/conf/machine/beagley-ai-k3r5.conf b/meta-beagle/conf/machine/beagley-ai-k3r5.conf new file mode 100644 index 00000000..07198f2e --- /dev/null +++ b/meta-beagle/conf/machine/beagley-ai-k3r5.conf | |||
@@ -0,0 +1,13 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: BeagleY AI (R5F) | ||
3 | #@DESCRIPTION: Machine configuration for the BeagleY AI (R5F core) | ||
4 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | require conf/machine/include/beagle-bsp.inc | ||
7 | |||
8 | SYSFW_SOC = "j722s" | ||
9 | SYSFW_CONFIG = "evm" | ||
10 | SYSFW_SUFFIX = "hs-fs" | ||
11 | |||
12 | UBOOT_MACHINE = "j722s_evm_r5_defconfig" | ||
13 | UBOOT_MACHINE:bsp-bb_org-6_12 = "am67a_beagley_ai_r5_defconfig" | ||
diff --git a/meta-beagle/conf/machine/beagley-ai.conf b/meta-beagle/conf/machine/beagley-ai.conf new file mode 100644 index 00000000..8fbf3cea --- /dev/null +++ b/meta-beagle/conf/machine/beagley-ai.conf | |||
@@ -0,0 +1,107 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: BeagleY AI (A53) | ||
3 | #@DESCRIPTION: Machine configuration for the BeagleY AI board (A53 core) | ||
4 | |||
5 | require conf/machine/include/j722s.inc | ||
6 | require conf/machine/include/beagle-bsp.inc | ||
7 | |||
8 | UBOOT_MACHINE:bsp-bb_org-6_6 = "j722s_evm_a53_config" | ||
9 | |||
10 | UBOOT_MACHINE = "am67a_beagley_ai_a53_defconfig" | ||
11 | |||
12 | KERNEL_DEVICETREE_PREFIX = " \ | ||
13 | ti/k3-am67a \ | ||
14 | ti/k3-j722s \ | ||
15 | " | ||
16 | |||
17 | KERNEL_DEVICETREE:bsp-bb_org-6_6 = " \ | ||
18 | ti/k3-am67a-beagley-ai.dtb \ | ||
19 | ti/k3-am67a-beagley-ai-i2c1-400000.dtbo \ | ||
20 | ti/k3-am67a-beagley-ai-i2c1-ads1115.dtbo \ | ||
21 | ti/k3-am67a-beagley-ai-i2c1-rtc-rv3028.dtbo \ | ||
22 | ti/k3-am67a-beagley-ai-i2c1-ssd1306.dtbo \ | ||
23 | ti/k3-am67a-beagley-ai-mikroe-eth.dtbo \ | ||
24 | ti/k3-am67a-beagley-ai-mikroe-microsd.dtbo \ | ||
25 | ti/k3-am67a-beagley-ai-pps-gpio18.dtbo \ | ||
26 | ti/k3-am67a-beagley-ai-pwm-ecap0-gpio12.dtbo \ | ||
27 | ti/k3-am67a-beagley-ai-pwm-ecap1-gpio16.dtbo \ | ||
28 | ti/k3-am67a-beagley-ai-pwm-ecap1-gpio21.dtbo \ | ||
29 | ti/k3-am67a-beagley-ai-pwm-ecap2-gpio17.dtbo \ | ||
30 | ti/k3-am67a-beagley-ai-pwm-ecap2-gpio18.dtbo \ | ||
31 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio12.dtbo \ | ||
32 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio14.dtbo \ | ||
33 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio15.dtbo \ | ||
34 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio15-gpio12.dtbo \ | ||
35 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio15-gpio14.dtbo \ | ||
36 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio5.dtbo \ | ||
37 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio5-gpio12.dtbo \ | ||
38 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio5-gpio14.dtbo \ | ||
39 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio13.dtbo \ | ||
40 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio20.dtbo \ | ||
41 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio21.dtbo \ | ||
42 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio21-gpio13.dtbo \ | ||
43 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio21-gpio20.dtbo \ | ||
44 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio6.dtbo \ | ||
45 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio6-gpio13.dtbo \ | ||
46 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio6-gpio20.dtbo \ | ||
47 | ti/k3-am67a-beagley-ai-spi0-1cs.dtbo \ | ||
48 | ti/k3-am67a-beagley-ai-spi0-2cs.dtbo \ | ||
49 | ti/k3-am67a-beagley-ai-spidev0.dtbo \ | ||
50 | ti/k3-am67a-beagley-ai-uart-ttyama0.dtbo \ | ||
51 | ti/k3-j722s-evm-csi2-ov5640.dtbo \ | ||
52 | ti/k3-j722s-evm-csi2-quad-rpi-cam-imx219.dtbo \ | ||
53 | ti/k3-j722s-evm-csi2-quad-tevi-ov5640.dtbo \ | ||
54 | ti/k3-j722s-evm-dsi-rpi-7inch-panel.dtbo \ | ||
55 | ti/k3-j722s-evm.dtb \ | ||
56 | ti/k3-j722s-evm-fpdlink-fusion.dtbo \ | ||
57 | ti/k3-j722s-evm-microtips-mf101hie-panel.dtbo \ | ||
58 | ti/k3-j722s-evm-pwm.dtbo \ | ||
59 | ti/k3-j722s-evm-v3link-fusion.dtbo \ | ||
60 | " | ||
61 | |||
62 | KERNEL_DEVICETREE:bsp-bb_org-6_12 = " \ | ||
63 | ti/k3-am67a-beagley-ai.dtb \ | ||
64 | ti/k3-am67a-beagley-ai-i2c1-400000.dtbo \ | ||
65 | ti/k3-am67a-beagley-ai-i2c1-ads1115.dtbo \ | ||
66 | ti/k3-am67a-beagley-ai-i2c1-rtc-rv3028.dtbo \ | ||
67 | ti/k3-am67a-beagley-ai-i2c1-ssd1306.dtbo \ | ||
68 | ti/k3-am67a-beagley-ai-mikroe-eth.dtbo \ | ||
69 | ti/k3-am67a-beagley-ai-mikroe-microsd.dtbo \ | ||
70 | ti/k3-am67a-beagley-ai-pps-gpio18.dtbo \ | ||
71 | ti/k3-am67a-beagley-ai-pwm-ecap0-gpio12.dtbo \ | ||
72 | ti/k3-am67a-beagley-ai-pwm-ecap1-gpio16.dtbo \ | ||
73 | ti/k3-am67a-beagley-ai-pwm-ecap1-gpio21.dtbo \ | ||
74 | ti/k3-am67a-beagley-ai-pwm-ecap2-gpio17.dtbo \ | ||
75 | ti/k3-am67a-beagley-ai-pwm-ecap2-gpio18.dtbo \ | ||
76 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio12.dtbo \ | ||
77 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio14.dtbo \ | ||
78 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio15.dtbo \ | ||
79 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio15-gpio12.dtbo \ | ||
80 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio15-gpio14.dtbo \ | ||
81 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio5.dtbo \ | ||
82 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio5-gpio12.dtbo \ | ||
83 | ti/k3-am67a-beagley-ai-pwm-epwm0-gpio5-gpio14.dtbo \ | ||
84 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio13.dtbo \ | ||
85 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio20.dtbo \ | ||
86 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio21.dtbo \ | ||
87 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio21-gpio13.dtbo \ | ||
88 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio21-gpio20.dtbo \ | ||
89 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio6.dtbo \ | ||
90 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio6-gpio13.dtbo \ | ||
91 | ti/k3-am67a-beagley-ai-pwm-epwm1-gpio6-gpio20.dtbo \ | ||
92 | ti/k3-am67a-beagley-ai-spi0-1cs.dtbo \ | ||
93 | ti/k3-am67a-beagley-ai-spi0-2cs.dtbo \ | ||
94 | ti/k3-am67a-beagley-ai-spidev0.dtbo \ | ||
95 | ti/k3-am67a-beagley-ai-uart-ttyama0.dtbo \ | ||
96 | ti/k3-j722s-evm-csi2-quad-rpi-cam-imx219.dtbo \ | ||
97 | ti/k3-j722s-evm-csi2-quad-tevi-ov5640.dtbo \ | ||
98 | ti/k3-j722s-evm-dsi-rpi-7inch-panel.dtbo \ | ||
99 | ti/k3-j722s-evm.dtb \ | ||
100 | ti/k3-j722s-evm-fpdlink-fusion.dtbo \ | ||
101 | ti/k3-j722s-evm-fpdlink-iv-fusion.dtbo \ | ||
102 | ti/k3-j722s-evm-microtips-mf101hie-panel.dtbo \ | ||
103 | ti/k3-j722s-evm-pwm.dtbo \ | ||
104 | ti/k3-j722s-evm-v3link-fusion.dtbo \ | ||
105 | " | ||
106 | |||
107 | MACHINE_GUI_CLASS = "bigscreen" | ||
diff --git a/meta-beagle/conf/machine/include/beagle-bsp.inc b/meta-beagle/conf/machine/include/beagle-bsp.inc new file mode 100644 index 00000000..d180c297 --- /dev/null +++ b/meta-beagle/conf/machine/include/beagle-bsp.inc | |||
@@ -0,0 +1,51 @@ | |||
1 | # Use meta-ti-bsp "multi-BSP" facility to create a custom "bb_org" BSP profile | ||
2 | # with default preferences for Beagle platforms | ||
3 | |||
4 | # Default is bb_org-6_12, but can override with any of the existing options | ||
5 | TI_PREFERRED_BSP ?= "bb_org-6_12" | ||
6 | |||
7 | # =========== | ||
8 | # bb_org-6_12 | ||
9 | # BeagleBoard.org kernel 6.12, u-boot 2025.04 | ||
10 | # based on TI staging trees with extra Beagle-specific features | ||
11 | # but may not be up-to-date with TI version | ||
12 | # =========== | ||
13 | BSP_KERNEL_PROVIDER:bsp-bb_org-6_12 = "linux-bb.org" | ||
14 | BSP_KERNEL_VERSION:bsp-bb_org-6_12 = "6.12.%" | ||
15 | BSP_BOOTLOADER_PROVIDER:bsp-bb_org-6_12 = "u-boot-bb.org" | ||
16 | BSP_BOOTLOADER_VERSION:bsp-bb_org-6_12 = "2025.%" | ||
17 | KERNEL_DEVICETREE_PREFIX:bsp-bb_org-6_12 = "" | ||
18 | |||
19 | BSP_SGX_DRIVER_PROVIDER:bsp-bb_org-6_12 = "ti-sgx-ddk-km" | ||
20 | BSP_SGX_DRIVER_VERSION:bsp-bb_org-6_12 = "1.17%" | ||
21 | BSP_SGX_UMLIBS_VERSION:bsp-bb_org-6_12 = "1.17%" | ||
22 | BSP_ROGUE_DRIVER_PROVIDER:bsp-bb_org-6_12 = "ti-img-rogue-driver" | ||
23 | BSP_ROGUE_DRIVER_VERSION:bsp-bb_org-6_12 = "24%" | ||
24 | BSP_ROGUE_UMLIBS_VERSION:bsp-bb_org-6_12 = "24%" | ||
25 | BSP_MESA_PVR_VERSION:bsp-bb_org-6_12 = "24%" | ||
26 | |||
27 | # GC320 support requires out-of-tree drivers not yet available in bb.org 6.12 | ||
28 | MACHINE_FEATURES:remove:bsp-bb_org-6_12 = "gc320" | ||
29 | |||
30 | # ========== | ||
31 | # bb_org-6_6 | ||
32 | # BeagleBoard.org kernel 6.6, u-boot 2024.10 | ||
33 | # based on TI staging trees with extra Beagle-specific features | ||
34 | # but may not be up-to-date with TI version | ||
35 | # ========== | ||
36 | BSP_KERNEL_PROVIDER:bsp-bb_org-6_6 = "linux-bb.org" | ||
37 | BSP_KERNEL_VERSION:bsp-bb_org-6_6 = "6.6.%" | ||
38 | BSP_BOOTLOADER_PROVIDER:bsp-bb_org-6_6 = "u-boot-bb.org" | ||
39 | BSP_BOOTLOADER_VERSION:bsp-bb_org-6_6 = "2024.%" | ||
40 | KERNEL_DEVICETREE_PREFIX:bsp-bb_org-6_6 = "" | ||
41 | |||
42 | BSP_SGX_DRIVER_PROVIDER:bsp-bb_org-6_6 = "ti-sgx-ddk-km" | ||
43 | BSP_SGX_DRIVER_VERSION:bsp-bb_org-6_6 = "1.17%" | ||
44 | BSP_SGX_UMLIBS_VERSION:bsp-bb_org-6_6 = "1.17%" | ||
45 | BSP_ROGUE_DRIVER_PROVIDER:bsp-bb_org-6_6 = "ti-img-rogue-driver" | ||
46 | BSP_ROGUE_DRIVER_VERSION:bsp-bb_org-6_6 = "24%" | ||
47 | BSP_ROGUE_UMLIBS_VERSION:bsp-bb_org-6_6 = "24%" | ||
48 | BSP_MESA_PVR_VERSION:bsp-bb_org-6_6 = "24%" | ||
49 | |||
50 | # GC320 support requires out-of-tree drivers not yet available in bb.org 6.6 | ||
51 | MACHINE_FEATURES:remove:bsp-bb_org-6_6 = "gc320" | ||
diff --git a/meta-beagle/conf/machine/pocketbeagle2-k3r5.conf b/meta-beagle/conf/machine/pocketbeagle2-k3r5.conf new file mode 100644 index 00000000..32e40312 --- /dev/null +++ b/meta-beagle/conf/machine/pocketbeagle2-k3r5.conf | |||
@@ -0,0 +1,12 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: PocketBeagle2 (R5F) | ||
3 | #@DESCRIPTION: Machine configuration for the PocketBeagle2 (R5F core) | ||
4 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | require conf/machine/include/beagle-bsp.inc | ||
7 | |||
8 | SYSFW_SOC = "am62x" | ||
9 | SYSFW_CONFIG = "evm" | ||
10 | SYSFW_SUFFIX = "hs-fs" | ||
11 | |||
12 | UBOOT_MACHINE = "am6232_pocketbeagle2_r5_defconfig" | ||
diff --git a/meta-beagle/conf/machine/pocketbeagle2.conf b/meta-beagle/conf/machine/pocketbeagle2.conf new file mode 100644 index 00000000..6cbfeac4 --- /dev/null +++ b/meta-beagle/conf/machine/pocketbeagle2.conf | |||
@@ -0,0 +1,58 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: PocketBeagle2 (A53) | ||
3 | #@DESCRIPTION: Machine configuration for the PocketBeagle2 board (A53 core) | ||
4 | |||
5 | require conf/machine/include/k3.inc | ||
6 | require conf/machine/include/mc_k3r5.inc | ||
7 | |||
8 | require conf/machine/include/beagle-bsp.inc | ||
9 | |||
10 | SOC_FAMILY:append = ":am62xx" | ||
11 | |||
12 | SERIAL_CONSOLES = "115200;ttyS2" | ||
13 | |||
14 | TFA_BOARD = "lite" | ||
15 | TFA_K3_SYSTEM_SUSPEND = "1" | ||
16 | |||
17 | OPTEEMACHINE = "k3-am62x" | ||
18 | |||
19 | UBOOT_MACHINE = "am6232_pocketbeagle2_a53_defconfig" | ||
20 | |||
21 | KERNEL_DEVICETREE_PREFIX = " \ | ||
22 | ti/k3-am6232 \ | ||
23 | ti/k3-am62-pocket \ | ||
24 | " | ||
25 | |||
26 | KERNEL_DEVICETREE = " \ | ||
27 | ti/k3-am6232-pocketbeagle2.dtb \ | ||
28 | ti/k3-am6232-pocketbeagle2-techlab-cape.dtbo \ | ||
29 | ti/k3-am625-beagleplay-bcfserial-no-firmware.dtbo \ | ||
30 | ti/k3-am625-beagleplay-csi2-ov5640.dtbo \ | ||
31 | ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtbo \ | ||
32 | ti/k3-am625-beagleplay.dtb \ | ||
33 | ti/k3-am625-beagleplay-lincolntech-lcd185-panel.dtbo \ | ||
34 | ti/k3-am625-sk.dtb \ | ||
35 | ti/k3-am625-sk-lincolntech-lcd185-panel.dtbo \ | ||
36 | ti/k3-am625-sk-m2-cc3351.dtbo \ | ||
37 | ti/k3-am625-sk-mcspi-loopback.dtbo \ | ||
38 | ti/k3-am625-sk-microtips-mf101hie-panel.dtbo \ | ||
39 | ti/k3-am625-sk-rpi-hdr-ehrpwm.dtbo \ | ||
40 | ti/k3-am62-pocketbeagle2-ardupilot-cape.dtbo \ | ||
41 | ti/k3-am62-pocketbeagle2.dtb \ | ||
42 | ti/k3-am62-pocketbeagle2-leds-off.dtbo \ | ||
43 | ti/k3-am62-pocketbeagle2-techlab-cape.dtbo \ | ||
44 | ti/k3-am62x-sk-csi2-imx219.dtbo \ | ||
45 | ti/k3-am62x-sk-csi2-ov5640.dtbo \ | ||
46 | ti/k3-am62x-sk-csi2-tevi-ov5640.dtbo \ | ||
47 | ti/k3-am62x-sk-csi2-v3link-fusion.dtbo \ | ||
48 | ti/k3-am62x-sk-dmtimer-pwm.dtbo \ | ||
49 | ti/k3-am62x-sk-ecap-capture.dtbo \ | ||
50 | ti/k3-am62x-sk-eqep.dtbo \ | ||
51 | ti/k3-am62x-sk-fastboot-disable-hdmi.dtbo \ | ||
52 | ti/k3-am62x-sk-hdmi-audio.dtbo \ | ||
53 | ti/k3-am62x-sk-lpm-io-ddr-wkup-sources.dtbo \ | ||
54 | ti/k3-am62x-sk-lpm-wkup-sources.dtbo \ | ||
55 | ti/k3-am62x-sk-mcan.dtbo \ | ||
56 | ti/k3-am62x-sk-microtips-mf103hie-lcd2.dtbo \ | ||
57 | ti/k3-am62x-sk-pwm.dtbo \ | ||
58 | " | ||
diff --git a/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org-2025.07+git/bootcmd-ti-mmc.cfg b/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org-2025.07+git/bootcmd-ti-mmc.cfg new file mode 100644 index 00000000..362696b9 --- /dev/null +++ b/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org-2025.07+git/bootcmd-ti-mmc.cfg | |||
@@ -0,0 +1 @@ | |||
CONFIG_BOOTCOMMAND="run bootcmd_ti_mmc" | |||
diff --git a/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2024.10.bb b/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2024.10.bb new file mode 100644 index 00000000..389893b0 --- /dev/null +++ b/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2024.10.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | require recipes-bsp/u-boot/u-boot-ti.inc | ||
2 | |||
3 | SUMMARY = "BeagleBoard.org U-Boot" | ||
4 | |||
5 | COMPATIBLE_MACHINE = "beagle.*" | ||
6 | |||
7 | PV = "2024.10" | ||
8 | |||
9 | SRC_URI += "file://0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch" | ||
10 | |||
11 | UBOOT_GIT_URI = "git://github.com/beagleboard/u-boot.git" | ||
12 | UBOOT_GIT_PROTOCOL = "https" | ||
13 | BRANCH = "v2024.10-Beagle" | ||
14 | SRCREV = "bf0e9d0b7274d2b561bd24c858affec2038250f9" | ||
diff --git a/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.07.bb b/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.07.bb new file mode 100644 index 00000000..716adaa9 --- /dev/null +++ b/meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2025.07.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | require recipes-bsp/u-boot/u-boot-ti.inc | ||
2 | |||
3 | SUMMARY = "BeagleBoard.org U-Boot" | ||
4 | |||
5 | COMPATIBLE_MACHINE = "pocketbeagle2|beagle.*" | ||
6 | |||
7 | PV = "2025.07" | ||
8 | |||
9 | UBOOT_GIT_URI = "git://github.com/beagleboard/u-boot.git" | ||
10 | UBOOT_GIT_PROTOCOL = "https" | ||
11 | BRANCH = "v2025.07-Beagle" | ||
12 | SRCREV = "919ec3cd84f39e6960d1705d4ba7f810bc1067fc" | ||
13 | |||
14 | BRANCH:pocketbeagle2 = "v2025.07-am6232-pocketbeagle2" | ||
15 | BRANCH:pocketbeagle2-k3r5 = "v2025.07-am6232-pocketbeagle2" | ||
16 | SRCREV:pocketbeagle2 = "6d5b4abc28f036a4a83ccb234f04d72eceafdc4e" | ||
17 | SRCREV:pocketbeagle2-k3r5 = "6d5b4abc28f036a4a83ccb234f04d72eceafdc4e" | ||
18 | |||
19 | SRC_URI:append:pocketbeagle2 = " file://bootcmd-ti-mmc.cfg" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/defconfig b/meta-beagle/recipes-kernel/linux/linux-bb.org-6.12/defconfig index a5de2e24..a5de2e24 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/defconfig +++ b/meta-beagle/recipes-kernel/linux/linux-bb.org-6.12/defconfig | |||
diff --git a/meta-beagle/recipes-kernel/linux/linux-bb.org-6.6/defconfig b/meta-beagle/recipes-kernel/linux/linux-bb.org-6.6/defconfig new file mode 100644 index 00000000..a5de2e24 --- /dev/null +++ b/meta-beagle/recipes-kernel/linux/linux-bb.org-6.6/defconfig | |||
@@ -0,0 +1 @@ | |||
use-kernel-config=bb.org_defconfig | |||
diff --git a/meta-beagle/recipes-kernel/linux/linux-bb.org-6.6/no-fortify.cfg b/meta-beagle/recipes-kernel/linux/linux-bb.org-6.6/no-fortify.cfg new file mode 100644 index 00000000..808f9519 --- /dev/null +++ b/meta-beagle/recipes-kernel/linux/linux-bb.org-6.6/no-fortify.cfg | |||
@@ -0,0 +1 @@ | |||
CONFIG_FORTIFY_SOURCE=n | |||
diff --git a/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb b/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb new file mode 100644 index 00000000..2e57de2b --- /dev/null +++ b/meta-beagle/recipes-kernel/linux/linux-bb.org_6.12.bb | |||
@@ -0,0 +1,73 @@ | |||
1 | # Look in the generic major.minor directory for files | ||
2 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.12:" | ||
3 | |||
4 | SECTION = "kernel" | ||
5 | SUMMARY = "BeagleBoard.org Linux kernel" | ||
6 | LICENSE = "GPL-2.0-only" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
8 | |||
9 | COMPATIBLE_MACHINE = "pocketbeagle2|beagle.*" | ||
10 | |||
11 | inherit kernel | ||
12 | |||
13 | require recipes-kernel/linux/setup-defconfig.inc | ||
14 | require recipes-kernel/linux/ti-kernel.inc | ||
15 | |||
16 | DEPENDS += "gmp-native libmpc-native" | ||
17 | |||
18 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}" | ||
19 | |||
20 | # Extra DT overlays/capes | ||
21 | KERNEL_DEVICETREE:append:armv7a = " \ | ||
22 | ti/omap/BB-ADC-00A0.dtbo \ | ||
23 | ti/omap/BB-BBBW-WL1835-00A0.dtbo \ | ||
24 | ti/omap/BB-BBGG-WL1835-00A0.dtbo \ | ||
25 | ti/omap/BB-BBGW-WL1835-00A0.dtbo \ | ||
26 | ti/omap/BB-BONE-4D5R-01-00A1.dtbo \ | ||
27 | ti/omap/BB-BONE-eMMC1-01-00A0.dtbo \ | ||
28 | ti/omap/BB-BONE-LCD4-01-00A1.dtbo \ | ||
29 | ti/omap/BB-BONE-NH7C-01-A0.dtbo \ | ||
30 | ti/omap/BB-CAPE-DISP-CT4-00A0.dtbo \ | ||
31 | ti/omap/BB-HDMI-TDA998x-00A0.dtbo \ | ||
32 | ti/omap/BB-I2C1-MCP7940X-00A0.dtbo \ | ||
33 | ti/omap/BB-I2C1-RTC-DS3231.dtbo \ | ||
34 | ti/omap/BB-I2C1-RTC-PCF8563.dtbo \ | ||
35 | ti/omap/BB-I2C2-BME680.dtbo \ | ||
36 | ti/omap/BB-I2C2-MPU6050.dtbo \ | ||
37 | ti/omap/BB-LCD-ADAFRUIT-24-SPI1-00A0.dtbo \ | ||
38 | ti/omap/BB-NHDMI-TDA998x-00A0.dtbo \ | ||
39 | ti/omap/BBORG_COMMS-00A2.dtbo \ | ||
40 | ti/omap/BBORG_FAN-A000.dtbo \ | ||
41 | ti/omap/BBORG_RELAY-00A2.dtbo \ | ||
42 | ti/omap/BB-SPIDEV0-00A0.dtbo \ | ||
43 | ti/omap/BB-SPIDEV1-00A0.dtbo \ | ||
44 | ti/omap/BB-UART1-00A0.dtbo \ | ||
45 | ti/omap/BB-UART2-00A0.dtbo \ | ||
46 | ti/omap/BB-UART4-00A0.dtbo \ | ||
47 | ti/omap/BB-W1-P9.12-00A0.dtbo \ | ||
48 | ti/omap/BONE-ADC.dtbo \ | ||
49 | ti/omap/M-BB-BBG-00A0.dtbo \ | ||
50 | ti/omap/M-BB-BBGG-00A0.dtbo \ | ||
51 | ti/omap/PB-MIKROBUS-0.dtbo \ | ||
52 | ti/omap/PB-MIKROBUS-1.dtbo \ | ||
53 | " | ||
54 | |||
55 | KERNEL_DEVICETREE:append:aarch64 = " \ | ||
56 | ti/BONE-I2C1.dtbo \ | ||
57 | ti/BONE-I2C2.dtbo \ | ||
58 | ti/BONE-I2C3.dtbo \ | ||
59 | " | ||
60 | |||
61 | S = "${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}" | ||
62 | |||
63 | # 6.12.34 version for 32-bit | ||
64 | SRCREV:armv7a = "9e419b26243bd7efcd103ae0f6456f828592b34b" | ||
65 | PV:armv7a = "6.12.34+git" | ||
66 | BRANCH:armv7a = "v6.12.34-ti-arm32-r12" | ||
67 | |||
68 | # 6.12.34 version for 64-bit | ||
69 | SRCREV:aarch64 = "9ca36b8c54806a037f357efcd40eaa8399798b05" | ||
70 | PV:aarch64 = "6.12.34+git" | ||
71 | BRANCH:aarch64 = "v6.12.34-ti-arm64-r46" | ||
72 | |||
73 | KERNEL_GIT_URI = "git://github.com/beagleboard/linux.git" | ||
diff --git a/meta-beagle/recipes-kernel/linux/linux-bb.org_6.6.bb b/meta-beagle/recipes-kernel/linux/linux-bb.org_6.6.bb new file mode 100644 index 00000000..4873500d --- /dev/null +++ b/meta-beagle/recipes-kernel/linux/linux-bb.org_6.6.bb | |||
@@ -0,0 +1,71 @@ | |||
1 | # Look in the generic major.minor directory for files | ||
2 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.6:" | ||
3 | |||
4 | SECTION = "kernel" | ||
5 | SUMMARY = "BeagleBoard.org Linux kernel" | ||
6 | LICENSE = "GPL-2.0-only" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
8 | |||
9 | COMPATIBLE_MACHINE = "beagle.*" | ||
10 | |||
11 | inherit kernel | ||
12 | |||
13 | require recipes-kernel/linux/setup-defconfig.inc | ||
14 | require recipes-kernel/linux/ti-kernel.inc | ||
15 | |||
16 | DEPENDS += "gmp-native libmpc-native" | ||
17 | |||
18 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}" | ||
19 | |||
20 | # Extra DT overlays/capes | ||
21 | KERNEL_DEVICETREE:append:armv7a = " \ | ||
22 | ti/omap/AM335X-PRU-UIO-00A0.dtbo \ | ||
23 | ti/omap/BB-ADC-00A0.dtbo \ | ||
24 | ti/omap/BB-BBBW-WL1835-00A0.dtbo \ | ||
25 | ti/omap/BB-BBGG-WL1835-00A0.dtbo \ | ||
26 | ti/omap/BB-BBGW-WL1835-00A0.dtbo \ | ||
27 | ti/omap/BB-BONE-4D5R-01-00A1.dtbo \ | ||
28 | ti/omap/BB-BONE-eMMC1-01-00A0.dtbo \ | ||
29 | ti/omap/BB-BONE-LCD4-01-00A1.dtbo \ | ||
30 | ti/omap/BB-BONE-NH7C-01-A0.dtbo \ | ||
31 | ti/omap/BB-CAPE-DISP-CT4-00A0.dtbo \ | ||
32 | ti/omap/BB-HDMI-TDA998x-00A0.dtbo \ | ||
33 | ti/omap/BB-I2C1-MCP7940X-00A0.dtbo \ | ||
34 | ti/omap/BB-I2C1-RTC-DS3231.dtbo \ | ||
35 | ti/omap/BB-I2C1-RTC-PCF8563.dtbo \ | ||
36 | ti/omap/BB-I2C2-BME680.dtbo \ | ||
37 | ti/omap/BB-I2C2-MPU6050.dtbo \ | ||
38 | ti/omap/BB-LCD-ADAFRUIT-24-SPI1-00A0.dtbo \ | ||
39 | ti/omap/BB-NHDMI-TDA998x-00A0.dtbo \ | ||
40 | ti/omap/BBORG_COMMS-00A2.dtbo \ | ||
41 | ti/omap/BBORG_FAN-A000.dtbo \ | ||
42 | ti/omap/BBORG_RELAY-00A2.dtbo \ | ||
43 | ti/omap/BB-SPIDEV0-00A0.dtbo \ | ||
44 | ti/omap/BB-SPIDEV1-00A0.dtbo \ | ||
45 | ti/omap/BB-UART1-00A0.dtbo \ | ||
46 | ti/omap/BB-UART2-00A0.dtbo \ | ||
47 | ti/omap/BB-UART4-00A0.dtbo \ | ||
48 | ti/omap/BB-W1-P9.12-00A0.dtbo \ | ||
49 | ti/omap/BONE-ADC.dtbo \ | ||
50 | ti/omap/M-BB-BBG-00A0.dtbo \ | ||
51 | ti/omap/M-BB-BBGG-00A0.dtbo \ | ||
52 | ti/omap/PB-MIKROBUS-0.dtbo \ | ||
53 | ti/omap/PB-MIKROBUS-1.dtbo \ | ||
54 | " | ||
55 | |||
56 | S = "${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}" | ||
57 | |||
58 | # 6.6.58 version for 32-bit | ||
59 | SRCREV:armv7a = "3d519995234675748a38b1e3bc087baa03e3ac25" | ||
60 | PV:armv7a = "6.6.58+git" | ||
61 | BRANCH:armv7a = "v6.6.58-ti-arm32-r12" | ||
62 | |||
63 | # 6.6.58 version for 64-bit | ||
64 | SRCREV:aarch64 = "1de9481cd5749807550148086aea959295bd11db" | ||
65 | PV:aarch64 = "6.6.58+git" | ||
66 | BRANCH:aarch64 = "v6.6.58-ti-arm64-r30" | ||
67 | |||
68 | KERNEL_GIT_URI = "git://github.com/beagleboard/linux.git" | ||
69 | |||
70 | SRC_URI += "file://no-fortify.cfg" | ||
71 | KERNEL_CONFIG_FRAGMENTS += "${UNPACKDIR}/no-fortify.cfg" | ||
diff --git a/meta-ti-bsp/SECURITY b/meta-ti-bsp/SECURITY new file mode 100644 index 00000000..367adc34 --- /dev/null +++ b/meta-ti-bsp/SECURITY | |||
@@ -0,0 +1,20 @@ | |||
1 | How to Report a Potential Vulnerability? | ||
2 | ======================================== | ||
3 | |||
4 | If you would like to report a public issue (for example, one with a released | ||
5 | CVE number), please report it to the mailing list: | ||
6 | |||
7 | https://lists.yoctoproject.org/g/meta-ti | ||
8 | |||
9 | If you are dealing with a not-yet released or urgent issue, please send a | ||
10 | message to one of the maintainers listed in the README. Include as many | ||
11 | details as possible: | ||
12 | - the layer or software module affected | ||
13 | - the recipe and its version | ||
14 | - any example code, if available | ||
15 | |||
16 | Branches maintained with security fixes | ||
17 | --------------------------------------- | ||
18 | |||
19 | See https://wiki.yoctoproject.org/wiki/Releases for the list of current | ||
20 | releases. We only accept patches for the LTS releases and the master branch. | ||
diff --git a/meta-ti-bsp/classes/kernel-fitimage-legacyhs.bbclass b/meta-ti-bsp/classes/kernel-fitimage-legacyhs.bbclass index 5e1fa56a..558e8954 100644 --- a/meta-ti-bsp/classes/kernel-fitimage-legacyhs.bbclass +++ b/meta-ti-bsp/classes/kernel-fitimage-legacyhs.bbclass | |||
@@ -1,4 +1,4 @@ | |||
1 | inherit ti-secdev kernel-uboot uboot-sign-legacyhs | 1 | inherit ti-secdev kernel-uboot-legacyhs uboot-sign-legacyhs |
2 | 2 | ||
3 | FITIMAGE_HASH_ALGO ?= "sha1" | 3 | FITIMAGE_HASH_ALGO ?= "sha1" |
4 | FITIMAGE_PACK_TEE ?= "0" | 4 | FITIMAGE_PACK_TEE ?= "0" |
@@ -316,6 +316,7 @@ EOF | |||
316 | # $4 ... ramdisk ID | 316 | # $4 ... ramdisk ID |
317 | # $5 ... config ID | 317 | # $5 ... config ID |
318 | # $6 ... tee ID/name | 318 | # $6 ... tee ID/name |
319 | # $7 ... default DTB ID | ||
319 | fitimage_emit_section_config() { | 320 | fitimage_emit_section_config() { |
320 | 321 | ||
321 | conf_csum=${FITIMAGE_HASH_ALGO} | 322 | conf_csum=${FITIMAGE_HASH_ALGO} |
@@ -370,6 +371,16 @@ fitimage_emit_section_config() { | |||
370 | final_conf_desc="${conf_desc}" | 371 | final_conf_desc="${conf_desc}" |
371 | fi | 372 | fi |
372 | 373 | ||
374 | default_dtb_count=${7} | ||
375 | if [ "x${FITIMAGE_CONF_BY_NAME}" = "x1" ] ; then | ||
376 | default_conf_name="${FIT_CONF_DEFAULT_DTB}" | ||
377 | else | ||
378 | default_conf_name="conf-${default_dtb_count}" | ||
379 | fi | ||
380 | cat << EOF >> ${1} | ||
381 | default = "${default_conf_name}"; | ||
382 | EOF | ||
383 | |||
373 | dtbcount=1 | 384 | dtbcount=1 |
374 | for DTB in ${KERNEL_DEVICETREE}; do | 385 | for DTB in ${KERNEL_DEVICETREE}; do |
375 | DTB=$(basename "${DTB}") | 386 | DTB=$(basename "${DTB}") |
@@ -386,12 +397,6 @@ fitimage_emit_section_config() { | |||
386 | fdt_line="fdt = \"fdt-${dtbcount}\";" | 397 | fdt_line="fdt = \"fdt-${dtbcount}\";" |
387 | fi | 398 | fi |
388 | 399 | ||
389 | if [ "x${dtbcount}" = "x1" ]; then | ||
390 | cat << EOF >> ${1} | ||
391 | default = "${conf_name}"; | ||
392 | EOF | ||
393 | fi | ||
394 | |||
395 | # Generate a single configuration section | 400 | # Generate a single configuration section |
396 | cat << EOF >> ${1} | 401 | cat << EOF >> ${1} |
397 | ${conf_name} { | 402 | ${conf_name} { |
@@ -524,6 +529,7 @@ fitimage_assemble() { | |||
524 | ramdiskcount=${3} | 529 | ramdiskcount=${3} |
525 | setupcount="" | 530 | setupcount="" |
526 | teecount=1 | 531 | teecount=1 |
532 | default_dtb_count=1 | ||
527 | rm -f ${1} arch/${ARCH}/boot/${2} | 533 | rm -f ${1} arch/${ARCH}/boot/${2} |
528 | 534 | ||
529 | fitimage_emit_fit_header ${1} | 535 | fitimage_emit_fit_header ${1} |
@@ -544,6 +550,9 @@ fitimage_assemble() { | |||
544 | dtbcount=1 | 550 | dtbcount=1 |
545 | dtboaddress="${UBOOT_DTBO_LOADADDRESS}" | 551 | dtboaddress="${UBOOT_DTBO_LOADADDRESS}" |
546 | for DTB in ${KERNEL_DEVICETREE}; do | 552 | for DTB in ${KERNEL_DEVICETREE}; do |
553 | if [ "${DTB}" = "${FIT_CONF_DEFAULT_DTB}" ]; then | ||
554 | default_dtb_count=${dtbcount} | ||
555 | fi | ||
547 | if echo ${DTB} | grep -q '/dts/'; then | 556 | if echo ${DTB} | grep -q '/dts/'; then |
548 | bbwarn "${DTB} contains the full path to the the dts file, but only the dtb name should be used." | 557 | bbwarn "${DTB} contains the full path to the the dts file, but only the dtb name should be used." |
549 | DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'` | 558 | DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'` |
@@ -660,7 +669,7 @@ fitimage_assemble() { | |||
660 | else | 669 | else |
661 | teeref="${teecount}" | 670 | teeref="${teecount}" |
662 | fi | 671 | fi |
663 | fitimage_emit_section_config ${1} "${kernelcount}" "${dtbref}" "${ramdiskcount}" "${setupcount}" "${teeref}" | 672 | fitimage_emit_section_config ${1} "${kernelcount}" "${dtbref}" "${ramdiskcount}" "${setupcount}" "${teeref}" "${default_dtb_count}" |
664 | 673 | ||
665 | fitimage_emit_section_maint ${1} sectend | 674 | fitimage_emit_section_maint ${1} sectend |
666 | 675 | ||
diff --git a/meta-ti-bsp/classes/kernel-uboot-legacyhs.bbclass b/meta-ti-bsp/classes/kernel-uboot-legacyhs.bbclass new file mode 100644 index 00000000..6d4aff6b --- /dev/null +++ b/meta-ti-bsp/classes/kernel-uboot-legacyhs.bbclass | |||
@@ -0,0 +1,51 @@ | |||
1 | # | ||
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
4 | # SPDX-License-Identifier: MIT | ||
5 | # | ||
6 | |||
7 | # fitImage kernel compression algorithm | ||
8 | FIT_KERNEL_COMP_ALG ?= "gzip" | ||
9 | FIT_KERNEL_COMP_ALG_EXTENSION ?= ".gz" | ||
10 | |||
11 | # Kernel image type passed to mkimage (i.e. kernel kernel_noload...) | ||
12 | UBOOT_MKIMAGE_KERNEL_TYPE ?= "kernel" | ||
13 | |||
14 | uboot_prep_kimage() { | ||
15 | if [ -e arch/${ARCH}/boot/compressed/vmlinux ]; then | ||
16 | vmlinux_path="arch/${ARCH}/boot/compressed/vmlinux" | ||
17 | linux_suffix="" | ||
18 | linux_comp="none" | ||
19 | elif [ -e arch/${ARCH}/boot/vmlinuz.bin ]; then | ||
20 | rm -f linux.bin | ||
21 | cp -l arch/${ARCH}/boot/vmlinuz.bin linux.bin | ||
22 | vmlinux_path="" | ||
23 | linux_suffix="" | ||
24 | linux_comp="none" | ||
25 | else | ||
26 | vmlinux_path="vmlinux" | ||
27 | # Use vmlinux.initramfs for linux.bin when INITRAMFS_IMAGE_BUNDLE set | ||
28 | # As per the implementation in kernel.bbclass. | ||
29 | # See do_bundle_initramfs function | ||
30 | if [ "${INITRAMFS_IMAGE_BUNDLE}" = "1" ] && [ -e vmlinux.initramfs ]; then | ||
31 | vmlinux_path="vmlinux.initramfs" | ||
32 | fi | ||
33 | linux_suffix="${FIT_KERNEL_COMP_ALG_EXTENSION}" | ||
34 | linux_comp="${FIT_KERNEL_COMP_ALG}" | ||
35 | fi | ||
36 | |||
37 | [ -n "${vmlinux_path}" ] && ${KERNEL_OBJCOPY} -O binary -R .note -R .comment -S "${vmlinux_path}" linux.bin | ||
38 | |||
39 | if [ "${linux_comp}" != "none" ] ; then | ||
40 | if [ "${linux_comp}" = "gzip" ] ; then | ||
41 | gzip -9 linux.bin | ||
42 | elif [ "${linux_comp}" = "lzo" ] ; then | ||
43 | lzop -9 linux.bin | ||
44 | elif [ "${linux_comp}" = "lzma" ] ; then | ||
45 | xz --format=lzma -f -6 linux.bin | ||
46 | fi | ||
47 | mv -f "linux.bin${linux_suffix}" linux.bin | ||
48 | fi | ||
49 | |||
50 | echo "${linux_comp}" | ||
51 | } | ||
diff --git a/meta-ti-bsp/classes/kernel_legacyhs.bbclass b/meta-ti-bsp/classes/kernel_legacyhs.bbclass new file mode 100644 index 00000000..f2b79b1a --- /dev/null +++ b/meta-ti-bsp/classes/kernel_legacyhs.bbclass | |||
@@ -0,0 +1,870 @@ | |||
1 | # | ||
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
4 | # SPDX-License-Identifier: MIT | ||
5 | # | ||
6 | |||
7 | inherit linux-kernel-base kernel-module-split | ||
8 | |||
9 | COMPATIBLE_HOST = ".*-linux" | ||
10 | |||
11 | KERNEL_PACKAGE_NAME ??= "kernel" | ||
12 | KERNEL_DEPLOYSUBDIR ??= "${@ "" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else d.getVar("KERNEL_PACKAGE_NAME") }" | ||
13 | |||
14 | PROVIDES += "virtual/kernel" | ||
15 | DEPENDS += "virtual/cross-binutils virtual/cross-cc kmod-native bc-native bison-native" | ||
16 | DEPENDS += "${@bb.utils.contains("INITRAMFS_FSTYPES", "cpio.lzo", "lzop-native", "", d)}" | ||
17 | DEPENDS += "${@bb.utils.contains("INITRAMFS_FSTYPES", "cpio.lz4", "lz4-native", "", d)}" | ||
18 | DEPENDS += "${@bb.utils.contains("INITRAMFS_FSTYPES", "cpio.zst", "zstd-native", "", d)}" | ||
19 | PACKAGE_WRITE_DEPS += "depmodwrapper-cross" | ||
20 | |||
21 | do_deploy[depends] += "depmodwrapper-cross:do_populate_sysroot gzip-native:do_populate_sysroot" | ||
22 | do_clean[depends] += "make-mod-scripts:do_clean" | ||
23 | |||
24 | # CPE entries from NVD use linux_kernel, but the raw CVE entries from the kernel CNA have | ||
25 | # vendor: linux and product: linux. Note that multiple distributions use "linux" as a product | ||
26 | # name, so we need to fill vendor to avoid false positives | ||
27 | CVE_PRODUCT ?= "linux_kernel linux:linux" | ||
28 | |||
29 | S = "${STAGING_KERNEL_DIR}" | ||
30 | B = "${WORKDIR}/build" | ||
31 | KBUILD_OUTPUT = "${B}" | ||
32 | OE_TERMINAL_EXPORTS += "KBUILD_OUTPUT" | ||
33 | |||
34 | # we include gcc above, we dont need virtual/libc | ||
35 | INHIBIT_DEFAULT_DEPS = "1" | ||
36 | |||
37 | KERNEL_IMAGETYPE ?= "zImage" | ||
38 | INITRAMFS_IMAGE ?= "" | ||
39 | INITRAMFS_TASK ?= "" | ||
40 | INITRAMFS_IMAGE_BUNDLE ?= "" | ||
41 | INITRAMFS_DEPLOY_DIR_IMAGE ?= "${DEPLOY_DIR_IMAGE}" | ||
42 | INITRAMFS_MULTICONFIG ?= "" | ||
43 | |||
44 | # KERNEL_VERSION is extracted from source code. It is evaluated as | ||
45 | # None for the first parsing, since the code has not been fetched. | ||
46 | # After the code is fetched, it will be evaluated as real version | ||
47 | # number and cause kernel to be rebuilt. To avoid this, make | ||
48 | # KERNEL_VERSION_NAME and KERNEL_VERSION_PKG_NAME depend on | ||
49 | # LINUX_VERSION which is a constant. | ||
50 | KERNEL_VERSION_NAME = "${@d.getVar('KERNEL_VERSION') or ""}" | ||
51 | KERNEL_VERSION_NAME[vardepvalue] = "${LINUX_VERSION}" | ||
52 | KERNEL_VERSION_PKG_NAME = "${@legitimize_package_name(d.getVar('KERNEL_VERSION'))}" | ||
53 | KERNEL_VERSION_PKG_NAME[vardepvalue] = "${LINUX_VERSION}" | ||
54 | |||
55 | python __anonymous () { | ||
56 | pn = d.getVar("PN") | ||
57 | kpn = d.getVar("KERNEL_PACKAGE_NAME") | ||
58 | |||
59 | # XXX Remove this after bug 11905 is resolved | ||
60 | # FILES:${KERNEL_PACKAGE_NAME}-dev doesn't expand correctly | ||
61 | if kpn == pn: | ||
62 | bb.warn("Some packages (E.g. *-dev) might be missing due to " | ||
63 | "bug 11905 (variable KERNEL_PACKAGE_NAME == PN)") | ||
64 | |||
65 | # The default kernel recipe builds in a shared location defined by | ||
66 | # bitbake/distro confs: STAGING_KERNEL_DIR and STAGING_KERNEL_BUILDDIR. | ||
67 | # Set these variables to directories under ${WORKDIR} in alternate | ||
68 | # kernel recipes (I.e. where KERNEL_PACKAGE_NAME != kernel) so that they | ||
69 | # may build in parallel with the default kernel without clobbering. | ||
70 | if kpn != "kernel": | ||
71 | workdir = d.getVar("WORKDIR") | ||
72 | sourceDir = os.path.join(workdir, 'kernel-source') | ||
73 | artifactsDir = os.path.join(workdir, 'kernel-build-artifacts') | ||
74 | d.setVar("STAGING_KERNEL_DIR", sourceDir) | ||
75 | d.setVar("STAGING_KERNEL_BUILDDIR", artifactsDir) | ||
76 | |||
77 | # Merge KERNEL_IMAGETYPE and KERNEL_ALT_IMAGETYPE into KERNEL_IMAGETYPES | ||
78 | type = d.getVar('KERNEL_IMAGETYPE') or "" | ||
79 | alttype = d.getVar('KERNEL_ALT_IMAGETYPE') or "" | ||
80 | types = d.getVar('KERNEL_IMAGETYPES') or "" | ||
81 | if type not in types.split(): | ||
82 | types = (type + ' ' + types).strip() | ||
83 | if alttype not in types.split(): | ||
84 | types = (alttype + ' ' + types).strip() | ||
85 | d.setVar('KERNEL_IMAGETYPES', types) | ||
86 | |||
87 | # KERNEL_IMAGETYPES may contain a mixture of image types supported directly | ||
88 | # by the kernel build system and types which are created by post-processing | ||
89 | # the output of the kernel build system (e.g. compressing vmlinux -> | ||
90 | # vmlinux.gz in kernel_legacyhs_do_transform_kernel()). | ||
91 | # KERNEL_IMAGETYPE_FOR_MAKE should contain only image types supported | ||
92 | # directly by the kernel build system. | ||
93 | if not d.getVar('KERNEL_IMAGETYPE_FOR_MAKE'): | ||
94 | typeformake = set() | ||
95 | for type in types.split(): | ||
96 | if type == 'vmlinux.gz': | ||
97 | type = 'vmlinux' | ||
98 | typeformake.add(type) | ||
99 | |||
100 | d.setVar('KERNEL_IMAGETYPE_FOR_MAKE', ' '.join(sorted(typeformake))) | ||
101 | |||
102 | kname = d.getVar('KERNEL_PACKAGE_NAME') or "kernel" | ||
103 | imagedest = d.getVar('KERNEL_IMAGEDEST') | ||
104 | |||
105 | for type in types.split(): | ||
106 | if bb.data.inherits_class('nopackages', d): | ||
107 | continue | ||
108 | typelower = type.lower() | ||
109 | d.appendVar('PACKAGES', ' %s-image-%s' % (kname, typelower)) | ||
110 | d.setVar('FILES:' + kname + '-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}' + ' /' + imagedest + '/' + type) | ||
111 | d.appendVar('RDEPENDS:%s-image' % kname, ' %s-image-%s (= ${EXTENDPKGV})' % (kname, typelower)) | ||
112 | splitmods = d.getVar("KERNEL_SPLIT_MODULES") | ||
113 | if splitmods != '1': | ||
114 | d.appendVar('RDEPENDS:%s-image' % kname, ' %s-modules (= ${EXTENDPKGV})' % kname) | ||
115 | d.appendVar('RDEPENDS:%s-image-%s' % (kname, typelower), ' %s-modules-${KERNEL_VERSION_PKG_NAME} (= ${EXTENDPKGV})' % kname) | ||
116 | d.setVar('PKG:%s-modules' % kname, '%s-modules-${KERNEL_VERSION_PKG_NAME}' % kname) | ||
117 | d.appendVar('RPROVIDES:%s-modules' % kname, ' %s-modules-${KERNEL_VERSION_PKG_NAME}' % kname) | ||
118 | |||
119 | d.setVar('PKG:%s-image-%s' % (kname,typelower), '%s-image-%s-${KERNEL_VERSION_PKG_NAME}' % (kname, typelower)) | ||
120 | d.setVar('ALLOW_EMPTY:%s-image-%s' % (kname, typelower), '1') | ||
121 | |||
122 | if d.getVar('KERNEL_IMAGETYPE_SYMLINK') == '1': | ||
123 | d.prependVar('pkg_postinst:%s-image-%s' % (kname,typelower), """set +e | ||
124 | if [ -n "$D" ]; then | ||
125 | ln -sf %s-${KERNEL_VERSION} $D/${KERNEL_IMAGEDEST}/%s > /dev/null 2>&1 | ||
126 | else | ||
127 | ln -sf %s-${KERNEL_VERSION} ${KERNEL_IMAGEDEST}/%s > /dev/null 2>&1 | ||
128 | if [ $? -ne 0 ]; then | ||
129 | echo "Filesystem on ${KERNEL_IMAGEDEST}/ doesn't support symlinks, falling back to copied image (%s)." | ||
130 | install -m 0644 ${KERNEL_IMAGEDEST}/%s-${KERNEL_VERSION} ${KERNEL_IMAGEDEST}/%s | ||
131 | fi | ||
132 | fi | ||
133 | set -e | ||
134 | """ % (type, type, type, type, type, type, type)) | ||
135 | d.setVar('pkg_postrm:%s-image-%s' % (kname,typelower), """set +e | ||
136 | if [ -f "${KERNEL_IMAGEDEST}/%s" -o -L "${KERNEL_IMAGEDEST}/%s" ]; then | ||
137 | rm -f ${KERNEL_IMAGEDEST}/%s > /dev/null 2>&1 | ||
138 | fi | ||
139 | set -e | ||
140 | """ % (type, type, type)) | ||
141 | |||
142 | |||
143 | image = d.getVar('INITRAMFS_IMAGE') | ||
144 | # If the INTIRAMFS_IMAGE is set but the INITRAMFS_IMAGE_BUNDLE is set to 0, | ||
145 | # the do_bundle_initramfs does nothing, but the INITRAMFS_IMAGE is built | ||
146 | # standalone for use by wic and other tools. | ||
147 | if image: | ||
148 | if d.getVar('INITRAMFS_MULTICONFIG'): | ||
149 | d.appendVarFlag('do_bundle_initramfs', 'mcdepends', ' mc:${BB_CURRENT_MC}:${INITRAMFS_MULTICONFIG}:${INITRAMFS_IMAGE}:do_image_complete') | ||
150 | else: | ||
151 | d.appendVarFlag('do_bundle_initramfs', 'depends', ' ${INITRAMFS_IMAGE}:do_image_complete') | ||
152 | if image and bb.utils.to_boolean(d.getVar('INITRAMFS_IMAGE_BUNDLE')): | ||
153 | bb.build.addtask('do_transform_bundled_initramfs', 'do_deploy', 'do_bundle_initramfs', d) | ||
154 | |||
155 | # NOTE: setting INITRAMFS_TASK is for backward compatibility | ||
156 | # The preferred method is to set INITRAMFS_IMAGE, because | ||
157 | # this INITRAMFS_TASK has circular dependency problems | ||
158 | # if the initramfs requires kernel modules | ||
159 | image_task = d.getVar('INITRAMFS_TASK') | ||
160 | if image_task: | ||
161 | d.appendVarFlag('do_configure', 'depends', ' ${INITRAMFS_TASK}') | ||
162 | } | ||
163 | |||
164 | # Here we pull in all various kernel image types which we support. | ||
165 | # | ||
166 | # In case you're wondering why kernel.bbclass inherits the other image | ||
167 | # types instead of the other way around, the reason for that is to | ||
168 | # maintain compatibility with various currently existing meta-layers. | ||
169 | # By pulling in the various kernel image types here, we retain the | ||
170 | # original behavior of kernel.bbclass, so no meta-layers should get | ||
171 | # broken. | ||
172 | # | ||
173 | # KERNEL_CLASSES by default pulls in kernel-uimage.bbclass, since this | ||
174 | # used to be the default behavior when only uImage was supported. This | ||
175 | # variable can be appended by users who implement support for new kernel | ||
176 | # image types. | ||
177 | |||
178 | KERNEL_CLASSES ?= " kernel-uimage " | ||
179 | inherit_defer ${KERNEL_CLASSES} | ||
180 | |||
181 | # Old style kernels may set ${S} = ${WORKDIR}/git for example | ||
182 | # We need to move these over to STAGING_KERNEL_DIR. We can't just | ||
183 | # create the symlink in advance as the git fetcher can't cope with | ||
184 | # the symlink. | ||
185 | do_unpack[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B} ${STAGING_KERNEL_BUILDDIR}" | ||
186 | do_clean[cleandirs] += " ${S} ${STAGING_KERNEL_DIR} ${B} ${STAGING_KERNEL_BUILDDIR}" | ||
187 | python do_symlink_kernsrc () { | ||
188 | s = d.getVar("S") | ||
189 | kernsrc = d.getVar("STAGING_KERNEL_DIR") | ||
190 | if s != kernsrc: | ||
191 | bb.utils.mkdirhier(kernsrc) | ||
192 | bb.utils.remove(kernsrc, recurse=True) | ||
193 | if s[-1] == '/': | ||
194 | # drop trailing slash, so that os.symlink(kernsrc, s) doesn't use s as | ||
195 | # directory name and fail | ||
196 | s = s[:-1] | ||
197 | if d.getVar("EXTERNALSRC"): | ||
198 | # With EXTERNALSRC S will not be wiped so we can symlink to it | ||
199 | os.symlink(s, kernsrc) | ||
200 | else: | ||
201 | import shutil | ||
202 | shutil.move(s, kernsrc) | ||
203 | os.symlink(kernsrc, s) | ||
204 | } | ||
205 | # do_patch is normally ordered before do_configure, but | ||
206 | # externalsrc.bbclass deletes do_patch, breaking the dependency of | ||
207 | # do_configure on do_symlink_kernsrc. | ||
208 | addtask symlink_kernsrc before do_patch do_configure after do_unpack | ||
209 | |||
210 | inherit kernel-arch deploy | ||
211 | |||
212 | PACKAGES_DYNAMIC += "^${KERNEL_PACKAGE_NAME}-module-.*" | ||
213 | PACKAGES_DYNAMIC += "^${KERNEL_PACKAGE_NAME}-image-.*" | ||
214 | PACKAGES_DYNAMIC += "^${KERNEL_PACKAGE_NAME}-firmware-.*" | ||
215 | |||
216 | export OS = "${TARGET_OS}" | ||
217 | export CROSS_COMPILE = "${TARGET_PREFIX}" | ||
218 | |||
219 | KERNEL_RELEASE ?= "${KERNEL_VERSION}" | ||
220 | |||
221 | # The directory where built kernel lies in the kernel tree | ||
222 | KERNEL_OUTPUT_DIR ?= "arch/${ARCH}/boot" | ||
223 | KERNEL_IMAGEDEST ?= "boot" | ||
224 | KERNEL_DTBDEST ?= "${KERNEL_IMAGEDEST}" | ||
225 | KERNEL_DTBVENDORED ?= "0" | ||
226 | |||
227 | # | ||
228 | # configuration | ||
229 | # | ||
230 | KERNEL_VERSION = "${@get_kernelversion_headers('${B}')}" | ||
231 | |||
232 | # kernels are generally machine specific | ||
233 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
234 | |||
235 | # U-Boot support | ||
236 | UBOOT_ENTRYPOINT ?= "0x20008000" | ||
237 | UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}" | ||
238 | |||
239 | # Some Linux kernel configurations need additional parameters on the command line | ||
240 | KERNEL_EXTRA_ARGS ?= "" | ||
241 | |||
242 | EXTRA_OEMAKE += ' CC="${KERNEL_CC}" LD="${KERNEL_LD}" OBJCOPY="${KERNEL_OBJCOPY}" STRIP="${KERNEL_STRIP}"' | ||
243 | EXTRA_OEMAKE += ' HOSTCC="${BUILD_CC}" HOSTCFLAGS="${BUILD_CFLAGS}" HOSTLDFLAGS="${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}"' | ||
244 | EXTRA_OEMAKE += ' HOSTCXX="${BUILD_CXX}" HOSTCXXFLAGS="${BUILD_CXXFLAGS}"' | ||
245 | # Only for newer kernels (5.19+), native pkg-config variables are set for older kernels when building kernel and modules | ||
246 | EXTRA_OEMAKE += ' HOSTPKG_CONFIG="pkg-config-native"' | ||
247 | |||
248 | KERNEL_ALT_IMAGETYPE ??= "" | ||
249 | |||
250 | copy_initramfs() { | ||
251 | echo "Copying initramfs into ./usr ..." | ||
252 | # In case the directory is not created yet from the first pass compile: | ||
253 | mkdir -p ${B}/usr | ||
254 | # Find and use the first initramfs image archive type we find | ||
255 | rm -f ${B}/usr/${INITRAMFS_IMAGE_NAME}.cpio | ||
256 | for img in cpio cpio.gz cpio.lz4 cpio.lzo cpio.lzma cpio.xz cpio.zst; do | ||
257 | if [ -e "${INITRAMFS_DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_NAME}.$img" ]; then | ||
258 | cp ${INITRAMFS_DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_NAME}.$img ${B}/usr/. | ||
259 | case $img in | ||
260 | *gz) | ||
261 | echo "gzip decompressing image" | ||
262 | gunzip -f ${B}/usr/${INITRAMFS_IMAGE_NAME}.$img | ||
263 | break | ||
264 | ;; | ||
265 | *lz4) | ||
266 | echo "lz4 decompressing image" | ||
267 | lz4 -df ${B}/usr/${INITRAMFS_IMAGE_NAME}.$img ${B}/usr/${INITRAMFS_IMAGE_NAME}.cpio | ||
268 | break | ||
269 | ;; | ||
270 | *lzo) | ||
271 | echo "lzo decompressing image" | ||
272 | lzop -df ${B}/usr/${INITRAMFS_IMAGE_NAME}.$img | ||
273 | break | ||
274 | ;; | ||
275 | *lzma) | ||
276 | echo "lzma decompressing image" | ||
277 | lzma -df ${B}/usr/${INITRAMFS_IMAGE_NAME}.$img | ||
278 | break | ||
279 | ;; | ||
280 | *xz) | ||
281 | echo "xz decompressing image" | ||
282 | xz -df ${B}/usr/${INITRAMFS_IMAGE_NAME}.$img | ||
283 | break | ||
284 | ;; | ||
285 | *zst) | ||
286 | echo "zst decompressing image" | ||
287 | zstd -df ${B}/usr/${INITRAMFS_IMAGE_NAME}.$img | ||
288 | break | ||
289 | ;; | ||
290 | esac | ||
291 | break | ||
292 | fi | ||
293 | done | ||
294 | # Verify that the above loop found a initramfs, fail otherwise | ||
295 | [ -f ${B}/usr/${INITRAMFS_IMAGE_NAME}.cpio ] && echo "Finished copy of initramfs into ./usr" || die "Could not find any ${INITRAMFS_DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_NAME}.cpio{.gz|.lz4|.lzo|.lzma|.xz|.zst) for bundling; INITRAMFS_IMAGE_NAME might be wrong." | ||
296 | } | ||
297 | |||
298 | do_bundle_initramfs () { | ||
299 | if [ ! -z "${INITRAMFS_IMAGE}" -a x"${INITRAMFS_IMAGE_BUNDLE}" = x1 ]; then | ||
300 | echo "Creating a kernel image with a bundled initramfs..." | ||
301 | copy_initramfs | ||
302 | # Backing up kernel image relies on its type(regular file or symbolic link) | ||
303 | tmp_path="" | ||
304 | for imageType in ${KERNEL_IMAGETYPE_FOR_MAKE} ; do | ||
305 | if [ -h ${KERNEL_OUTPUT_DIR}/$imageType ] ; then | ||
306 | linkpath=`readlink -n ${KERNEL_OUTPUT_DIR}/$imageType` | ||
307 | realpath=`readlink -fn ${KERNEL_OUTPUT_DIR}/$imageType` | ||
308 | mv -f $realpath $realpath.bak | ||
309 | tmp_path=$tmp_path" "$imageType"#"$linkpath"#"$realpath | ||
310 | elif [ -f ${KERNEL_OUTPUT_DIR}/$imageType ]; then | ||
311 | mv -f ${KERNEL_OUTPUT_DIR}/$imageType ${KERNEL_OUTPUT_DIR}/$imageType.bak | ||
312 | tmp_path=$tmp_path" "$imageType"##" | ||
313 | fi | ||
314 | done | ||
315 | use_alternate_initrd=CONFIG_INITRAMFS_SOURCE=${B}/usr/${INITRAMFS_IMAGE_NAME}.cpio | ||
316 | kernel_legacyhs_do_compile | ||
317 | # Restoring kernel image | ||
318 | for tp in $tmp_path ; do | ||
319 | imageType=`echo $tp|cut -d "#" -f 1` | ||
320 | linkpath=`echo $tp|cut -d "#" -f 2` | ||
321 | realpath=`echo $tp|cut -d "#" -f 3` | ||
322 | if [ -n "$realpath" ]; then | ||
323 | mv -f $realpath $realpath.initramfs | ||
324 | mv -f $realpath.bak $realpath | ||
325 | ln -sf $linkpath.initramfs ${B}/${KERNEL_OUTPUT_DIR}/$imageType.initramfs | ||
326 | else | ||
327 | mv -f ${KERNEL_OUTPUT_DIR}/$imageType ${KERNEL_OUTPUT_DIR}/$imageType.initramfs | ||
328 | mv -f ${KERNEL_OUTPUT_DIR}/$imageType.bak ${KERNEL_OUTPUT_DIR}/$imageType | ||
329 | fi | ||
330 | done | ||
331 | fi | ||
332 | } | ||
333 | do_bundle_initramfs[dirs] = "${B}" | ||
334 | |||
335 | kernel_legacyhs_do_transform_bundled_initramfs() { | ||
336 | # vmlinux.gz is not built by kernel | ||
337 | if (echo "${KERNEL_IMAGETYPES}" | grep -wq "vmlinux\.gz"); then | ||
338 | gzip -9cn < ${KERNEL_OUTPUT_DIR}/vmlinux.initramfs > ${KERNEL_OUTPUT_DIR}/vmlinux.gz.initramfs | ||
339 | fi | ||
340 | } | ||
341 | do_transform_bundled_initramfs[dirs] = "${B}" | ||
342 | |||
343 | python do_package:prepend () { | ||
344 | d.setVar('STRIP', d.getVar('KERNEL_STRIP').strip()) | ||
345 | } | ||
346 | |||
347 | python do_devshell:prepend () { | ||
348 | os.environ["LDFLAGS"] = '' | ||
349 | } | ||
350 | |||
351 | addtask bundle_initramfs after do_install before do_deploy | ||
352 | |||
353 | KERNEL_DEBUG_TIMESTAMPS ??= "0" | ||
354 | |||
355 | kernel_legacyhs_do_compile() { | ||
356 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE | ||
357 | |||
358 | # setup native pkg-config variables (kconfig scripts call pkg-config directly, cannot generically be overriden to pkg-config-native) | ||
359 | export PKG_CONFIG_DIR="${STAGING_DIR_NATIVE}${libdir_native}/pkgconfig" | ||
360 | export PKG_CONFIG_PATH="$PKG_CONFIG_DIR:${STAGING_DATADIR_NATIVE}/pkgconfig" | ||
361 | export PKG_CONFIG_LIBDIR="$PKG_CONFIG_DIR" | ||
362 | export PKG_CONFIG_SYSROOT_DIR="" | ||
363 | |||
364 | if [ "${KERNEL_DEBUG_TIMESTAMPS}" != "1" ]; then | ||
365 | # kernel sources do not use do_unpack, so SOURCE_DATE_EPOCH may not | ||
366 | # be set.... | ||
367 | if [ "${SOURCE_DATE_EPOCH}" = "" -o "${SOURCE_DATE_EPOCH}" = "0" ]; then | ||
368 | # The source directory is not necessarily a git repository, so we | ||
369 | # specify the git-dir to ensure that git does not query a | ||
370 | # repository in any parent directory. | ||
371 | SOURCE_DATE_EPOCH=`git --git-dir="${S}/.git" log -1 --pretty=%ct 2>/dev/null || echo "${REPRODUCIBLE_TIMESTAMP_ROOTFS}"` | ||
372 | fi | ||
373 | |||
374 | ts=`LC_ALL=C date -d @$SOURCE_DATE_EPOCH` | ||
375 | export KBUILD_BUILD_TIMESTAMP="$ts" | ||
376 | export KCONFIG_NOTIMESTAMP=1 | ||
377 | bbnote "KBUILD_BUILD_TIMESTAMP: $ts" | ||
378 | else | ||
379 | ts=`LC_ALL=C date` | ||
380 | export KBUILD_BUILD_TIMESTAMP="$ts" | ||
381 | bbnote "KBUILD_BUILD_TIMESTAMP: $ts" | ||
382 | fi | ||
383 | # The $use_alternate_initrd is only set from | ||
384 | # do_bundle_initramfs() This variable is specifically for the | ||
385 | # case where we are making a second pass at the kernel | ||
386 | # compilation and we want to force the kernel build to use a | ||
387 | # different initramfs image. The way to do that in the kernel | ||
388 | # is to specify: | ||
389 | # make ...args... CONFIG_INITRAMFS_SOURCE=some_other_initramfs.cpio | ||
390 | if [ "$use_alternate_initrd" = "" ] && [ "${INITRAMFS_TASK}" != "" ] ; then | ||
391 | # The old style way of copying an prebuilt image and building it | ||
392 | # is turned on via INTIRAMFS_TASK != "" | ||
393 | copy_initramfs | ||
394 | use_alternate_initrd=CONFIG_INITRAMFS_SOURCE=${B}/usr/${INITRAMFS_IMAGE_NAME}.cpio | ||
395 | fi | ||
396 | for typeformake in ${KERNEL_IMAGETYPE_FOR_MAKE} ; do | ||
397 | oe_runmake ${PARALLEL_MAKE} ${typeformake} ${KERNEL_EXTRA_ARGS} $use_alternate_initrd | ||
398 | done | ||
399 | } | ||
400 | |||
401 | kernel_legacyhs_do_transform_kernel() { | ||
402 | # vmlinux.gz is not built by kernel | ||
403 | if (echo "${KERNEL_IMAGETYPES}" | grep -wq "vmlinux\.gz"); then | ||
404 | mkdir -p "${KERNEL_OUTPUT_DIR}" | ||
405 | gzip -9cn < ${B}/vmlinux > "${KERNEL_OUTPUT_DIR}/vmlinux.gz" | ||
406 | fi | ||
407 | } | ||
408 | do_transform_kernel[dirs] = "${B}" | ||
409 | addtask transform_kernel after do_compile before do_install | ||
410 | |||
411 | do_compile_kernelmodules() { | ||
412 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE | ||
413 | |||
414 | # setup native pkg-config variables (kconfig scripts call pkg-config directly, cannot generically be overriden to pkg-config-native) | ||
415 | export PKG_CONFIG_DIR="${STAGING_DIR_NATIVE}${libdir_native}/pkgconfig" | ||
416 | export PKG_CONFIG_PATH="$PKG_CONFIG_DIR:${STAGING_DATADIR_NATIVE}/pkgconfig" | ||
417 | export PKG_CONFIG_LIBDIR="$PKG_CONFIG_DIR" | ||
418 | export PKG_CONFIG_SYSROOT_DIR="" | ||
419 | |||
420 | if [ "${KERNEL_DEBUG_TIMESTAMPS}" != "1" ]; then | ||
421 | # kernel sources do not use do_unpack, so SOURCE_DATE_EPOCH may not | ||
422 | # be set.... | ||
423 | if [ "${SOURCE_DATE_EPOCH}" = "" -o "${SOURCE_DATE_EPOCH}" = "0" ]; then | ||
424 | # The source directory is not necessarily a git repository, so we | ||
425 | # specify the git-dir to ensure that git does not query a | ||
426 | # repository in any parent directory. | ||
427 | SOURCE_DATE_EPOCH=`git --git-dir="${S}/.git" log -1 --pretty=%ct 2>/dev/null || echo "${REPRODUCIBLE_TIMESTAMP_ROOTFS}"` | ||
428 | fi | ||
429 | |||
430 | ts=`LC_ALL=C date -d @$SOURCE_DATE_EPOCH` | ||
431 | export KBUILD_BUILD_TIMESTAMP="$ts" | ||
432 | export KCONFIG_NOTIMESTAMP=1 | ||
433 | bbnote "KBUILD_BUILD_TIMESTAMP: $ts" | ||
434 | else | ||
435 | ts=`LC_ALL=C date` | ||
436 | export KBUILD_BUILD_TIMESTAMP="$ts" | ||
437 | bbnote "KBUILD_BUILD_TIMESTAMP: $ts" | ||
438 | fi | ||
439 | if (grep -q -i -e '^CONFIG_MODULES=y$' ${B}/.config); then | ||
440 | oe_runmake -C ${B} ${PARALLEL_MAKE} modules ${KERNEL_EXTRA_ARGS} | ||
441 | |||
442 | # Module.symvers gets updated during the | ||
443 | # building of the kernel modules. We need to | ||
444 | # update this in the shared workdir since some | ||
445 | # external kernel modules has a dependency on | ||
446 | # other kernel modules and will look at this | ||
447 | # file to do symbol lookups | ||
448 | cp ${B}/Module.symvers ${STAGING_KERNEL_BUILDDIR}/ | ||
449 | # 5.10+ kernels have module.lds that we need to copy for external module builds | ||
450 | if [ -e "${B}/scripts/module.lds" ]; then | ||
451 | install -Dm 0644 ${B}/scripts/module.lds ${STAGING_KERNEL_BUILDDIR}/scripts/module.lds | ||
452 | fi | ||
453 | else | ||
454 | bbnote "no modules to compile" | ||
455 | fi | ||
456 | } | ||
457 | addtask compile_kernelmodules after do_compile before do_strip | ||
458 | |||
459 | kernel_legacyhs_do_install() { | ||
460 | # | ||
461 | # First install the modules | ||
462 | # | ||
463 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE | ||
464 | if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then | ||
465 | oe_runmake DEPMOD=echo MODLIB=${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION} INSTALL_FW_PATH=${D}${nonarch_base_libdir}/firmware modules_install | ||
466 | rm -f "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build" | ||
467 | rm -f "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/source" | ||
468 | # Remove empty module directories to prevent QA issues | ||
469 | [ -d "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel" ] && find "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel" -type d -empty -delete | ||
470 | else | ||
471 | bbnote "no modules to install" | ||
472 | fi | ||
473 | |||
474 | # | ||
475 | # Install various kernel output (zImage, map file, config, module support files) | ||
476 | # | ||
477 | install -d ${D}/${KERNEL_IMAGEDEST} | ||
478 | |||
479 | # | ||
480 | # When including an initramfs bundle inside a FIT image, the fitImage is created after the install task | ||
481 | # by do_assemble_fitimage_initramfs. | ||
482 | # This happens after the generation of the initramfs bundle (done by do_bundle_initramfs). | ||
483 | # So, at the level of the install task we should not try to install the fitImage. fitImage is still not | ||
484 | # generated yet. | ||
485 | # After the generation of the fitImage, the deploy task copies the fitImage from the build directory to | ||
486 | # the deploy folder. | ||
487 | # | ||
488 | |||
489 | for imageType in ${KERNEL_IMAGETYPES} ; do | ||
490 | if [ $imageType != "fitImage" ] || [ "${INITRAMFS_IMAGE_BUNDLE}" != "1" ] ; then | ||
491 | install -m 0644 ${KERNEL_OUTPUT_DIR}/$imageType ${D}/${KERNEL_IMAGEDEST}/$imageType-${KERNEL_VERSION} | ||
492 | fi | ||
493 | done | ||
494 | |||
495 | install -m 0644 System.map ${D}/${KERNEL_IMAGEDEST}/System.map-${KERNEL_VERSION} | ||
496 | install -m 0644 .config ${D}/${KERNEL_IMAGEDEST}/config-${KERNEL_VERSION} | ||
497 | install -m 0644 vmlinux ${D}/${KERNEL_IMAGEDEST}/vmlinux-${KERNEL_VERSION} | ||
498 | ! [ -e Module.symvers ] || install -m 0644 Module.symvers ${D}/${KERNEL_IMAGEDEST}/Module.symvers-${KERNEL_VERSION} | ||
499 | } | ||
500 | |||
501 | # Must be ran no earlier than after do_kernel_checkout or else Makefile won't be in ${S}/Makefile | ||
502 | do_kernel_version_sanity_check() { | ||
503 | if [ "x${KERNEL_VERSION_SANITY_SKIP}" = "x1" ]; then | ||
504 | exit 0 | ||
505 | fi | ||
506 | |||
507 | # The Makefile determines the kernel version shown at runtime | ||
508 | # Don't use KERNEL_VERSION because the headers it grabs the version from aren't generated until do_compile | ||
509 | VERSION=$(grep "^VERSION =" ${S}/Makefile | sed s/.*=\ *//) | ||
510 | PATCHLEVEL=$(grep "^PATCHLEVEL =" ${S}/Makefile | sed s/.*=\ *//) | ||
511 | SUBLEVEL=$(grep "^SUBLEVEL =" ${S}/Makefile | sed s/.*=\ *//) | ||
512 | EXTRAVERSION=$(grep "^EXTRAVERSION =" ${S}/Makefile | sed s/.*=\ *//) | ||
513 | |||
514 | # Build a string for regex and a plain version string | ||
515 | reg="^${VERSION}\.${PATCHLEVEL}" | ||
516 | vers="${VERSION}.${PATCHLEVEL}" | ||
517 | if [ -n "${SUBLEVEL}" ]; then | ||
518 | # Ignoring a SUBLEVEL of zero is fine | ||
519 | if [ "${SUBLEVEL}" = "0" ]; then | ||
520 | reg="${reg}(\.${SUBLEVEL})?" | ||
521 | else | ||
522 | reg="${reg}\.${SUBLEVEL}" | ||
523 | vers="${vers}.${SUBLEVEL}" | ||
524 | fi | ||
525 | fi | ||
526 | vers="${vers}${EXTRAVERSION}" | ||
527 | reg="${reg}${EXTRAVERSION}" | ||
528 | |||
529 | if [ -z `echo ${PV} | grep -E "${reg}"` ]; then | ||
530 | bbfatal "Package Version (${PV}) does not match of kernel being built (${vers}). Please update the PV variable to match the kernel source or set KERNEL_VERSION_SANITY_SKIP=\"1\" in your recipe." | ||
531 | fi | ||
532 | exit 0 | ||
533 | } | ||
534 | |||
535 | addtask shared_workdir after do_compile before do_compile_kernelmodules | ||
536 | addtask shared_workdir_setscene | ||
537 | |||
538 | do_shared_workdir_setscene () { | ||
539 | exit 1 | ||
540 | } | ||
541 | |||
542 | emit_depmod_pkgdata() { | ||
543 | # Stash data for depmod | ||
544 | install -d ${PKGDESTWORK}/${KERNEL_PACKAGE_NAME}-depmod/ | ||
545 | echo "${KERNEL_VERSION}" > ${PKGDESTWORK}/${KERNEL_PACKAGE_NAME}-depmod/${KERNEL_PACKAGE_NAME}-abiversion | ||
546 | cp ${B}/System.map ${PKGDESTWORK}/${KERNEL_PACKAGE_NAME}-depmod/System.map-${KERNEL_VERSION} | ||
547 | } | ||
548 | |||
549 | PACKAGEFUNCS += "emit_depmod_pkgdata" | ||
550 | |||
551 | do_shared_workdir[cleandirs] += " ${STAGING_KERNEL_BUILDDIR}" | ||
552 | do_shared_workdir () { | ||
553 | cd ${B} | ||
554 | |||
555 | kerneldir=${STAGING_KERNEL_BUILDDIR} | ||
556 | install -d $kerneldir | ||
557 | |||
558 | # | ||
559 | # Store the kernel version in sysroots for module-base.bbclass | ||
560 | # | ||
561 | |||
562 | echo "${KERNEL_VERSION}" > $kerneldir/${KERNEL_PACKAGE_NAME}-abiversion | ||
563 | echo "${KERNEL_LOCALVERSION}" > $kerneldir/${KERNEL_PACKAGE_NAME}-localversion | ||
564 | |||
565 | # Copy files required for module builds | ||
566 | cp System.map $kerneldir/System.map-${KERNEL_VERSION} | ||
567 | ! [ -e Module.symvers ] || cp Module.symvers $kerneldir/ | ||
568 | cp .config $kerneldir/ | ||
569 | mkdir -p $kerneldir/include/config | ||
570 | cp include/config/kernel.release $kerneldir/include/config/kernel.release | ||
571 | if [ -e certs/signing_key.x509 ]; then | ||
572 | # The signing_key.* files are stored in the certs/ dir in | ||
573 | # newer Linux kernels | ||
574 | mkdir -p $kerneldir/certs | ||
575 | cp certs/signing_key.* $kerneldir/certs/ | ||
576 | elif [ -e signing_key.priv ]; then | ||
577 | cp signing_key.* $kerneldir/ | ||
578 | fi | ||
579 | |||
580 | # We can also copy over all the generated files and avoid special cases | ||
581 | # like version.h, but we've opted to keep this small until file creep starts | ||
582 | # to happen | ||
583 | if [ -e include/linux/version.h ]; then | ||
584 | mkdir -p $kerneldir/include/linux | ||
585 | cp include/linux/version.h $kerneldir/include/linux/version.h | ||
586 | fi | ||
587 | |||
588 | # As of Linux kernel version 3.0.1, the clean target removes | ||
589 | # arch/powerpc/lib/crtsavres.o which is present in | ||
590 | # KBUILD_LDFLAGS_MODULE, making it required to build external modules. | ||
591 | if [ ${ARCH} = "powerpc" ]; then | ||
592 | if [ -e arch/powerpc/lib/crtsavres.o ]; then | ||
593 | mkdir -p $kerneldir/arch/powerpc/lib/ | ||
594 | cp arch/powerpc/lib/crtsavres.o $kerneldir/arch/powerpc/lib/crtsavres.o | ||
595 | fi | ||
596 | fi | ||
597 | |||
598 | if [ -d include/generated ]; then | ||
599 | mkdir -p $kerneldir/include/generated/ | ||
600 | cp -fR include/generated/* $kerneldir/include/generated/ | ||
601 | fi | ||
602 | |||
603 | if [ -d arch/${ARCH}/include/generated ]; then | ||
604 | mkdir -p $kerneldir/arch/${ARCH}/include/generated/ | ||
605 | cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/ | ||
606 | fi | ||
607 | |||
608 | if (grep -q -i -e '^CONFIG_UNWINDER_ORC=y$' $kerneldir/.config); then | ||
609 | # With CONFIG_UNWINDER_ORC (the default in 4.14), objtool is required for | ||
610 | # out-of-tree modules to be able to generate object files. | ||
611 | if [ -x tools/objtool/objtool ]; then | ||
612 | mkdir -p ${kerneldir}/tools/objtool | ||
613 | cp tools/objtool/objtool ${kerneldir}/tools/objtool/ | ||
614 | fi | ||
615 | fi | ||
616 | |||
617 | # When building with CONFIG_MODVERSIONS=y and CONFIG_RANDSTRUCT=y we need | ||
618 | # to copy the build assets generated for the randstruct seed to | ||
619 | # STAGING_KERNEL_BUILDDIR, otherwise the out-of-tree modules build will | ||
620 | # generate those assets which will result in a different | ||
621 | # RANDSTRUCT_HASHED_SEED | ||
622 | if [ -d scripts/basic ]; then | ||
623 | mkdir -p ${kerneldir}/scripts | ||
624 | cp -r scripts/basic ${kerneldir}/scripts | ||
625 | fi | ||
626 | |||
627 | if [ -d scripts/gcc-plugins ]; then | ||
628 | mkdir -p ${kerneldir}/scripts | ||
629 | cp -r scripts/gcc-plugins ${kerneldir}/scripts | ||
630 | fi | ||
631 | |||
632 | } | ||
633 | |||
634 | # We don't need to stage anything, not the modules/firmware since those would clash with linux-firmware | ||
635 | SYSROOT_DIRS = "" | ||
636 | |||
637 | KERNEL_CONFIG_COMMAND ?= "oe_runmake_call -C ${S} O=${B} olddefconfig || oe_runmake -C ${S} O=${B} oldnoconfig" | ||
638 | |||
639 | python check_oldest_kernel() { | ||
640 | oldest_kernel = d.getVar('OLDEST_KERNEL') | ||
641 | kernel_version = d.getVar('KERNEL_VERSION') | ||
642 | tclibc = d.getVar('TCLIBC') | ||
643 | if tclibc == 'glibc': | ||
644 | kernel_version = kernel_version.split('-', 1)[0] | ||
645 | if oldest_kernel and kernel_version: | ||
646 | if bb.utils.vercmp_string(kernel_version, oldest_kernel) < 0: | ||
647 | bb.warn('%s: OLDEST_KERNEL is "%s" but the version of the kernel you are building is "%s" - therefore %s as built may not be compatible with this kernel. Either set OLDEST_KERNEL to an older version, or build a newer kernel.' % (d.getVar('PN'), oldest_kernel, kernel_version, tclibc)) | ||
648 | } | ||
649 | |||
650 | check_oldest_kernel[vardepsexclude] += "OLDEST_KERNEL KERNEL_VERSION" | ||
651 | do_compile[postfuncs] += "check_oldest_kernel" | ||
652 | |||
653 | KERNEL_LOCALVERSION ??= "" | ||
654 | |||
655 | # 6.3+ requires the variable LOCALVERSION to be set to not get a "+" in | ||
656 | # the local version. Having it empty means nothing will be added, and any | ||
657 | # value will be appended to the local kernel version. This replaces the | ||
658 | # use of .scmversion file for setting a localversion without using | ||
659 | # the CONFIG_LOCALVERSION option. | ||
660 | # | ||
661 | # Note: This class saves the value of localversion to a file | ||
662 | # so other recipes like make-mod-scripts can restore it via the | ||
663 | # helper function get_kernellocalversion_file | ||
664 | export LOCALVERSION = "${KERNEL_LOCALVERSION}" | ||
665 | |||
666 | kernel_legacyhs_do_configure() { | ||
667 | # fixes extra + in /lib/modules/2.6.37+ | ||
668 | # $ scripts/setlocalversion . => + | ||
669 | # $ make kernelversion => 2.6.37 | ||
670 | # $ make kernelrelease => 2.6.37+ | ||
671 | # See kernel-arch.bbclass for post v6.3 removal of the extra | ||
672 | # + in localversion. .scmversion is no longer used, and the | ||
673 | # variable LOCALVERSION must be used | ||
674 | if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ]; then | ||
675 | echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion | ||
676 | echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion | ||
677 | fi | ||
678 | |||
679 | if [ "${S}" != "${B}" ] && [ -f "${S}/.config" ] && [ ! -f "${B}/.config" ]; then | ||
680 | mv "${S}/.config" "${B}/.config" | ||
681 | fi | ||
682 | |||
683 | # Copy defconfig to .config if .config does not exist. This allows | ||
684 | # recipes to manage the .config themselves in do_configure:prepend(). | ||
685 | if [ -f "${UNPACKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then | ||
686 | cp "${UNPACKDIR}/defconfig" "${B}/.config" | ||
687 | fi | ||
688 | |||
689 | ${KERNEL_CONFIG_COMMAND} | ||
690 | } | ||
691 | |||
692 | inherit cml1 pkgconfig | ||
693 | |||
694 | EXPORT_FUNCTIONS do_compile do_transform_kernel do_transform_bundled_initramfs do_install do_configure | ||
695 | |||
696 | # kernel-base becomes kernel-${KERNEL_VERSION} | ||
697 | # kernel-image becomes kernel-image-${KERNEL_VERSION} | ||
698 | PACKAGES = "${KERNEL_PACKAGE_NAME} ${KERNEL_PACKAGE_NAME}-base ${KERNEL_PACKAGE_NAME}-vmlinux ${KERNEL_PACKAGE_NAME}-image ${KERNEL_PACKAGE_NAME}-dev ${KERNEL_PACKAGE_NAME}-modules ${KERNEL_PACKAGE_NAME}-dbg" | ||
699 | FILES:${PN} = "" | ||
700 | FILES:${KERNEL_PACKAGE_NAME}-base = "${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.order ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo" | ||
701 | FILES:${KERNEL_PACKAGE_NAME}-image = "" | ||
702 | FILES:${KERNEL_PACKAGE_NAME}-dev = "/${KERNEL_IMAGEDEST}/System.map* /${KERNEL_IMAGEDEST}/Module.symvers* /${KERNEL_IMAGEDEST}/config* ${KERNEL_SRC_PATH} ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build" | ||
703 | FILES:${KERNEL_PACKAGE_NAME}-vmlinux = "/${KERNEL_IMAGEDEST}/vmlinux-${KERNEL_VERSION_NAME}" | ||
704 | FILES:${KERNEL_PACKAGE_NAME}-modules = "" | ||
705 | FILES:${KERNEL_PACKAGE_NAME}-dbg = "/usr/lib/debug /usr/src/debug" | ||
706 | RDEPENDS:${KERNEL_PACKAGE_NAME} = "${KERNEL_PACKAGE_NAME}-base (= ${EXTENDPKGV})" | ||
707 | # Allow machines to override this dependency if kernel image files are | ||
708 | # not wanted in images as standard | ||
709 | RRECOMMENDS:${KERNEL_PACKAGE_NAME}-base ?= "${KERNEL_PACKAGE_NAME}-image (= ${EXTENDPKGV})" | ||
710 | PKG:${KERNEL_PACKAGE_NAME}-image = "${KERNEL_PACKAGE_NAME}-image-${@legitimize_package_name(d.getVar('KERNEL_VERSION'))}" | ||
711 | RPROVIDES:${KERNEL_PACKAGE_NAME}-image += "${KERNEL_PACKAGE_NAME}-image" | ||
712 | RDEPENDS:${KERNEL_PACKAGE_NAME}-image += "${@oe.utils.conditional('KERNEL_IMAGETYPE', 'vmlinux', '${KERNEL_PACKAGE_NAME}-vmlinux (= ${EXTENDPKGV})', '', d)}" | ||
713 | PKG:${KERNEL_PACKAGE_NAME}-base = "${KERNEL_PACKAGE_NAME}-${@legitimize_package_name(d.getVar('KERNEL_VERSION'))}" | ||
714 | RPROVIDES:${KERNEL_PACKAGE_NAME}-base += "${KERNEL_PACKAGE_NAME}-${KERNEL_VERSION} ${KERNEL_PACKAGE_NAME}-base" | ||
715 | ALLOW_EMPTY:${KERNEL_PACKAGE_NAME} = "1" | ||
716 | ALLOW_EMPTY:${KERNEL_PACKAGE_NAME}-base = "1" | ||
717 | ALLOW_EMPTY:${KERNEL_PACKAGE_NAME}-image = "1" | ||
718 | ALLOW_EMPTY:${KERNEL_PACKAGE_NAME}-modules = "1" | ||
719 | DESCRIPTION:${KERNEL_PACKAGE_NAME}-modules = "Kernel modules meta package" | ||
720 | |||
721 | pkg_postinst:${KERNEL_PACKAGE_NAME}-base () { | ||
722 | if [ ! -e "$D/lib/modules/${KERNEL_VERSION}" ]; then | ||
723 | mkdir -p $D/lib/modules/${KERNEL_VERSION} | ||
724 | fi | ||
725 | if [ -n "$D" ]; then | ||
726 | depmodwrapper -a -b $D ${KERNEL_VERSION} ${KERNEL_PACKAGE_NAME} | ||
727 | else | ||
728 | depmod -a ${KERNEL_VERSION} | ||
729 | fi | ||
730 | } | ||
731 | |||
732 | PACKAGESPLITFUNCS =+ "split_kernel_packages" | ||
733 | |||
734 | python split_kernel_packages () { | ||
735 | do_split_packages(d, root='${nonarch_base_libdir}/firmware', file_regex=r'^(.*)\.(bin|fw|cis|csp|dsp)$', output_pattern='${KERNEL_PACKAGE_NAME}-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='') | ||
736 | } | ||
737 | |||
738 | # Many scripts want to look in arch/$arch/boot for the bootable | ||
739 | # image. This poses a problem for vmlinux and vmlinuz based | ||
740 | # booting. This task arranges to have vmlinux and vmlinuz appear | ||
741 | # in the normalized directory location. | ||
742 | do_kernel_link_images() { | ||
743 | if [ ! -d "${B}/arch/${ARCH}/boot" ]; then | ||
744 | mkdir ${B}/arch/${ARCH}/boot | ||
745 | fi | ||
746 | cd ${B}/arch/${ARCH}/boot | ||
747 | ln -sf ../../../vmlinux | ||
748 | if [ -f ../../../vmlinuz ]; then | ||
749 | ln -sf ../../../vmlinuz | ||
750 | fi | ||
751 | if [ -f ../../../vmlinuz.bin ]; then | ||
752 | ln -sf ../../../vmlinuz.bin | ||
753 | fi | ||
754 | if [ -f ../../../vmlinux.64 ]; then | ||
755 | ln -sf ../../../vmlinux.64 | ||
756 | fi | ||
757 | } | ||
758 | addtask kernel_link_images after do_compile before do_strip | ||
759 | |||
760 | python do_strip() { | ||
761 | import shutil | ||
762 | |||
763 | strip = d.getVar('KERNEL_STRIP') | ||
764 | extra_sections = d.getVar('KERNEL_IMAGE_STRIP_EXTRA_SECTIONS') | ||
765 | kernel_image = d.getVar('B') + "/" + d.getVar('KERNEL_OUTPUT_DIR') + "/vmlinux" | ||
766 | |||
767 | if (extra_sections and kernel_image.find(d.getVar('KERNEL_IMAGEDEST') + '/vmlinux') != -1): | ||
768 | kernel_image_stripped = kernel_image + ".stripped" | ||
769 | shutil.copy2(kernel_image, kernel_image_stripped) | ||
770 | oe.package.runstrip((kernel_image_stripped, 8, strip, extra_sections)) | ||
771 | bb.debug(1, "KERNEL_IMAGE_STRIP_EXTRA_SECTIONS is set, stripping sections: " + \ | ||
772 | extra_sections) | ||
773 | } | ||
774 | do_strip[dirs] = "${B}" | ||
775 | |||
776 | addtask strip before do_sizecheck after do_kernel_link_images | ||
777 | |||
778 | # Support checking the kernel size since some kernels need to reside in partitions | ||
779 | # with a fixed length or there is a limit in transferring the kernel to memory. | ||
780 | # If more than one image type is enabled, warn on any that don't fit but only fail | ||
781 | # if none fit. | ||
782 | do_sizecheck() { | ||
783 | if [ ! -z "${KERNEL_IMAGE_MAXSIZE}" ]; then | ||
784 | invalid=`echo ${KERNEL_IMAGE_MAXSIZE} | sed 's/[0-9]//g'` | ||
785 | if [ -n "$invalid" ]; then | ||
786 | die "Invalid KERNEL_IMAGE_MAXSIZE: ${KERNEL_IMAGE_MAXSIZE}, should be an integer (The unit is Kbytes)" | ||
787 | fi | ||
788 | at_least_one_fits= | ||
789 | for imageType in ${KERNEL_IMAGETYPES} ; do | ||
790 | size=`du -ks ${B}/${KERNEL_OUTPUT_DIR}/$imageType | awk '{print $1}'` | ||
791 | if [ $size -gt ${KERNEL_IMAGE_MAXSIZE} ]; then | ||
792 | bbwarn "This kernel $imageType (size=$size(K) > ${KERNEL_IMAGE_MAXSIZE}(K)) is too big for your device." | ||
793 | else | ||
794 | at_least_one_fits=y | ||
795 | fi | ||
796 | done | ||
797 | if [ -z "$at_least_one_fits" ]; then | ||
798 | die "All kernel images are too big for your device. Please reduce the size of the kernel by making more of it modular." | ||
799 | fi | ||
800 | fi | ||
801 | } | ||
802 | do_sizecheck[dirs] = "${B}" | ||
803 | |||
804 | addtask sizecheck before do_install after do_strip | ||
805 | |||
806 | inherit kernel-artifact-names | ||
807 | |||
808 | kernel_legacyhs_do_deploy() { | ||
809 | deployDir="${DEPLOYDIR}" | ||
810 | if [ -n "${KERNEL_DEPLOYSUBDIR}" ]; then | ||
811 | deployDir="${DEPLOYDIR}/${KERNEL_DEPLOYSUBDIR}" | ||
812 | mkdir "$deployDir" | ||
813 | fi | ||
814 | |||
815 | for imageType in ${KERNEL_IMAGETYPES} ; do | ||
816 | baseName=$imageType-${KERNEL_IMAGE_NAME} | ||
817 | |||
818 | if [ -s ${KERNEL_OUTPUT_DIR}/$imageType.stripped ] ; then | ||
819 | install -m 0644 ${KERNEL_OUTPUT_DIR}/$imageType.stripped $deployDir/$baseName${KERNEL_IMAGE_BIN_EXT} | ||
820 | else | ||
821 | install -m 0644 ${KERNEL_OUTPUT_DIR}/$imageType $deployDir/$baseName${KERNEL_IMAGE_BIN_EXT} | ||
822 | fi | ||
823 | if [ -n "${KERNEL_IMAGE_LINK_NAME}" ] ; then | ||
824 | ln -sf $baseName${KERNEL_IMAGE_BIN_EXT} $deployDir/$imageType-${KERNEL_IMAGE_LINK_NAME}${KERNEL_IMAGE_BIN_EXT} | ||
825 | fi | ||
826 | if [ "${KERNEL_IMAGETYPE_SYMLINK}" = "1" ] ; then | ||
827 | ln -sf $baseName${KERNEL_IMAGE_BIN_EXT} $deployDir/$imageType | ||
828 | fi | ||
829 | done | ||
830 | |||
831 | if [ ${MODULE_TARBALL_DEPLOY} = "1" ] && (grep -q -i -e '^CONFIG_MODULES=y$' .config); then | ||
832 | mkdir -p ${D}${root_prefix}/lib | ||
833 | if [ -n "${SOURCE_DATE_EPOCH}" ]; then | ||
834 | TAR_ARGS="--sort=name --clamp-mtime --mtime=@${SOURCE_DATE_EPOCH}" | ||
835 | else | ||
836 | TAR_ARGS="" | ||
837 | fi | ||
838 | TAR_ARGS="$TAR_ARGS --owner=0 --group=0" | ||
839 | tar $TAR_ARGS -cv -C ${D}${root_prefix} lib | gzip -9n > $deployDir/modules-${MODULE_TARBALL_NAME}.tgz | ||
840 | |||
841 | if [ -n "${MODULE_TARBALL_LINK_NAME}" ] ; then | ||
842 | ln -sf modules-${MODULE_TARBALL_NAME}.tgz $deployDir/modules-${MODULE_TARBALL_LINK_NAME}.tgz | ||
843 | fi | ||
844 | fi | ||
845 | |||
846 | if [ ! -z "${INITRAMFS_IMAGE}" -a x"${INITRAMFS_IMAGE_BUNDLE}" = x1 ]; then | ||
847 | for imageType in ${KERNEL_IMAGETYPES} ; do | ||
848 | if [ "$imageType" = "fitImage" ] ; then | ||
849 | continue | ||
850 | fi | ||
851 | initramfsBaseName=$imageType-${INITRAMFS_NAME} | ||
852 | install -m 0644 ${KERNEL_OUTPUT_DIR}/$imageType.initramfs $deployDir/$initramfsBaseName${KERNEL_IMAGE_BIN_EXT} | ||
853 | if [ -n "${INITRAMFS_LINK_NAME}" ] ; then | ||
854 | ln -sf $initramfsBaseName${KERNEL_IMAGE_BIN_EXT} $deployDir/$imageType-${INITRAMFS_LINK_NAME}${KERNEL_IMAGE_BIN_EXT} | ||
855 | fi | ||
856 | done | ||
857 | fi | ||
858 | } | ||
859 | |||
860 | # We deploy to filenames that include PKGV and PKGR, read the saved data to | ||
861 | # ensure we get the right values for both | ||
862 | do_deploy[prefuncs] += "read_subpackage_metadata" | ||
863 | |||
864 | addtask deploy after do_populate_sysroot do_packagedata | ||
865 | |||
866 | EXPORT_FUNCTIONS do_deploy | ||
867 | |||
868 | # Add using Device Tree support | ||
869 | inherit kernel-devicetree | ||
870 | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-kernel-devicetree-prefix.inc b/meta-ti-bsp/classes/ti-devicetree-prefix.bbclass index 04c91004..5858cc65 100644 --- a/meta-ti-bsp/recipes-kernel/linux/ti-kernel-devicetree-prefix.inc +++ b/meta-ti-bsp/classes/ti-devicetree-prefix.bbclass | |||
@@ -1,4 +1,4 @@ | |||
1 | 1 | # Generate list of DTBs from the kernel source | |
2 | def get_dtbs_from_kernel(dts_dir, dts_prefix): | 2 | def get_dtbs_from_kernel(dts_dir, dts_prefix): |
3 | import os | 3 | import os |
4 | import glob | 4 | import glob |
@@ -18,6 +18,8 @@ def get_dtbs_from_kernel(dts_dir, dts_prefix): | |||
18 | matches.append(filename) | 18 | matches.append(filename) |
19 | return ' '.join(matches) | 19 | return ' '.join(matches) |
20 | 20 | ||
21 | # Generate list of "merged" DTBs from the kernel source | ||
22 | # It is TI custom feature to merge DTB overlays into a single DTB | ||
21 | def get_merge_dtbs_from_kernel(dts_dir, dts_pattern): | 23 | def get_merge_dtbs_from_kernel(dts_dir, dts_pattern): |
22 | import os | 24 | import os |
23 | matches = [] | 25 | matches = [] |
@@ -33,10 +35,9 @@ def get_merge_dtbs_from_kernel(dts_dir, dts_pattern): | |||
33 | matches.append(pattern) | 35 | matches.append(pattern) |
34 | return ' '.join(matches) | 36 | return ' '.join(matches) |
35 | 37 | ||
36 | KERNEL_DEVICETREE_DTBMERGE ?= "" | ||
37 | |||
38 | KERNEL_DEVICETREE = " \ | 38 | KERNEL_DEVICETREE = " \ |
39 | ${@get_dtbs_from_kernel('${S}/arch/${ARCH}/boot/dts/', '${KERNEL_DEVICETREE_PREFIX}')} \ | 39 | ${@get_dtbs_from_kernel('${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts/', '${KERNEL_DEVICETREE_PREFIX}')} \ |
40 | ${@get_merge_dtbs_from_kernel('${S}/arch/${ARCH}/boot/dts/', '${KERNEL_DEVICETREE_DTBMERGE}')} \ | 40 | ${@get_merge_dtbs_from_kernel('${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts/', '${KERNEL_DEVICETREE_DTBMERGE}')} \ |
41 | " | 41 | " |
42 | 42 | ||
43 | do_image_wic[depends] += "virtual/kernel:do_shared_workdir" | ||
diff --git a/meta-ti-bsp/conf/layer.conf b/meta-ti-bsp/conf/layer.conf index 03cbd7ea..022c4838 100644 --- a/meta-ti-bsp/conf/layer.conf +++ b/meta-ti-bsp/conf/layer.conf | |||
@@ -9,7 +9,7 @@ BBFILE_COLLECTIONS += "meta-ti-bsp" | |||
9 | BBFILE_PATTERN_meta-ti-bsp := "^${LAYERDIR}/" | 9 | BBFILE_PATTERN_meta-ti-bsp := "^${LAYERDIR}/" |
10 | BBFILE_PRIORITY_meta-ti-bsp = "6" | 10 | BBFILE_PRIORITY_meta-ti-bsp = "6" |
11 | 11 | ||
12 | LAYERSERIES_COMPAT_meta-ti-bsp = "nanbield scarthgap styhead" | 12 | LAYERSERIES_COMPAT_meta-ti-bsp = "whinlatter" |
13 | 13 | ||
14 | LICENSE_PATH += "${LAYERDIR}/licenses" | 14 | LICENSE_PATH += "${LAYERDIR}/licenses" |
15 | 15 | ||
@@ -18,8 +18,12 @@ LAYERDEPENDS_meta-ti-bsp = " \ | |||
18 | meta-arm \ | 18 | meta-arm \ |
19 | " | 19 | " |
20 | 20 | ||
21 | LAYERRECOMMENDS_meta-ti-bsp = " \ | ||
22 | openembedded-layer \ | ||
23 | " | ||
24 | |||
21 | BBFILES_DYNAMIC += " \ | 25 | BBFILES_DYNAMIC += " \ |
22 | clang-layer:${LAYERDIR}/dynamic-layers/clang-layer/recipes*/*/*.bbappend \ | 26 | openembedded-layer:${LAYERDIR}/dynamic-layers/openembedded-layer/recipes*/*/*.bbappend \ |
23 | " | 27 | " |
24 | 28 | ||
25 | SIGGEN_EXCLUDERECIPES_ABISAFE += " \ | 29 | SIGGEN_EXCLUDERECIPES_ABISAFE += " \ |
diff --git a/meta-ti-bsp/conf/machine/am335x-evm.conf b/meta-ti-bsp/conf/machine/am335x-evm.conf index 5b7739ce..029e761b 100644 --- a/meta-ti-bsp/conf/machine/am335x-evm.conf +++ b/meta-ti-bsp/conf/machine/am335x-evm.conf | |||
@@ -22,7 +22,7 @@ SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS3" | |||
22 | # UBI: logical eraseblock size: 126976 bytes | 22 | # UBI: logical eraseblock size: 126976 bytes |
23 | # from ubiattach stdout: | 23 | # from ubiattach stdout: |
24 | # UBI device number 0, total 1988 LEBs | 24 | # UBI device number 0, total 1988 LEBs |
25 | MKUBIFS_ARGS ?= "-F -m 2048 -e 126976 -c 13000" | 25 | MKUBIFS_ARGS ?= "-F -m 2048 -e 126976 -c 16000" |
26 | 26 | ||
27 | # do ubiattach /dev/ubi_ctrl -m 7 -O 2048 | 27 | # do ubiattach /dev/ubi_ctrl -m 7 -O 2048 |
28 | # from dmesg: | 28 | # from dmesg: |
diff --git a/meta-ti-bsp/conf/machine/am335x-hs-evm.conf b/meta-ti-bsp/conf/machine/am335x-hs-evm.conf index ca102961..562befe9 100644 --- a/meta-ti-bsp/conf/machine/am335x-hs-evm.conf +++ b/meta-ti-bsp/conf/machine/am335x-hs-evm.conf | |||
@@ -10,12 +10,8 @@ UBOOT_CONFIG ??= "uart mmc" | |||
10 | UBOOT_CONFIG[uart] = "am335x_hs_evm_uart_config" | 10 | UBOOT_CONFIG[uart] = "am335x_hs_evm_uart_config" |
11 | UBOOT_CONFIG[mmc] = "am335x_hs_evm_config" | 11 | UBOOT_CONFIG[mmc] = "am335x_hs_evm_config" |
12 | 12 | ||
13 | UBOOT_ENTRYPOINT = "0x82000000" | ||
14 | UBOOT_LOADADDRESS = "0x82000000" | ||
15 | UBOOT_RD_LOADADDRESS = "0x84000000" | ||
16 | UBOOT_RD_ENTRYPOINT = "0x84000000" | ||
17 | |||
18 | # FIT image for legacy secure devices | 13 | # FIT image for legacy secure devices |
14 | KERNEL_BASE_CLASS = "kernel_legacyhs" | ||
19 | KERNEL_CLASSES += " kernel-fitimage-legacyhs" | 15 | KERNEL_CLASSES += " kernel-fitimage-legacyhs" |
20 | KERNEL_IMAGETYPES += " fitImage" | 16 | KERNEL_IMAGETYPES += " fitImage" |
21 | 17 | ||
diff --git a/meta-ti-bsp/conf/machine/am437x-evm.conf b/meta-ti-bsp/conf/machine/am437x-evm.conf index 58b7996f..248add70 100644 --- a/meta-ti-bsp/conf/machine/am437x-evm.conf +++ b/meta-ti-bsp/conf/machine/am437x-evm.conf | |||
@@ -21,7 +21,7 @@ SERIAL_CONSOLES = "115200;ttyS0" | |||
21 | # UBI: logical eraseblock size: 253952 bytes | 21 | # UBI: logical eraseblock size: 253952 bytes |
22 | # from ubiattach stdout: | 22 | # from ubiattach stdout: |
23 | # UBI device number 0, total 994 LEBs | 23 | # UBI device number 0, total 994 LEBs |
24 | MKUBIFS_ARGS = "-F -m 4096 -e 253952 -c 6000" | 24 | MKUBIFS_ARGS = "-F -m 4096 -e 253952 -c 8000" |
25 | 25 | ||
26 | # do ubiattach /dev/ubi_ctrl -m 11 -O 4096 | 26 | # do ubiattach /dev/ubi_ctrl -m 11 -O 4096 |
27 | # from dmesg: | 27 | # from dmesg: |
diff --git a/meta-ti-bsp/conf/machine/am437x-hs-evm.conf b/meta-ti-bsp/conf/machine/am437x-hs-evm.conf index 632b4995..35b8d0a4 100644 --- a/meta-ti-bsp/conf/machine/am437x-hs-evm.conf +++ b/meta-ti-bsp/conf/machine/am437x-hs-evm.conf | |||
@@ -6,17 +6,13 @@ require conf/machine/am437x-evm.conf | |||
6 | 6 | ||
7 | UBOOT_MACHINE = "am43xx_hs_evm_config" | 7 | UBOOT_MACHINE = "am43xx_hs_evm_config" |
8 | 8 | ||
9 | UBOOT_ENTRYPOINT = "0x82000000" | ||
10 | UBOOT_LOADADDRESS = "0x82000000" | ||
11 | UBOOT_RD_LOADADDRESS = "0x84000000" | ||
12 | UBOOT_RD_ENTRYPOINT = "0x84000000" | ||
13 | |||
14 | OPTEEMACHINE = "ti-am43xx" | 9 | OPTEEMACHINE = "ti-am43xx" |
15 | OPTEEFLAVOR = "am43xx" | 10 | OPTEEFLAVOR = "am43xx" |
16 | 11 | ||
17 | EXTRA_IMAGEDEPENDS += "optee-os" | 12 | EXTRA_IMAGEDEPENDS += "optee-os" |
18 | 13 | ||
19 | # FIT image for legacy secure devices | 14 | # FIT image for legacy secure devices |
15 | KERNEL_BASE_CLASS = "kernel_legacyhs" | ||
20 | KERNEL_CLASSES += " kernel-fitimage-legacyhs" | 16 | KERNEL_CLASSES += " kernel-fitimage-legacyhs" |
21 | KERNEL_IMAGETYPES += " fitImage" | 17 | KERNEL_IMAGETYPES += " fitImage" |
22 | 18 | ||
diff --git a/meta-ti-bsp/conf/machine/am57xx-evm.conf b/meta-ti-bsp/conf/machine/am57xx-evm.conf index 09eb4705..f9ff90c2 100644 --- a/meta-ti-bsp/conf/machine/am57xx-evm.conf +++ b/meta-ti-bsp/conf/machine/am57xx-evm.conf | |||
@@ -25,13 +25,22 @@ KERNEL_DEVICETREE_DTBMERGE = " \ | |||
25 | " | 25 | " |
26 | 26 | ||
27 | KERNEL_DEVICETREE = " \ | 27 | KERNEL_DEVICETREE = " \ |
28 | ti/omap/am57xx-beagle-x15.dtb \ | 28 | ti/omap/am571x-idk-touchscreen.dtbo \ |
29 | ti/omap/am57xx-beagle-x15-revb1.dtb \ | ||
30 | ti/omap/am57xx-beagle-x15-revc.dtb \ | ||
31 | ti/omap/am5729-beagleboneai.dtb \ | ||
32 | ti/omap/am571x-idk.dtb \ | 29 | ti/omap/am571x-idk.dtb \ |
30 | ti/omap/am5729-beagleboneai.dtb \ | ||
31 | ti/omap/am572x-idk-touchscreen.dtbo \ | ||
33 | ti/omap/am572x-idk.dtb \ | 32 | ti/omap/am572x-idk.dtb \ |
34 | ti/omap/am574x-idk.dtb \ | 33 | ti/omap/am574x-idk.dtb \ |
34 | ti/omap/am57xx-beagle-x15-revb1.dtb \ | ||
35 | ti/omap/am57xx-beagle-x15-revc.dtb \ | ||
36 | ti/omap/am57xx-beagle-x15.dtb \ | ||
37 | ti/omap/am57xx-cl-som-am57x.dtb \ | ||
38 | ti/omap/am57xx-evm-reva3.dtb \ | ||
39 | ti/omap/am57xx-evm.dtb \ | ||
40 | ti/omap/am57xx-evm.dtbo \ | ||
41 | ti/omap/am57xx-idk-lcd-osd101t2045.dtbo \ | ||
42 | ti/omap/am57xx-idk-lcd-osd101t2587.dtbo \ | ||
43 | ti/omap/am57xx-sbc-am57x.dtb \ | ||
35 | " | 44 | " |
36 | 45 | ||
37 | UBOOT_MACHINE = "am57xx_evm_config" | 46 | UBOOT_MACHINE = "am57xx_evm_config" |
diff --git a/meta-ti-bsp/conf/machine/am57xx-hs-evm.conf b/meta-ti-bsp/conf/machine/am57xx-hs-evm.conf index 4f36a847..e06c9728 100644 --- a/meta-ti-bsp/conf/machine/am57xx-hs-evm.conf +++ b/meta-ti-bsp/conf/machine/am57xx-hs-evm.conf | |||
@@ -6,11 +6,6 @@ require conf/machine/am57xx-evm.conf | |||
6 | 6 | ||
7 | UBOOT_MACHINE = "am57xx_hs_evm_config" | 7 | UBOOT_MACHINE = "am57xx_hs_evm_config" |
8 | 8 | ||
9 | UBOOT_ENTRYPOINT = "0x82000000" | ||
10 | UBOOT_LOADADDRESS = "0x82000000" | ||
11 | UBOOT_RD_LOADADDRESS = "0x84000000" | ||
12 | UBOOT_RD_ENTRYPOINT = "0x84000000" | ||
13 | |||
14 | OPTEEMACHINE = "ti-am57xx" | 9 | OPTEEMACHINE = "ti-am57xx" |
15 | OPTEEFLAVOR = "am57xx" | 10 | OPTEEFLAVOR = "am57xx" |
16 | OPTEEPAGER = "y" | 11 | OPTEEPAGER = "y" |
@@ -18,6 +13,7 @@ OPTEEPAGER = "y" | |||
18 | EXTRA_IMAGEDEPENDS += "optee-os" | 13 | EXTRA_IMAGEDEPENDS += "optee-os" |
19 | 14 | ||
20 | # FIT image for legacy secure devices | 15 | # FIT image for legacy secure devices |
16 | KERNEL_BASE_CLASS = "kernel_legacyhs" | ||
21 | KERNEL_CLASSES += " kernel-fitimage-legacyhs" | 17 | KERNEL_CLASSES += " kernel-fitimage-legacyhs" |
22 | KERNEL_IMAGETYPES += " fitImage" | 18 | KERNEL_IMAGETYPES += " fitImage" |
23 | 19 | ||
diff --git a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf index 2af3317e..7abe706e 100644 --- a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf +++ b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf | |||
@@ -9,3 +9,5 @@ SYSFW_CONFIG = "evm" | |||
9 | SYSFW_SUFFIX = "hs-fs" | 9 | SYSFW_SUFFIX = "hs-fs" |
10 | 10 | ||
11 | UBOOT_MACHINE = "am62ax_evm_r5_defconfig" | 11 | UBOOT_MACHINE = "am62ax_evm_r5_defconfig" |
12 | |||
13 | UBOOT_CONFIG_FRAGMENTS:ti-falcon = "k3_r5_falcon.config" | ||
diff --git a/meta-ti-bsp/conf/machine/am62axx-evm.conf b/meta-ti-bsp/conf/machine/am62axx-evm.conf index 238718d0..32ae2490 100644 --- a/meta-ti-bsp/conf/machine/am62axx-evm.conf +++ b/meta-ti-bsp/conf/machine/am62axx-evm.conf | |||
@@ -11,8 +11,19 @@ KERNEL_DEVICETREE_PREFIX = " \ | |||
11 | ti/k3-v3link \ | 11 | ti/k3-v3link \ |
12 | " | 12 | " |
13 | 13 | ||
14 | KERNEL_DEVICETREE_DTBMERGE = " \ | ||
15 | ti/k3-am62a7-sk-ub954-evm-ov2312.dtb \ | ||
16 | " | ||
17 | |||
14 | KERNEL_DEVICETREE = " \ | 18 | KERNEL_DEVICETREE = " \ |
19 | ti/k3-am62a7-phyboard-lyra-rdk.dtb \ | ||
15 | ti/k3-am62a7-sk.dtb \ | 20 | ti/k3-am62a7-sk.dtb \ |
21 | ti/k3-am62x-sk-csi2-imx219.dtbo \ | ||
22 | ti/k3-am62x-sk-csi2-ov5640.dtbo \ | ||
23 | ti/k3-am62x-sk-csi2-tevi-ov5640.dtbo \ | ||
24 | ti/k3-am62x-sk-hdmi-audio.dtbo \ | ||
16 | " | 25 | " |
17 | 26 | ||
27 | FIT_CONF_DEFAULT_DTB = "k3-am62a7-sk.dtb" | ||
28 | |||
18 | UBOOT_MACHINE = "am62ax_evm_a53_defconfig" | 29 | UBOOT_MACHINE = "am62ax_evm_a53_defconfig" |
diff --git a/meta-ti-bsp/conf/machine/am62dxx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62dxx-evm-k3r5.conf new file mode 100644 index 00000000..00906420 --- /dev/null +++ b/meta-ti-bsp/conf/machine/am62dxx-evm-k3r5.conf | |||
@@ -0,0 +1,11 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: AM62D HS-FS EVM (R5F) | ||
3 | #@DESCRIPTION: Machine configuration for the TI AM62D EVM (R5F core) | ||
4 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | |||
7 | SYSFW_SOC = "am62dx" | ||
8 | SYSFW_CONFIG = "evm" | ||
9 | SYSFW_SUFFIX = "hs-fs" | ||
10 | |||
11 | UBOOT_MACHINE = "am62dx_evm_r5_defconfig" | ||
diff --git a/meta-ti-bsp/conf/machine/am62dxx-evm.conf b/meta-ti-bsp/conf/machine/am62dxx-evm.conf new file mode 100644 index 00000000..e1ef260b --- /dev/null +++ b/meta-ti-bsp/conf/machine/am62dxx-evm.conf | |||
@@ -0,0 +1,18 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: AM62DXX EVM | ||
3 | #@DESCRIPTION: Machine configuration for the TI AM62DXX EVM | ||
4 | |||
5 | require conf/machine/include/am62dxx.inc | ||
6 | |||
7 | KERNEL_DEVICETREE_PREFIX = " \ | ||
8 | ti/k3-am62d2 \ | ||
9 | ti/k3-am62a7-sk-edgeai \ | ||
10 | " | ||
11 | |||
12 | KERNEL_DEVICETREE = "" | ||
13 | |||
14 | FIT_CONF_DEFAULT_DTB = "k3-am62d2-evm.dtb" | ||
15 | |||
16 | UBOOT_MACHINE = "am62dx_evm_a53_defconfig" | ||
17 | |||
18 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-dac-fw" | ||
diff --git a/meta-ti-bsp/conf/machine/am62lxx-evm.conf b/meta-ti-bsp/conf/machine/am62lxx-evm.conf new file mode 100644 index 00000000..607092a7 --- /dev/null +++ b/meta-ti-bsp/conf/machine/am62lxx-evm.conf | |||
@@ -0,0 +1,20 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: AM62L EVM | ||
3 | #@DESCRIPTION: Machine configuration for the TI AM62L EVM | ||
4 | |||
5 | require conf/machine/include/am62lxx.inc | ||
6 | require conf/machine/include/ti-extras.inc | ||
7 | |||
8 | IMAGE_FSTYPES += "ubifs ubi" | ||
9 | |||
10 | MKUBIFS_ARGS ?= "-F -m 4096 -e 258048 -c 8500" | ||
11 | |||
12 | UBINIZE_ARGS ?= "-m 4096 -p 256KiB -s 1024 -O 1024" | ||
13 | |||
14 | KERNEL_DEVICETREE_PREFIX = " \ | ||
15 | ti/k3-am62l \ | ||
16 | " | ||
17 | |||
18 | KERNEL_DEVICETREE = "" | ||
19 | |||
20 | UBOOT_MACHINE = "am62lx_evm_defconfig" | ||
diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf index 36915381..28378209 100644 --- a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf +++ b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf | |||
@@ -10,3 +10,5 @@ SYSFW_CONFIG = "evm" | |||
10 | SYSFW_SUFFIX = "hs-fs" | 10 | SYSFW_SUFFIX = "hs-fs" |
11 | 11 | ||
12 | UBOOT_MACHINE = "am62px_evm_r5_defconfig" | 12 | UBOOT_MACHINE = "am62px_evm_r5_defconfig" |
13 | |||
14 | UBOOT_CONFIG_FRAGMENTS:ti-falcon = "k3_r5_falcon.config" | ||
diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm.conf b/meta-ti-bsp/conf/machine/am62pxx-evm.conf index fab96bd8..3f9249e6 100644 --- a/meta-ti-bsp/conf/machine/am62pxx-evm.conf +++ b/meta-ti-bsp/conf/machine/am62pxx-evm.conf | |||
@@ -10,17 +10,24 @@ KERNEL_DEVICETREE_PREFIX = " \ | |||
10 | ti/k3-am62x-sk-csi2 \ | 10 | ti/k3-am62x-sk-csi2 \ |
11 | ti/k3-am62x-sk-hdmi \ | 11 | ti/k3-am62x-sk-hdmi \ |
12 | ti/k3-am62x-sk-lpm \ | 12 | ti/k3-am62x-sk-lpm \ |
13 | ti/k3-v3link \ | ||
13 | " | 14 | " |
14 | 15 | ||
15 | KERNEL_DEVICETREE = " \ | 16 | KERNEL_DEVICETREE = " \ |
16 | ti/k3-am62p5-sk.dtb \ | 17 | ti/k3-am62p5-sk.dtb \ |
18 | ti/k3-am62x-sk-csi2-imx219.dtbo \ | ||
19 | ti/k3-am62x-sk-csi2-ov5640.dtbo \ | ||
20 | ti/k3-am62x-sk-csi2-tevi-ov5640.dtbo \ | ||
21 | ti/k3-am62x-sk-hdmi-audio.dtbo \ | ||
17 | " | 22 | " |
18 | 23 | ||
24 | FIT_CONF_DEFAULT_DTB = "k3-am62p5-sk.dtb" | ||
25 | |||
19 | UBOOT_MACHINE = "am62px_evm_a53_defconfig" | 26 | UBOOT_MACHINE = "am62px_evm_a53_defconfig" |
20 | 27 | ||
21 | # UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build | 28 | # UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build |
22 | # along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc | 29 | # along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc |
23 | # under meta-ti-bsp/recipes-bsp/u-boot/ for more details. | 30 | # under meta-ti-bsp/recipes-bsp/u-boot/ for more details. |
24 | # For AM62P tisdk-display-cluster image, splash screen is handled by SBL. | 31 | # For AM62P tisdk-display-cluster image, splash screen is handled by SBL. |
25 | # Hence, disable the A53 based splash screen using the am62px_evm_prune_splashscreen.config fragment present in ti-u-boot tree | 32 | # Hence, disable the A53 based splash screen using the am62x_evm_prune_splashscreen.config fragment present in ti-u-boot tree |
26 | UBOOT_CONFIG_FRAGMENTS = "${@oe.utils.conditional('DISPLAY_CLUSTER_ENABLE', '1', 'am62px_evm_prune_splashscreen.config', '', d)}" | 33 | UBOOT_CONFIG_FRAGMENTS = "${@oe.utils.conditional('DISPLAY_CLUSTER_ENABLE', '1', 'am62x_evm_prune_splashscreen.config', '', d)}" |
diff --git a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf index 548369ca..5c5b133f 100644 --- a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf +++ b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | |||
@@ -10,3 +10,5 @@ SYSFW_CONFIG = "evm" | |||
10 | SYSFW_SUFFIX = "hs-fs" | 10 | SYSFW_SUFFIX = "hs-fs" |
11 | 11 | ||
12 | UBOOT_MACHINE = "am62x_evm_r5_defconfig" | 12 | UBOOT_MACHINE = "am62x_evm_r5_defconfig" |
13 | |||
14 | UBOOT_CONFIG_FRAGMENTS:ti-falcon = "k3_r5_falcon.config" | ||
diff --git a/meta-ti-bsp/conf/machine/am62xx-evm.conf b/meta-ti-bsp/conf/machine/am62xx-evm.conf index fadbc6f4..298fc170 100644 --- a/meta-ti-bsp/conf/machine/am62xx-evm.conf +++ b/meta-ti-bsp/conf/machine/am62xx-evm.conf | |||
@@ -11,7 +11,26 @@ KERNEL_DEVICETREE_PREFIX = " \ | |||
11 | " | 11 | " |
12 | 12 | ||
13 | KERNEL_DEVICETREE = " \ | 13 | KERNEL_DEVICETREE = " \ |
14 | ti/k3-am625-beagleplay-csi2-ov5640.dtbo \ | ||
15 | ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtbo \ | ||
16 | ti/k3-am625-beagleplay.dtb \ | ||
17 | ti/k3-am625-phyboard-lyra-1-4-ghz-opp.dtbo \ | ||
18 | ti/k3-am625-phyboard-lyra-rdk.dtb \ | ||
14 | ti/k3-am625-sk.dtb \ | 19 | ti/k3-am625-sk.dtb \ |
20 | ti/k3-am625-verdin-nonwifi-dahlia.dtb \ | ||
21 | ti/k3-am625-verdin-nonwifi-dev.dtb \ | ||
22 | ti/k3-am625-verdin-nonwifi-mallow.dtb \ | ||
23 | ti/k3-am625-verdin-nonwifi-yavia.dtb \ | ||
24 | ti/k3-am625-verdin-wifi-dahlia.dtb \ | ||
25 | ti/k3-am625-verdin-wifi-dev.dtb \ | ||
26 | ti/k3-am625-verdin-wifi-mallow.dtb \ | ||
27 | ti/k3-am625-verdin-wifi-yavia.dtb \ | ||
28 | ti/k3-am62x-sk-csi2-imx219.dtbo \ | ||
29 | ti/k3-am62x-sk-csi2-ov5640.dtbo \ | ||
30 | ti/k3-am62x-sk-csi2-tevi-ov5640.dtbo \ | ||
31 | ti/k3-am62x-sk-hdmi-audio.dtbo \ | ||
15 | " | 32 | " |
16 | 33 | ||
34 | FIT_CONF_DEFAULT_DTB = "k3-am625-sk.dtb" | ||
35 | |||
17 | UBOOT_MACHINE = "am62x_evm_a53_defconfig" | 36 | UBOOT_MACHINE = "am62x_evm_a53_defconfig" |
diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf index 52b69a72..7203ebf7 100644 --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf +++ b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf | |||
@@ -10,3 +10,5 @@ SYSFW_CONFIG = "evm" | |||
10 | SYSFW_SUFFIX = "hs-fs" | 10 | SYSFW_SUFFIX = "hs-fs" |
11 | 11 | ||
12 | UBOOT_MACHINE = "am62x_lpsk_r5_defconfig" | 12 | UBOOT_MACHINE = "am62x_lpsk_r5_defconfig" |
13 | |||
14 | UBOOT_CONFIG_FRAGMENTS:ti-falcon = "k3_r5_falcon.config" | ||
diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf index 51e99728..32e88051 100644 --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf +++ b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf | |||
@@ -8,13 +8,21 @@ require conf/machine/include/ti-extras.inc | |||
8 | KERNEL_DEVICETREE_PREFIX = " \ | 8 | KERNEL_DEVICETREE_PREFIX = " \ |
9 | ti/k3-am62-lp \ | 9 | ti/k3-am62-lp \ |
10 | ti/k3-am625-sk \ | 10 | ti/k3-am625-sk \ |
11 | ti/k3-am62x-sk-dmtimer-pwm \ | ||
12 | ti/k3-am62x-sk-eqep \ | ||
11 | ti/k3-am62x-sk-hdmi \ | 13 | ti/k3-am62x-sk-hdmi \ |
12 | ti/k3-am62x-sk-lpm \ | 14 | ti/k3-am62x-sk-lpm \ |
13 | ti/k3-am62x-sk-mcan \ | 15 | ti/k3-am62x-sk-mcan \ |
16 | ti/k3-am62x-sk-pwm \ | ||
14 | " | 17 | " |
15 | 18 | ||
16 | KERNEL_DEVICETREE = " \ | 19 | KERNEL_DEVICETREE = " \ |
20 | ti/k3-am62-lp-sk-nand.dtbo \ | ||
17 | ti/k3-am62-lp-sk.dtb \ | 21 | ti/k3-am62-lp-sk.dtb \ |
22 | ti/k3-am625-sk.dtb \ | ||
23 | ti/k3-am62x-sk-hdmi-audio.dtbo \ | ||
18 | " | 24 | " |
19 | 25 | ||
26 | FIT_CONF_DEFAULT_DTB = "k3-am62-lp-sk.dtb" | ||
27 | |||
20 | UBOOT_MACHINE = "am62x_lpsk_a53_defconfig" | 28 | UBOOT_MACHINE = "am62x_lpsk_a53_defconfig" |
diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf index 0daff2b9..e846c0da 100644 --- a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf +++ b/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf | |||
@@ -8,9 +8,5 @@ SYSFW_SOC = "am62x" | |||
8 | SYSFW_CONFIG = "evm" | 8 | SYSFW_CONFIG = "evm" |
9 | SYSFW_SUFFIX = "hs-fs" | 9 | SYSFW_SUFFIX = "hs-fs" |
10 | 10 | ||
11 | UBOOT_MACHINE = "am62x_evm_r5_defconfig" | 11 | UBOOT_MACHINE = "am6254xxl_evm_r5_defconfig" |
12 | 12 | UBOOT_MACHINE:bsp-ti-6_6 = "am62xsip_evm_r5_defconfig" | |
13 | # UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build | ||
14 | # along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc | ||
15 | # under meta-ti-bsp/recipes-bsp/u-boot/ for more details. | ||
16 | UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config" | ||
diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf index b5dd18f1..c5a3a92d 100644 --- a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf +++ b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf | |||
@@ -4,6 +4,15 @@ | |||
4 | 4 | ||
5 | require conf/machine/include/am62xx.inc | 5 | require conf/machine/include/am62xx.inc |
6 | 6 | ||
7 | TFA_K3_BL32_BASE = "0x80080000" | ||
8 | TFA_K3_BL32_BASE:bsp-ti-6_6 = "" | ||
9 | |||
10 | TFA_K3_PRELOADED_BL33 = "0x82000000" | ||
11 | TFA_K3_PRELOADED_BL33:bsp-ti-6_6 = "" | ||
12 | |||
13 | OPTEE_K3_TZDRAM_START = "0x80080000" | ||
14 | OPTEE_K3_TZDRAM_START:bsp-ti-6_6 = "" | ||
15 | |||
7 | KERNEL_DEVICETREE_PREFIX = " \ | 16 | KERNEL_DEVICETREE_PREFIX = " \ |
8 | ti/k3-am625 \ | 17 | ti/k3-am625 \ |
9 | ti/k3-am62x-sk \ | 18 | ti/k3-am62x-sk \ |
@@ -13,4 +22,8 @@ KERNEL_DEVICETREE = " \ | |||
13 | ti/k3-am625-sk.dtb \ | 22 | ti/k3-am625-sk.dtb \ |
14 | " | 23 | " |
15 | 24 | ||
16 | UBOOT_MACHINE = "am62x_evm_a53_defconfig" | 25 | FIT_CONF_DEFAULT_DTB = "k3-am6254xxl-sk.dtb" |
26 | FIT_CONF_DEFAULT_DTB:bsp-ti-6_6 = "k3-am625-sk.dtb" | ||
27 | |||
28 | UBOOT_MACHINE = "am6254xxl_evm_a53_defconfig" | ||
29 | UBOOT_MACHINE:bsp-ti-6_6 = "am62xsip_evm_a53_defconfig" | ||
diff --git a/meta-ti-bsp/conf/machine/am68-sk-k3r5.conf b/meta-ti-bsp/conf/machine/am68-sk-k3r5.conf new file mode 100644 index 00000000..f8ce3688 --- /dev/null +++ b/meta-ti-bsp/conf/machine/am68-sk-k3r5.conf | |||
@@ -0,0 +1,11 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: AM68 SK (R5F) | ||
3 | #@DESCRIPTION: Machine configuration for the TI AM68 SK (R5F core) | ||
4 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | |||
7 | SYSFW_SOC = "j721s2" | ||
8 | SYSFW_CONFIG = "evm" | ||
9 | SYSFW_SUFFIX = "hs-fs" | ||
10 | |||
11 | UBOOT_MACHINE = "am68_sk_r5_defconfig" | ||
diff --git a/meta-ti-bsp/conf/machine/am68-sk.conf b/meta-ti-bsp/conf/machine/am68-sk.conf new file mode 100644 index 00000000..feabbfd1 --- /dev/null +++ b/meta-ti-bsp/conf/machine/am68-sk.conf | |||
@@ -0,0 +1,23 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: AM68 SK | ||
3 | #@DESCRIPTION: Machine configuration for the TI AM68 SK | ||
4 | |||
5 | require conf/machine/include/am68.inc | ||
6 | |||
7 | TFA_K3_USART = "0x8" | ||
8 | OPTEE_K3_USART = "0x8" | ||
9 | |||
10 | KERNEL_DEVICETREE_PREFIX = " \ | ||
11 | ti/k3-am68-sk \ | ||
12 | ti/k3-fpdlink \ | ||
13 | ti/k3-v3link \ | ||
14 | ti/k3-j721e-sk-csi2-dual-imx219 \ | ||
15 | ti/k3-j721e-sk-fpdlink-fusion \ | ||
16 | " | ||
17 | |||
18 | KERNEL_DEVICETREE = " \ | ||
19 | ti/k3-am68-sk-base-board.dtb \ | ||
20 | ti/k3-j721e-sk-csi2-dual-imx219.dtbo \ | ||
21 | " | ||
22 | |||
23 | UBOOT_MACHINE = "am68_sk_a72_defconfig" | ||
diff --git a/meta-ti-bsp/conf/machine/am69-sk.conf b/meta-ti-bsp/conf/machine/am69-sk.conf index 233a4618..9531cc27 100644 --- a/meta-ti-bsp/conf/machine/am69-sk.conf +++ b/meta-ti-bsp/conf/machine/am69-sk.conf | |||
@@ -2,7 +2,7 @@ | |||
2 | #@NAME: AM69 SK | 2 | #@NAME: AM69 SK |
3 | #@DESCRIPTION: Machine configuration for the TI AM69 SK | 3 | #@DESCRIPTION: Machine configuration for the TI AM69 SK |
4 | 4 | ||
5 | require conf/machine/include/j784s4.inc | 5 | require conf/machine/include/am69.inc |
6 | 6 | ||
7 | TFA_K3_USART = "0x8" | 7 | TFA_K3_USART = "0x8" |
8 | OPTEE_K3_USART = "0x8" | 8 | OPTEE_K3_USART = "0x8" |
@@ -11,10 +11,14 @@ KERNEL_DEVICETREE_PREFIX = " \ | |||
11 | ti/k3-am69-sk \ | 11 | ti/k3-am69-sk \ |
12 | ti/k3-fpdlink \ | 12 | ti/k3-fpdlink \ |
13 | ti/k3-v3link \ | 13 | ti/k3-v3link \ |
14 | ti/k3-am68-sk-v3link-fusion \ | ||
15 | ti/k3-j721e-sk-csi2-dual-imx219 \ | ||
16 | ti/k3-j721e-sk-fpdlink-fusion \ | ||
14 | " | 17 | " |
15 | 18 | ||
16 | KERNEL_DEVICETREE = " \ | 19 | KERNEL_DEVICETREE = " \ |
17 | ti/k3-am69-sk.dtb \ | 20 | ti/k3-am69-sk.dtb \ |
21 | ti/k3-j721e-sk-csi2-dual-imx219.dtbo \ | ||
18 | " | 22 | " |
19 | 23 | ||
20 | UBOOT_MACHINE = "am69_sk_a72_defconfig" | 24 | UBOOT_MACHINE = "am69_sk_a72_defconfig" |
diff --git a/meta-ti-bsp/conf/machine/beagle-x15.conf b/meta-ti-bsp/conf/machine/beagle-x15.conf deleted file mode 100644 index 6fc7957c..00000000 --- a/meta-ti-bsp/conf/machine/beagle-x15.conf +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: BeagleBoard X15 | ||
3 | #@DESCRIPTION: Machine configuration for the BeagleBoard X15 | ||
4 | |||
5 | require conf/machine/include/beagle.inc | ||
6 | require conf/machine/include/am57xx.inc | ||
7 | |||
8 | KERNEL_DEVICETREE_PREFIX = "am57xx-beagle-x15" | ||
9 | |||
10 | KERNEL_DEVICETREE = " \ | ||
11 | am57xx-beagle-x15.dtb \ | ||
12 | am57xx-beagle-x15-revb1.dtb \ | ||
13 | am57xx-beagle-x15-revc.dtb \ | ||
14 | am57xx-idk-lcd-osd101t2045.dtbo \ | ||
15 | am57xx-idk-lcd-osd101t2587.dtbo \ | ||
16 | " | ||
17 | |||
18 | MACHINE_GUI_CLASS = "bigscreen" | ||
19 | |||
20 | SERIAL_CONSOLES = "115200;ttyS2" | ||
21 | |||
22 | UBOOT_MACHINE = "am57xx_evm_config" | ||
diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf deleted file mode 100644 index a9be4d13..00000000 --- a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: BeagleBone AI-64 (A72) | ||
3 | #@DESCRIPTION: Machine configuration for the BeagleBone AI-64 board (A72 core) | ||
4 | |||
5 | require conf/machine/include/beagle.inc | ||
6 | require conf/machine/include/j721e.inc | ||
7 | |||
8 | UBOOT_MACHINE = "j721e_evm_a72_config" | ||
9 | |||
10 | |||
11 | # UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build | ||
12 | # along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc | ||
13 | # under meta-ti-bsp/recipes-bsp/u-boot/ for more details. | ||
14 | UBOOT_CONFIG_FRAGMENTS = "j721e_beagleboneai64_a72.config" | ||
15 | |||
16 | KERNEL_DEVICETREE_PREFIX = " \ | ||
17 | ti/k3-j721e \ | ||
18 | " | ||
19 | |||
20 | KERNEL_DEVICETREE = " \ | ||
21 | ti/k3-j721e-beagleboneai64.dtb \ | ||
22 | ti/k3-j721e-common-proc-board.dtb \ | ||
23 | ti/k3-j721e-beagleboneai64-dsi-rpi-7inch-panel.dtbo \ | ||
24 | ti/k3-j721e-evm-csi2-ov5640.dtbo \ | ||
25 | ti/k3-j721e-evm-fusion.dtbo \ | ||
26 | ti/k3-j721e-evm-gesi-exp-board.dtbo \ | ||
27 | ti/k3-j721e-evm-pcie0-ep.dtbo \ | ||
28 | ti/k3-j721e-evm-quad-port-eth-exp.dtbo \ | ||
29 | ti/k3-j721e-evm-virt-mac-client.dtbo \ | ||
30 | ti/k3-j721e-sk.dtb \ | ||
31 | ti/k3-j721e-sk-csi2-ov5640.dtbo \ | ||
32 | ti/k3-j721e-sk-csi2-rpi-imx219.dtbo \ | ||
33 | ti/k3-j721e-sk-fusion.dtbo \ | ||
34 | ti/k3-j721e-sk-rpi-hdr-ehrpwm.dtbo \ | ||
35 | " | ||
36 | |||
37 | MACHINE_GUI_CLASS = "bigscreen" | ||
diff --git a/meta-ti-bsp/conf/machine/beaglebone.conf b/meta-ti-bsp/conf/machine/beaglebone.conf deleted file mode 100644 index 8b8b9d29..00000000 --- a/meta-ti-bsp/conf/machine/beaglebone.conf +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: BeagleBone machine | ||
3 | #@DESCRIPTION: Machine configuration for the http://beagleboard.org/bone board | ||
4 | |||
5 | require conf/machine/include/beagle.inc | ||
6 | require conf/machine/include/ti33x.inc | ||
7 | |||
8 | KERNEL_DEVICETREE_PREFIX = "am335x-bone" | ||
9 | |||
10 | KERNEL_DEVICETREE = " \ | ||
11 | am335x-bone.dtb \ | ||
12 | am335x-boneblack.dtb \ | ||
13 | am335x-boneblack-pps.dtb \ | ||
14 | am335x-boneblack-uboot.dtb \ | ||
15 | am335x-boneblack-uboot-univ.dtb \ | ||
16 | am335x-boneblack-wireless.dtb \ | ||
17 | am335x-boneblue.dtb \ | ||
18 | am335x-bonegreen.dtb \ | ||
19 | am335x-bonegreen-gateway.dtb \ | ||
20 | am335x-bonegreen-wireless.dtb \ | ||
21 | am335x-bonegreen-wireless-uboot-univ.dtb \ | ||
22 | am335x-pocketbeagle.dtb \ | ||
23 | am335x-sancloud-bbe.dtb \ | ||
24 | am335x-sancloud-bbe-extended-wifi.dtb \ | ||
25 | am335x-sancloud-bbe-lite.dtb \ | ||
26 | " | ||
27 | |||
28 | # Extra DT overlays/capes | ||
29 | KERNEL_DEVICETREE += " \ | ||
30 | AM335X-PRU-UIO-00A0.dtbo \ | ||
31 | BB-ADC-00A0.dtbo \ | ||
32 | BB-BBBW-WL1835-00A0.dtbo \ | ||
33 | BB-BBGG-WL1835-00A0.dtbo \ | ||
34 | BB-BBGW-WL1835-00A0.dtbo \ | ||
35 | BB-BONE-4D5R-01-00A1.dtbo \ | ||
36 | BB-BONE-eMMC1-01-00A0.dtbo \ | ||
37 | BB-BONE-LCD4-01-00A1.dtbo \ | ||
38 | BB-BONE-NH7C-01-A0.dtbo \ | ||
39 | BB-CAPE-DISP-CT4-00A0.dtbo \ | ||
40 | BB-HDMI-TDA998x-00A0.dtbo \ | ||
41 | BB-I2C1-MCP7940X-00A0.dtbo \ | ||
42 | BB-I2C1-RTC-DS3231.dtbo \ | ||
43 | BB-I2C1-RTC-PCF8563.dtbo \ | ||
44 | BB-I2C2-BME680.dtbo \ | ||
45 | BB-I2C2-MPU6050.dtbo \ | ||
46 | BB-LCD-ADAFRUIT-24-SPI1-00A0.dtbo \ | ||
47 | BB-NHDMI-TDA998x-00A0.dtbo \ | ||
48 | BBORG_COMMS-00A2.dtbo \ | ||
49 | BBORG_FAN-A000.dtbo \ | ||
50 | BBORG_RELAY-00A2.dtbo \ | ||
51 | BB-SPIDEV0-00A0.dtbo \ | ||
52 | BB-SPIDEV1-00A0.dtbo \ | ||
53 | BB-UART1-00A0.dtbo \ | ||
54 | BB-UART2-00A0.dtbo \ | ||
55 | BB-UART4-00A0.dtbo \ | ||
56 | BB-W1-P9.12-00A0.dtbo \ | ||
57 | BONE-ADC.dtbo \ | ||
58 | M-BB-BBG-00A0.dtbo \ | ||
59 | M-BB-BBGG-00A0.dtbo \ | ||
60 | PB-MIKROBUS-0.dtbo \ | ||
61 | PB-MIKROBUS-1.dtbo \ | ||
62 | " | ||
63 | |||
64 | MACHINE_GUI_CLASS = "bigscreen" | ||
65 | MACHINE_FEATURES += "screen" | ||
66 | |||
67 | SERIAL_CONSOLES = "115200;ttyS0" | ||
diff --git a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf b/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf deleted file mode 100644 index 601cbbf7..00000000 --- a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: BeaglePlay (R5F) | ||
3 | #@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core) | ||
4 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | |||
7 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org" | ||
8 | PREFERRED_PROVIDER_u-boot = "u-boot-bb.org" | ||
9 | |||
10 | SYSFW_SOC = "am62x" | ||
11 | SYSFW_CONFIG = "evm" | ||
12 | SYSFW_SUFFIX = "gp" | ||
13 | |||
14 | UBOOT_MACHINE = "am62x_evm_r5_defconfig" | ||
15 | |||
16 | # UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build | ||
17 | # along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc | ||
18 | # under meta-ti-bsp/recipes-bsp/u-boot/ for more details. | ||
19 | UBOOT_CONFIG_FRAGMENTS = "am625_beagleplay_r5.config" | ||
diff --git a/meta-ti-bsp/conf/machine/beagleplay-ti-k3r5.conf b/meta-ti-bsp/conf/machine/beagleplay-ti-k3r5.conf new file mode 100644 index 00000000..b597c702 --- /dev/null +++ b/meta-ti-bsp/conf/machine/beagleplay-ti-k3r5.conf | |||
@@ -0,0 +1,11 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: BeaglePlay (R5F) | ||
3 | #@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core) | ||
4 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | |||
7 | SYSFW_SOC = "am62x" | ||
8 | SYSFW_CONFIG = "evm" | ||
9 | SYSFW_SUFFIX = "gp" | ||
10 | |||
11 | UBOOT_MACHINE = "am62x_beagleplay_r5_defconfig" | ||
diff --git a/meta-ti-bsp/conf/machine/beagleplay-ti.conf b/meta-ti-bsp/conf/machine/beagleplay-ti.conf new file mode 100644 index 00000000..792c91b2 --- /dev/null +++ b/meta-ti-bsp/conf/machine/beagleplay-ti.conf | |||
@@ -0,0 +1,43 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: BeaglePlay (A53) | ||
3 | #@DESCRIPTION: Machine configuration for the BeaglePlay board (A53 core) | ||
4 | |||
5 | require conf/machine/include/k3.inc | ||
6 | require conf/machine/include/mc_k3r5.inc | ||
7 | |||
8 | SOC_FAMILY:append = ":am62xx" | ||
9 | |||
10 | MACHINE_FEATURES += "screen gpu" | ||
11 | |||
12 | SERIAL_CONSOLES = "115200;ttyS2" | ||
13 | |||
14 | require conf/machine/include/mesa-pvr.inc | ||
15 | PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" | ||
16 | |||
17 | TFA_BOARD = "lite" | ||
18 | TFA_K3_SYSTEM_SUSPEND = "1" | ||
19 | |||
20 | OPTEEMACHINE = "k3-am62x" | ||
21 | |||
22 | UBOOT_MACHINE = "am62x_beagleplay_a53_defconfig" | ||
23 | |||
24 | SPL_BINARY = "tispl.bin_unsigned" | ||
25 | |||
26 | KERNEL_DEVICETREE_PREFIX = " \ | ||
27 | ti/k3-am625-beagle \ | ||
28 | ti/k3-am625-sk \ | ||
29 | ti/k3-am62x-sk \ | ||
30 | " | ||
31 | |||
32 | KERNEL_DEVICETREE = " \ | ||
33 | ti/k3-am625-beagleplay-csi2-ov5640.dtbo \ | ||
34 | ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtbo \ | ||
35 | ti/k3-am625-beagleplay.dtb \ | ||
36 | ti/k3-am625-sk.dtb \ | ||
37 | ti/k3-am62x-sk-csi2-imx219.dtbo \ | ||
38 | ti/k3-am62x-sk-csi2-ov5640.dtbo \ | ||
39 | ti/k3-am62x-sk-csi2-tevi-ov5640.dtbo \ | ||
40 | ti/k3-am62x-sk-hdmi-audio.dtbo \ | ||
41 | " | ||
42 | |||
43 | MACHINE_GUI_CLASS = "bigscreen" | ||
diff --git a/meta-ti-bsp/conf/machine/beagleplay.conf b/meta-ti-bsp/conf/machine/beagleplay.conf deleted file mode 100644 index 65c14333..00000000 --- a/meta-ti-bsp/conf/machine/beagleplay.conf +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: BeaglePlay (A53) | ||
3 | #@DESCRIPTION: Machine configuration for the BeaglePlay board (A53 core) | ||
4 | |||
5 | require conf/machine//include/beagle.inc | ||
6 | require conf/machine/include/k3.inc | ||
7 | SOC_FAMILY:append = ":am62xx" | ||
8 | |||
9 | MACHINE_FEATURES += "screen gpu" | ||
10 | |||
11 | SERIAL_CONSOLES = "115200;ttyS2" | ||
12 | |||
13 | require conf/machine/include/mesa-pvr.inc | ||
14 | PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" | ||
15 | |||
16 | TFA_BOARD = "lite" | ||
17 | TFA_K3_SYSTEM_SUSPEND = "1" | ||
18 | |||
19 | OPTEEMACHINE = "k3-am62x" | ||
20 | |||
21 | UBOOT_MACHINE = "am62x_evm_a53_defconfig" | ||
22 | |||
23 | # UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build | ||
24 | # along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc | ||
25 | # under meta-ti-bsp/recipes-bsp/u-boot/ for more details. | ||
26 | UBOOT_CONFIG_FRAGMENTS = "am625_beagleplay_a53.config" | ||
27 | |||
28 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org" | ||
29 | PREFERRED_PROVIDER_u-boot = "u-boot-bb.org" | ||
30 | |||
31 | KERNEL_DEVICETREE_PREFIX = " \ | ||
32 | ti/k3-am625 \ | ||
33 | ti/k3-am62x-sk \ | ||
34 | " | ||
35 | |||
36 | KERNEL_DEVICETREE = " \ | ||
37 | ti/k3-am625-beagleplay.dtb \ | ||
38 | ti/k3-am625-beagleplay-csi2-ov5640.dtbo \ | ||
39 | ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtbo \ | ||
40 | ti/k3-am625-beagleplay-lincolntech-lcd185-panel.dtbo \ | ||
41 | ti/k3-am625-sk.dtb \ | ||
42 | ti/k3-am625-sk-dmtimer-pwm.dtbo \ | ||
43 | ti/k3-am625-sk-ecap-capture.dtbo \ | ||
44 | ti/k3-am625-sk-lincolntech-lcd185-panel.dtbo \ | ||
45 | ti/k3-am625-sk-mcspi-loopback.dtbo \ | ||
46 | ti/k3-am625-sk-microtips-mf101hie-panel.dtbo \ | ||
47 | ti/k3-am625-sk-microtips-mf103hie-lcd2.dtbo \ | ||
48 | ti/k3-am625-sk-pwm.dtbo \ | ||
49 | ti/k3-am625-sk-rpi-hdr-ehrpwm.dtbo \ | ||
50 | ti/k3-am62x-sk-csi2-imx219.dtbo \ | ||
51 | ti/k3-am62x-sk-csi2-ov5640.dtbo \ | ||
52 | ti/k3-am62x-sk-csi2-tevi-ov5640.dtbo \ | ||
53 | ti/k3-am62x-sk-csi2-v3link-fusion.dtbo \ | ||
54 | ti/k3-am62x-sk-eqep.dtbo \ | ||
55 | ti/k3-am62x-sk-hdmi-audio.dtbo \ | ||
56 | ti/k3-am62x-sk-lpm-wkup-sources.dtbo \ | ||
57 | ti/k3-am62x-sk-mcan.dtbo \ | ||
58 | " | ||
59 | |||
60 | MACHINE_GUI_CLASS = "bigscreen" | ||
diff --git a/meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf b/meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf index 8e57a154..37ffef31 100644 --- a/meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf +++ b/meta-ti-bsp/conf/machine/dra7xx-hs-evm.conf | |||
@@ -6,11 +6,6 @@ require conf/machine/dra7xx-evm.conf | |||
6 | 6 | ||
7 | UBOOT_MACHINE = "dra7xx_hs_evm_config" | 7 | UBOOT_MACHINE = "dra7xx_hs_evm_config" |
8 | 8 | ||
9 | UBOOT_ENTRYPOINT = "0x82000000" | ||
10 | UBOOT_LOADADDRESS = "0x82000000" | ||
11 | UBOOT_RD_LOADADDRESS = "0x84000000" | ||
12 | UBOOT_RD_ENTRYPOINT = "0x84000000" | ||
13 | |||
14 | OPTEEMACHINE = "ti-dra7xx" | 9 | OPTEEMACHINE = "ti-dra7xx" |
15 | OPTEEFLAVOR = "dra7xx" | 10 | OPTEEFLAVOR = "dra7xx" |
16 | OPTEEPAGER = "y" | 11 | OPTEEPAGER = "y" |
diff --git a/meta-ti-bsp/conf/machine/include/am62axx.inc b/meta-ti-bsp/conf/machine/include/am62axx.inc index 93a41d8d..964be0ad 100644 --- a/meta-ti-bsp/conf/machine/include/am62axx.inc +++ b/meta-ti-bsp/conf/machine/include/am62axx.inc | |||
@@ -1,19 +1,12 @@ | |||
1 | require conf/machine/include/k3.inc | 1 | require conf/machine/include/k3.inc |
2 | require conf/machine/include/mc_k3r5.inc | ||
3 | |||
2 | SOC_FAMILY:append = ":am62axx" | 4 | SOC_FAMILY:append = ":am62axx" |
3 | 5 | ||
4 | MACHINE_FEATURES += "screen touchscreen" | 6 | MACHINE_FEATURES += "screen touchscreen" |
5 | 7 | ||
6 | TFA_K3_SYSTEM_SUSPEND = "1" | 8 | TFA_K3_SYSTEM_SUSPEND = "1" |
7 | 9 | ||
8 | # Default tiboot3.bin on AM62A is for HS-FS | ||
9 | IMAGE_BOOT_FILES += "tiboot3-am62ax-hs-fs-evm.bin" | ||
10 | |||
11 | # Since default tiboot3.bin on AM62A is for HS-FS, add a version for GP | ||
12 | IMAGE_BOOT_FILES += "tiboot3-am62ax-gp-evm.bin" | ||
13 | |||
14 | # Since default tiboot3.bin on AM62A is for HS-FS, add a version for HS-SE | ||
15 | IMAGE_BOOT_FILES += "tiboot3-am62ax-hs-evm.bin" | ||
16 | |||
17 | TFA_BOARD = "lite" | 10 | TFA_BOARD = "lite" |
18 | OPTEEMACHINE = "k3-am62x" | 11 | OPTEEMACHINE = "k3-am62x" |
19 | 12 | ||
diff --git a/meta-ti-bsp/conf/machine/include/am62dxx.inc b/meta-ti-bsp/conf/machine/include/am62dxx.inc new file mode 100644 index 00000000..fc2ce4a3 --- /dev/null +++ b/meta-ti-bsp/conf/machine/include/am62dxx.inc | |||
@@ -0,0 +1,9 @@ | |||
1 | require conf/machine/include/k3.inc | ||
2 | require conf/machine/include/mc_k3r5.inc | ||
3 | |||
4 | SOC_FAMILY:append = ":am62dxx" | ||
5 | |||
6 | TFA_K3_SYSTEM_SUSPEND = "1" | ||
7 | |||
8 | TFA_BOARD = "lite" | ||
9 | OPTEEMACHINE = "k3-am62x" | ||
diff --git a/meta-ti-bsp/conf/machine/include/am62lxx.inc b/meta-ti-bsp/conf/machine/include/am62lxx.inc new file mode 100644 index 00000000..b4f0b8c9 --- /dev/null +++ b/meta-ti-bsp/conf/machine/include/am62lxx.inc | |||
@@ -0,0 +1,9 @@ | |||
1 | require conf/machine/include/k3.inc | ||
2 | SOC_FAMILY:append = ":am62lxx" | ||
3 | |||
4 | MACHINE_FEATURES += "screen" | ||
5 | |||
6 | TFA_BOARD = "am62l" | ||
7 | TFA_K3_SYSTEM_SUSPEND = "1" | ||
8 | |||
9 | OPTEEMACHINE = "k3-am62lx" | ||
diff --git a/meta-ti-bsp/conf/machine/include/am62pxx.inc b/meta-ti-bsp/conf/machine/include/am62pxx.inc index 38e35851..d59f607d 100644 --- a/meta-ti-bsp/conf/machine/include/am62pxx.inc +++ b/meta-ti-bsp/conf/machine/include/am62pxx.inc | |||
@@ -1,13 +1,12 @@ | |||
1 | require conf/machine/include/k3.inc | 1 | require conf/machine/include/k3.inc |
2 | require conf/machine/include/mc_k3r5.inc | ||
3 | |||
2 | SOC_FAMILY:append = ":am62pxx" | 4 | SOC_FAMILY:append = ":am62pxx" |
3 | 5 | ||
4 | MACHINE_FEATURES += "screen gpu" | 6 | MACHINE_FEATURES += "screen gpu" |
5 | 7 | ||
6 | require conf/machine/include/mesa-pvr.inc | 8 | require conf/machine/include/mesa-pvr.inc |
7 | PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" | 9 | PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" |
8 | |||
9 | # Default tiboot3.bin on AM62Px is for HS-FS | ||
10 | IMAGE_BOOT_FILES += "tiboot3-am62px-hs-fs-evm.bin" | ||
11 | 10 | ||
12 | TFA_BOARD = "lite" | 11 | TFA_BOARD = "lite" |
13 | TFA_K3_SYSTEM_SUSPEND = "1" | 12 | TFA_K3_SYSTEM_SUSPEND = "1" |
diff --git a/meta-ti-bsp/conf/machine/include/am62xx.inc b/meta-ti-bsp/conf/machine/include/am62xx.inc index a0ec944f..74054a78 100644 --- a/meta-ti-bsp/conf/machine/include/am62xx.inc +++ b/meta-ti-bsp/conf/machine/include/am62xx.inc | |||
@@ -1,19 +1,12 @@ | |||
1 | require conf/machine/include/k3.inc | 1 | require conf/machine/include/k3.inc |
2 | require conf/machine/include/mc_k3r5.inc | ||
3 | |||
2 | SOC_FAMILY:append = ":am62xx" | 4 | SOC_FAMILY:append = ":am62xx" |
3 | 5 | ||
4 | MACHINE_FEATURES += "screen gpu" | 6 | MACHINE_FEATURES += "screen gpu" |
5 | 7 | ||
6 | require conf/machine/include/mesa-pvr.inc | 8 | require conf/machine/include/mesa-pvr.inc |
7 | PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" | 9 | PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" |
8 | |||
9 | # Default tiboot3.bin on AM62x is for HS-FS | ||
10 | IMAGE_BOOT_FILES += "tiboot3-am62x-hs-fs-evm.bin" | ||
11 | |||
12 | # Since default tiboot3.bin on AM62x is for HS-FS, add a version for GP | ||
13 | IMAGE_BOOT_FILES += "tiboot3-am62x-gp-evm.bin" | ||
14 | |||
15 | # Since default tiboot3.bin on AM62x is for HS-FS, add a version for HS-SE | ||
16 | IMAGE_BOOT_FILES += "tiboot3-am62x-hs-evm.bin" | ||
17 | 10 | ||
18 | # Bitmap image tarball for early splashscreen | 11 | # Bitmap image tarball for early splashscreen |
19 | IMAGE_BOOT_FILES += "ti_logo_414x97_32bpp.bmp.gz" | 12 | IMAGE_BOOT_FILES += "ti_logo_414x97_32bpp.bmp.gz" |
diff --git a/meta-ti-bsp/conf/machine/include/am64xx.inc b/meta-ti-bsp/conf/machine/include/am64xx.inc index cfade2fa..33fc6240 100644 --- a/meta-ti-bsp/conf/machine/include/am64xx.inc +++ b/meta-ti-bsp/conf/machine/include/am64xx.inc | |||
@@ -1,24 +1,33 @@ | |||
1 | require conf/machine/include/k3.inc | 1 | require conf/machine/include/k3.inc |
2 | require conf/machine/include/mc_k3r5.inc | ||
3 | |||
2 | SOC_FAMILY:append = ":am64xx" | 4 | SOC_FAMILY:append = ":am64xx" |
3 | 5 | ||
4 | KERNEL_DEVICETREE_PREFIX = "ti/k3-am642" | 6 | KERNEL_DEVICETREE_PREFIX = "ti/k3-am642" |
5 | 7 | ||
8 | KERNEL_DEVICETREE_DTBMERGE = " \ | ||
9 | ti/k3-am642-evm-nand.dtb \ | ||
10 | " | ||
11 | |||
6 | KERNEL_DEVICETREE = " \ | 12 | KERNEL_DEVICETREE = " \ |
13 | ti/k3-am642-evm-icssg1-dualemac-mii.dtbo \ | ||
14 | ti/k3-am642-evm-icssg1-dualemac.dtbo \ | ||
15 | ti/k3-am642-evm-nand.dtbo \ | ||
7 | ti/k3-am642-evm.dtb \ | 16 | ti/k3-am642-evm.dtb \ |
17 | ti/k3-am642-hummingboard-t-pcie.dtbo \ | ||
18 | ti/k3-am642-hummingboard-t-usb3.dtbo \ | ||
19 | ti/k3-am642-hummingboard-t.dtb \ | ||
20 | ti/k3-am642-phyboard-electra-gpio-fan.dtbo \ | ||
21 | ti/k3-am642-phyboard-electra-pcie-usb2.dtbo \ | ||
22 | ti/k3-am642-phyboard-electra-rdk.dtb \ | ||
8 | ti/k3-am642-sk.dtb \ | 23 | ti/k3-am642-sk.dtb \ |
24 | ti/k3-am642-tqma64xxl-mbax4xxl.dtb \ | ||
9 | " | 25 | " |
10 | 26 | ||
11 | # Default tiboot3.bin on AM64x is for SR2.0 HS-FS | ||
12 | IMAGE_BOOT_FILES += "tiboot3-am64x_sr2-hs-fs-evm.bin" | ||
13 | |||
14 | # Since default tiboot3.bin on AM64x is for SR2.0 HS-FS, add a version for GP | ||
15 | IMAGE_BOOT_FILES += "tiboot3-am64x-gp-evm.bin" | ||
16 | |||
17 | # Since default tiboot3.bin on AM64x is for SR2.0 HS-FS, add a version for SR2.0 HS-SE | ||
18 | IMAGE_BOOT_FILES += "tiboot3-am64x_sr2-hs-evm.bin" | ||
19 | |||
20 | TFA_BOARD = "lite" | 27 | TFA_BOARD = "lite" |
21 | 28 | ||
22 | OPTEEMACHINE = "k3-am64x" | 29 | OPTEEMACHINE = "k3-am64x" |
23 | 30 | ||
24 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw pruhsr-fw prusw-fw" | 31 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw pruhsr-fw prusw-fw" |
32 | |||
33 | TI_WKS_BOOTLOADER_APPEND = "console=ttyS2,115200n8" | ||
diff --git a/meta-ti-bsp/conf/machine/include/am65xx.inc b/meta-ti-bsp/conf/machine/include/am65xx.inc index 80a7744a..d70bb22d 100644 --- a/meta-ti-bsp/conf/machine/include/am65xx.inc +++ b/meta-ti-bsp/conf/machine/include/am65xx.inc | |||
@@ -1,26 +1,40 @@ | |||
1 | require conf/machine/include/k3.inc | 1 | require conf/machine/include/k3.inc |
2 | require conf/machine/include/mc_k3r5.inc | ||
3 | |||
2 | SOC_FAMILY:append = ":am65xx" | 4 | SOC_FAMILY:append = ":am65xx" |
3 | 5 | ||
4 | MACHINE_FEATURES += "screen touchscreen gpu" | 6 | MACHINE_FEATURES += "screen touchscreen gpu" |
5 | 7 | ||
6 | require conf/machine/include/mesa-pvr.inc | 8 | require conf/machine/include/mesa-pvr.inc |
7 | PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-sgx-ddk-km" | 9 | PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}" |
8 | 10 | ||
9 | KERNEL_DEVICETREE_PREFIX = "ti/k3-am654" | 11 | KERNEL_DEVICETREE_PREFIX = "ti/k3-am654" |
10 | 12 | ||
13 | KERNEL_DEVICETREE_DTBMERGE = " \ | ||
14 | ti/k3-am654-gp-evm.dtb \ | ||
15 | ti/k3-am654-evm.dtb \ | ||
16 | ti/k3-am654-idk.dtb \ | ||
17 | ti/k3-am6548-iot2050-advanced-m2-bkey-ekey-pcie.dtb \ | ||
18 | ti/k3-am6548-iot2050-advanced-m2-bkey-usb3.dtb \ | ||
19 | " | ||
20 | |||
11 | KERNEL_DEVICETREE = " \ | 21 | KERNEL_DEVICETREE = " \ |
22 | ti/k3-am654-base-board-rocktech-rk101-panel.dtbo \ | ||
12 | ti/k3-am654-base-board.dtb \ | 23 | ti/k3-am654-base-board.dtb \ |
24 | ti/k3-am654-icssg2.dtbo \ | ||
25 | ti/k3-am654-idk.dtbo \ | ||
26 | ti/k3-am654-pcie-usb2.dtbo \ | ||
27 | ti/k3-am654-pcie-usb3.dtbo \ | ||
28 | ti/k3-am6548-iot2050-advanced-m2-bkey-ekey-pcie.dtbo \ | ||
29 | ti/k3-am6548-iot2050-advanced-m2-bkey-usb3.dtbo \ | ||
30 | ti/k3-am6548-iot2050-advanced-m2.dtb \ | ||
31 | ti/k3-am6548-iot2050-advanced-pg2.dtb \ | ||
32 | ti/k3-am6548-iot2050-advanced-sm.dtb \ | ||
33 | ti/k3-am6548-iot2050-advanced.dtb \ | ||
13 | " | 34 | " |
14 | 35 | ||
15 | IMAGE_BOOT_FILES += "sysfw.itb" | 36 | # Deploy SYSFW and any variants |
16 | 37 | IMAGE_BOOT_FILES += "sysfw.itb sysfw-*-evm.itb" | |
17 | # Default on AM65x is for GP | ||
18 | IMAGE_BOOT_FILES += "tiboot3-am65x_sr2-gp-evm.bin" | ||
19 | IMAGE_BOOT_FILES += "sysfw-am65x_sr2-gp-evm.itb" | ||
20 | |||
21 | # Since default on AM65x is for GP, add a version for HS-SE | ||
22 | IMAGE_BOOT_FILES += "tiboot3-am65x_sr2-hs-evm.bin" | ||
23 | IMAGE_BOOT_FILES += "sysfw-am65x_sr2-hs-evm.itb" | ||
24 | 38 | ||
25 | TFA_BOARD = "generic" | 39 | TFA_BOARD = "generic" |
26 | 40 | ||
diff --git a/meta-ti-bsp/conf/machine/include/am68.inc b/meta-ti-bsp/conf/machine/include/am68.inc new file mode 100644 index 00000000..b6d18fe0 --- /dev/null +++ b/meta-ti-bsp/conf/machine/include/am68.inc | |||
@@ -0,0 +1,15 @@ | |||
1 | require conf/machine/include/k3.inc | ||
2 | require conf/machine/include/mc_k3r5.inc | ||
3 | |||
4 | SOC_FAMILY:append = ":j721s2" | ||
5 | |||
6 | MACHINE_FEATURES += "screen gpu" | ||
7 | |||
8 | require conf/machine/include/mesa-pvr.inc | ||
9 | PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" | ||
10 | |||
11 | TFA_BOARD = "generic" | ||
12 | |||
13 | OPTEEMACHINE = "k3-j784s4" | ||
14 | |||
15 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw" | ||
diff --git a/meta-ti-bsp/conf/machine/include/am69.inc b/meta-ti-bsp/conf/machine/include/am69.inc new file mode 100644 index 00000000..759984ea --- /dev/null +++ b/meta-ti-bsp/conf/machine/include/am69.inc | |||
@@ -0,0 +1,15 @@ | |||
1 | require conf/machine/include/k3.inc | ||
2 | require conf/machine/include/mc_k3r5.inc | ||
3 | |||
4 | SOC_FAMILY:append = ":j784s4" | ||
5 | |||
6 | MACHINE_FEATURES += "screen gpu" | ||
7 | |||
8 | require conf/machine/include/mesa-pvr.inc | ||
9 | PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" | ||
10 | |||
11 | TFA_BOARD = "j784s4" | ||
12 | |||
13 | OPTEEMACHINE = "k3-j784s4" | ||
14 | |||
15 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw ti-eth-fw-j784s4" | ||
diff --git a/meta-ti-bsp/conf/machine/include/beagle.inc b/meta-ti-bsp/conf/machine/include/beagle.inc deleted file mode 100644 index 27e3298d..00000000 --- a/meta-ti-bsp/conf/machine/include/beagle.inc +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | |||
2 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-bb.org" | ||
3 | |||
diff --git a/meta-ti-bsp/conf/machine/include/j7200.inc b/meta-ti-bsp/conf/machine/include/j7200.inc index caa79876..be5cb4cd 100644 --- a/meta-ti-bsp/conf/machine/include/j7200.inc +++ b/meta-ti-bsp/conf/machine/include/j7200.inc | |||
@@ -1,23 +1,10 @@ | |||
1 | require conf/machine/include/k3.inc | 1 | require conf/machine/include/k3.inc |
2 | SOC_FAMILY:append = ":j7200" | 2 | require conf/machine/include/mc_k3r5.inc |
3 | |||
4 | # Default tiboot3.bin on J7200 is for GP | ||
5 | IMAGE_BOOT_FILES += "tiboot3-j7200-gp-evm.bin" | ||
6 | |||
7 | # Since default tiboot3.bin on J7200 is for GP, add a version for SR1.0 HS-FS | ||
8 | IMAGE_BOOT_FILES += "tiboot3-j7200-hs-fs-evm.bin" | ||
9 | 3 | ||
10 | # Since default tiboot3.bin on J7200 is for GP, add a version for SR1.0 HS-SE | 4 | SOC_FAMILY:append = ":j7200" |
11 | IMAGE_BOOT_FILES += "tiboot3-j7200-hs-evm.bin" | ||
12 | |||
13 | # Since default tiboot3.bin on J7200 is for GP, add a version for SR2.0 HS-FS | ||
14 | IMAGE_BOOT_FILES += "tiboot3-j7200_sr2-hs-fs-evm.bin" | ||
15 | |||
16 | # Since default tiboot3.bin on J721e is for GP, add a version for SR2.0 HS-SE | ||
17 | IMAGE_BOOT_FILES += "tiboot3-j7200_sr2-hs-evm.bin" | ||
18 | 5 | ||
19 | TFA_BOARD = "generic" | 6 | TFA_BOARD = "generic" |
20 | 7 | ||
21 | OPTEEMACHINE = "k3-j721e" | 8 | OPTEEMACHINE = "k3-j721e" |
22 | 9 | ||
23 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-eth-fw" | 10 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-eth-fw-j7200" |
diff --git a/meta-ti-bsp/conf/machine/include/j721e.inc b/meta-ti-bsp/conf/machine/include/j721e.inc index 6040feb0..f9fdac0c 100644 --- a/meta-ti-bsp/conf/machine/include/j721e.inc +++ b/meta-ti-bsp/conf/machine/include/j721e.inc | |||
@@ -1,35 +1,21 @@ | |||
1 | require conf/machine/include/k3.inc | 1 | require conf/machine/include/k3.inc |
2 | require conf/machine/include/mc_k3r5.inc | ||
3 | |||
2 | SOC_FAMILY:append = ":j721e" | 4 | SOC_FAMILY:append = ":j721e" |
3 | 5 | ||
4 | MACHINE_FEATURES += "screen gpu" | 6 | MACHINE_FEATURES += "screen gpu" |
5 | 7 | ||
6 | require conf/machine/include/mesa-pvr.inc | 8 | require conf/machine/include/mesa-pvr.inc |
7 | PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" | 9 | PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" |
8 | |||
9 | IMAGE_BOOT_FILES += "sysfw.itb" | ||
10 | |||
11 | # Default on J721e is for GP | ||
12 | IMAGE_BOOT_FILES += "tiboot3-j721e-gp-evm.bin" | ||
13 | IMAGE_BOOT_FILES += "sysfw-j721e-gp-evm.itb" | ||
14 | |||
15 | # Since default on J721e is for GP, add a version for SR1.1 HS-FS | ||
16 | IMAGE_BOOT_FILES += "tiboot3-j721e_sr1_1-hs-fs-evm.bin" | ||
17 | IMAGE_BOOT_FILES += "sysfw-j721e_sr1_1-hs-fs-evm.itb" | ||
18 | 10 | ||
19 | # Since default on J721e is for GP, add a version for SR1.1 HS-SE | 11 | # Deploy SYSFW and any variants |
20 | IMAGE_BOOT_FILES += "tiboot3-j721e_sr1_1-hs-evm.bin" | 12 | IMAGE_BOOT_FILES += "sysfw.itb sysfw-*-evm.itb" |
21 | IMAGE_BOOT_FILES += "sysfw-j721e_sr1_1-hs-evm.itb" | ||
22 | |||
23 | # Since default on J721e is for GP, add a version for SR2.0 HS-FS | ||
24 | IMAGE_BOOT_FILES += "tiboot3-j721e_sr2-hs-fs-evm.bin" | ||
25 | IMAGE_BOOT_FILES += "sysfw-j721e_sr2-hs-fs-evm.itb" | ||
26 | |||
27 | # Since default on J721e is for GP, add a version for SR2.0 HS-SE | ||
28 | IMAGE_BOOT_FILES += "tiboot3-j721e_sr2-hs-evm.bin" | ||
29 | IMAGE_BOOT_FILES += "sysfw-j721e_sr2-hs-evm.itb" | ||
30 | 13 | ||
31 | TFA_BOARD = "generic" | 14 | TFA_BOARD = "generic" |
32 | 15 | ||
33 | OPTEEMACHINE = "k3-j721e" | 16 | OPTEEMACHINE = "k3-j721e" |
34 | 17 | ||
35 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw ti-eth-fw" | 18 | TI_VXE_VXD_DRIVER = "ti-vxe-vxd-driver" |
19 | TI_VXE_VXD_DRIVER:bsp-ti-6_6 = "" | ||
20 | |||
21 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw vxd-dec-fw ti-eth-fw-j721e ${TI_VXE_VXD_DRIVER}" | ||
diff --git a/meta-ti-bsp/conf/machine/include/j721s2.inc b/meta-ti-bsp/conf/machine/include/j721s2.inc index 5289ec5a..b6d18fe0 100644 --- a/meta-ti-bsp/conf/machine/include/j721s2.inc +++ b/meta-ti-bsp/conf/machine/include/j721s2.inc | |||
@@ -1,19 +1,12 @@ | |||
1 | require conf/machine/include/k3.inc | 1 | require conf/machine/include/k3.inc |
2 | require conf/machine/include/mc_k3r5.inc | ||
3 | |||
2 | SOC_FAMILY:append = ":j721s2" | 4 | SOC_FAMILY:append = ":j721s2" |
3 | 5 | ||
4 | MACHINE_FEATURES += "screen gpu" | 6 | MACHINE_FEATURES += "screen gpu" |
5 | 7 | ||
6 | require conf/machine/include/mesa-pvr.inc | 8 | require conf/machine/include/mesa-pvr.inc |
7 | PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" | 9 | PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" |
8 | |||
9 | # Default tiboot3.bin on J721S2 is for GP | ||
10 | IMAGE_BOOT_FILES += "tiboot3-j721s2-gp-evm.bin" | ||
11 | |||
12 | # Since default tiboot3.bin on J721S2 is for GP, add a version for SR1.0 HS-FS | ||
13 | IMAGE_BOOT_FILES += "tiboot3-j721s2-hs-fs-evm.bin" | ||
14 | |||
15 | # Since default tiboot3.bin on J721S2 is for GP, add a version for SR1.0 HS-SE | ||
16 | IMAGE_BOOT_FILES += "tiboot3-j721s2-hs-evm.bin" | ||
17 | 10 | ||
18 | TFA_BOARD = "generic" | 11 | TFA_BOARD = "generic" |
19 | 12 | ||
diff --git a/meta-ti-bsp/conf/machine/include/j722s.inc b/meta-ti-bsp/conf/machine/include/j722s.inc index 3b051f1b..8a02441b 100644 --- a/meta-ti-bsp/conf/machine/include/j722s.inc +++ b/meta-ti-bsp/conf/machine/include/j722s.inc | |||
@@ -1,16 +1,12 @@ | |||
1 | require conf/machine/include/k3.inc | 1 | require conf/machine/include/k3.inc |
2 | require conf/machine/include/mc_k3r5.inc | ||
3 | |||
2 | SOC_FAMILY:append = ":j722s" | 4 | SOC_FAMILY:append = ":j722s" |
3 | 5 | ||
4 | MACHINE_FEATURES += "screen gpu" | 6 | MACHINE_FEATURES += "screen gpu" |
5 | 7 | ||
6 | require conf/machine/include/mesa-pvr.inc | 8 | require conf/machine/include/mesa-pvr.inc |
7 | PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" | 9 | PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" |
8 | |||
9 | # Default tiboot3.bin on J722S is for HS-FS | ||
10 | IMAGE_BOOT_FILES += "tiboot3-j722s-hs-fs-evm.bin" | ||
11 | |||
12 | # Since default tiboot3.bin on J722S is for HS-FS, add a version for HS-SE | ||
13 | IMAGE_BOOT_FILES += "tiboot3-j722s-hs-evm.bin" | ||
14 | 10 | ||
15 | TFA_BOARD = "lite" | 11 | TFA_BOARD = "lite" |
16 | TFA_K3_SYSTEM_SUSPEND = "1" | 12 | TFA_K3_SYSTEM_SUSPEND = "1" |
diff --git a/meta-ti-bsp/conf/machine/include/j742s2.inc b/meta-ti-bsp/conf/machine/include/j742s2.inc new file mode 100644 index 00000000..d2de1d0d --- /dev/null +++ b/meta-ti-bsp/conf/machine/include/j742s2.inc | |||
@@ -0,0 +1,15 @@ | |||
1 | require conf/machine/include/k3.inc | ||
2 | require conf/machine/include/mc_k3r5.inc | ||
3 | |||
4 | SOC_FAMILY:append = ":j742s2" | ||
5 | |||
6 | MACHINE_FEATURES += "screen gpu" | ||
7 | |||
8 | require conf/machine/include/mesa-pvr.inc | ||
9 | PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" | ||
10 | |||
11 | TFA_BOARD = "j784s4" | ||
12 | |||
13 | OPTEEMACHINE = "k3-j784s4" | ||
14 | |||
15 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw" | ||
diff --git a/meta-ti-bsp/conf/machine/include/j784s4.inc b/meta-ti-bsp/conf/machine/include/j784s4.inc index 92062cdf..759984ea 100644 --- a/meta-ti-bsp/conf/machine/include/j784s4.inc +++ b/meta-ti-bsp/conf/machine/include/j784s4.inc | |||
@@ -1,22 +1,15 @@ | |||
1 | require conf/machine/include/k3.inc | 1 | require conf/machine/include/k3.inc |
2 | require conf/machine/include/mc_k3r5.inc | ||
3 | |||
2 | SOC_FAMILY:append = ":j784s4" | 4 | SOC_FAMILY:append = ":j784s4" |
3 | 5 | ||
4 | MACHINE_FEATURES += "screen gpu" | 6 | MACHINE_FEATURES += "screen gpu" |
5 | 7 | ||
6 | require conf/machine/include/mesa-pvr.inc | 8 | require conf/machine/include/mesa-pvr.inc |
7 | PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver" | 9 | PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" |
8 | |||
9 | # Default tiboot3.bin on J784S4 is for GP | ||
10 | IMAGE_BOOT_FILES += "tiboot3-j784s4-gp-evm.bin" | ||
11 | |||
12 | # Since default tiboot3.bin on J784S4 is for GP, add a version for SR1.0 HS-FS | ||
13 | IMAGE_BOOT_FILES += "tiboot3-j784s4-hs-fs-evm.bin" | ||
14 | |||
15 | # Since default tiboot3.bin on J784S4 is for GP, add a version for SR1.0 HS-SE | ||
16 | IMAGE_BOOT_FILES += "tiboot3-j784s4-hs-evm.bin" | ||
17 | 10 | ||
18 | TFA_BOARD = "j784s4" | 11 | TFA_BOARD = "j784s4" |
19 | 12 | ||
20 | OPTEEMACHINE = "k3-j784s4" | 13 | OPTEEMACHINE = "k3-j784s4" |
21 | 14 | ||
22 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw ti-eth-fw" | 15 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw ti-eth-fw-j784s4" |
diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc index e3da9e12..50411a8e 100644 --- a/meta-ti-bsp/conf/machine/include/k3.inc +++ b/meta-ti-bsp/conf/machine/include/k3.inc | |||
@@ -3,28 +3,17 @@ | |||
3 | require conf/machine/include/ti-soc.inc | 3 | require conf/machine/include/ti-soc.inc |
4 | SOC_FAMILY:append = ":k3" | 4 | SOC_FAMILY:append = ":k3" |
5 | 5 | ||
6 | require conf/machine/include/arm/arch-arm64.inc | 6 | DEFAULTTUNE ?= "aarch64" |
7 | require conf/machine/include/arm/armv8a/tune-cortexa72-cortexa53.inc | ||
7 | 8 | ||
8 | BBMULTICONFIG += "k3r5" | 9 | require conf/machine/include/ti-bsp.inc |
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 | 10 | ||
17 | KERNEL_IMAGETYPE = "Image" | 11 | KERNEL_IMAGETYPE = "Image" |
18 | KERNEL_IMAGETYPES = "Image fitImage" | 12 | KERNEL_CLASSES += "kernel-fit-extra-artifacts" |
19 | KERNEL_CLASSES += "kernel-fitimage" | ||
20 | 13 | ||
21 | UBOOT_ARCH = "arm" | 14 | UBOOT_ARCH = "arm" |
22 | UBOOT_ENTRYPOINT = "0x81000000" | 15 | UBOOT_DTB_LOADADDRESS = "0x88000000" |
23 | UBOOT_LOADADDRESS = "0x81000000" | 16 | UBOOT_DTBO_LOADADDRESS = "0x88080000" |
24 | UBOOT_RD_LOADADDRESS = "0x84000000" | ||
25 | UBOOT_RD_ENTRYPOINT = "0x84000000" | ||
26 | UBOOT_DTB_LOADADDRESS = "0x83000000" | ||
27 | UBOOT_DTBO_LOADADDRESS = "0x83080000" | ||
28 | UBOOT_DTBO_OFFSET = "0x00010000" | 17 | UBOOT_DTBO_OFFSET = "0x00010000" |
29 | 18 | ||
30 | SPL_BINARY = "tispl.bin" | 19 | SPL_BINARY = "tispl.bin" |
@@ -40,7 +29,7 @@ FIT_SIGN_ALG ?= "rsa4096" | |||
40 | 29 | ||
41 | EXTRA_IMAGEDEPENDS += "virtual/bootloader" | 30 | EXTRA_IMAGEDEPENDS += "virtual/bootloader" |
42 | 31 | ||
43 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-image" | 32 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-image ti-kernel-fitimage" |
44 | 33 | ||
45 | TFA_PLATFORM = "k3" | 34 | TFA_PLATFORM = "k3" |
46 | 35 | ||
@@ -49,11 +38,12 @@ TFA_PLATFORM = "k3" | |||
49 | UBI_VOLNAME = "rootfs" | 38 | UBI_VOLNAME = "rootfs" |
50 | 39 | ||
51 | # List common SoC features, may need to add touchscreen for specific machines | 40 | # List common SoC features, may need to add touchscreen for specific machines |
52 | MACHINE_FEATURES = "apm usbgadget usbhost vfat ext2 alsa pci" | 41 | MACHINE_FEATURES = "apm usbgadget usbhost vfat ext2 alsa pci optee-ftpm" |
42 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-pka-fw" | ||
53 | 43 | ||
54 | IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap" | 44 | IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap" |
55 | 45 | ||
56 | IMAGE_BOOT_FILES ?= "${SPL_BINARYNAME} u-boot.${UBOOT_SUFFIX} tiboot3.bin" | 46 | IMAGE_BOOT_FILES ?= "${SPL_BINARYNAME} u-boot.${UBOOT_SUFFIX} tiboot3.bin tiboot3-*-evm.bin" |
57 | IMAGE_EFI_BOOT_FILES ?= "${IMAGE_BOOT_FILES}" | 47 | IMAGE_EFI_BOOT_FILES ?= "${IMAGE_BOOT_FILES}" |
58 | 48 | ||
59 | EFI_PROVIDER ?= "grub-efi" | 49 | EFI_PROVIDER ?= "grub-efi" |
@@ -61,7 +51,13 @@ MACHINE_FEATURES += "efi" | |||
61 | 51 | ||
62 | WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in", "sdimage-2part.wks", d)}" | 52 | WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in", "sdimage-2part.wks", d)}" |
63 | 53 | ||
54 | TI_WKS_BOOTLOADER_APPEND ?= "" | ||
55 | |||
64 | do_image_wic[depends] += "virtual/bootloader:do_deploy" | 56 | do_image_wic[depends] += "virtual/bootloader:do_deploy" |
65 | do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy" | ||
66 | 57 | ||
67 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2" | 58 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2" |
59 | |||
60 | FALCON_INCLUDE = "" | ||
61 | FALCON_INCLUDE:ti-falcon = "conf/machine/include/ti-falcon.inc" | ||
62 | |||
63 | require ${FALCON_INCLUDE} | ||
diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc b/meta-ti-bsp/conf/machine/include/k3r5.inc index 63267a5e..fcd54254 100644 --- a/meta-ti-bsp/conf/machine/include/k3r5.inc +++ b/meta-ti-bsp/conf/machine/include/k3r5.inc | |||
@@ -11,9 +11,9 @@ require conf/machine/include/arm/armv7a/tune-cortexa8.inc | |||
11 | # https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst | 11 | # https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst |
12 | # https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst | 12 | # https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst |
13 | # https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst | 13 | # https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst |
14 | |||
15 | require conf/machine/include/ti-bsp.inc | ||
14 | PREFERRED_PROVIDER_virtual/kernel = "linux-dummy" | 16 | PREFERRED_PROVIDER_virtual/kernel = "linux-dummy" |
15 | PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging" | ||
16 | PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging" | ||
17 | 17 | ||
18 | SPL_SUFFIX = "bin" | 18 | SPL_SUFFIX = "bin" |
19 | SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}" | 19 | SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}" |
diff --git a/meta-ti-bsp/conf/machine/include/mc_k3r5.inc b/meta-ti-bsp/conf/machine/include/mc_k3r5.inc new file mode 100644 index 00000000..d5a530b8 --- /dev/null +++ b/meta-ti-bsp/conf/machine/include/mc_k3r5.inc | |||
@@ -0,0 +1,3 @@ | |||
1 | BBMULTICONFIG += "k3r5" | ||
2 | |||
3 | do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy" | ||
diff --git a/meta-ti-bsp/conf/machine/include/omap-a15.inc b/meta-ti-bsp/conf/machine/include/omap-a15.inc index a875713f..2179476f 100644 --- a/meta-ti-bsp/conf/machine/include/omap-a15.inc +++ b/meta-ti-bsp/conf/machine/include/omap-a15.inc | |||
@@ -4,16 +4,11 @@ SOC_FAMILY:append = ":omap-a15" | |||
4 | DEFAULTTUNE ?= "armv7athf-neon" | 4 | DEFAULTTUNE ?= "armv7athf-neon" |
5 | require conf/machine/include/arm/armv7a/tune-cortexa15.inc | 5 | require conf/machine/include/arm/armv7a/tune-cortexa15.inc |
6 | 6 | ||
7 | # Increase this everytime you change something in the kernel | 7 | require conf/machine/include/ti-bsp.inc |
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 | 8 | ||
14 | # Graphics providers and variables | 9 | # Graphics providers and variables |
15 | require conf/machine/include/mesa-pvr.inc | 10 | require conf/machine/include/mesa-pvr.inc |
16 | PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-sgx-ddk-km" | 11 | PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}" |
17 | PVR_DISPLAY_CONTROLLER_ALIAS ?= "omapdrm" | 12 | PVR_DISPLAY_CONTROLLER_ALIAS ?= "omapdrm" |
18 | 13 | ||
19 | KERNEL_IMAGETYPE = "zImage" | 14 | KERNEL_IMAGETYPE = "zImage" |
@@ -24,15 +19,13 @@ UBOOT_ARCH = "arm" | |||
24 | UBOOT_ENTRYPOINT = "0x80008000" | 19 | UBOOT_ENTRYPOINT = "0x80008000" |
25 | UBOOT_LOADADDRESS = "0x80008000" | 20 | UBOOT_LOADADDRESS = "0x80008000" |
26 | 21 | ||
27 | DEVICETREE_FILE = "${@(d.getVar('KERNEL_DEVICETREE') or "").replace("ti/omap/","").replace("ti/","")}" | ||
28 | |||
29 | # Generate an extlinux.conf file | 22 | # Generate an extlinux.conf file |
30 | UBOOT_EXTLINUX = "1" | 23 | UBOOT_EXTLINUX = "1" |
31 | UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}" | 24 | UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}" |
32 | UBOOT_EXTLINUX_BOOT_FILES = " \ | 25 | UBOOT_EXTLINUX_BOOT_FILES = " \ |
33 | extlinux.conf;extlinux/extlinux.conf \ | 26 | extlinux.conf;extlinux/extlinux.conf \ |
34 | ${KERNEL_IMAGETYPE} \ | 27 | ${KERNEL_IMAGETYPE} \ |
35 | ${DEVICETREE_FILE} \ | 28 | ${DEVICETREE_FILES} \ |
36 | " | 29 | " |
37 | 30 | ||
38 | SPL_BINARY = "MLO" | 31 | SPL_BINARY = "MLO" |
@@ -53,5 +46,6 @@ MACHINE_FEATURES = "apm usbgadget usbhost vfat ext2 screen alsa gpu mmip dsp gc3 | |||
53 | 46 | ||
54 | IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap" | 47 | IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap" |
55 | WKS_FILE ?= "sdimage-2part.wks" | 48 | WKS_FILE ?= "sdimage-2part.wks" |
56 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}" | 49 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES} ipc/dra7-ipu1-fw.xem4;dra7-ipu1-fw.xem4" |
57 | do_image_wic[depends] += "virtual/bootloader:do_deploy" | 50 | do_image_wic[depends] += "virtual/bootloader:do_deploy" |
51 | do_image_wic[depends] += "ti-rtos-messageq-test-fw:do_deploy" | ||
diff --git a/meta-ti-bsp/conf/machine/include/omapl138.inc b/meta-ti-bsp/conf/machine/include/omapl138.inc index 7f8262a5..486de05d 100644 --- a/meta-ti-bsp/conf/machine/include/omapl138.inc +++ b/meta-ti-bsp/conf/machine/include/omapl138.inc | |||
@@ -5,9 +5,7 @@ require conf/machine/include/arm/armv5/tune-arm926ejs.inc | |||
5 | 5 | ||
6 | KERNEL_IMAGETYPE = "zImage" | 6 | KERNEL_IMAGETYPE = "zImage" |
7 | 7 | ||
8 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging" | 8 | require conf/machine/include/ti-bsp.inc |
9 | PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging" | ||
10 | PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging" | ||
11 | 9 | ||
12 | EXTRA_IMAGEDEPENDS += "virtual/bootloader" | 10 | EXTRA_IMAGEDEPENDS += "virtual/bootloader" |
13 | 11 | ||
diff --git a/meta-ti-bsp/conf/machine/include/ti-bsp.inc b/meta-ti-bsp/conf/machine/include/ti-bsp.inc new file mode 100644 index 00000000..c690cb5a --- /dev/null +++ b/meta-ti-bsp/conf/machine/include/ti-bsp.inc | |||
@@ -0,0 +1,115 @@ | |||
1 | # Support multiple BSP providers | ||
2 | # The main input is TI_PREFERRED_BSP, which translates into default | ||
3 | # preferences for kernel, bootloader and graphics components, as | ||
4 | # well as a dedicated machine override. | ||
5 | |||
6 | # Supported options are: mainline, next, ti-6_12, ti-6_6 | ||
7 | TI_PREFERRED_BSP ??= "ti-6_12" | ||
8 | |||
9 | # Use bsp-* namespace for overrides | ||
10 | MACHINEOVERRIDES =. "bsp-${TI_PREFERRED_BSP}:" | ||
11 | |||
12 | # ========== | ||
13 | # mainline | ||
14 | # latest upstream/mainline kernel, u-boot | ||
15 | # ========== | ||
16 | BSP_KERNEL_PROVIDER:bsp-mainline = "linux-ti-mainline" | ||
17 | BSP_KERNEL_VERSION:bsp-mainline = "%" | ||
18 | BSP_BOOTLOADER_PROVIDER:bsp-mainline = "u-boot-ti-mainline" | ||
19 | BSP_BOOTLOADER_VERSION:bsp-mainline = "%" | ||
20 | |||
21 | # GPU support requires out-of-tree SGX and Rogue drivers not available | ||
22 | # in mainline, usually present in TI staging or derivative like BB.org | ||
23 | MACHINE_FEATURES:remove:bsp-mainline = "gpu" | ||
24 | |||
25 | # GC320 support requires out-of-tree drivers not available in mainline | ||
26 | MACHINE_FEATURES:remove:bsp-mainline = "gc320" | ||
27 | |||
28 | # ========== | ||
29 | # next | ||
30 | # upcoming upstream/mainline kernel, u-boot | ||
31 | # ========== | ||
32 | BSP_KERNEL_PROVIDER:bsp-next = "linux-ti-next" | ||
33 | BSP_KERNEL_VERSION:bsp-next = "%" | ||
34 | BSP_BOOTLOADER_PROVIDER:bsp-next = "u-boot-ti-next" | ||
35 | BSP_BOOTLOADER_VERSION:bsp-next = "%" | ||
36 | |||
37 | # GPU support requires out-of-tree SGX and Rogue drivers not available | ||
38 | # in next, usually present in TI staging or derivative like BB.org | ||
39 | MACHINE_FEATURES:remove:bsp-next = "gpu" | ||
40 | |||
41 | # GC320 support requires out-of-tree drivers not yet available in next | ||
42 | MACHINE_FEATURES:remove:bsp-next = "gc320" | ||
43 | |||
44 | # ========== | ||
45 | # ti-6_12 | ||
46 | # TI staging kernel 6.12, u-boot 2025.01 | ||
47 | # ========== | ||
48 | BSP_KERNEL_PROVIDER:bsp-ti-6_12 = "linux-ti-staging" | ||
49 | BSP_KERNEL_VERSION:bsp-ti-6_12 = "6.12%" | ||
50 | BSP_BOOTLOADER_PROVIDER:bsp-ti-6_12 = "u-boot-ti-staging" | ||
51 | BSP_BOOTLOADER_VERSION:bsp-ti-6_12 = "2025.01%" | ||
52 | |||
53 | BSP_SGX_DRIVER_PROVIDER:bsp-ti-6_12 = "ti-sgx-ddk-km" | ||
54 | BSP_SGX_DRIVER_VERSION:bsp-ti-6_12 = "1.17%" | ||
55 | BSP_SGX_UMLIBS_VERSION:bsp-ti-6_12 = "1.17%" | ||
56 | BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_12 = "ti-img-rogue-driver" | ||
57 | BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_12 = "24%" | ||
58 | BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_12 = "24%" | ||
59 | BSP_MESA_PVR_VERSION:bsp-ti-6_12 = "24%" | ||
60 | |||
61 | # ========== | ||
62 | # ti-6_6 | ||
63 | # TI staging kernel 6.6, u-boot 2024.04 | ||
64 | # ========== | ||
65 | BSP_KERNEL_PROVIDER:bsp-ti-6_6 = "linux-ti-staging" | ||
66 | BSP_KERNEL_VERSION:bsp-ti-6_6 = "6.6.%" | ||
67 | BSP_BOOTLOADER_PROVIDER:bsp-ti-6_6 = "u-boot-ti-staging" | ||
68 | BSP_BOOTLOADER_VERSION:bsp-ti-6_6 = "2024.04%" | ||
69 | |||
70 | BSP_SGX_DRIVER_PROVIDER:bsp-ti-6_6 = "ti-sgx-ddk-km" | ||
71 | BSP_SGX_DRIVER_VERSION:bsp-ti-6_6 = "1.17%" | ||
72 | BSP_SGX_UMLIBS_VERSION:bsp-ti-6_6 = "1.17%" | ||
73 | BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_6 = "ti-img-rogue-driver" | ||
74 | BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_6 = "24%" | ||
75 | BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_6 = "24%" | ||
76 | BSP_MESA_PVR_VERSION:bsp-ti-6_6 = "24%" | ||
77 | |||
78 | # GC320 support requires out-of-tree drivers not yet available in 6.6 | ||
79 | MACHINE_FEATURES:remove:bsp-ti-6_6 = "gc320" | ||
80 | |||
81 | # ========== | ||
82 | # sane fallback defaults | ||
83 | # if specific values are not defined or bsp is set incorrectly | ||
84 | # use default preference TI staging and SW-rendering graphics | ||
85 | # ========== | ||
86 | BSP_KERNEL_PROVIDER ?= "linux-ti-staging" | ||
87 | BSP_KERNEL_VERSION ?= "%" | ||
88 | BSP_BOOTLOADER_PROVIDER ?= "u-boot-ti-staging" | ||
89 | BSP_BOOTLOADER_VERSION ?= "%" | ||
90 | |||
91 | BSP_SGX_DRIVER_PROVIDER ?= "" | ||
92 | BSP_SGX_DRIVER_VERSION ?= "" | ||
93 | BSP_ROGUE_DRIVER_PROVIDER ?= "" | ||
94 | BSP_ROGUE_DRIVER_VERSION ?= "" | ||
95 | BSP_SGX_UMLIBS_VERSION ?= "" | ||
96 | BSP_ROGUE_UMLIBS_VERSION ?= "" | ||
97 | BSP_MESA_PVR_VERSION ?= "" | ||
98 | |||
99 | # ========== | ||
100 | # global preferences | ||
101 | # ========== | ||
102 | PREFERRED_PROVIDER_virtual/kernel ?= "${BSP_KERNEL_PROVIDER}" | ||
103 | PREFERRED_VERSION_${BSP_KERNEL_PROVIDER} ?= "${BSP_KERNEL_VERSION}" | ||
104 | PREFERRED_VERSION_${BSP_KERNEL_PROVIDER}-rt ?= "${BSP_KERNEL_VERSION}" | ||
105 | PREFERRED_PROVIDER_virtual/bootloader ?= "${BSP_BOOTLOADER_PROVIDER}" | ||
106 | PREFERRED_PROVIDER_u-boot ?= "${BSP_BOOTLOADER_PROVIDER}" | ||
107 | PREFERRED_VERSION_${BSP_BOOTLOADER_PROVIDER} ?= "${BSP_BOOTLOADER_VERSION}" | ||
108 | |||
109 | # GPU provider gets set in machine configs, as some machines are headless | ||
110 | # Select default preferred versions here | ||
111 | PREFERRED_VERSION_ti-sgx-ddk-km ?= "${BSP_SGX_DRIVER_VERSION}" | ||
112 | PREFERRED_VERSION_ti-sgx-ddk-um ?= "${BSP_SGX_UMLIBS_VERSION}" | ||
113 | PREFERRED_VERSION_ti-img-rogue-driver ?= "${BSP_ROGUE_DRIVER_VERSION}" | ||
114 | PREFERRED_VERSION_ti-img-rogue-umlibs ?= "${BSP_ROGUE_UMLIBS_VERSION}" | ||
115 | PREFERRED_VERSION_mesa-pvr ?= "${BSP_MESA_PVR_VERSION}" | ||
diff --git a/meta-ti-bsp/conf/machine/include/ti-falcon.inc b/meta-ti-bsp/conf/machine/include/ti-falcon.inc new file mode 100644 index 00000000..5f5e2148 --- /dev/null +++ b/meta-ti-bsp/conf/machine/include/ti-falcon.inc | |||
@@ -0,0 +1,5 @@ | |||
1 | IMAGE_INSTALL:append = " u-boot-ti-staging-falcon" | ||
2 | KERNEL_CLASSES:remove = "kernel-fit-extra-artifacts" | ||
3 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS:remove = "ti-kernel-fitimage" | ||
4 | KERNEL_CLASSES += "kernel-fitimage-legacyhs" | ||
5 | FIT_KERNEL_COMP_ALG = "none" | ||
diff --git a/meta-ti-bsp/conf/machine/include/ti-soc.inc b/meta-ti-bsp/conf/machine/include/ti-soc.inc index a1fd3cbf..018e9bfb 100644 --- a/meta-ti-bsp/conf/machine/include/ti-soc.inc +++ b/meta-ti-bsp/conf/machine/include/ti-soc.inc | |||
@@ -1,9 +1,29 @@ | |||
1 | # This is a generic TI SOC family. It is a superset of all other SOCs | 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. | 2 | # and platforms defined in meta-ti to allow BSP-level overrides. |
3 | SOC_FAMILY = "ti-soc" | 3 | SOC_FAMILY = "ti-soc" |
4 | require conf/machine/include/soc-family.inc | ||
5 | |||
6 | # kernel, initrd load addresses for the fitImage in all TI platforms | ||
7 | UBOOT_ENTRYPOINT = "0x82000000" | ||
8 | UBOOT_LOADADDRESS = "0x82000000" | ||
9 | UBOOT_RD_LOADADDRESS = "0x84000000" | ||
10 | UBOOT_RD_ENTRYPOINT = "0x84000000" | ||
4 | 11 | ||
5 | # TI platforms all use devicetrees with overlays | 12 | # TI platforms all use devicetrees with overlays |
6 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree" | 13 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree" |
7 | KERNEL_DTB_OVERLAY_SUPPORT ?= "1" | ||
8 | 14 | ||
9 | require conf/machine/include/soc-family.inc | 15 | # Tell the kernel class to install the DTBs in the same directory structure as |
16 | # the kernel | ||
17 | KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb" | ||
18 | KERNEL_DTBVENDORED = "1" | ||
19 | |||
20 | # Also build a non-vendored list w/o dir structure | ||
21 | DEVICETREE_FILES = "${@' '.join([os.path.basename(f) for f in d.getVar("KERNEL_DEVICETREE").split()])}" | ||
22 | |||
23 | KERNEL_DEVICETREE_DTBMERGE ?= "" | ||
24 | |||
25 | # Dynamically build DTBs list based on prefix matching | ||
26 | CLASS_DEVICETREE_PREFIX = "${@ 'ti-devicetree-prefix' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''}" | ||
27 | |||
28 | KERNEL_CLASSES += "${CLASS_DEVICETREE_PREFIX}" | ||
29 | IMAGE_CLASSES += "${CLASS_DEVICETREE_PREFIX}" | ||
diff --git a/meta-ti-bsp/conf/machine/include/ti33x.inc b/meta-ti-bsp/conf/machine/include/ti33x.inc index b0ed1c69..c47165e4 100644 --- a/meta-ti-bsp/conf/machine/include/ti33x.inc +++ b/meta-ti-bsp/conf/machine/include/ti33x.inc | |||
@@ -4,17 +4,11 @@ SOC_FAMILY:append = ":ti33x" | |||
4 | DEFAULTTUNE ?= "armv7athf-neon" | 4 | DEFAULTTUNE ?= "armv7athf-neon" |
5 | require conf/machine/include/arm/armv7a/tune-cortexa8.inc | 5 | require conf/machine/include/arm/armv7a/tune-cortexa8.inc |
6 | 6 | ||
7 | # Increase this everytime you change something in the kernel | 7 | require conf/machine/include/ti-bsp.inc |
8 | MACHINE_KERNEL_PR = "r22" | ||
9 | |||
10 | # Default providers, may need to override for specific machines | ||
11 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging" | ||
12 | PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging" | ||
13 | PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging" | ||
14 | 8 | ||
15 | # Graphics providers and variables | 9 | # Graphics providers and variables |
16 | require conf/machine/include/mesa-pvr.inc | 10 | require conf/machine/include/mesa-pvr.inc |
17 | PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-sgx-ddk-km" | 11 | PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}" |
18 | PVR_DISPLAY_CONTROLLER_ALIAS ?= "tilcdc" | 12 | PVR_DISPLAY_CONTROLLER_ALIAS ?= "tilcdc" |
19 | 13 | ||
20 | KERNEL_IMAGETYPE = "zImage" | 14 | KERNEL_IMAGETYPE = "zImage" |
@@ -25,17 +19,43 @@ KERNEL_DEVICETREE_PREFIX = " \ | |||
25 | " | 19 | " |
26 | 20 | ||
27 | KERNEL_DEVICETREE = " \ | 21 | KERNEL_DEVICETREE = " \ |
22 | ti/omap/am335x-baltos-ir2110.dtb \ | ||
23 | ti/omap/am335x-baltos-ir3220.dtb \ | ||
24 | ti/omap/am335x-baltos-ir5221.dtb \ | ||
25 | ti/omap/am335x-base0033.dtb \ | ||
26 | ti/omap/am335x-bone.dtb \ | ||
27 | ti/omap/am335x-boneblack-wireless.dtb \ | ||
28 | ti/omap/am335x-boneblack.dtb \ | ||
29 | ti/omap/am335x-boneblue.dtb \ | ||
30 | ti/omap/am335x-bonegreen-wireless.dtb \ | ||
31 | ti/omap/am335x-bonegreen.dtb \ | ||
32 | ti/omap/am335x-chiliboard.dtb \ | ||
33 | ti/omap/am335x-cm-t335.dtb \ | ||
28 | ti/omap/am335x-evm.dtb \ | 34 | ti/omap/am335x-evm.dtb \ |
29 | ti/omap/am335x-evmsk.dtb \ | 35 | ti/omap/am335x-evmsk.dtb \ |
36 | ti/omap/am335x-guardian.dtb \ | ||
30 | ti/omap/am335x-icev2.dtb \ | 37 | ti/omap/am335x-icev2.dtb \ |
38 | ti/omap/am335x-lxm.dtb \ | ||
39 | ti/omap/am335x-moxa-uc-2101.dtb \ | ||
40 | ti/omap/am335x-moxa-uc-8100-me-t.dtb \ | ||
41 | ti/omap/am335x-myirtech-myd.dtb \ | ||
42 | ti/omap/am335x-nano.dtb \ | ||
43 | ti/omap/am335x-netcan-plus-1xx.dtb \ | ||
44 | ti/omap/am335x-netcom-plus-2xx.dtb \ | ||
45 | ti/omap/am335x-netcom-plus-8xx.dtb \ | ||
46 | ti/omap/am335x-osd3358-sm-red.dtb \ | ||
47 | ti/omap/am335x-pdu001.dtb \ | ||
48 | ti/omap/am335x-pepper.dtb \ | ||
49 | ti/omap/am335x-phycore-rdk.dtb \ | ||
31 | ti/omap/am335x-pocketbeagle.dtb \ | 50 | ti/omap/am335x-pocketbeagle.dtb \ |
32 | ti/omap/am335x-bone.dtb \ | 51 | ti/omap/am335x-regor-rdk.dtb \ |
33 | ti/omap/am335x-boneblue.dtb \ | 52 | ti/omap/am335x-sancloud-bbe-extended-wifi.dtb \ |
34 | ti/omap/am335x-bonegreen.dtb \ | 53 | ti/omap/am335x-sancloud-bbe-lite.dtb \ |
35 | ti/omap/am335x-bonegreen-wireless.dtb \ | ||
36 | ti/omap/am335x-boneblack.dtb \ | ||
37 | ti/omap/am335x-boneblack-wireless.dtb \ | ||
38 | ti/omap/am335x-sancloud-bbe.dtb \ | 54 | ti/omap/am335x-sancloud-bbe.dtb \ |
55 | ti/omap/am335x-sbc-t335.dtb \ | ||
56 | ti/omap/am335x-shc.dtb \ | ||
57 | ti/omap/am335x-sl50.dtb \ | ||
58 | ti/omap/am335x-wega-rdk.dtb \ | ||
39 | " | 59 | " |
40 | 60 | ||
41 | UBOOT_ARCH = "arm" | 61 | UBOOT_ARCH = "arm" |
@@ -44,8 +64,6 @@ UBOOT_MACHINE = "am335x_evm_config" | |||
44 | UBOOT_ENTRYPOINT = "0x80008000" | 64 | UBOOT_ENTRYPOINT = "0x80008000" |
45 | UBOOT_LOADADDRESS = "0x80008000" | 65 | UBOOT_LOADADDRESS = "0x80008000" |
46 | 66 | ||
47 | DEVICETREE_FILE = "${@(d.getVar('KERNEL_DEVICETREE') or "").replace("ti/omap/","")}" | ||
48 | |||
49 | # Generate an extlinux.conf file | 67 | # Generate an extlinux.conf file |
50 | UBOOT_EXTLINUX = "1" | 68 | UBOOT_EXTLINUX = "1" |
51 | UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}" | 69 | UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}" |
@@ -53,7 +71,7 @@ UBOOT_EXTLINUX_KERNEL_ARGS = "rootwait rw earlycon" | |||
53 | UBOOT_EXTLINUX_BOOT_FILES = " \ | 71 | UBOOT_EXTLINUX_BOOT_FILES = " \ |
54 | extlinux.conf;extlinux/extlinux.conf \ | 72 | extlinux.conf;extlinux/extlinux.conf \ |
55 | ${KERNEL_IMAGETYPE} \ | 73 | ${KERNEL_IMAGETYPE} \ |
56 | ${DEVICETREE_FILE} \ | 74 | ${DEVICETREE_FILES} \ |
57 | " | 75 | " |
58 | 76 | ||
59 | SPL_BINARY = "MLO" | 77 | SPL_BINARY = "MLO" |
diff --git a/meta-ti-bsp/conf/machine/include/ti43x.inc b/meta-ti-bsp/conf/machine/include/ti43x.inc index 17ca5240..a23b6518 100644 --- a/meta-ti-bsp/conf/machine/include/ti43x.inc +++ b/meta-ti-bsp/conf/machine/include/ti43x.inc | |||
@@ -4,17 +4,11 @@ SOC_FAMILY:append = ":ti43x" | |||
4 | DEFAULTTUNE ?= "armv7athf-neon" | 4 | DEFAULTTUNE ?= "armv7athf-neon" |
5 | require conf/machine/include/arm/armv7a/tune-cortexa9.inc | 5 | require conf/machine/include/arm/armv7a/tune-cortexa9.inc |
6 | 6 | ||
7 | # Increase this everytime you change something in the kernel | 7 | require conf/machine/include/ti-bsp.inc |
8 | MACHINE_KERNEL_PR = "r3" | ||
9 | |||
10 | # Default providers, may need to override for specific machines | ||
11 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging" | ||
12 | PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging" | ||
13 | PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging" | ||
14 | 8 | ||
15 | # Graphics providers and variables | 9 | # Graphics providers and variables |
16 | require conf/machine/include/mesa-pvr.inc | 10 | require conf/machine/include/mesa-pvr.inc |
17 | PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-sgx-ddk-km" | 11 | PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}" |
18 | PVR_DISPLAY_CONTROLLER_ALIAS ?= "omapdrm" | 12 | PVR_DISPLAY_CONTROLLER_ALIAS ?= "omapdrm" |
19 | 13 | ||
20 | KERNEL_IMAGETYPE = "zImage" | 14 | KERNEL_IMAGETYPE = "zImage" |
@@ -27,9 +21,11 @@ KERNEL_DEVICETREE_PREFIX = " \ | |||
27 | " | 21 | " |
28 | 22 | ||
29 | KERNEL_DEVICETREE = " \ | 23 | KERNEL_DEVICETREE = " \ |
24 | ti/omap/am437x-cm-t43.dtb \ | ||
30 | ti/omap/am437x-gp-evm.dtb \ | 25 | ti/omap/am437x-gp-evm.dtb \ |
31 | ti/omap/am437x-sk-evm.dtb \ | ||
32 | ti/omap/am437x-idk-evm.dtb \ | 26 | ti/omap/am437x-idk-evm.dtb \ |
27 | ti/omap/am437x-sbc-t43.dtb \ | ||
28 | ti/omap/am437x-sk-evm.dtb \ | ||
33 | ti/omap/am43x-epos-evm.dtb \ | 29 | ti/omap/am43x-epos-evm.dtb \ |
34 | " | 30 | " |
35 | 31 | ||
@@ -41,15 +37,13 @@ UBOOT_MACHINE = "am43xx_evm_config" | |||
41 | UBOOT_ENTRYPOINT = "0x80008000" | 37 | UBOOT_ENTRYPOINT = "0x80008000" |
42 | UBOOT_LOADADDRESS = "0x80008000" | 38 | UBOOT_LOADADDRESS = "0x80008000" |
43 | 39 | ||
44 | DEVICETREE_FILE = "${@(d.getVar('KERNEL_DEVICETREE') or "").replace("ti/omap/","")}" | ||
45 | |||
46 | # Generate an extlinux.conf file | 40 | # Generate an extlinux.conf file |
47 | UBOOT_EXTLINUX = "1" | 41 | UBOOT_EXTLINUX = "1" |
48 | UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}" | 42 | UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}" |
49 | UBOOT_EXTLINUX_BOOT_FILES = " \ | 43 | UBOOT_EXTLINUX_BOOT_FILES = " \ |
50 | extlinux.conf;extlinux/extlinux.conf \ | 44 | extlinux.conf;extlinux/extlinux.conf \ |
51 | ${KERNEL_IMAGETYPE} \ | 45 | ${KERNEL_IMAGETYPE} \ |
52 | ${DEVICETREE_FILE} \ | 46 | ${DEVICETREE_FILES} \ |
53 | " | 47 | " |
54 | 48 | ||
55 | SPL_BINARY = "MLO" | 49 | SPL_BINARY = "MLO" |
diff --git a/meta-ti-bsp/conf/machine/j7200-evm.conf b/meta-ti-bsp/conf/machine/j7200-evm.conf index dff1da69..f6d9ee39 100644 --- a/meta-ti-bsp/conf/machine/j7200-evm.conf +++ b/meta-ti-bsp/conf/machine/j7200-evm.conf | |||
@@ -6,8 +6,13 @@ require conf/machine/include/j7200.inc | |||
6 | 6 | ||
7 | KERNEL_DEVICETREE_PREFIX = "ti/k3-j7200" | 7 | KERNEL_DEVICETREE_PREFIX = "ti/k3-j7200" |
8 | 8 | ||
9 | KERNEL_DEVICETREE_DTBMERGE = " \ | ||
10 | ti/k3-j7200-evm.dtb \ | ||
11 | " | ||
12 | |||
9 | KERNEL_DEVICETREE = " \ | 13 | KERNEL_DEVICETREE = " \ |
10 | ti/k3-j7200-common-proc-board.dtb \ | 14 | ti/k3-j7200-common-proc-board.dtb \ |
15 | ti/k3-j7200-evm-quad-port-eth-exp.dtbo \ | ||
11 | " | 16 | " |
12 | 17 | ||
13 | UBOOT_MACHINE = "j7200_evm_a72_config" | 18 | UBOOT_MACHINE = "j7200_evm_a72_config" |
diff --git a/meta-ti-bsp/conf/machine/j721e-evm.conf b/meta-ti-bsp/conf/machine/j721e-evm.conf index 5e1f6dca..e9327f56 100644 --- a/meta-ti-bsp/conf/machine/j721e-evm.conf +++ b/meta-ti-bsp/conf/machine/j721e-evm.conf | |||
@@ -10,8 +10,18 @@ KERNEL_DEVICETREE_PREFIX = " \ | |||
10 | ti/k3-j7200-evm-mcspi-loopback \ | 10 | ti/k3-j7200-evm-mcspi-loopback \ |
11 | " | 11 | " |
12 | 12 | ||
13 | KERNEL_DEVICETREE_DTBMERGE = " \ | ||
14 | ti/k3-j721e-evm.dtb \ | ||
15 | " | ||
16 | |||
13 | KERNEL_DEVICETREE = " \ | 17 | KERNEL_DEVICETREE = " \ |
18 | ti/k3-j721e-beagleboneai64.dtb \ | ||
19 | ti/k3-j721e-common-proc-board-infotainment.dtbo \ | ||
14 | ti/k3-j721e-common-proc-board.dtb \ | 20 | ti/k3-j721e-common-proc-board.dtb \ |
21 | ti/k3-j721e-evm-gesi-exp-board.dtbo \ | ||
22 | ti/k3-j721e-evm-pcie0-ep.dtbo \ | ||
23 | ti/k3-j721e-evm-quad-port-eth-exp.dtbo \ | ||
24 | ti/k3-j721e-sk-csi2-dual-imx219.dtbo \ | ||
15 | ti/k3-j721e-sk.dtb \ | 25 | ti/k3-j721e-sk.dtb \ |
16 | " | 26 | " |
17 | 27 | ||
diff --git a/meta-ti-bsp/conf/machine/j721e-sk-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-sk-k3r5.conf new file mode 100644 index 00000000..45eaabb6 --- /dev/null +++ b/meta-ti-bsp/conf/machine/j721e-sk-k3r5.conf | |||
@@ -0,0 +1,11 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: J721e SK (R5F) | ||
3 | #@DESCRIPTION: Machine configuration for the TI J721e SK (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_sk_r5_defconfig" | ||
diff --git a/meta-ti-bsp/conf/machine/j721e-sk.conf b/meta-ti-bsp/conf/machine/j721e-sk.conf new file mode 100644 index 00000000..604f8930 --- /dev/null +++ b/meta-ti-bsp/conf/machine/j721e-sk.conf | |||
@@ -0,0 +1,17 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: J721e SK | ||
3 | #@DESCRIPTION: Machine configuration for the TI J721e SK | ||
4 | |||
5 | require conf/machine/include/j721e.inc | ||
6 | |||
7 | KERNEL_DEVICETREE_PREFIX = " \ | ||
8 | ti/k3-j721e-sk \ | ||
9 | ti/k3-fpdlink \ | ||
10 | " | ||
11 | |||
12 | KERNEL_DEVICETREE = " \ | ||
13 | ti/k3-j721e-sk-csi2-dual-imx219.dtbo \ | ||
14 | ti/k3-j721e-sk.dtb \ | ||
15 | " | ||
16 | |||
17 | UBOOT_MACHINE = "j721e_sk_a72_config" | ||
diff --git a/meta-ti-bsp/conf/machine/j721s2-evm.conf b/meta-ti-bsp/conf/machine/j721s2-evm.conf index c4e8af90..2d7e6ebe 100644 --- a/meta-ti-bsp/conf/machine/j721s2-evm.conf +++ b/meta-ti-bsp/conf/machine/j721s2-evm.conf | |||
@@ -15,8 +15,15 @@ KERNEL_DEVICETREE_PREFIX = " \ | |||
15 | ti/k3-v3link \ | 15 | ti/k3-v3link \ |
16 | " | 16 | " |
17 | 17 | ||
18 | KERNEL_DEVICETREE_DTBMERGE = " \ | ||
19 | ti/k3-j721s2-evm.dtb \ | ||
20 | " | ||
21 | |||
18 | KERNEL_DEVICETREE = " \ | 22 | KERNEL_DEVICETREE = " \ |
23 | ti/k3-am68-sk-base-board.dtb \ | ||
19 | ti/k3-j721s2-common-proc-board.dtb \ | 24 | ti/k3-j721s2-common-proc-board.dtb \ |
25 | ti/k3-j721s2-evm-gesi-exp-board.dtbo \ | ||
26 | ti/k3-j721s2-evm-pcie1-ep.dtbo \ | ||
20 | " | 27 | " |
21 | 28 | ||
22 | UBOOT_MACHINE = "j721s2_evm_a72_defconfig" | 29 | UBOOT_MACHINE = "j721s2_evm_a72_defconfig" |
diff --git a/meta-ti-bsp/conf/machine/j722s-evm.conf b/meta-ti-bsp/conf/machine/j722s-evm.conf index 74bcdfce..52a6cfbd 100644 --- a/meta-ti-bsp/conf/machine/j722s-evm.conf +++ b/meta-ti-bsp/conf/machine/j722s-evm.conf | |||
@@ -7,9 +7,12 @@ require conf/machine/include/j722s.inc | |||
7 | KERNEL_DEVICETREE_PREFIX = " \ | 7 | KERNEL_DEVICETREE_PREFIX = " \ |
8 | ti/k3-j722s \ | 8 | ti/k3-j722s \ |
9 | ti/k3-fpdlink \ | 9 | ti/k3-fpdlink \ |
10 | ti/k3-am625-sk-mcspi-loopback \ | ||
10 | ti/k3-v3link \ | 11 | ti/k3-v3link \ |
11 | " | 12 | " |
12 | 13 | ||
13 | KERNEL_DEVICETREE = "" | 14 | KERNEL_DEVICETREE = " \ |
15 | ti/k3-j722s-evm.dtb \ | ||
16 | " | ||
14 | 17 | ||
15 | UBOOT_MACHINE = "j722s_evm_a53_defconfig" | 18 | UBOOT_MACHINE = "j722s_evm_a53_defconfig" |
diff --git a/meta-ti-bsp/conf/machine/j742s2-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j742s2-evm-k3r5.conf new file mode 100644 index 00000000..41bf401e --- /dev/null +++ b/meta-ti-bsp/conf/machine/j742s2-evm-k3r5.conf | |||
@@ -0,0 +1,11 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: J742S2 EVM (R5F) | ||
3 | #@DESCRIPTION: Machine configuration for the TI J742S2 EVM (R5F core) | ||
4 | |||
5 | require conf/machine/include/k3r5.inc | ||
6 | |||
7 | SYSFW_SOC = "j742s2" | ||
8 | SYSFW_CONFIG = "evm" | ||
9 | SYSFW_SUFFIX = "hs-fs" | ||
10 | |||
11 | UBOOT_MACHINE = "j742s2_evm_r5_defconfig" | ||
diff --git a/meta-ti-bsp/conf/machine/j742s2-evm.conf b/meta-ti-bsp/conf/machine/j742s2-evm.conf new file mode 100644 index 00000000..110931cc --- /dev/null +++ b/meta-ti-bsp/conf/machine/j742s2-evm.conf | |||
@@ -0,0 +1,22 @@ | |||
1 | #@TYPE: Machine | ||
2 | #@NAME: J742S2 EVM | ||
3 | #@DESCRIPTION: Machine configuration for the TI J742S2 EVM | ||
4 | |||
5 | require conf/machine/include/j742s2.inc | ||
6 | |||
7 | TFA_K3_USART = "0x8" | ||
8 | OPTEE_K3_USART = "0x8" | ||
9 | |||
10 | KERNEL_DEVICETREE_PREFIX = " \ | ||
11 | ti/k3-j742s2 \ | ||
12 | ti/k3-j784s4 \ | ||
13 | ti/k3-fpdlink \ | ||
14 | ti/k3-j7200-evm-mcspi-loopback \ | ||
15 | ti/k3-j721s2-evm-csi2-ov5640 \ | ||
16 | ti/k3-j721s2-evm-fusion \ | ||
17 | ti/k3-v3link \ | ||
18 | " | ||
19 | |||
20 | KERNEL_DEVICETREE = "" | ||
21 | |||
22 | UBOOT_MACHINE = "j742s2_evm_a72_defconfig" | ||
diff --git a/meta-ti-bsp/conf/machine/j784s4-evm.conf b/meta-ti-bsp/conf/machine/j784s4-evm.conf index 6573e5c5..bf53b07c 100644 --- a/meta-ti-bsp/conf/machine/j784s4-evm.conf +++ b/meta-ti-bsp/conf/machine/j784s4-evm.conf | |||
@@ -11,10 +11,18 @@ KERNEL_DEVICETREE_PREFIX = " \ | |||
11 | ti/k3-j784s4 \ | 11 | ti/k3-j784s4 \ |
12 | ti/k3-fpdlink \ | 12 | ti/k3-fpdlink \ |
13 | ti/k3-j7200-evm-mcspi-loopback \ | 13 | ti/k3-j7200-evm-mcspi-loopback \ |
14 | ti/k3-j721s2-evm-csi2-ov5640 \ | ||
15 | ti/k3-j721s2-evm-fusion \ | ||
16 | ti/k3-j721s2-evm-ub954 \ | ||
17 | ti/k3-am69-sk \ | ||
14 | ti/k3-v3link \ | 18 | ti/k3-v3link \ |
15 | " | 19 | " |
16 | 20 | ||
17 | KERNEL_DEVICETREE = " \ | 21 | KERNEL_DEVICETREE = " \ |
22 | ti/k3-am69-sk.dtb \ | ||
23 | ti/k3-j784s4-evm-pcie0-pcie1-ep.dtbo \ | ||
24 | ti/k3-j784s4-evm-quad-port-eth-exp1.dtbo \ | ||
25 | ti/k3-j784s4-evm-usxgmii-exp1-exp2.dtbo \ | ||
18 | ti/k3-j784s4-evm.dtb \ | 26 | ti/k3-j784s4-evm.dtb \ |
19 | " | 27 | " |
20 | 28 | ||
diff --git a/meta-ti-bsp/conf/machine/omapl138-lcdk.conf b/meta-ti-bsp/conf/machine/omapl138-lcdk.conf index fdbaffae..458caaff 100644 --- a/meta-ti-bsp/conf/machine/omapl138-lcdk.conf +++ b/meta-ti-bsp/conf/machine/omapl138-lcdk.conf | |||
@@ -21,6 +21,6 @@ KERNEL_DEVICETREE_PREFIX = " \ | |||
21 | " | 21 | " |
22 | 22 | ||
23 | KERNEL_DEVICETREE = " \ | 23 | KERNEL_DEVICETREE = " \ |
24 | da850-evm.dtb \ | 24 | ti/davinci/da850-evm.dtb \ |
25 | da850-lcdk.dtb \ | 25 | ti/davinci/da850-lcdk.dtb \ |
26 | " | 26 | " |
diff --git a/meta-ti-bsp/dynamic-layers/clang-layer/recipes-graphics/mesa/mesa-pvr_%.bbappend b/meta-ti-bsp/dynamic-layers/clang-layer/recipes-graphics/mesa/mesa-pvr_%.bbappend deleted file mode 100644 index 7e5c36fd..00000000 --- a/meta-ti-bsp/dynamic-layers/clang-layer/recipes-graphics/mesa/mesa-pvr_%.bbappend +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | # This is a copy of meta-clang/recipes-graphics/mesa/mesa_%.bbappend required | ||
2 | # for llvmpipe when using pvr-mesa since we aren't caught by that glob. | ||
3 | |||
4 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | ||
5 | |||
6 | LDFLAGS:append:toolchain-clang = " -latomic -lm" | ||
7 | DEPENDS:append:toolchain-clang = " libatomic-ops" | ||
8 | |||
9 | EXTRA_OEMASON:append:toolchain-clang:x86 = " -Dasm=false" | ||
10 | EXTRA_OEMASON:append:toolchain-clang:x86-64 = " -Dasm=false" | ||
11 | |||
12 | export YOCTO_ALTERNATE_EXE_PATH = "${STAGING_LIBDIR}/llvm-config" | ||
13 | |||
14 | PACKAGECONFIG[gallium-llvm] = "-Dllvm=true -Dshared-llvm=true -Ddraw-use-llvm=true,-Dllvm=false,clang clang-native elfutils" | ||
diff --git a/meta-ti-bsp/dynamic-layers/openembedded-layer/recipes-bsp/u-boot/u-boot-ti-%.bbappend b/meta-ti-bsp/dynamic-layers/openembedded-layer/recipes-bsp/u-boot/u-boot-ti-%.bbappend new file mode 100644 index 00000000..0f91e37e --- /dev/null +++ b/meta-ti-bsp/dynamic-layers/openembedded-layer/recipes-bsp/u-boot/u-boot-ti-%.bbappend | |||
@@ -0,0 +1,5 @@ | |||
1 | |||
2 | inherit gitpkgv | ||
3 | PKGV = "${PV}${GITPKGV}" | ||
4 | UBOOT_VERSION = "${PKGV}-${PKGR}" | ||
5 | |||
diff --git a/meta-ti-bsp/licenses/INSIDE-Secure b/meta-ti-bsp/licenses/INSIDE-Secure new file mode 100644 index 00000000..3eb3a465 --- /dev/null +++ b/meta-ti-bsp/licenses/INSIDE-Secure | |||
@@ -0,0 +1,19 @@ | |||
1 | //--------------------------------------------------------------------- | ||
2 | //Inside Secure Copyright Notice for PKA Firmware | ||
3 | //--------------------------------------------------------------------- | ||
4 | |||
5 | /* */ | ||
6 | /* Copyright (c) 2004-2015 INSIDE Secure B.V. All Rights Reserved */ | ||
7 | /* */ | ||
8 | /* This confidential and proprietary software may be used only as authorized */ | ||
9 | /* by a licensing agreement from INSIDE Secure. */ | ||
10 | /* */ | ||
11 | /* The entire notice above must be reproduced on all authorized copies that */ | ||
12 | /* may only be made to the extent permitted by a licensing agreement from */ | ||
13 | /* INSIDE Secure. */ | ||
14 | /* */ | ||
15 | /* For more information or support, please go to our online support system at */ | ||
16 | /* https://essoemsupport.insidesecure.com. */ | ||
17 | /* In case you do not have an account for this system, please send an e-mail */ | ||
18 | /* to ESSEmbeddedHW-Support.com. */ | ||
19 | /*----------------------------------------------------------------------------*/ | ||
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 index ed1c7817..97363b2e 100644 --- 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 | |||
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENCE.cadence;md5=009f46816f6956cfb75ede13d3e1cee0" | |||
8 | PV = "${CADENCE_MHDP_FW_VERSION}" | 8 | PV = "${CADENCE_MHDP_FW_VERSION}" |
9 | PR = "${INC_PR}.0" | 9 | PR = "${INC_PR}.0" |
10 | 10 | ||
11 | COMPATIBLE_MACHINE = "j721e|j721s2|j784s4" | 11 | COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|j742s2" |
12 | 12 | ||
13 | TARGET = "mhdp8546.bin" | 13 | TARGET = "mhdp8546.bin" |
14 | 14 | ||
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 index ecdae123..db080c62 100644 --- 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 | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Cortex-M3 binary blob for suspend-resume" | 1 | SUMMARY = "Cortex-M3 binary blob for suspend-resume" |
2 | 2 | ||
3 | LICENSE = "TI-TSPA" | 3 | LICENSE = "TI-TSPA" |
4 | LIC_FILES_CHKSUM = "file://License.txt;md5=7bdc54a749ab7a7dea999d25d99a41b8" | 4 | LIC_FILES_CHKSUM = "file://License.txt;md5=7bdc54a749ab7a7dea999d25d99a41b8" |
@@ -11,10 +11,8 @@ BRANCH ?= "ti-v4.1.y" | |||
11 | 11 | ||
12 | SRC_URI = "git://git.ti.com/git/processor-firmware/ti-amx3-cm3-pm-firmware.git;protocol=https;branch=${BRANCH}" | 12 | SRC_URI = "git://git.ti.com/git/processor-firmware/ti-amx3-cm3-pm-firmware.git;protocol=https;branch=${BRANCH}" |
13 | 13 | ||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | do_compile() { | 14 | do_compile() { |
17 | make CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${SECURITY_NOPIE_CFLAGS} ${DEBUG_PREFIX_MAP}" | 15 | make CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc -std=gnu11 ${TOOLCHAIN_OPTIONS} ${SECURITY_NOPIE_CFLAGS} ${DEBUG_PREFIX_MAP}" |
18 | } | 16 | } |
19 | 17 | ||
20 | do_install() { | 18 | do_install() { |
diff --git a/meta-ti-bsp/recipes-bsp/cmem/cmem.inc b/meta-ti-bsp/recipes-bsp/cmem/cmem.inc deleted file mode 100644 index e8dbbe8f..00000000 --- a/meta-ti-bsp/recipes-bsp/cmem/cmem.inc +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:CMEM" | ||
2 | |||
3 | LICENSE = "GPL-2.0-only" | ||
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" | ||
11 | |||
12 | SRC_URI = "git://git.ti.com/git/ipc/ludev.git;protocol=https;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 deleted file mode 100644 index 2042b08a..00000000 --- a/meta-ti-bsp/recipes-bsp/cmem/cmem_git.bb +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | DESCRIPTION = "The cmem component supports contiguous memory allocation from userspace" | ||
2 | |||
3 | include cmem.inc | ||
4 | |||
5 | PR = "r0" | ||
6 | |||
7 | PACKAGES =+ "${PN}-test" | ||
8 | |||
9 | FILES:${PN}-test = "${bindir}/*" | ||
10 | |||
11 | inherit autotools | ||
diff --git a/meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb b/meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb index b28bea92..95bfd01a 100644 --- a/meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb +++ b/meta-ti-bsp/recipes-bsp/cnm-wave-fw/cnm-wave-fw_git.bb | |||
@@ -5,12 +5,12 @@ require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | |||
5 | inherit update-alternatives | 5 | inherit update-alternatives |
6 | 6 | ||
7 | LICENSE = "BSD-3-Clause" | 7 | LICENSE = "BSD-3-Clause" |
8 | LIC_FILES_CHKSUM = "file://LICENCE.cnm;md5=93b67e6bac7f8fec22b96b8ad0a1a9d0" | 8 | LIC_FILES_CHKSUM = "file://LICENCE.cnm;md5=df3992006621b797e36de43f36336e36" |
9 | 9 | ||
10 | PV = "${CNM_WAVE521_FW_VERSION}" | 10 | PV = "${CNM_WAVE521_FW_VERSION}" |
11 | PR = "${INC_PR}.1" | 11 | PR = "${INC_PR}.1" |
12 | 12 | ||
13 | COMPATIBLE_MACHINE = "j721s2|j784s4|j722s|am62axx|am62pxx" | 13 | COMPATIBLE_MACHINE = "j721s2|j784s4|j722s|j742s2|am62axx|am62pxx" |
14 | 14 | ||
15 | TARGET_WAVE521C = "wave521c_k3_codec_fw.bin" | 15 | TARGET_WAVE521C = "wave521c_k3_codec_fw.bin" |
16 | 16 | ||
@@ -27,3 +27,5 @@ do_install() { | |||
27 | install -d ${D}${nonarch_base_libdir}/firmware/cnm | 27 | install -d ${D}${nonarch_base_libdir}/firmware/cnm |
28 | install -m 0644 ${S}/cnm/${SOURCE_WAVE521C} ${D}${nonarch_base_libdir}/firmware/cnm/${TARGET_WAVE521C} | 28 | install -m 0644 ${S}/cnm/${SOURCE_WAVE521C} ${D}${nonarch_base_libdir}/firmware/cnm/${TARGET_WAVE521C} |
29 | } | 29 | } |
30 | |||
31 | RDEPENDS:${PN} += "ti-multimedia-udev" | ||
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 index 95ba1e2d..4e379c5d 100755 --- 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 | |||
@@ -13,8 +13,6 @@ SRCREV = "91f1628507bf7f8716f0bc7cafe88ad7f14c94f5" | |||
13 | 13 | ||
14 | SRC_URI = "git://git.ti.com/git/glsdk/ti-eth-fw.git;protocol=${PROTOCOL};branch=${BRANCH}" | 14 | SRC_URI = "git://git.ti.com/git/glsdk/ti-eth-fw.git;protocol=${PROTOCOL};branch=${BRANCH}" |
15 | 15 | ||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | CPSW9G_FW_DIR = "${S}/ethfw" | 16 | CPSW9G_FW_DIR = "${S}/ethfw" |
19 | CPSW9G_FW_FILENAME = "app_remoteswitchcfg_server_pdk_mem_map_strip.xer5f" | 17 | CPSW9G_FW_FILENAME = "app_remoteswitchcfg_server_pdk_mem_map_strip.xer5f" |
20 | 18 | ||
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 index a56810d4..3acdd130 100644 --- 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 | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Kernel drivers for the Vivante GC320 chipset found in TI SoCs" | 1 | SUMMARY = "Kernel drivers for the Vivante GC320 chipset found in TI SoCs" |
2 | HOMEPAGE = "https://git.ti.com/graphics/ti-gc320-driver" | 2 | HOMEPAGE = "https://git.ti.com/graphics/ti-gc320-driver" |
3 | LICENSE = "MIT | GPL-2.0-only" | 3 | LICENSE = "MIT | GPL-2.0-only" |
4 | LIC_FILES_CHKSUM = "file://../LICENSE;md5=78d9818a51b9a8e9bb89dea418bac297" | 4 | LIC_FILES_CHKSUM = "file://../LICENSE;md5=78d9818a51b9a8e9bb89dea418bac297" |
@@ -7,17 +7,14 @@ inherit module features_check | |||
7 | 7 | ||
8 | REQUIRED_MACHINE_FEATURES = "gc320" | 8 | REQUIRED_MACHINE_FEATURES = "gc320" |
9 | 9 | ||
10 | MACHINE_KERNEL_PR:append = "i" | ||
11 | PR = "${MACHINE_KERNEL_PR}" | ||
12 | |||
13 | # Need to branch out with ${PV} var | 10 | # Need to branch out with ${PV} var |
14 | BRANCH = "ti-${PV}-k5.10" | 11 | BRANCH = "ti-${PV}-k6.12" |
15 | 12 | ||
16 | SRCREV = "e2a10f31e255a65ec30a6e10b890e77d7e9cb107" | 13 | SRCREV = "83afddf9dbf6a8458267b4dae21ee35bfb11f3d1" |
17 | 14 | ||
18 | SRC_URI = "git://git.ti.com/git/graphics/ti-gc320-driver.git;protocol=https;branch=${BRANCH}" | 15 | SRC_URI = "git://git.ti.com/git/graphics/ti-gc320-driver.git;protocol=https;branch=${BRANCH}" |
19 | 16 | ||
20 | S = "${WORKDIR}/git/src" | 17 | S:append = "/src" |
21 | 18 | ||
22 | EXTRA_OEMAKE += "-f Kbuild AQROOT=${S} KERNEL_DIR=${STAGING_KERNEL_DIR} TOOLCHAIN_PATH=${TOOLCHAIN_PATH} CROSS_COMPILE=${TARGET_PREFIX} ARCH_TYPE=${TARGET_ARCH}" | 19 | EXTRA_OEMAKE += "-f Kbuild AQROOT=${S} KERNEL_DIR=${STAGING_KERNEL_DIR} TOOLCHAIN_PATH=${TOOLCHAIN_PATH} CROSS_COMPILE=${TARGET_PREFIX} ARCH_TYPE=${TARGET_ARCH}" |
23 | 20 | ||
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 index ee3a94dc..c43afb5b 100644 --- a/meta-ti-bsp/recipes-bsp/goodix-fw/goodix-fw_git.bb +++ b/meta-ti-bsp/recipes-bsp/goodix-fw/goodix-fw_git.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Goodix GT9271 config firmware" | 1 | SUMMARY = "Goodix GT9271 config firmware" |
2 | 2 | ||
3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | 3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc |
4 | 4 | ||
diff --git a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_24.2.6643903.bb index 02ec9fe9..ddb401a5 100644 --- a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_23.3.6512818.bb +++ b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_24.2.6643903.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Kernel drivers for the PowerVR Rogue GPU found in the TI SoCs" | 1 | SUMMARY = "Kernel drivers for the PowerVR Rogue GPU found in the TI SoCs" |
2 | HOMEPAGE = "http://git.ti.com/graphics/ti-img-rogue-driver" | 2 | HOMEPAGE = "http://git.ti.com/graphics/ti-img-rogue-driver" |
3 | LICENSE = "MIT | GPL-2.0-only" | 3 | LICENSE = "MIT | GPL-2.0-only" |
4 | LIC_FILES_CHKSUM = "file://README;beginline=14;endline=19;md5=0403c7dea01a2b8232261e805325fac2" | 4 | LIC_FILES_CHKSUM = "file://README;beginline=14;endline=19;md5=0403c7dea01a2b8232261e805325fac2" |
@@ -7,26 +7,22 @@ inherit module | |||
7 | 7 | ||
8 | PROVIDES = "virtual/gpudriver" | 8 | PROVIDES = "virtual/gpudriver" |
9 | 9 | ||
10 | MACHINE_KERNEL_PR:append = "b" | ||
11 | PR = "${MACHINE_KERNEL_PR}" | ||
12 | |||
13 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 10 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
14 | 11 | ||
15 | COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|am62xx|am62pxx|j722s" | 12 | COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|j742s2|am62xx|am62pxx|j722s" |
16 | 13 | ||
17 | DEPENDS = "virtual/kernel" | 14 | DEPENDS = "virtual/kernel" |
18 | 15 | ||
19 | BRANCH = "linuxws/scarthgap/k6.6/${PV}" | 16 | BRANCH = "linuxws/scarthgap/k6.12/${PV}" |
20 | 17 | ||
21 | SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-driver.git;protocol=https;branch=${BRANCH}" | 18 | SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-driver.git;protocol=https;branch=${BRANCH}" |
22 | 19 | ||
23 | S = "${WORKDIR}/git" | 20 | SRCREV = "8eaff654a8871118c08cfafe53795f57e3b6b396" |
24 | |||
25 | SRCREV = "2f409b4dd2540e896b54bff02219d4fc51129b81" | ||
26 | 21 | ||
27 | TARGET_PRODUCT:j721e = "j721e_linux" | 22 | TARGET_PRODUCT:j721e = "j721e_linux" |
28 | TARGET_PRODUCT:j721s2 = "j721s2_linux" | 23 | TARGET_PRODUCT:j721s2 = "j721s2_linux" |
29 | TARGET_PRODUCT:j784s4 = "j784s4_linux" | 24 | TARGET_PRODUCT:j784s4 = "j784s4_linux" |
25 | TARGET_PRODUCT:j742s2 = "j784s4_linux" | ||
30 | TARGET_PRODUCT:am62xx = "am62_linux" | 26 | TARGET_PRODUCT:am62xx = "am62_linux" |
31 | TARGET_PRODUCT:am62pxx = "am62p_linux" | 27 | TARGET_PRODUCT:am62pxx = "am62p_linux" |
32 | TARGET_PRODUCT:j722s = "j722s_linux" | 28 | TARGET_PRODUCT:j722s = "j722s_linux" |
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 index ca28ae76..f5cea270 100644 --- 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 | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the TI SoCs" | 1 | SUMMARY = "Kernel drivers for the PowerVR SGX chipset found in the TI SoCs" |
2 | HOMEPAGE = "https://git.ti.com/graphics/omap5-sgx-ddk-linux" | 2 | HOMEPAGE = "https://git.ti.com/graphics/omap5-sgx-ddk-linux" |
3 | LICENSE = "MIT | GPL-2.0-only" | 3 | LICENSE = "MIT | GPL-2.0-only" |
4 | LIC_FILES_CHKSUM = "file://GPL-COPYING;md5=60422928ba677faaa13d6ab5f5baaa1e" | 4 | LIC_FILES_CHKSUM = "file://GPL-COPYING;md5=60422928ba677faaa13d6ab5f5baaa1e" |
@@ -9,9 +9,6 @@ PROVIDES = "virtual/gpudriver" | |||
9 | 9 | ||
10 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|am65xx" | 10 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|am65xx" |
11 | 11 | ||
12 | MACHINE_KERNEL_PR:append = "x" | ||
13 | PR = "${MACHINE_KERNEL_PR}" | ||
14 | |||
15 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
16 | 13 | ||
17 | DEPENDS = "virtual/kernel" | 14 | DEPENDS = "virtual/kernel" |
@@ -20,9 +17,7 @@ BRANCH = "${PV}/mesa/k6.1" | |||
20 | 17 | ||
21 | SRC_URI = "git://git.ti.com/git/graphics/omap5-sgx-ddk-linux.git;protocol=https;branch=${BRANCH}" | 18 | SRC_URI = "git://git.ti.com/git/graphics/omap5-sgx-ddk-linux.git;protocol=https;branch=${BRANCH}" |
22 | 19 | ||
23 | S = "${WORKDIR}/git" | 20 | SRCREV = "9ae0fa4998b1c624408945e062bf8fb0ea7efb9d" |
24 | |||
25 | SRCREV = "2cb2c9609b7740cb2c348e669a96f26e1cc858da" | ||
26 | 21 | ||
27 | TARGET_PRODUCT:omap-a15 = "ti572x_linux" | 22 | TARGET_PRODUCT:omap-a15 = "ti572x_linux" |
28 | TARGET_PRODUCT:ti33x = "ti335x_linux" | 23 | TARGET_PRODUCT:ti33x = "ti335x_linux" |
@@ -34,6 +29,14 @@ PVR_WS = "lws-generic" | |||
34 | EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}" BUILD=${PVR_BUILD} \ | 29 | EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}" BUILD=${PVR_BUILD} \ |
35 | WINDOW_SYSTEM=${PVR_WS} PVR_BUILD_DIR=${TARGET_PRODUCT}' | 30 | WINDOW_SYSTEM=${PVR_WS} PVR_BUILD_DIR=${TARGET_PRODUCT}' |
36 | 31 | ||
32 | # There are useful flags here that are interpreted by the final kbuild pass | ||
33 | # These variables are not necessary when compiling outside of Yocto | ||
34 | export KERNEL_CC | ||
35 | export KERNEL_LD | ||
36 | export KERNEL_AR | ||
37 | export KERNEL_OBJCOPY | ||
38 | export KERNEL_STRIP | ||
39 | |||
37 | do_install() { | 40 | do_install() { |
38 | make -C ${STAGING_KERNEL_DIR} M=${B}/eurasiacon/binary_${TARGET_PRODUCT}_${PVR_WS}_${PVR_BUILD}/target_armhf/kbuild INSTALL_MOD_PATH=${D}${root_prefix} PREFIX=${STAGING_DIR_HOST} modules_install | 41 | make -C ${STAGING_KERNEL_DIR} M=${B}/eurasiacon/binary_${TARGET_PRODUCT}_${PVR_WS}_${PVR_BUILD}/target_armhf/kbuild INSTALL_MOD_PATH=${D}${root_prefix} PREFIX=${STAGING_DIR_HOST} modules_install |
39 | } | 42 | } |
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 index b85355e4..d3654ac5 100644 --- 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 | |||
@@ -23,6 +23,12 @@ TARGET = " \ | |||
23 | am65x-sr2-rtu1-prueth-fw.elf \ | 23 | am65x-sr2-rtu1-prueth-fw.elf \ |
24 | am65x-sr2-txpru0-prueth-fw.elf \ | 24 | am65x-sr2-txpru0-prueth-fw.elf \ |
25 | am65x-sr2-txpru1-prueth-fw.elf \ | 25 | am65x-sr2-txpru1-prueth-fw.elf \ |
26 | am64x-sr2-pru0-prueth-fw.elf \ | ||
27 | am64x-sr2-pru1-prueth-fw.elf \ | ||
28 | am64x-sr2-rtu0-prueth-fw.elf \ | ||
29 | am64x-sr2-rtu1-prueth-fw.elf \ | ||
30 | am64x-sr2-txpru0-prueth-fw.elf \ | ||
31 | am64x-sr2-txpru1-prueth-fw.elf \ | ||
26 | " | 32 | " |
27 | 33 | ||
28 | do_install() { | 34 | do_install() { |
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 index 3b06de9c..aa94f287 100644 --- 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 | |||
@@ -20,6 +20,12 @@ TARGET = " \ | |||
20 | am65x-sr2-rtu1-pruhsr-fw.elf \ | 20 | am65x-sr2-rtu1-pruhsr-fw.elf \ |
21 | am65x-sr2-txpru0-pruhsr-fw.elf \ | 21 | am65x-sr2-txpru0-pruhsr-fw.elf \ |
22 | am65x-sr2-txpru1-pruhsr-fw.elf \ | 22 | am65x-sr2-txpru1-pruhsr-fw.elf \ |
23 | am64x-sr2-pru0-pruhsr-fw.elf \ | ||
24 | am64x-sr2-pru1-pruhsr-fw.elf \ | ||
25 | am64x-sr2-rtu0-pruhsr-fw.elf \ | ||
26 | am64x-sr2-rtu1-pruhsr-fw.elf \ | ||
27 | am64x-sr2-txpru0-pruhsr-fw.elf \ | ||
28 | am64x-sr2-txpru1-pruhsr-fw.elf \ | ||
23 | " | 29 | " |
24 | 30 | ||
25 | do_install() { | 31 | do_install() { |
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 index 9d5136c2..4e1dd0e3 100644 --- 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 | |||
@@ -5,7 +5,7 @@ require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | |||
5 | PE = "1" | 5 | PE = "1" |
6 | PR = "${INC_PR}.0" | 6 | PR = "${INC_PR}.0" |
7 | 7 | ||
8 | COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx" | 8 | COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx|am64xx" |
9 | 9 | ||
10 | TARGET = " \ | 10 | TARGET = " \ |
11 | am335x-pru0-pruprp-fw.elf \ | 11 | am335x-pru0-pruprp-fw.elf \ |
@@ -14,6 +14,12 @@ TARGET = " \ | |||
14 | am437x-pru1-pruprp-fw.elf \ | 14 | am437x-pru1-pruprp-fw.elf \ |
15 | am57xx-pru0-pruprp-fw.elf \ | 15 | am57xx-pru0-pruprp-fw.elf \ |
16 | am57xx-pru1-pruprp-fw.elf \ | 16 | am57xx-pru1-pruprp-fw.elf \ |
17 | am64x-sr2-pru0-pruprp-fw.elf \ | ||
18 | am64x-sr2-pru1-pruprp-fw.elf \ | ||
19 | am64x-sr2-rtu0-pruprp-fw.elf \ | ||
20 | am64x-sr2-rtu1-pruprp-fw.elf \ | ||
21 | am64x-sr2-txpru0-pruprp-fw.elf \ | ||
22 | am64x-sr2-txpru1-pruprp-fw.elf \ | ||
17 | " | 23 | " |
18 | 24 | ||
19 | do_install() { | 25 | do_install() { |
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 index be407363..750183ba 100644 --- 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 | |||
@@ -19,6 +19,12 @@ TARGET = " \ | |||
19 | am65x-sr2-rtu1-prusw-fw.elf \ | 19 | am65x-sr2-rtu1-prusw-fw.elf \ |
20 | am65x-sr2-txpru0-prusw-fw.elf \ | 20 | am65x-sr2-txpru0-prusw-fw.elf \ |
21 | am65x-sr2-txpru1-prusw-fw.elf \ | 21 | am65x-sr2-txpru1-prusw-fw.elf \ |
22 | am64x-sr2-pru0-prusw-fw.elf \ | ||
23 | am64x-sr2-pru1-prusw-fw.elf \ | ||
24 | am64x-sr2-rtu0-prusw-fw.elf \ | ||
25 | am64x-sr2-rtu1-prusw-fw.elf \ | ||
26 | am64x-sr2-txpru0-prusw-fw.elf \ | ||
27 | am64x-sr2-txpru1-prusw-fw.elf \ | ||
22 | " | 28 | " |
23 | 29 | ||
24 | do_install() { | 30 | do_install() { |
diff --git a/meta-ti-bsp/recipes-bsp/ti-dac-fw/ti-dac-fw.bb b/meta-ti-bsp/recipes-bsp/ti-dac-fw/ti-dac-fw.bb new file mode 100644 index 00000000..8f68009d --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-dac-fw/ti-dac-fw.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | DESCRIPTION = "TI DAC TAD5212 config prebuild binary firmware" | ||
2 | |||
3 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
4 | |||
5 | PV = "${TAD5212_FW_VERSION}" | ||
6 | PR = "${INC_PR}.0" | ||
7 | |||
8 | COMPATIBLE_MACHINE = "am62dxx" | ||
9 | |||
10 | TAD5212_1DEV = "tad5212_01.bin" | ||
11 | TAD5212_4DEV = "tad5212_04.bin" | ||
12 | |||
13 | do_install() { | ||
14 | install -d ${D}${nonarch_base_libdir}/firmware | ||
15 | install -m 0644 ${S}/ti/tad5212/${TAD5212_1DEV} ${D}${nonarch_base_libdir}/firmware/ | ||
16 | install -m 0644 ${S}/ti/tad5212/${TAD5212_4DEV} ${D}${nonarch_base_libdir}/firmware/ | ||
17 | } | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-dm-fw/ti-dm-fw.bb b/meta-ti-bsp/recipes-bsp/ti-dm-fw/ti-dm-fw.bb index 1ad236ce..03016993 100644 --- a/meta-ti-bsp/recipes-bsp/ti-dm-fw/ti-dm-fw.bb +++ b/meta-ti-bsp/recipes-bsp/ti-dm-fw/ti-dm-fw.bb | |||
@@ -7,8 +7,6 @@ COMPATIBLE_MACHINE = "k3" | |||
7 | 7 | ||
8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 8 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
9 | 9 | ||
10 | INHIBIT_DEFAULT_DEPS = "1" | ||
11 | |||
12 | inherit deploy | 10 | inherit deploy |
13 | inherit update-alternatives | 11 | inherit update-alternatives |
14 | 12 | ||
@@ -26,10 +24,13 @@ PLAT_SFX:j7200 = "j7200" | |||
26 | PLAT_SFX:j721s2 = "j721s2" | 24 | PLAT_SFX:j721s2 = "j721s2" |
27 | PLAT_SFX:j784s4 = "j784s4" | 25 | PLAT_SFX:j784s4 = "j784s4" |
28 | PLAT_SFX:j722s = "j722s" | 26 | PLAT_SFX:j722s = "j722s" |
27 | PLAT_SFX:j742s2 = "j742s2" | ||
29 | PLAT_SFX:am65xx = "am65xx" | 28 | PLAT_SFX:am65xx = "am65xx" |
30 | PLAT_SFX:am64xx = "am64xx" | 29 | PLAT_SFX:am64xx = "am64xx" |
31 | PLAT_SFX:am62xx = "am62xx" | 30 | PLAT_SFX:am62xx = "am62xx" |
32 | PLAT_SFX:am62axx = "am62axx" | 31 | PLAT_SFX:am62axx = "am62axx" |
32 | PLAT_SFX:am62dxx = "am62axx" | ||
33 | PLAT_SFX:am62lxx = "am62lxx" | ||
33 | PLAT_SFX:am62pxx = "am62pxx" | 34 | PLAT_SFX:am62pxx = "am62pxx" |
34 | 35 | ||
35 | DM_FW_DIR = "ti-dm/${PLAT_SFX}" | 36 | DM_FW_DIR = "ti-dm/${PLAT_SFX}" |
@@ -37,6 +38,8 @@ DM_FW_DIR = "ti-dm/${PLAT_SFX}" | |||
37 | INSTALL_DM_FW_DIR = "${nonarch_base_libdir}/firmware/${DM_FW_DIR}" | 38 | INSTALL_DM_FW_DIR = "${nonarch_base_libdir}/firmware/${DM_FW_DIR}" |
38 | 39 | ||
39 | DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" | 40 | DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" |
41 | DM_FIRMWARE:am62axx = "dm_edgeai_mcu1_0_release_strip.out" | ||
42 | DM_FIRMWARE:am62pxx = "${@oe.utils.conditional('DISPLAY_CLUSTER_ENABLE', '1', 'dss_display_share.wkup-r5f0_0.release.strip.out', 'ipc_echo_testb_mcu1_0_release_strip.xer5f', d)}" | ||
40 | 43 | ||
41 | DM_FW_LIST = "" | 44 | DM_FW_LIST = "" |
42 | DM_FW_LIST:j721e = "${DM_FIRMWARE}" | 45 | DM_FW_LIST:j721e = "${DM_FIRMWARE}" |
@@ -44,10 +47,13 @@ DM_FW_LIST:j7200 = "${DM_FIRMWARE}" | |||
44 | DM_FW_LIST:j721s2 = "${DM_FIRMWARE}" | 47 | DM_FW_LIST:j721s2 = "${DM_FIRMWARE}" |
45 | DM_FW_LIST:j784s4 = "${DM_FIRMWARE}" | 48 | DM_FW_LIST:j784s4 = "${DM_FIRMWARE}" |
46 | DM_FW_LIST:j722s = "${DM_FIRMWARE}" | 49 | DM_FW_LIST:j722s = "${DM_FIRMWARE}" |
50 | DM_FW_LIST:j742s2 = "${DM_FIRMWARE}" | ||
47 | DM_FW_LIST:am65xx = "" | 51 | DM_FW_LIST:am65xx = "" |
48 | DM_FW_LIST:am64xx = "" | 52 | DM_FW_LIST:am64xx = "" |
49 | DM_FW_LIST:am62xx = "${DM_FIRMWARE}" | 53 | DM_FW_LIST:am62xx = "${DM_FIRMWARE}" |
50 | DM_FW_LIST:am62axx = "${DM_FIRMWARE}" | 54 | DM_FW_LIST:am62axx = "${DM_FIRMWARE}" |
55 | DM_FW_LIST:am62dxx = "${DM_FIRMWARE}" | ||
56 | DM_FW_LIST:am62lxx = "" | ||
51 | DM_FW_LIST:am62pxx = "${DM_FIRMWARE}" | 57 | DM_FW_LIST:am62pxx = "${DM_FIRMWARE}" |
52 | 58 | ||
53 | do_install() { | 59 | do_install() { |
@@ -81,11 +87,13 @@ do_deploy() { | |||
81 | ALTERNATIVE:${PN}:am62xx = "am62-main-r5f0_0-fw" | 87 | ALTERNATIVE:${PN}:am62xx = "am62-main-r5f0_0-fw" |
82 | ALTERNATIVE:${PN}:am62pxx = "am62p-main-r5f0_0-fw" | 88 | ALTERNATIVE:${PN}:am62pxx = "am62p-main-r5f0_0-fw" |
83 | ALTERNATIVE:${PN}:am62axx = "am62a-main-r5f0_0-fw" | 89 | ALTERNATIVE:${PN}:am62axx = "am62a-main-r5f0_0-fw" |
90 | ALTERNATIVE:${PN}:am62dxx = "am62a-main-r5f0_0-fw" | ||
84 | ALTERNATIVE:${PN}:j721e = "j7-mcu-r5f0_0-fw" | 91 | ALTERNATIVE:${PN}:j721e = "j7-mcu-r5f0_0-fw" |
85 | ALTERNATIVE:${PN}:j7200 = "j7200-mcu-r5f0_0-fw" | 92 | ALTERNATIVE:${PN}:j7200 = "j7200-mcu-r5f0_0-fw" |
86 | ALTERNATIVE:${PN}:j721s2 = "j721s2-mcu-r5f0_0-fw" | 93 | ALTERNATIVE:${PN}:j721s2 = "j721s2-mcu-r5f0_0-fw" |
87 | ALTERNATIVE:${PN}:j784s4 = "j784s4-mcu-r5f0_0-fw" | 94 | ALTERNATIVE:${PN}:j784s4 = "j784s4-mcu-r5f0_0-fw" |
88 | ALTERNATIVE:${PN}:j722s = "j722s-wkup-r5f0_0-fw" | 95 | ALTERNATIVE:${PN}:j722s = "j722s-wkup-r5f0_0-fw" |
96 | ALTERNATIVE:${PN}:j742s2 = "j742s2-mcu-r5f0_0-fw" | ||
89 | 97 | ||
90 | # Set up link names for the firmwares | 98 | # Set up link names for the firmwares |
91 | ALTERNATIVE_LINK_NAME[am62-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/am62-main-r5f0_0-fw" | 99 | ALTERNATIVE_LINK_NAME[am62-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/am62-main-r5f0_0-fw" |
@@ -96,6 +104,7 @@ ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j | |||
96 | ALTERNATIVE_LINK_NAME[j721s2-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j721s2-mcu-r5f0_0-fw" | 104 | ALTERNATIVE_LINK_NAME[j721s2-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j721s2-mcu-r5f0_0-fw" |
97 | ALTERNATIVE_LINK_NAME[j784s4-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j784s4-mcu-r5f0_0-fw" | 105 | ALTERNATIVE_LINK_NAME[j784s4-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j784s4-mcu-r5f0_0-fw" |
98 | ALTERNATIVE_LINK_NAME[j722s-wkup-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j722s-wkup-r5f0_0-fw" | 106 | ALTERNATIVE_LINK_NAME[j722s-wkup-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j722s-wkup-r5f0_0-fw" |
107 | ALTERNATIVE_LINK_NAME[j742s2-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j742s2-mcu-r5f0_0-fw" | ||
99 | 108 | ||
100 | # Create the firmware alternatives | 109 | # Create the firmware alternatives |
101 | ALTERNATIVE_TARGET[am62-main-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}" | 110 | ALTERNATIVE_TARGET[am62-main-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}" |
@@ -106,6 +115,7 @@ ALTERNATIVE_TARGET[j7200-mcu-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}" | |||
106 | ALTERNATIVE_TARGET[j721s2-mcu-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}" | 115 | ALTERNATIVE_TARGET[j721s2-mcu-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}" |
107 | ALTERNATIVE_TARGET[j784s4-mcu-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}" | 116 | ALTERNATIVE_TARGET[j784s4-mcu-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}" |
108 | ALTERNATIVE_TARGET[j722s-wkup-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}" | 117 | ALTERNATIVE_TARGET[j722s-wkup-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}" |
118 | ALTERNATIVE_TARGET[j742s2-mcu-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}" | ||
109 | 119 | ||
110 | ALTERNATIVE_PRIORITY = "10" | 120 | ALTERNATIVE_PRIORITY = "10" |
111 | 121 | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-eth-fw/ti-eth-fw.bb b/meta-ti-bsp/recipes-bsp/ti-eth-fw/ti-eth-fw.bb index 6bcc824b..04e43609 100644 --- a/meta-ti-bsp/recipes-bsp/ti-eth-fw/ti-eth-fw.bb +++ b/meta-ti-bsp/recipes-bsp/ti-eth-fw/ti-eth-fw.bb | |||
@@ -3,11 +3,7 @@ SUMMARY = "TI Ethernet prebuilt binary firmware images" | |||
3 | LICENSE = "TI-TFL" | 3 | LICENSE = "TI-TFL" |
4 | LIC_FILES_CHKSUM = "file://${THISDIR}/../../licenses/TI-TFL;md5=a1b59cb7ba626b9dbbcbf00f3fbc438a" | 4 | LIC_FILES_CHKSUM = "file://${THISDIR}/../../licenses/TI-TFL;md5=a1b59cb7ba626b9dbbcbf00f3fbc438a" |
5 | 5 | ||
6 | COMPATIBLE_MACHINE = "k3" | 6 | COMPATIBLE_MACHINE = "j721e|j7200|j784s4" |
7 | |||
8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
9 | |||
10 | INHIBIT_DEFAULT_DEPS = "1" | ||
11 | 7 | ||
12 | inherit update-alternatives | 8 | inherit update-alternatives |
13 | 9 | ||
@@ -19,64 +15,60 @@ PR = "${INC_PR}.0" | |||
19 | # Secure Build | 15 | # Secure Build |
20 | inherit ti-secdev | 16 | inherit ti-secdev |
21 | 17 | ||
22 | PLAT_SFX = "" | 18 | PACKAGES += " \ |
23 | PLAT_SFX:j721e = "j721e" | 19 | ${PN}-j721e \ |
24 | PLAT_SFX:j7200 = "j7200" | 20 | ${PN}-j7200 \ |
25 | PLAT_SFX:j721s2 = "j721s2" | 21 | ${PN}-j784s4 \ |
26 | PLAT_SFX:j784s4 = "j784s4" | 22 | " |
27 | PLAT_SFX:j722s = "j722s" | 23 | # Disable arch checking as firmware is likely to be a different arch from the Yocto build |
28 | PLAT_SFX:am65xx = "am65xx" | 24 | INSANE_SKIP:${PN}-j721e += "arch" |
29 | PLAT_SFX:am64xx = "am64xx" | 25 | INSANE_SKIP:${PN}-j7200 += "arch" |
30 | PLAT_SFX:am62xx = "am62xx" | 26 | INSANE_SKIP:${PN}-j784s4 += "arch" |
31 | PLAT_SFX:am62pxx = "am62pxx" | 27 | |
32 | PLAT_SFX:am62axx = "am62axx" | 28 | RDEPENDS:${PN} += " \ |
33 | 29 | ${PN}-j721e \ | |
34 | ETH_FW_DIR = "ti-eth/${PLAT_SFX}" | 30 | ${PN}-j7200 \ |
35 | 31 | ${PN}-j784s4 \ | |
36 | INSTALL_ETH_FW_DIR = "${nonarch_base_libdir}/firmware/${ETH_FW_DIR}" | 32 | " |
33 | |||
34 | PLATS = "\ | ||
35 | j721e \ | ||
36 | j7200 \ | ||
37 | j784s4 \ | ||
38 | " | ||
37 | 39 | ||
38 | ETH_FW = "app_remoteswitchcfg_server_strip.xer5f" | 40 | ETH_FW = "app_remoteswitchcfg_server_strip.xer5f" |
39 | 41 | ||
40 | ETH_FW_LIST = "" | ||
41 | ETH_FW_LIST:j721e = "${ETH_FW}" | ||
42 | ETH_FW_LIST:j7200 = "${ETH_FW}" | ||
43 | ETH_FW_LIST:j721s2 = "" | ||
44 | ETH_FW_LIST:j784s4 = "${ETH_FW}" | ||
45 | ETH_FW_LIST:j722s = "" | ||
46 | ETH_FW_LIST:am65xx = "" | ||
47 | ETH_FW_LIST:am64xx = "" | ||
48 | ETH_FW_LIST:am62xx = "" | ||
49 | ETH_FW_LIST:am62pxx = "" | ||
50 | ETH_FW_LIST:am62axx = "" | ||
51 | |||
52 | do_install() { | 42 | do_install() { |
53 | # ETH firmware | 43 | for PLAT in ${PLATS} |
54 | for FW_NAME in ${ETH_FW_LIST} | ||
55 | do | 44 | do |
56 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${S}/${ETH_FW_DIR}/${FW_NAME} ${S}/${ETH_FW_DIR}/${FW_NAME}.signed | 45 | # Sign ETH firmware |
57 | done | 46 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${S}/ti-eth/${PLAT}/${ETH_FW} ${S}/ti-eth/${PLAT}/${ETH_FW}.signed |
58 | 47 | ||
59 | # ETH firmware | 48 | # Install ETH firmware |
60 | install -d ${D}${INSTALL_ETH_FW_DIR} | 49 | install -d ${D}${nonarch_base_libdir}/firmware/ti-eth/${PLAT} |
61 | for FW_NAME in ${ETH_FW_LIST} | 50 | install -m 0644 ${S}/ti-eth/${PLAT}/${ETH_FW} ${D}${nonarch_base_libdir}/firmware/ti-eth/${PLAT} |
62 | do | 51 | install -m 0644 ${S}/ti-eth/${PLAT}/${ETH_FW}.signed ${D}${nonarch_base_libdir}/firmware/ti-eth/${PLAT} |
63 | install -m 0644 ${S}/${ETH_FW_DIR}/${FW_NAME} ${D}${INSTALL_ETH_FW_DIR} | ||
64 | install -m 0644 ${S}/${ETH_FW_DIR}/${FW_NAME}.signed ${D}${INSTALL_ETH_FW_DIR} | ||
65 | done | 52 | done |
66 | } | 53 | } |
67 | 54 | ||
55 | FILES:${PN} = "" | ||
56 | FILES:${PN}-j721e = "${nonarch_base_libdir}/firmware/ti-eth/j721e" | ||
57 | FILES:${PN}-j7200 = "${nonarch_base_libdir}/firmware/ti-eth/j7200" | ||
58 | FILES:${PN}-j784s4 = "${nonarch_base_libdir}/firmware/ti-eth/j784s4" | ||
59 | |||
68 | # Set up names for the firmwares | 60 | # Set up names for the firmwares |
69 | ALTERNATIVE:${PN}:j721e = "\ | 61 | ALTERNATIVE:${PN}-j721e = "\ |
70 | j7-main-r5f0_0-fw \ | 62 | j7-main-r5f0_0-fw \ |
71 | j7-main-r5f0_0-fw-sec \ | 63 | j7-main-r5f0_0-fw-sec \ |
72 | " | 64 | " |
73 | 65 | ||
74 | ALTERNATIVE:${PN}:j7200 = "\ | 66 | ALTERNATIVE:${PN}-j7200 = "\ |
75 | j7200-main-r5f0_0-fw \ | 67 | j7200-main-r5f0_0-fw \ |
76 | j7200-main-r5f0_0-fw-sec \ | 68 | j7200-main-r5f0_0-fw-sec \ |
77 | " | 69 | " |
78 | 70 | ||
79 | ALTERNATIVE:${PN}:j784s4 = "\ | 71 | ALTERNATIVE:${PN}-j784s4 = "\ |
80 | j784s4-main-r5f0_0-fw \ | 72 | j784s4-main-r5f0_0-fw \ |
81 | j784s4-main-r5f0_0-fw-sec \ | 73 | j784s4-main-r5f0_0-fw-sec \ |
82 | " | 74 | " |
@@ -92,13 +84,13 @@ ALTERNATIVE_LINK_NAME[j784s4-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmw | |||
92 | ALTERNATIVE_LINK_NAME[j784s4-main-r5f0_0-fw-sec] = "${nonarch_base_libdir}/firmware/j784s4-main-r5f0_0-fw-sec" | 84 | ALTERNATIVE_LINK_NAME[j784s4-main-r5f0_0-fw-sec] = "${nonarch_base_libdir}/firmware/j784s4-main-r5f0_0-fw-sec" |
93 | 85 | ||
94 | # Create the firmware alternatives | 86 | # Create the firmware alternatives |
95 | ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${INSTALL_ETH_FW_DIR}/${ETH_FW}" | 87 | ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/ti-eth/j721e/${ETH_FW}" |
96 | ALTERNATIVE_TARGET[j7-main-r5f0_0-fw-sec] = "${INSTALL_ETH_FW_DIR}/${ETH_FW}.signed" | 88 | ALTERNATIVE_TARGET[j7-main-r5f0_0-fw-sec] = "${nonarch_base_libdir}/firmware/ti-eth/j721e/${ETH_FW}.signed" |
97 | 89 | ||
98 | ALTERNATIVE_TARGET[j7200-main-r5f0_0-fw] = "${INSTALL_ETH_FW_DIR}/${ETH_FW}" | 90 | ALTERNATIVE_TARGET[j7200-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/ti-eth/j7200/${ETH_FW}" |
99 | ALTERNATIVE_TARGET[j7200-main-r5f0_0-fw-sec] = "${INSTALL_ETH_FW_DIR}/${ETH_FW}.signed" | 91 | ALTERNATIVE_TARGET[j7200-main-r5f0_0-fw-sec] = "${nonarch_base_libdir}/firmware/ti-eth/j7200/${ETH_FW}.signed" |
100 | 92 | ||
101 | ALTERNATIVE_TARGET[j784s4-main-r5f0_0-fw] = "${INSTALL_ETH_FW_DIR}/${ETH_FW}" | 93 | ALTERNATIVE_TARGET[j784s4-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/ti-eth/j784s4/${ETH_FW}" |
102 | ALTERNATIVE_TARGET[j784s4-main-r5f0_0-fw-sec] = "${INSTALL_ETH_FW_DIR}/${ETH_FW}.signed" | 94 | ALTERNATIVE_TARGET[j784s4-main-r5f0_0-fw-sec] = "${nonarch_base_libdir}/firmware/ti-eth/j784s4/${ETH_FW}.signed" |
103 | 95 | ||
104 | ALTERNATIVE_PRIORITY = "5" | 96 | ALTERNATIVE_PRIORITY = "5" |
diff --git a/meta-ti-bsp/recipes-bsp/ti-hsm-fw/ti-hsm-demo-fw_git.bb b/meta-ti-bsp/recipes-bsp/ti-hsm-fw/ti-hsm-demo-fw_git.bb new file mode 100644 index 00000000..f6a7b43f --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-hsm-fw/ti-hsm-demo-fw_git.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | SUMMARY = "TI HSM demo Firmware" | ||
2 | |||
3 | inherit deploy | ||
4 | |||
5 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
6 | |||
7 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
8 | |||
9 | PV = "${TI_HSM_DEMO_FW_VERSION}" | ||
10 | PR = "${INC_PR}.0" | ||
11 | |||
12 | COMPATIBLE_MACHINE = "j721s2|j784s4" | ||
13 | |||
14 | HSM_FW_SOC:j721s2 = "j721s2" | ||
15 | HSM_FW_SOC:j784s4 = "j784s4" | ||
16 | |||
17 | HSM_BINARY = "hsm-demo-firmware-${HSM_FW_SOC}*.bin" | ||
18 | |||
19 | do_deploy() { | ||
20 | install -d ${DEPLOYDIR}/ti-hsm | ||
21 | install -m 644 ${S}/ti-hsm/${HSM_BINARY} ${DEPLOYDIR}/ti-hsm | ||
22 | } | ||
23 | |||
24 | addtask deploy before do_build after do_compile | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/ti-vxe-vxd-driver_6.12.bb b/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/ti-vxe-vxd-driver_6.12.bb new file mode 100644 index 00000000..cdcf4af0 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-img-encode-decode/ti-vxe-vxd-driver_6.12.bb | |||
@@ -0,0 +1,23 @@ | |||
1 | SUMMARY = "Kernel drivers for Video Accelerators found in the J721E TI SoC" | ||
2 | LICENSE = "GPL-2.0-only" | ||
3 | LIC_FILES_CHKSUM = "file://README;beginline=11;endline=12;md5=ad10b552e357ac443ec5dd2e02912b1b" | ||
4 | |||
5 | inherit module | ||
6 | |||
7 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
8 | |||
9 | COMPATIBLE_MACHINE = "j721e" | ||
10 | |||
11 | DEPENDS += "virtual/kernel" | ||
12 | |||
13 | BRANCH = "scarthgap/k${PV}" | ||
14 | |||
15 | SRC_URI = "git://git.ti.com/git/multimedia/img-vxe-vxd.git;protocol=https;branch=${BRANCH}" | ||
16 | |||
17 | SRCREV = "0bcbb20af32ea13275b452f0e84f5a49966d0bf6" | ||
18 | |||
19 | TARGET_PRODUCT:j721e = "j721e_linux" | ||
20 | |||
21 | EXTRA_OEMAKE += 'KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"' | ||
22 | |||
23 | RDEPENDS:${PN} += "ti-multimedia-udev" | ||
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 index 29af4863..133876df 100644 --- 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 | |||
@@ -16,5 +16,3 @@ TARGET_CC_ARCH += "${LDFLAGS}" | |||
16 | 16 | ||
17 | BRANCH = "master" | 17 | BRANCH = "master" |
18 | SRC_URI = "git://git.ti.com/git/jacinto7_multimedia/viddec-test-app.git;protocol=https;branch=${BRANCH}" | 18 | SRC_URI = "git://git.ti.com/git/jacinto7_multimedia/viddec-test-app.git;protocol=https;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 index b674c764..41b4d2e4 100644 --- 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 | |||
@@ -16,5 +16,3 @@ TARGET_CC_ARCH += "${LDFLAGS}" | |||
16 | 16 | ||
17 | BRANCH = "master" | 17 | BRANCH = "master" |
18 | SRC_URI = "git://git.ti.com/git/jacinto7_multimedia/videnc-test-app.git;protocol=https;branch=${BRANCH}" | 18 | SRC_URI = "git://git.ti.com/git/jacinto7_multimedia/videnc-test-app.git;protocol=https;branch=${BRANCH}" |
19 | |||
20 | S = "${WORKDIR}/git" | ||
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 index 6f7e8813..b63b6027 100644 --- 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 | |||
@@ -9,22 +9,28 @@ INC_PR = "r4" | |||
9 | # Firmware versions | 9 | # Firmware versions |
10 | CORESDK_RTOS_VERSION = "08.02.00.04" | 10 | CORESDK_RTOS_VERSION = "08.02.00.04" |
11 | PRUETH_FW_AM65X_VERSION = "08.00.00.20" | 11 | PRUETH_FW_AM65X_VERSION = "08.00.00.20" |
12 | PRUETH_FW_AM65X_SR2_VERSION = "02.02.13.00" | 12 | PRUETH_FW_AM65X_SR2_VERSION = "02.02.15.04" |
13 | GOODIX_FW_VERSION = "1.0.0.0" | 13 | GOODIX_FW_VERSION = "1.0.0.0" |
14 | CADENCE_MHDP_FW_VERSION = "2.1.0" | 14 | CADENCE_MHDP_FW_VERSION = "2.1.0" |
15 | IMG_DEC_FW_VERSION = "1.0" | 15 | IMG_DEC_FW_VERSION = "1.0" |
16 | CNM_WAVE521_FW_VERSION = "1.0.3" | 16 | CNM_WAVE521_FW_VERSION = "1.0.8" |
17 | TI_DM_FW_VERSION = "09.02.04" | 17 | TI_DM_FW_VERSION = "11.01.09" |
18 | TI_SYSFW_VERSION = "09.02.07" | 18 | TI_SYSFW_VERSION = "11.01.05" |
19 | 19 | TI_HSM_DEMO_FW_VERSION = "11.00.09" | |
20 | TI_LINUX_FW_SRCREV ?= "58e3c376102aa8f42a0b1208afc91d75200b2d7b" | 20 | TAD5212_FW_VERSION = "1.0.0.0" |
21 | TI_PKA_FW_VERSION = "2.1.0" | ||
22 | TI_IPC_EXAMPLES_FW_VERSION = "3.52.00.01" | ||
23 | |||
24 | TI_LINUX_FW_SRCREV ?= "33b0116556a8a57e8e456a99e45e8736db7652f3" | ||
21 | SRCREV = "${TI_LINUX_FW_SRCREV}" | 25 | SRCREV = "${TI_LINUX_FW_SRCREV}" |
22 | 26 | ||
23 | BRANCH ?= "ti-linux-firmware" | 27 | BRANCH ?= "ti-linux-firmware" |
24 | 28 | ||
25 | SRC_URI = "git://git.ti.com/git/processor-firmware/ti-linux-firmware.git;protocol=https;branch=${BRANCH}" | 29 | TI_LINUX_FW_GIT_URI ?= "git://git.ti.com/git/processor-firmware/ti-linux-firmware.git" |
30 | TI_LINUX_FW_GIT_PROTOCOL ?= "https" | ||
31 | TI_LINUX_FW_GIT_BRANCH ?= "branch=${BRANCH}" | ||
26 | 32 | ||
27 | S = "${WORKDIR}/git" | 33 | SRC_URI = "${TI_LINUX_FW_GIT_URI};protocol=${TI_LINUX_FW_GIT_PROTOCOL};${TI_LINUX_FW_GIT_BRANCH}" |
28 | 34 | ||
29 | CLEANBROKEN = "1" | 35 | CLEANBROKEN = "1" |
30 | 36 | ||
@@ -38,6 +44,9 @@ INHIBIT_SYSROOT_STRIP = "1" | |||
38 | # This is used to prevent the build system from splitting out the firmware debug info into a separate file | 44 | # This is used to prevent the build system from splitting out the firmware debug info into a separate file |
39 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 45 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
40 | 46 | ||
47 | # Firmware here are prebuilt with no external dependencies | ||
48 | INHIBIT_DEFAULT_DEPS = "1" | ||
49 | |||
41 | # Disable arch checking as firmware is likely to be a different arch from the Yocto build | 50 | # Disable arch checking as firmware is likely to be a different arch from the Yocto build |
42 | INSANE_SKIP:${PN} += "arch" | 51 | INSANE_SKIP:${PN} += "arch" |
43 | 52 | ||
diff --git a/meta-ti-bsp/recipes-bsp/ti-pka-fw/ti-pka-fw_git.bb b/meta-ti-bsp/recipes-bsp/ti-pka-fw/ti-pka-fw_git.bb new file mode 100644 index 00000000..c3d2bce4 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-pka-fw/ti-pka-fw_git.bb | |||
@@ -0,0 +1,23 @@ | |||
1 | SUMMARY = "PKA prebuilt binary firmware image" | ||
2 | |||
3 | LICENSE = "TI-TFL & INSIDE-Secure" | ||
4 | LIC_FILES_CHKSUM = "file://LICENCE.pka_fw;md5=dc20391b287874f0dce069cf87917206" | ||
5 | |||
6 | COMPATIBLE_MACHINE = "k3" | ||
7 | |||
8 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
9 | |||
10 | PV = "${TI_PKA_FW_VERSION}" | ||
11 | PR = "${INC_PR}.0" | ||
12 | |||
13 | PKA_FW_DIR = "ti-pka" | ||
14 | |||
15 | INSTALL_PKA_FW_DIR = "${nonarch_base_libdir}/firmware" | ||
16 | |||
17 | PKA_FW_NAME = "eip29t2_2.1.0.bin" | ||
18 | |||
19 | do_install() { | ||
20 | # Install Firmware | ||
21 | install -d ${D}${INSTALL_PKA_FW_DIR} | ||
22 | install -m 0644 ${S}/${PKA_FW_DIR}/${PKA_FW_NAME} ${D}/${INSTALL_PKA_FW_DIR}/${PKA_FW_NAME} | ||
23 | } | ||
diff --git a/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb b/meta-ti-bsp/recipes-bsp/ti-rtos-fw/ti-rtos-echo-test-fw.bb index 7bf5030a..20c6b531 100644 --- a/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb +++ b/meta-ti-bsp/recipes-bsp/ti-rtos-fw/ti-rtos-echo-test-fw.bb | |||
@@ -7,8 +7,6 @@ COMPATIBLE_MACHINE = "k3" | |||
7 | 7 | ||
8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 8 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
9 | 9 | ||
10 | INHIBIT_DEFAULT_DEPS = "1" | ||
11 | |||
12 | inherit update-alternatives | 10 | inherit update-alternatives |
13 | 11 | ||
14 | PLAT_SFX = "" | 12 | PLAT_SFX = "" |
@@ -17,13 +15,14 @@ PLAT_SFX:j7200 = "j7200" | |||
17 | PLAT_SFX:j721s2 = "j721s2" | 15 | PLAT_SFX:j721s2 = "j721s2" |
18 | PLAT_SFX:j784s4 = "j784s4" | 16 | PLAT_SFX:j784s4 = "j784s4" |
19 | PLAT_SFX:j722s = "j722s" | 17 | PLAT_SFX:j722s = "j722s" |
18 | PLAT_SFX:j742s2 = "j742s2" | ||
20 | PLAT_SFX:am65xx = "am65xx" | 19 | PLAT_SFX:am65xx = "am65xx" |
21 | PLAT_SFX:am64xx = "am64xx" | 20 | PLAT_SFX:am64xx = "am64xx" |
22 | PLAT_SFX:am62xx = "am62xx" | 21 | PLAT_SFX:am62xx = "am62xx" |
23 | PLAT_SFX:am62axx = "am62axx" | 22 | PLAT_SFX:am62axx = "am62axx" |
23 | PLAT_SFX:am62dxx = "am62dxx" | ||
24 | PLAT_SFX:am62pxx = "am62pxx" | 24 | PLAT_SFX:am62pxx = "am62pxx" |
25 | 25 | ||
26 | FILESEXTRAPATHS:prepend := "${METATIBASE}/recipes-bsp/ti-sci-fw/files/:" | ||
27 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | 26 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc |
28 | 27 | ||
29 | PV = "${CORESDK_RTOS_VERSION}" | 28 | PV = "${CORESDK_RTOS_VERSION}" |
@@ -36,20 +35,21 @@ IPC_FW_DIR = "ti-ipc/${PLAT_SFX}" | |||
36 | 35 | ||
37 | INSTALL_IPC_FW_DIR = "${nonarch_base_libdir}/firmware/${IPC_FW_DIR}" | 36 | INSTALL_IPC_FW_DIR = "${nonarch_base_libdir}/firmware/${IPC_FW_DIR}" |
38 | 37 | ||
39 | MCU_1_0_FW = "ipc_echo_test_mcu1_0_release_strip.xer5f" | 38 | MCU_1_0_FW = "ipc_echo_test_mcu1_0_release_strip.xer5f" |
40 | MCU_1_1_FW = "ipc_echo_test_mcu1_1_release_strip.xer5f" | 39 | MCU_1_1_FW = "ipc_echo_test_mcu1_1_release_strip.xer5f" |
41 | MCU_2_0_FW = "ipc_echo_test_mcu2_0_release_strip.xer5f" | 40 | MCU_2_0_FW = "ipc_echo_test_mcu2_0_release_strip.xer5f" |
42 | MCU_2_1_FW = "ipc_echo_test_mcu2_1_release_strip.xer5f" | 41 | MCU_2_1_FW = "ipc_echo_test_mcu2_1_release_strip.xer5f" |
43 | MCU_3_0_FW = "ipc_echo_test_mcu3_0_release_strip.xer5f" | 42 | MCU_3_0_FW = "ipc_echo_test_mcu3_0_release_strip.xer5f" |
44 | MCU_3_1_FW = "ipc_echo_test_mcu3_1_release_strip.xer5f" | 43 | MCU_3_1_FW = "ipc_echo_test_mcu3_1_release_strip.xer5f" |
45 | MCU_4_0_FW = "ipc_echo_test_mcu4_0_release_strip.xer5f" | 44 | MCU_4_0_FW = "ipc_echo_test_mcu4_0_release_strip.xer5f" |
46 | MCU_4_1_FW = "ipc_echo_test_mcu4_1_release_strip.xer5f" | 45 | MCU_4_1_FW = "ipc_echo_test_mcu4_1_release_strip.xer5f" |
47 | C66_1_FW = "ipc_echo_test_c66xdsp_1_release_strip.xe66" | 46 | C66_1_FW = "ipc_echo_test_c66xdsp_1_release_strip.xe66" |
48 | C66_2_FW = "ipc_echo_test_c66xdsp_2_release_strip.xe66" | 47 | C66_2_FW = "ipc_echo_test_c66xdsp_2_release_strip.xe66" |
49 | C7X_1_FW = "ipc_echo_test_c7x_1_release_strip.xe71" | 48 | C7X_1_FW = "ipc_echo_test_c7x_1_release_strip.xe71" |
50 | C7X_2_FW = "ipc_echo_test_c7x_2_release_strip.xe71" | 49 | C7X_1_FW:am62axx = "dsp_edgeai_c7x_1_release_strip.out" |
51 | C7X_3_FW = "ipc_echo_test_c7x_3_release_strip.xe71" | 50 | C7X_2_FW = "ipc_echo_test_c7x_2_release_strip.xe71" |
52 | C7X_4_FW = "ipc_echo_test_c7x_4_release_strip.xe71" | 51 | C7X_3_FW = "ipc_echo_test_c7x_3_release_strip.xe71" |
52 | C7X_4_FW = "ipc_echo_test_c7x_4_release_strip.xe71" | ||
53 | 53 | ||
54 | IPC_FW_LIST = "" | 54 | IPC_FW_LIST = "" |
55 | IPC_FW_LIST:am65xx = "${MCU_1_0_FW} ${MCU_1_1_FW}" | 55 | IPC_FW_LIST:am65xx = "${MCU_1_0_FW} ${MCU_1_1_FW}" |
@@ -57,11 +57,13 @@ IPC_FW_LIST:am64xx = "${MCU_1_0_FW} ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW} $ | |||
57 | IPC_FW_LIST:am62xx = " ${MCU_2_0_FW}" | 57 | IPC_FW_LIST:am62xx = " ${MCU_2_0_FW}" |
58 | IPC_FW_LIST:am62pxx = " ${MCU_2_0_FW}" | 58 | IPC_FW_LIST:am62pxx = " ${MCU_2_0_FW}" |
59 | IPC_FW_LIST:am62axx = " ${MCU_2_0_FW} ${C7X_1_FW}" | 59 | IPC_FW_LIST:am62axx = " ${MCU_2_0_FW} ${C7X_1_FW}" |
60 | IPC_FW_LIST:am62dxx = " ${MCU_2_0_FW} ${C7X_1_FW}" | ||
60 | IPC_FW_LIST:j721e = " ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW} ${MCU_3_1_FW} ${C66_1_FW} ${C66_2_FW} ${C7X_1_FW}" | 61 | IPC_FW_LIST:j721e = " ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW} ${MCU_3_1_FW} ${C66_1_FW} ${C66_2_FW} ${C7X_1_FW}" |
61 | IPC_FW_LIST:j7200 = " ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW}" | 62 | IPC_FW_LIST:j7200 = " ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW}" |
62 | IPC_FW_LIST:j721s2 = " ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW} ${MCU_3_1_FW} ${C7X_1_FW} ${C7X_2_FW}" | 63 | IPC_FW_LIST:j721s2 = " ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW} ${MCU_3_1_FW} ${C7X_1_FW} ${C7X_2_FW}" |
63 | IPC_FW_LIST:j784s4 = " ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW} ${MCU_3_1_FW} ${MCU_4_0_FW} ${MCU_4_1_FW} ${C7X_1_FW} ${C7X_2_FW} ${C7X_3_FW} ${C7X_4_FW}" | 64 | IPC_FW_LIST:j784s4 = " ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW} ${MCU_3_1_FW} ${MCU_4_0_FW} ${MCU_4_1_FW} ${C7X_1_FW} ${C7X_2_FW} ${C7X_3_FW} ${C7X_4_FW}" |
64 | IPC_FW_LIST:j722s = " ${MCU_2_0_FW} ${MCU_3_0_FW} ${C7X_1_FW} ${C7X_2_FW}" | 65 | IPC_FW_LIST:j722s = " ${MCU_2_0_FW} ${MCU_3_0_FW} ${C7X_1_FW} ${C7X_2_FW}" |
66 | IPC_FW_LIST:j742s2 = " ${MCU_1_1_FW} ${MCU_2_0_FW} ${MCU_2_1_FW} ${MCU_3_0_FW} ${MCU_3_1_FW} ${MCU_4_0_FW} ${MCU_4_1_FW} ${C7X_1_FW} ${C7X_2_FW} ${C7X_3_FW}" | ||
65 | 67 | ||
66 | # Update the am64xx ipc binaries to be consistent with other platforms | 68 | # Update the am64xx ipc binaries to be consistent with other platforms |
67 | do_install:prepend:am64xx() { | 69 | do_install:prepend:am64xx() { |
@@ -95,14 +97,22 @@ do_install:prepend:am62axx() { | |||
95 | ) | 97 | ) |
96 | } | 98 | } |
97 | 99 | ||
100 | # Update the am62dxx ipc binaries to be consistent with other platforms | ||
101 | do_install:prepend:am62dxx() { | ||
102 | ( cd ${S}/${IPC_FW_DIR}; \ | ||
103 | ln -sf ipc_rpmsg_echo.mcu-r5f0_0.release.strip.out ${MCU_2_0_FW}; \ | ||
104 | ln -sf ipc_rpmsg_echo.c75ss0-0.release.strip.out ${C7X_1_FW}; \ | ||
105 | ) | ||
106 | } | ||
107 | |||
98 | do_install() { | 108 | do_install() { |
99 | # IPC Firmware | 109 | # Sign Firmware |
100 | for FW_NAME in ${IPC_FW_LIST} | 110 | for FW_NAME in ${IPC_FW_LIST} |
101 | do | 111 | do |
102 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${S}/${IPC_FW_DIR}/${FW_NAME} ${S}/${IPC_FW_DIR}/${FW_NAME}.signed | 112 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${S}/${IPC_FW_DIR}/${FW_NAME} ${S}/${IPC_FW_DIR}/${FW_NAME}.signed |
103 | done | 113 | done |
104 | 114 | ||
105 | # IPC Firmware | 115 | # Install Firmware |
106 | install -d ${D}${INSTALL_IPC_FW_DIR} | 116 | install -d ${D}${INSTALL_IPC_FW_DIR} |
107 | for FW_NAME in ${IPC_FW_LIST} | 117 | for FW_NAME in ${IPC_FW_LIST} |
108 | do | 118 | do |
@@ -127,7 +137,6 @@ ALTERNATIVE:${PN}:am64xx = "\ | |||
127 | 137 | ||
128 | ALTERNATIVE:${PN}:am62xx = "\ | 138 | ALTERNATIVE:${PN}:am62xx = "\ |
129 | am62-mcu-m4f0_0-fw am62-mcu-m4f0_0-fw-sec \ | 139 | am62-mcu-m4f0_0-fw am62-mcu-m4f0_0-fw-sec \ |
130 | am62-main-r5f0_0-fw am62-main-r5f0_0-fw-sec \ | ||
131 | " | 140 | " |
132 | 141 | ||
133 | ALTERNATIVE:${PN}:am62pxx = "\ | 142 | ALTERNATIVE:${PN}:am62pxx = "\ |
@@ -139,6 +148,11 @@ ALTERNATIVE:${PN}:am62axx = "\ | |||
139 | am62a-c71_0-fw am62a-c71_0-fw-sec \ | 148 | am62a-c71_0-fw am62a-c71_0-fw-sec \ |
140 | " | 149 | " |
141 | 150 | ||
151 | ALTERNATIVE:${PN}:am62dxx = "\ | ||
152 | am62d-mcu-r5f0_0-fw am62d-mcu-r5f0_0-fw-sec \ | ||
153 | am62d-c71_0-fw am62d-c71_0-fw-sec \ | ||
154 | " | ||
155 | |||
142 | ALTERNATIVE:${PN}:j721e = "\ | 156 | ALTERNATIVE:${PN}:j721e = "\ |
143 | j7-mcu-r5f0_1-fw j7-mcu-r5f0_1-fw-sec \ | 157 | j7-mcu-r5f0_1-fw j7-mcu-r5f0_1-fw-sec \ |
144 | j7-main-r5f0_0-fw j7-main-r5f0_0-fw-sec \ | 158 | j7-main-r5f0_0-fw j7-main-r5f0_0-fw-sec \ |
@@ -187,6 +201,19 @@ ALTERNATIVE:${PN}:j722s = "\ | |||
187 | j722s-c71_1-fw j722s-c71_1-fw-sec \ | 201 | j722s-c71_1-fw j722s-c71_1-fw-sec \ |
188 | " | 202 | " |
189 | 203 | ||
204 | ALTERNATIVE:${PN}:j742s2 = "\ | ||
205 | j742s2-mcu-r5f0_1-fw j742s2-mcu-r5f0_1-fw-sec \ | ||
206 | j742s2-main-r5f0_0-fw j742s2-main-r5f0_0-fw-sec \ | ||
207 | j742s2-main-r5f0_1-fw j742s2-main-r5f0_1-fw-sec \ | ||
208 | j742s2-main-r5f1_0-fw j742s2-main-r5f1_0-fw-sec \ | ||
209 | j742s2-main-r5f1_1-fw j742s2-main-r5f1_1-fw-sec \ | ||
210 | j742s2-main-r5f2_0-fw j742s2-main-r5f2_0-fw-sec \ | ||
211 | j742s2-main-r5f2_1-fw j742s2-main-r5f2_1-fw-sec \ | ||
212 | j742s2-c71_0-fw j742s2-c71_0-fw-sec \ | ||
213 | j742s2-c71_1-fw j742s2-c71_1-fw-sec \ | ||
214 | j742s2-c71_2-fw j742s2-c71_2-fw-sec \ | ||
215 | " | ||
216 | |||
190 | # Set up link names for the firmwares | 217 | # Set up link names for the firmwares |
191 | 218 | ||
192 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/am65x-mcu-r5f0_0-fw" | 219 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/am65x-mcu-r5f0_0-fw" |
@@ -207,8 +234,6 @@ ALTERNATIVE_LINK_NAME[am64-mcu-m4f0_0-fw-sec] = "${nonarch_base_libdir}/firmware | |||
207 | 234 | ||
208 | ALTERNATIVE_LINK_NAME[am62-mcu-m4f0_0-fw] = "${nonarch_base_libdir}/firmware/am62-mcu-m4f0_0-fw" | 235 | ALTERNATIVE_LINK_NAME[am62-mcu-m4f0_0-fw] = "${nonarch_base_libdir}/firmware/am62-mcu-m4f0_0-fw" |
209 | ALTERNATIVE_LINK_NAME[am62-mcu-m4f0_0-fw-sec] = "${nonarch_base_libdir}/firmware/am62-mcu-m4f0_0-fw-sec" | 236 | ALTERNATIVE_LINK_NAME[am62-mcu-m4f0_0-fw-sec] = "${nonarch_base_libdir}/firmware/am62-mcu-m4f0_0-fw-sec" |
210 | ALTERNATIVE_LINK_NAME[am62-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/am62-main-r5f0_0-fw" | ||
211 | ALTERNATIVE_LINK_NAME[am62-main-r5f0_0-fw-sec] = "${nonarch_base_libdir}/firmware/am62-main-r5f0_0-fw-sec" | ||
212 | 237 | ||
213 | ALTERNATIVE_LINK_NAME[am62p-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/am62p-mcu-r5f0_0-fw" | 238 | ALTERNATIVE_LINK_NAME[am62p-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/am62p-mcu-r5f0_0-fw" |
214 | ALTERNATIVE_LINK_NAME[am62p-mcu-r5f0_0-fw-sec] = "${nonarch_base_libdir}/firmware/am62p-mcu-r5f0_0-fw-sec" | 239 | ALTERNATIVE_LINK_NAME[am62p-mcu-r5f0_0-fw-sec] = "${nonarch_base_libdir}/firmware/am62p-mcu-r5f0_0-fw-sec" |
@@ -218,6 +243,11 @@ ALTERNATIVE_LINK_NAME[am62a-mcu-r5f0_0-fw-sec] = "${nonarch_base_libdir}/firmwar | |||
218 | ALTERNATIVE_LINK_NAME[am62a-c71_0-fw] = "${nonarch_base_libdir}/firmware/am62a-c71_0-fw" | 243 | ALTERNATIVE_LINK_NAME[am62a-c71_0-fw] = "${nonarch_base_libdir}/firmware/am62a-c71_0-fw" |
219 | ALTERNATIVE_LINK_NAME[am62a-c71_0-fw-sec] = "${nonarch_base_libdir}/firmware/am62a-c71_0-fw-sec" | 244 | ALTERNATIVE_LINK_NAME[am62a-c71_0-fw-sec] = "${nonarch_base_libdir}/firmware/am62a-c71_0-fw-sec" |
220 | 245 | ||
246 | ALTERNATIVE_LINK_NAME[am62d-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/am62d-mcu-r5f0_0-fw" | ||
247 | ALTERNATIVE_LINK_NAME[am62d-mcu-r5f0_0-fw-sec] = "${nonarch_base_libdir}/firmware/am62d-mcu-r5f0_0-fw-sec" | ||
248 | ALTERNATIVE_LINK_NAME[am62d-c71_0-fw] = "${nonarch_base_libdir}/firmware/am62d-c71_0-fw" | ||
249 | ALTERNATIVE_LINK_NAME[am62d-c71_0-fw-sec] = "${nonarch_base_libdir}/firmware/am62d-c71_0-fw-sec" | ||
250 | |||
221 | ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/j7-mcu-r5f0_1-fw" | 251 | ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/j7-mcu-r5f0_1-fw" |
222 | ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_1-fw-sec] = "${nonarch_base_libdir}/firmware/j7-mcu-r5f0_1-fw-sec" | 252 | ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_1-fw-sec] = "${nonarch_base_libdir}/firmware/j7-mcu-r5f0_1-fw-sec" |
223 | ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j7-main-r5f0_0-fw" | 253 | ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j7-main-r5f0_0-fw" |
@@ -289,6 +319,27 @@ ALTERNATIVE_LINK_NAME[j722s-c71_0-fw-sec] = "${nonarch_base_libdir}/firmware/j72 | |||
289 | ALTERNATIVE_LINK_NAME[j722s-c71_1-fw] = "${nonarch_base_libdir}/firmware/j722s-c71_1-fw" | 319 | ALTERNATIVE_LINK_NAME[j722s-c71_1-fw] = "${nonarch_base_libdir}/firmware/j722s-c71_1-fw" |
290 | ALTERNATIVE_LINK_NAME[j722s-c71_1-fw-sec] = "${nonarch_base_libdir}/firmware/j722s-c71_1-fw-sec" | 320 | ALTERNATIVE_LINK_NAME[j722s-c71_1-fw-sec] = "${nonarch_base_libdir}/firmware/j722s-c71_1-fw-sec" |
291 | 321 | ||
322 | ALTERNATIVE_LINK_NAME[j742s2-mcu-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/j742s2-mcu-r5f0_1-fw" | ||
323 | ALTERNATIVE_LINK_NAME[j742s2-mcu-r5f0_1-fw-sec] = "${nonarch_base_libdir}/firmware/j742s2-mcu-r5f0_1-fw-sec" | ||
324 | ALTERNATIVE_LINK_NAME[j742s2-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j742s2-main-r5f0_0-fw" | ||
325 | ALTERNATIVE_LINK_NAME[j742s2-main-r5f0_0-fw-sec] = "${nonarch_base_libdir}/firmware/j742s2-main-r5f0_0-fw-sec" | ||
326 | ALTERNATIVE_LINK_NAME[j742s2-main-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/j742s2-main-r5f0_1-fw" | ||
327 | ALTERNATIVE_LINK_NAME[j742s2-main-r5f0_1-fw-sec] = "${nonarch_base_libdir}/firmware/j742s2-main-r5f0_1-fw-sec" | ||
328 | ALTERNATIVE_LINK_NAME[j742s2-main-r5f1_0-fw] = "${nonarch_base_libdir}/firmware/j742s2-main-r5f1_0-fw" | ||
329 | ALTERNATIVE_LINK_NAME[j742s2-main-r5f1_0-fw-sec] = "${nonarch_base_libdir}/firmware/j742s2-main-r5f1_0-fw-sec" | ||
330 | ALTERNATIVE_LINK_NAME[j742s2-main-r5f1_1-fw] = "${nonarch_base_libdir}/firmware/j742s2-main-r5f1_1-fw" | ||
331 | ALTERNATIVE_LINK_NAME[j742s2-main-r5f1_1-fw-sec] = "${nonarch_base_libdir}/firmware/j742s2-main-r5f1_1-fw-sec" | ||
332 | ALTERNATIVE_LINK_NAME[j742s2-main-r5f2_0-fw] = "${nonarch_base_libdir}/firmware/j742s2-main-r5f2_0-fw" | ||
333 | ALTERNATIVE_LINK_NAME[j742s2-main-r5f2_0-fw-sec] = "${nonarch_base_libdir}/firmware/j742s2-main-r5f2_0-fw-sec" | ||
334 | ALTERNATIVE_LINK_NAME[j742s2-main-r5f2_1-fw] = "${nonarch_base_libdir}/firmware/j742s2-main-r5f2_1-fw" | ||
335 | ALTERNATIVE_LINK_NAME[j742s2-main-r5f2_1-fw-sec] = "${nonarch_base_libdir}/firmware/j742s2-main-r5f2_1-fw-sec" | ||
336 | ALTERNATIVE_LINK_NAME[j742s2-c71_0-fw] = "${nonarch_base_libdir}/firmware/j742s2-c71_0-fw" | ||
337 | ALTERNATIVE_LINK_NAME[j742s2-c71_0-fw-sec] = "${nonarch_base_libdir}/firmware/j742s2-c71_0-fw-sec" | ||
338 | ALTERNATIVE_LINK_NAME[j742s2-c71_1-fw] = "${nonarch_base_libdir}/firmware/j742s2-c71_1-fw" | ||
339 | ALTERNATIVE_LINK_NAME[j742s2-c71_1-fw-sec] = "${nonarch_base_libdir}/firmware/j742s2-c71_1-fw-sec" | ||
340 | ALTERNATIVE_LINK_NAME[j742s2-c71_2-fw] = "${nonarch_base_libdir}/firmware/j742s2-c71_2-fw" | ||
341 | ALTERNATIVE_LINK_NAME[j742s2-c71_2-fw-sec] = "${nonarch_base_libdir}/firmware/j742s2-c71_2-fw-sec" | ||
342 | |||
292 | # Create the firmware alternatives | 343 | # Create the firmware alternatives |
293 | 344 | ||
294 | ALTERNATIVE_TARGET[am65x-mcu-r5f0_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_1_0_FW}" | 345 | ALTERNATIVE_TARGET[am65x-mcu-r5f0_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_1_0_FW}" |
@@ -309,8 +360,6 @@ ALTERNATIVE_TARGET[am64-mcu-m4f0_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_3_0_FW | |||
309 | 360 | ||
310 | ALTERNATIVE_TARGET[am62-mcu-m4f0_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}" | 361 | ALTERNATIVE_TARGET[am62-mcu-m4f0_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}" |
311 | ALTERNATIVE_TARGET[am62-mcu-m4f0_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}.signed" | 362 | ALTERNATIVE_TARGET[am62-mcu-m4f0_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}.signed" |
312 | ALTERNATIVE_TARGET[am62-main-r5f0_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}" | ||
313 | ALTERNATIVE_TARGET[am62-main-r5f0_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}.signed" | ||
314 | 363 | ||
315 | ALTERNATIVE_TARGET[am62p-mcu-r5f0_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}" | 364 | ALTERNATIVE_TARGET[am62p-mcu-r5f0_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}" |
316 | ALTERNATIVE_TARGET[am62p-mcu-r5f0_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}.signed" | 365 | ALTERNATIVE_TARGET[am62p-mcu-r5f0_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}.signed" |
@@ -320,6 +369,11 @@ ALTERNATIVE_TARGET[am62a-mcu-r5f0_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_F | |||
320 | ALTERNATIVE_TARGET[am62a-c71_0-fw] = "${INSTALL_IPC_FW_DIR}/${C7X_1_FW}" | 369 | ALTERNATIVE_TARGET[am62a-c71_0-fw] = "${INSTALL_IPC_FW_DIR}/${C7X_1_FW}" |
321 | ALTERNATIVE_TARGET[am62a-c71_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${C7X_1_FW}.signed" | 370 | ALTERNATIVE_TARGET[am62a-c71_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${C7X_1_FW}.signed" |
322 | 371 | ||
372 | ALTERNATIVE_TARGET[am62d-mcu-r5f0_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}" | ||
373 | ALTERNATIVE_TARGET[am62d-mcu-r5f0_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}.signed" | ||
374 | ALTERNATIVE_TARGET[am62d-c71_0-fw] = "${INSTALL_IPC_FW_DIR}/${C7X_1_FW}" | ||
375 | ALTERNATIVE_TARGET[am62d-c71_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${C7X_1_FW}.signed" | ||
376 | |||
323 | ALTERNATIVE_TARGET[j7-mcu-r5f0_1-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_1_1_FW}" | 377 | ALTERNATIVE_TARGET[j7-mcu-r5f0_1-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_1_1_FW}" |
324 | ALTERNATIVE_TARGET[j7-mcu-r5f0_1-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_1_1_FW}.signed" | 378 | ALTERNATIVE_TARGET[j7-mcu-r5f0_1-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_1_1_FW}.signed" |
325 | ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}" | 379 | ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}" |
@@ -391,4 +445,25 @@ ALTERNATIVE_TARGET[j722s-c71_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${C7X_1_FW}.sign | |||
391 | ALTERNATIVE_TARGET[j722s-c71_1-fw] = "${INSTALL_IPC_FW_DIR}/${C7X_2_FW}" | 445 | ALTERNATIVE_TARGET[j722s-c71_1-fw] = "${INSTALL_IPC_FW_DIR}/${C7X_2_FW}" |
392 | ALTERNATIVE_TARGET[j722s-c71_1-fw-sec] = "${INSTALL_IPC_FW_DIR}/${C7X_2_FW}.signed" | 446 | ALTERNATIVE_TARGET[j722s-c71_1-fw-sec] = "${INSTALL_IPC_FW_DIR}/${C7X_2_FW}.signed" |
393 | 447 | ||
448 | ALTERNATIVE_TARGET[j742s2-mcu-r5f0_1-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_1_1_FW}" | ||
449 | ALTERNATIVE_TARGET[j742s2-mcu-r5f0_1-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_1_1_FW}.signed" | ||
450 | ALTERNATIVE_TARGET[j742s2-main-r5f0_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}" | ||
451 | ALTERNATIVE_TARGET[j742s2-main-r5f0_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}.signed" | ||
452 | ALTERNATIVE_TARGET[j742s2-main-r5f0_1-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_2_1_FW}" | ||
453 | ALTERNATIVE_TARGET[j742s2-main-r5f0_1-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_2_1_FW}.signed" | ||
454 | ALTERNATIVE_TARGET[j742s2-main-r5f1_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_3_0_FW}" | ||
455 | ALTERNATIVE_TARGET[j742s2-main-r5f1_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_3_0_FW}.signed" | ||
456 | ALTERNATIVE_TARGET[j742s2-main-r5f1_1-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_3_1_FW}" | ||
457 | ALTERNATIVE_TARGET[j742s2-main-r5f1_1-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_3_1_FW}.signed" | ||
458 | ALTERNATIVE_TARGET[j742s2-main-r5f2_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_4_0_FW}" | ||
459 | ALTERNATIVE_TARGET[j742s2-main-r5f2_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_4_0_FW}.signed" | ||
460 | ALTERNATIVE_TARGET[j742s2-main-r5f2_1-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_4_1_FW}" | ||
461 | ALTERNATIVE_TARGET[j742s2-main-r5f2_1-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_4_1_FW}.signed" | ||
462 | ALTERNATIVE_TARGET[j742s2-c71_0-fw] = "${INSTALL_IPC_FW_DIR}/${C7X_1_FW}" | ||
463 | ALTERNATIVE_TARGET[j742s2-c71_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${C7X_1_FW}.signed" | ||
464 | ALTERNATIVE_TARGET[j742s2-c71_1-fw] = "${INSTALL_IPC_FW_DIR}/${C7X_2_FW}" | ||
465 | ALTERNATIVE_TARGET[j742s2-c71_1-fw-sec] = "${INSTALL_IPC_FW_DIR}/${C7X_2_FW}.signed" | ||
466 | ALTERNATIVE_TARGET[j742s2-c71_2-fw] = "${INSTALL_IPC_FW_DIR}/${C7X_3_FW}" | ||
467 | ALTERNATIVE_TARGET[j742s2-c71_2-fw-sec] = "${INSTALL_IPC_FW_DIR}/${C7X_3_FW}.signed" | ||
468 | |||
394 | ALTERNATIVE_PRIORITY = "10" | 469 | ALTERNATIVE_PRIORITY = "10" |
diff --git a/meta-ti-bsp/recipes-bsp/ti-rtos-fw/ti-rtos-messageq-test-fw_git.bb b/meta-ti-bsp/recipes-bsp/ti-rtos-fw/ti-rtos-messageq-test-fw_git.bb new file mode 100644 index 00000000..980fe5cc --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-rtos-fw/ti-rtos-messageq-test-fw_git.bb | |||
@@ -0,0 +1,67 @@ | |||
1 | SUMMARY = "TI MessageQ prebuilt binary firmware images" | ||
2 | |||
3 | LICENSE = "TI-TFL" | ||
4 | LIC_FILES_CHKSUM = "file://${THISDIR}/../../licenses/TI-TFL;md5=a1b59cb7ba626b9dbbcbf00f3fbc438a" | ||
5 | |||
6 | COMPATIBLE_MACHINE = "am57xx" | ||
7 | |||
8 | inherit update-alternatives | ||
9 | inherit deploy | ||
10 | |||
11 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
12 | |||
13 | PV = "${TI_IPC_EXAMPLES_FW_VERSION}" | ||
14 | PR = "${INC_PR}.0" | ||
15 | |||
16 | INSTALL_IPC_FW_DIR = "${nonarch_base_libdir}/firmware/ipc" | ||
17 | |||
18 | IPU_1_FW = "messageq_server_ipu1.xem4" | ||
19 | IPU_2_FW = "messageq_server_ipu2.xem4" | ||
20 | DSP_1_FW = "messageq_server_dsp1.xe66" | ||
21 | DSP_2_FW = "messageq_server_dsp2.xe66" | ||
22 | |||
23 | IPU_1_FW_DIR = "ti_platforms_evmDRA7XX_ipu1" | ||
24 | IPU_2_FW_DIR = "ti_platforms_evmDRA7XX_ipu2" | ||
25 | DSP_1_FW_DIR = "ti_platforms_evmDRA7XX_dsp1" | ||
26 | DSP_2_FW_DIR = "ti_platforms_evmDRA7XX_dsp2" | ||
27 | |||
28 | do_install() { | ||
29 | # Install Firmware | ||
30 | install -d ${D}${INSTALL_IPC_FW_DIR}/${IPU_1_FW_DIR} | ||
31 | install -d ${D}${INSTALL_IPC_FW_DIR}/${IPU_2_FW_DIR} | ||
32 | install -d ${D}${INSTALL_IPC_FW_DIR}/${DSP_1_FW_DIR} | ||
33 | install -d ${D}${INSTALL_IPC_FW_DIR}/${DSP_2_FW_DIR} | ||
34 | |||
35 | install -m 0644 ${S}/ti-ipc/am57xx/${IPU_1_FW} ${D}${INSTALL_IPC_FW_DIR}/${IPU_1_FW_DIR} | ||
36 | install -m 0644 ${S}/ti-ipc/am57xx/${IPU_2_FW} ${D}${INSTALL_IPC_FW_DIR}/${IPU_2_FW_DIR} | ||
37 | install -m 0644 ${S}/ti-ipc/am57xx/${DSP_1_FW} ${D}${INSTALL_IPC_FW_DIR}/${DSP_1_FW_DIR} | ||
38 | install -m 0644 ${S}/ti-ipc/am57xx/${DSP_2_FW} ${D}${INSTALL_IPC_FW_DIR}/${DSP_2_FW_DIR} | ||
39 | } | ||
40 | |||
41 | do_deploy() { | ||
42 | install -d ${DEPLOYDIR}/ipc | ||
43 | install -m 0644 ${S}/ti-ipc/am57xx/${IPU_1_FW} ${DEPLOYDIR}/ipc/dra7-ipu1-fw.xem4 | ||
44 | } | ||
45 | |||
46 | addtask deploy after do_install | ||
47 | |||
48 | # Set up names for the firmwares | ||
49 | |||
50 | ALTERNATIVE:${PN} = "\ | ||
51 | dra7-ipu1-fw.xem4 \ | ||
52 | dra7-ipu2-fw.xem4 \ | ||
53 | dra7-dsp1-fw.xe66 \ | ||
54 | dra7-dsp2-fw.xe66 \ | ||
55 | " | ||
56 | |||
57 | ALTERNATIVE_LINK_NAME[dra7-ipu1-fw.xem4] = "${nonarch_base_libdir}/firmware/dra7-ipu1-fw.xem4" | ||
58 | ALTERNATIVE_LINK_NAME[dra7-ipu2-fw.xem4] = "${nonarch_base_libdir}/firmware/dra7-ipu2-fw.xem4" | ||
59 | ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = "${nonarch_base_libdir}/firmware/dra7-dsp1-fw.xe66" | ||
60 | ALTERNATIVE_LINK_NAME[dra7-dsp2-fw.xe66] = "${nonarch_base_libdir}/firmware/dra7-dsp2-fw.xe66" | ||
61 | |||
62 | ALTERNATIVE_TARGET[dra7-ipu1-fw.xem4] = "${INSTALL_IPC_FW_DIR}/${IPU_1_FW_DIR}/${IPU_1_FW}" | ||
63 | ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${INSTALL_IPC_FW_DIR}/${IPU_2_FW_DIR}/${IPU_2_FW}" | ||
64 | ALTERNATIVE_TARGET[dra7-dsp1-fw.xe66] = "${INSTALL_IPC_FW_DIR}/${DSP_1_FW_DIR}/${DSP_1_FW}" | ||
65 | ALTERNATIVE_TARGET[dra7-dsp2-fw.xe66] = "${INSTALL_IPC_FW_DIR}/${DSP_2_FW_DIR}/${DSP_2_FW}" | ||
66 | |||
67 | ALTERNATIVE_PRIORITY = "30" | ||
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 index 12292c88..0d724862 100644 --- 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 | |||
@@ -26,4 +26,10 @@ do_deploy:k3r5() { | |||
26 | install -m 644 ${S}/ti-sysfw/ti-fs-stub-firmware-* ${DEPLOYDIR}/ti-sysfw | 26 | install -m 644 ${S}/ti-sysfw/ti-fs-stub-firmware-* ${DEPLOYDIR}/ti-sysfw |
27 | } | 27 | } |
28 | 28 | ||
29 | do_deploy:am62lxx(){ | ||
30 | install -d ${DEPLOYDIR}/ti-sysfw | ||
31 | install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw | ||
32 | install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw | ||
33 | } | ||
34 | |||
29 | addtask deploy before do_build after do_compile | 35 | addtask deploy before do_build after do_compile |
diff --git a/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc b/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc index 291259c0..348242bb 100644 --- a/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc +++ b/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc | |||
@@ -1,10 +1,30 @@ | |||
1 | PV:k3 = "2.10+git" | 1 | # NOTE: This .inc file with customizations only gets included for K3 platforms |
2 | SRCREV_tfa:k3 = "00f1ec6b8740ccd403e641131e294aabacf2a48b" | 2 | |
3 | SRC_URI:k3 = "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;protocol=https;name=tfa;branch=master" | 3 | PV = "2.13+git" |
4 | COMPATIBLE_MACHINE:k3 = "k3" | 4 | |
5 | TFA_BUILD_TARGET:k3 = "all" | 5 | LIC_FILES_CHKSUM = "file://docs/license.rst;md5=6ed7bace7b0bc63021c6eba7b524039e" |
6 | TFA_INSTALL_TARGET:k3 = "bl31" | 6 | SRCREV_tfa = "e0c4d3903b382bf34f552af53e6d955fae5283ab" |
7 | TFA_SPD:k3 = "opteed" | 7 | SRC_URI_TRUSTED_FIRMWARE_A = "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;protocol=https" |
8 | 8 | SRCBRANCH = "master" | |
9 | EXTRA_OEMAKE:append:k3 = "${@ ' K3_USART=' + d.getVar('TFA_K3_USART') if d.getVar('TFA_K3_USART') else ''}" | 9 | |
10 | EXTRA_OEMAKE:append:k3 = "${@ ' K3_PM_SYSTEM_SUSPEND=' + d.getVar('TFA_K3_SYSTEM_SUSPEND') if d.getVar('TFA_K3_SYSTEM_SUSPEND') else ''}" | 10 | LIC_FILES_CHKSUM:am62lxx = "file://docs/license.rst;md5=1118e32884721c0be33267bd7ae11130" |
11 | SRCREV_tfa:am62lxx = "82f64bf11853cd5bcff9cd03c315415fe2cccf16" | ||
12 | SRC_URI_TRUSTED_FIRMWARE_A:am62lxx = "git://github.com/TexasInstruments/arm-trusted-firmware.git;protocol=https" | ||
13 | SRCBRANCH:am62lxx = "ti-master" | ||
14 | |||
15 | SRC_URI = "${SRC_URI_TRUSTED_FIRMWARE_A};name=tfa;branch=${SRCBRANCH}" | ||
16 | |||
17 | COMPATIBLE_MACHINE = "k3" | ||
18 | |||
19 | TFA_BUILD_TARGET = "all" | ||
20 | TFA_INSTALL_TARGET = "bl31" | ||
21 | TFA_SPD = "opteed" | ||
22 | |||
23 | # For am62lxx, install bl1 & bl31 using TFA_INSTALL_TARGET | ||
24 | TFA_INSTALL_TARGET:am62lxx = "bl31 bl1" | ||
25 | |||
26 | EXTRA_OEMAKE += "${@ 'K3_USART=' + d.getVar('TFA_K3_USART') if d.getVar('TFA_K3_USART') else ''}" | ||
27 | EXTRA_OEMAKE += "${@ 'BL32_BASE=' + d.getVar('TFA_K3_BL32_BASE') if d.getVar('TFA_K3_BL32_BASE') else ''}" | ||
28 | EXTRA_OEMAKE += "${@ 'PRELOADED_BL33_BASE=' + d.getVar('TFA_K3_PRELOADED_BL33') if d.getVar('TFA_K3_PRELOADED_BL33') else ''}" | ||
29 | EXTRA_OEMAKE += "${@ 'K3_PM_SYSTEM_SUSPEND=' + d.getVar('TFA_K3_SYSTEM_SUSPEND') if d.getVar('TFA_K3_SYSTEM_SUSPEND') else ''}" | ||
30 | EXTRA_OEMAKE:append:ti-falcon = " PRELOADED_BL33_BASE=0x82000000 K3_HW_CONFIG_BASE=0x88000000" | ||
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/ti-extras.inc b/meta-ti-bsp/recipes-bsp/u-boot/ti-extras.inc index d32c6529..e334ada0 100644 --- a/meta-ti-bsp/recipes-bsp/u-boot/ti-extras.inc +++ b/meta-ti-bsp/recipes-bsp/u-boot/ti-extras.inc | |||
@@ -1,12 +1,12 @@ | |||
1 | 1 | ||
2 | # This will have priority over generic uboot path | 2 | # This will have priority over generic uboot path |
3 | 3 | ||
4 | COMPATIBLE_MACHINE = "am62xx|am62pxx" | 4 | COMPATIBLE_MACHINE = "am62xx|am62pxx|am62lxx" |
5 | 5 | ||
6 | BRANCH = "ti-u-boot-2023.04" | 6 | BRANCH = "ti-u-boot-2025.01" |
7 | BRANCH:tie-jailhouse = "ti-u-boot-2023.04-jailhouse" | 7 | BRANCH:tie-jailhouse = "ti-u-boot-2025.01-jailhouse" |
8 | 8 | ||
9 | SRCREV = "b0d868ee086eb5c96a3d32f72a7cb9670abf5b90" | 9 | SRCREV = "e718bbcec3ebf663c021839753034a224be4cc53" |
10 | SRCREV:tie-jailhouse = "765cab112d16fcf68a3266738073663dae67a55d" | 10 | SRCREV:tie-jailhouse = "e718bbcec3ebf663c021839753034a224be4cc53" |
11 | 11 | ||
12 | UBOOT_GIT_URI = "git://git.ti.com/git/processor-sdk/u-boot.git" | 12 | UBOOT_GIT_URI = "git://git.ti.com/git/processor-sdk/u-boot.git" |
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb deleted file mode 100644 index 13286564..00000000 --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | require u-boot-ti.inc | ||
2 | |||
3 | SUMMARY = "BeagleBoard.org U-Boot" | ||
4 | |||
5 | COMPATIBLE_MACHINE = "beagle.*" | ||
6 | |||
7 | PV = "2023.04" | ||
8 | |||
9 | UBOOT_GIT_URI = "git://github.com/beagleboard/u-boot.git" | ||
10 | UBOOT_GIT_PROTOCOL = "https" | ||
11 | BRANCH = "v2023.04-ti-09.01.00.008" | ||
12 | SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb" | ||
13 | |||
14 | BRANCH:beagleplay = "v2023.04-ti-09.01.00.008-BeaglePlay" | ||
15 | BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.01.00.008-BeaglePlay" | ||
16 | SRCREV:beagleplay = "43791d945f4e5c25bcc19b9c778e8f9d194dc16e" | ||
17 | SRCREV:beagleplay-k3r5 = "43791d945f4e5c25bcc19b9c778e8f9d194dc16e" | ||
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 index f497054c..d27ca9e5 100644 --- 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 | |||
@@ -1,16 +1,9 @@ | |||
1 | require u-boot-ti.inc | 1 | require u-boot-ti.inc |
2 | 2 | ||
3 | PR = "r0" | 3 | SUMMARY = "Mainline U-Boot for TI devices" |
4 | 4 | ||
5 | PV = "2024.01" | 5 | PV = "2025.07" |
6 | 6 | ||
7 | # For the un-initiated: | ||
8 | # The actual URL you'd use with a git clone for example would be: | ||
9 | # https://source.denx.de/u-boot/u-boot.git/ | ||
10 | # However, in the context of OE, we have to explicitly split things up: | ||
11 | # a) we want it to use git fetcher - hence git:// prefix in GIT_URI (if we | ||
12 | # used https here, we'd endup attempting wget instead of git) | ||
13 | # b) and we want git fetcher to use https protocol, hence GIT_PROTOCOL as https | ||
14 | UBOOT_GIT_URI = "git://source.denx.de/u-boot/u-boot.git" | 7 | UBOOT_GIT_URI = "git://source.denx.de/u-boot/u-boot.git" |
15 | UBOOT_GIT_PROTOCOL = "https" | 8 | |
16 | SRCREV = "866ca972d6c3cabeaf6dbac431e8e08bb30b3c8e" | 9 | SRCREV = "e37de002fac3895e8d0b60ae2015e17bb33e2b5b" |
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-next_git.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-next_git.bb new file mode 100644 index 00000000..9bdedfa3 --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-next_git.bb | |||
@@ -0,0 +1,5 @@ | |||
1 | require u-boot-ti-mainline_git.bb | ||
2 | |||
3 | SUMMARY = "U-Boot master-next for TI devices" | ||
4 | |||
5 | BRANCH = "master-next" | ||
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.04.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.04.bb index bafd4f19..e0371bfa 100644 --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.04.bb +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.04.bb | |||
@@ -1,11 +1,11 @@ | |||
1 | require u-boot-ti.inc | 1 | require u-boot-ti.inc |
2 | 2 | ||
3 | DEFAULT_PREFERENCE = "-1" | ||
4 | |||
5 | include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} | 3 | include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} |
6 | 4 | ||
7 | PR = "r0" | 5 | PR = "r0" |
8 | 6 | ||
9 | BRANCH = "ti-u-boot-2024.04" | 7 | BRANCH = "ti-u-boot-2024.04" |
10 | 8 | ||
11 | SRCREV = "25049ad560826f7dc1c4740883b0016014a59789" | 9 | SRC_URI += "file://0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch" |
10 | |||
11 | SRCREV = "29d0c23d67ee7b88e46fe1753cd020e2b04c2ef6" | ||
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2023.04.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2025.01.bb index f2da156b..ab19988d 100644 --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2023.04.bb +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2025.01.bb | |||
@@ -4,6 +4,6 @@ include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} | |||
4 | 4 | ||
5 | PR = "r0" | 5 | PR = "r0" |
6 | 6 | ||
7 | BRANCH = "ti-u-boot-2023.04" | 7 | BRANCH = "ti-u-boot-2025.01" |
8 | 8 | ||
9 | SRCREV = "f9b966c674731a1a29a20a8e143c61d4e046f13c" | 9 | SRCREV = "f3f8c664b3001e40cbdf46687732b2c37e1b6b33" |
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 index bad8371f..669db413 100644 --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | |||
@@ -14,6 +14,8 @@ require u-boot-mergeconfig.inc | |||
14 | 14 | ||
15 | FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot:" | 15 | FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot:" |
16 | 16 | ||
17 | FILES:${PN}-falcon = "boot/tifalcon.bin" | ||
18 | |||
17 | SUMMARY = "u-boot bootloader for TI devices" | 19 | SUMMARY = "u-boot bootloader for TI devices" |
18 | 20 | ||
19 | LICENSE = "GPL-2.0-or-later" | 21 | LICENSE = "GPL-2.0-or-later" |
@@ -21,11 +23,15 @@ LIC_FILES_CHKSUM = "file://Licenses/README;md5=2ca5f2c35c8cc335f0a19756634782f1" | |||
21 | 23 | ||
22 | BRANCH ?= "master" | 24 | BRANCH ?= "master" |
23 | UBOOT_GIT_URI ?= "git://git.ti.com/git/ti-u-boot/ti-u-boot.git" | 25 | UBOOT_GIT_URI ?= "git://git.ti.com/git/ti-u-boot/ti-u-boot.git" |
24 | UBOOT_GIT_PROTOCOL = "https" | 26 | UBOOT_GIT_PROTOCOL ?= "https" |
25 | SRC_URI = "${UBOOT_GIT_URI};protocol=${UBOOT_GIT_PROTOCOL};branch=${BRANCH}" | 27 | UBOOT_GIT_BRANCH ?= "branch=${BRANCH}" |
28 | SRC_URI = "${UBOOT_GIT_URI};protocol=${UBOOT_GIT_PROTOCOL};${UBOOT_GIT_BRANCH}" | ||
26 | 29 | ||
27 | PV:append = "+git" | 30 | PV:append = "+git" |
28 | 31 | ||
32 | # u-boot builds a tool mkeficapsule and it needs this | ||
33 | DEPENDS += "gnutls-native" | ||
34 | |||
29 | # u-boot needs devtree compiler to parse dts files | 35 | # u-boot needs devtree compiler to parse dts files |
30 | DEPENDS += "dtc-native bc-native flex-native bison-native python3-setuptools-native" | 36 | DEPENDS += "dtc-native bc-native flex-native bison-native python3-setuptools-native" |
31 | 37 | ||
@@ -36,7 +42,13 @@ DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-n | |||
36 | DEPENDS:append:k3 = " ti-sci-fw" | 42 | DEPENDS:append:k3 = " ti-sci-fw" |
37 | DEPENDS:append:k3r5 = " ti-sci-fw" | 43 | DEPENDS:append:k3r5 = " ti-sci-fw" |
38 | 44 | ||
45 | # HSM Demo Firmware is only applicable for J721S2 & J784S4 devices | ||
46 | DEPENDS:append:j721s2 = " ti-hsm-demo-fw" | ||
47 | DEPENDS:append:j784s4 = " ti-hsm-demo-fw" | ||
48 | |||
39 | DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" | 49 | DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" |
50 | DM_FIRMWARE:am62axx = "dm_edgeai_mcu1_0_release_strip.out" | ||
51 | DM_FIRMWARE:am62pxx = "${@oe.utils.conditional('DISPLAY_CLUSTER_ENABLE', '1', 'dss_display_share.wkup-r5f0_0.release.strip.out', 'ipc_echo_testb_mcu1_0_release_strip.xer5f', d)}" | ||
40 | 52 | ||
41 | PLAT_SFX = "" | 53 | PLAT_SFX = "" |
42 | PLAT_SFX:j721e = "j721e" | 54 | PLAT_SFX:j721e = "j721e" |
@@ -44,15 +56,19 @@ PLAT_SFX:j7200 = "j7200" | |||
44 | PLAT_SFX:j721s2 = "j721s2" | 56 | PLAT_SFX:j721s2 = "j721s2" |
45 | PLAT_SFX:j784s4 = "j784s4" | 57 | PLAT_SFX:j784s4 = "j784s4" |
46 | PLAT_SFX:j722s = "j722s" | 58 | PLAT_SFX:j722s = "j722s" |
59 | PLAT_SFX:j742s2 = "j742s2" | ||
47 | PLAT_SFX:am65xx = "am65xx" | 60 | PLAT_SFX:am65xx = "am65xx" |
48 | PLAT_SFX:am64xx = "am64xx" | 61 | PLAT_SFX:am64xx = "am64xx" |
49 | PLAT_SFX:am62xx = "am62xx" | 62 | PLAT_SFX:am62xx = "am62xx" |
50 | PLAT_SFX:am62axx = "am62axx" | 63 | PLAT_SFX:am62axx = "am62axx" |
64 | PLAT_SFX:am62dxx = "am62axx" | ||
65 | PLAT_SFX:am62lxx = "am62lxx" | ||
51 | PLAT_SFX:am62pxx = "am62pxx" | 66 | PLAT_SFX:am62pxx = "am62pxx" |
52 | 67 | ||
68 | PACKAGECONFIG[ap-trusted-rom] = "BL1=${STAGING_DIR_HOST}/firmware/bl1.bin,,trusted-firmware-a" | ||
53 | PACKAGECONFIG[atf] = "BL31=${STAGING_DIR_HOST}/firmware/bl31.bin,,trusted-firmware-a" | 69 | PACKAGECONFIG[atf] = "BL31=${STAGING_DIR_HOST}/firmware/bl31.bin,,trusted-firmware-a" |
54 | PACKAGECONFIG[optee] = "TEE=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/bl32.bin,,optee-os" | 70 | PACKAGECONFIG[optee] = "TEE=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/bl32.bin,,optee-os" |
55 | PACKAGECONFIG[dm] = "DM=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/ti-dm/${PLAT_SFX}/${DM_FIRMWARE},,ti-dm-fw" | 71 | PACKAGECONFIG[dm] = "TI_DM=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/ti-dm/${PLAT_SFX}/${DM_FIRMWARE},,ti-dm-fw" |
56 | 72 | ||
57 | PACKAGECONFIG:append:aarch64 = " atf optee" | 73 | PACKAGECONFIG:append:aarch64 = " atf optee" |
58 | PACKAGECONFIG:append:j721e = " dm" | 74 | PACKAGECONFIG:append:j721e = " dm" |
@@ -60,13 +76,16 @@ PACKAGECONFIG:append:j7200 = " dm" | |||
60 | PACKAGECONFIG:append:j721s2 = " dm" | 76 | PACKAGECONFIG:append:j721s2 = " dm" |
61 | PACKAGECONFIG:append:j784s4 = " dm" | 77 | PACKAGECONFIG:append:j784s4 = " dm" |
62 | PACKAGECONFIG:append:j722s = " dm" | 78 | PACKAGECONFIG:append:j722s = " dm" |
79 | PACKAGECONFIG:append:j742s2 = " dm" | ||
63 | PACKAGECONFIG:append:am62xx = " dm" | 80 | PACKAGECONFIG:append:am62xx = " dm" |
64 | PACKAGECONFIG:append:am62axx = " dm" | 81 | PACKAGECONFIG:append:am62axx = " dm" |
82 | PACKAGECONFIG:append:am62dxx = " dm" | ||
83 | PACKAGECONFIG:append:am62lxx = " ap-trusted-rom" | ||
65 | PACKAGECONFIG:append:am62pxx = " dm" | 84 | PACKAGECONFIG:append:am62pxx = " dm" |
66 | 85 | ||
67 | COMPATIBLE_MACHINE = "(ti-soc)" | 86 | COMPATIBLE_MACHINE = "(ti-soc)" |
68 | 87 | ||
69 | BINMAN_INDIRS="${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware" | 88 | BINMAN_INDIRS = "${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware" |
70 | 89 | ||
71 | EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS} BINMAN_INDIRS=${BINMAN_INDIRS}" | 90 | EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS} BINMAN_INDIRS=${BINMAN_INDIRS}" |
72 | 91 | ||
@@ -75,8 +94,6 @@ PKG:${PN} = "u-boot" | |||
75 | PKG:${PN}-dev = "u-boot-dev" | 94 | PKG:${PN}-dev = "u-boot-dev" |
76 | PKG:${PN}-dbg = "u-boot-dbg" | 95 | PKG:${PN}-dbg = "u-boot-dbg" |
77 | 96 | ||
78 | S = "${WORKDIR}/git" | ||
79 | |||
80 | # Support for secure devices - detailed info is in doc/README.ti-secure | 97 | # Support for secure devices - detailed info is in doc/README.ti-secure |
81 | inherit ti-secdev | 98 | inherit ti-secdev |
82 | 99 | ||
@@ -86,131 +103,152 @@ SYSROOT_DIRS += "/boot" | |||
86 | SPL_UART_BINARY = "u-boot-spl.bin" | 103 | SPL_UART_BINARY = "u-boot-spl.bin" |
87 | SPL_UART_BINARY:k3r5 = "" | 104 | SPL_UART_BINARY:k3r5 = "" |
88 | 105 | ||
89 | SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" | 106 | SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${UBOOT_VERSION}" |
90 | SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" | 107 | SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" |
91 | 108 | ||
92 | SPL_HS_MLO_BINARY = "u-boot-spl_HS_MLO" | 109 | SPL_HS_MLO_BINARY = "u-boot-spl_HS_MLO" |
93 | SPL_HS_MLO_IMAGE = "u-boot-spl_HS_MLO-${MACHINE}-${PV}-${PR}" | 110 | SPL_HS_MLO_IMAGE = "u-boot-spl_HS_MLO-${MACHINE}-${UBOOT_VERSION}" |
94 | SPL_HS_MLO_SYMLINK = "u-boot-spl_HS_MLO-${MACHINE}" | 111 | SPL_HS_MLO_SYMLINK = "u-boot-spl_HS_MLO-${MACHINE}" |
95 | 112 | ||
96 | # HS XLD | 113 | # HS XLD |
97 | UBOOT_HS_XLD_BINARY = "u-boot-spl_HS_X-LOADER" | 114 | UBOOT_HS_XLD_BINARY = "u-boot-spl_HS_X-LOADER" |
98 | UBOOT_HS_XLD_IMAGE = "u-boot-spl_HS_X-LOADER-${MACHINE}-${PV}-${PR}" | 115 | UBOOT_HS_XLD_IMAGE = "u-boot-spl_HS_X-LOADER-${MACHINE}-${UBOOT_VERSION}" |
99 | UBOOT_HS_XLD_SYMLINK = "u-boot-spl_HS_X-LOADER-${MACHINE}" | 116 | UBOOT_HS_XLD_SYMLINK = "u-boot-spl_HS_X-LOADER-${MACHINE}" |
100 | 117 | ||
101 | # HS MLO | 118 | # HS MLO |
102 | UBOOT_HS_MLO_BINARY = "u-boot_HS_MLO" | 119 | UBOOT_HS_MLO_BINARY = "u-boot_HS_MLO" |
103 | UBOOT_HS_MLO_IMAGE = "u-boot_HS_MLO-${MACHINE}-${PV}-${PR}" | 120 | UBOOT_HS_MLO_IMAGE = "u-boot_HS_MLO-${MACHINE}-${UBOOT_VERSION}" |
104 | UBOOT_HS_MLO_SYMLINK = "u-boot_HS_MLO-${MACHINE}" | 121 | UBOOT_HS_MLO_SYMLINK = "u-boot_HS_MLO-${MACHINE}" |
105 | 122 | ||
106 | # HS ISSW | 123 | # HS ISSW |
107 | UBOOT_HS_ISSW_BINARY = "u-boot-spl_HS_ISSW" | 124 | UBOOT_HS_ISSW_BINARY = "u-boot-spl_HS_ISSW" |
108 | UBOOT_HS_ISSW_IMAGE = "u-boot-spl_HS_ISSW-${MACHINE}-${PV}-${PR}" | 125 | UBOOT_HS_ISSW_IMAGE = "u-boot-spl_HS_ISSW-${MACHINE}-${UBOOT_VERSION}" |
109 | UBOOT_HS_ISSW_SYMLINK = "u-boot-spl_HS_ISSW-${MACHINE}" | 126 | UBOOT_HS_ISSW_SYMLINK = "u-boot-spl_HS_ISSW-${MACHINE}" |
110 | 127 | ||
111 | # HS 2ND | 128 | # HS 2ND |
112 | UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND" | 129 | UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND" |
113 | UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" | 130 | UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${UBOOT_VERSION}" |
114 | UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" | 131 | UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" |
115 | 132 | ||
116 | do_compile:append:k3r5 () { | 133 | uboot_compile:append () { |
117 | if [ -n "${UBOOT_CONFIG}" ]; | 134 | if ! [ -f ${B}/${UBOOT_BINARY} ]; then |
118 | then | 135 | ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY} |
119 | for config in ${UBOOT_MACHINE}; do | 136 | fi |
120 | i=$(expr $i + 1); | ||
121 | for type in ${UBOOT_CONFIG}; do | ||
122 | j=$(expr $j + 1); | ||
123 | if [ $j -eq $i ]; | ||
124 | then | ||
125 | if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then | ||
126 | ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY} | ||
127 | fi | ||
128 | fi | ||
129 | done | ||
130 | unset j | ||
131 | done | ||
132 | unset i | ||
133 | else | ||
134 | if ! [ -f ${B}/${UBOOT_BINARY} ]; then | ||
135 | ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY} | ||
136 | fi | ||
137 | fi | ||
138 | } | 137 | } |
139 | 138 | ||
140 | do_install:append () { | 139 | uboot_compile_config_copy_binary:k3r5 () { |
141 | if [ -n "${UBOOT_CONFIG}" ] | 140 | config=$1 |
142 | then | 141 | type=$2 |
143 | for config in ${UBOOT_MACHINE}; do | 142 | binary=$3 |
144 | i=$(expr $i + 1); | 143 | |
145 | for type in ${UBOOT_CONFIG}; do | 144 | if ! [ -L ${B}/${config}/${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX} ] && ! [ -f ${B}/${config}/${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX} ]; then |
146 | j=$(expr $j + 1); | 145 | ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX} |
147 | if [ $j -eq $i ] | 146 | fi |
148 | then | 147 | |
149 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | 148 | if ! [ -L ${B}/${config}/${binary} ] && ! [ -f ${B}/${config}/${binary} ]; then |
150 | install ${B}/${config}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE}-${type} | 149 | ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${binary} |
151 | ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY}-${type} | 150 | fi |
152 | ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY} | 151 | } |
153 | fi | 152 | |
154 | if [ -f ${B}/${config}/${SPL_HS_MLO_BINARY} ]; then | 153 | uboot_install_config:append () { |
155 | install ${B}/${config}/${SPL_HS_MLO_BINARY} ${D}/boot/${SPL_HS_MLO_IMAGE}-${type} | 154 | if [ "x${SPL_UART_BINARY}" != "x" ]; then |
156 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${D}/boot/${SPL_HS_MLO_BINARY}-${type} | 155 | install ${B}/${config}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE}-${type} |
157 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${D}/boot/${SPL_HS_MLO_BINARY} | 156 | ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY}-${type} |
158 | fi | 157 | ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY} |
159 | if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then | 158 | fi |
160 | install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE}-${type} | 159 | if [ -f ${B}/${config}/${SPL_HS_MLO_BINARY} ]; then |
161 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY}-${type} | 160 | install ${B}/${config}/${SPL_HS_MLO_BINARY} ${D}/boot/${SPL_HS_MLO_IMAGE}-${type} |
162 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY} | 161 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${D}/boot/${SPL_HS_MLO_BINARY}-${type} |
163 | fi | 162 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${D}/boot/${SPL_HS_MLO_BINARY} |
164 | if [ -f ${B}/${config}/${UBOOT_HS_MLO_BINARY} ]; then | 163 | fi |
165 | install ${B}/${config}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE}-${type} | 164 | if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then |
166 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY}-${type} | 165 | install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE}-${type} |
167 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY} | 166 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY}-${type} |
168 | fi | 167 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY} |
169 | if [ -f ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ]; then | 168 | fi |
170 | install ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ${D}/boot/${UBOOT_HS_ISSW_IMAGE}-${type} | 169 | if [ -f ${B}/${config}/${UBOOT_HS_MLO_BINARY} ]; then |
171 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${D}/boot/${UBOOT_HS_ISSW_BINARY}-${type} | 170 | install ${B}/${config}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE}-${type} |
172 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${D}/boot/${UBOOT_HS_ISSW_BINARY} | 171 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY}-${type} |
173 | fi | 172 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY} |
174 | if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then | 173 | fi |
175 | install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE}-${type} | 174 | if [ -f ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ]; then |
176 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY}-${type} | 175 | install ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ${D}/boot/${UBOOT_HS_ISSW_IMAGE}-${type} |
177 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY} | 176 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${D}/boot/${UBOOT_HS_ISSW_BINARY}-${type} |
178 | fi | 177 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${D}/boot/${UBOOT_HS_ISSW_BINARY} |
179 | fi | 178 | fi |
180 | done | 179 | if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then |
181 | unset j | 180 | install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE}-${type} |
182 | done | 181 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY}-${type} |
183 | unset i | 182 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY} |
184 | else | 183 | fi |
185 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | 184 | } |
186 | install ${B}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} | 185 | |
187 | ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY} | 186 | uboot_install:append () { |
188 | fi | 187 | if [ "x${SPL_UART_BINARY}" != "x" ]; then |
189 | if [ -f ${B}/${SPL_HS_MLO_BINARY} ]; then | 188 | install ${B}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE} |
190 | install ${B}/${SPL_HS_MLO_BINARY} ${D}/boot/${SPL_HS_MLO_IMAGE} | 189 | ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY} |
191 | ln -sf ${SPL_HS_MLO_IMAGE} ${D}/boot/${SPL_HS_MLO_BINARY} | 190 | fi |
192 | fi | 191 | if [ -f ${B}/${SPL_HS_MLO_BINARY} ]; then |
193 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then | 192 | install ${B}/${SPL_HS_MLO_BINARY} ${D}/boot/${SPL_HS_MLO_IMAGE} |
194 | install ${B}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE} | 193 | ln -sf ${SPL_HS_MLO_IMAGE} ${D}/boot/${SPL_HS_MLO_BINARY} |
195 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${D}/boot/${UBOOT_HS_XLD_BINARY} | 194 | fi |
196 | fi | 195 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then |
197 | if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then | 196 | install ${B}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE} |
198 | install ${B}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE} | 197 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${D}/boot/${UBOOT_HS_XLD_BINARY} |
199 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${D}/boot/${UBOOT_HS_MLO_BINARY} | 198 | fi |
199 | if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then | ||
200 | install ${B}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE} | ||
201 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${D}/boot/${UBOOT_HS_MLO_BINARY} | ||
202 | fi | ||
203 | if [ -f ${B}/${UBOOT_HS_ISSW_BINARY} ]; then | ||
204 | install ${B}/${UBOOT_HS_ISSW_BINARY} ${D}/boot/${UBOOT_HS_ISSW_IMAGE} | ||
205 | ln -sf ${UBOOT_HS_ISSW_IMAGE} ${D}/boot/${UBOOT_HS_ISSW_BINARY} | ||
206 | fi | ||
207 | if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then | ||
208 | install ${B}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE} | ||
209 | ln -sf ${UBOOT_HS_2ND_IMAGE} ${D}/boot/${UBOOT_HS_2ND_BINARY} | ||
210 | fi | ||
211 | } | ||
212 | |||
213 | do_deploy:append:k3r5 () { | ||
214 | rm -f ${DEPLOYDIR}/u-boot-initial-env* | ||
215 | rm -f ${DEPLOYDIR}/${PN}-initial-env* | ||
216 | rm -f ${DEPLOYDIR}/u-boot-initial-env-${MACHINE}* | ||
217 | rm -f ${DEPLOYDIR}/${PN}-initial-env-${MACHINE}* | ||
218 | rm -f ${DEPLOYDIR}/u-boot-initial-env-${MACHINE}-${UBOOT_VERSION}* | ||
219 | rm -f ${DEPLOYDIR}/${PN}-initial-env-${MACHINE}-${UBOOT_VERSION}* | ||
220 | } | ||
221 | |||
222 | uboot_deploy_config:append:k3r5 () { | ||
223 | for f in ${B}/${config}/tiboot3-*.bin; do | ||
224 | if [ -f "$f" ]; then | ||
225 | f_base=$(basename $f) | ||
226 | install -m 644 $f ${DEPLOYDIR}/${f_base}-${type} | ||
227 | ln -sf ${f_base}-${type} ${DEPLOYDIR}/${f_base} | ||
200 | fi | 228 | fi |
201 | if [ -f ${B}/${UBOOT_HS_ISSW_BINARY} ]; then | 229 | done |
202 | install ${B}/${UBOOT_HS_ISSW_BINARY} ${D}/boot/${UBOOT_HS_ISSW_IMAGE} | 230 | |
203 | ln -sf ${UBOOT_HS_ISSW_IMAGE} ${D}/boot/${UBOOT_HS_ISSW_BINARY} | 231 | for f in ${B}/${config}/sysfw*.itb; do |
232 | if [ -f "$f" ]; then | ||
233 | f_base=$(basename $f) | ||
234 | install -m 644 $f ${DEPLOYDIR}/${f_base}-${type} | ||
235 | ln -sf ${f_base}-${type} ${DEPLOYDIR}/${f_base} | ||
204 | fi | 236 | fi |
205 | if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then | 237 | done |
206 | install ${B}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE} | 238 | } |
207 | ln -sf ${UBOOT_HS_2ND_IMAGE} ${D}/boot/${UBOOT_HS_2ND_BINARY} | 239 | |
240 | uboot_deploy_config:append:am62lxx () { | ||
241 | for f in ${B}/${config}/tiboot3-*.bin; do | ||
242 | if [ -f "$f" ]; then | ||
243 | f_base=$(basename $f) | ||
244 | install -m 644 $f ${DEPLOYDIR}/${f_base}-${type} | ||
245 | ln -sf ${f_base}-${type} ${DEPLOYDIR}/${f_base} | ||
208 | fi | 246 | fi |
209 | fi | 247 | done |
210 | } | 248 | } |
211 | 249 | ||
212 | do_deploy:append:k3r5 () { | 250 | uboot_deploy:append:k3r5 () { |
213 | for f in ${B}/tiboot3-*.bin; do | 251 | for f in ${B}/tiboot3-*.bin; do |
214 | if [ -f "$f" ]; then | 252 | if [ -f "$f" ]; then |
215 | install -m 644 $f ${DEPLOYDIR}/ | 253 | install -m 644 $f ${DEPLOYDIR}/ |
216 | fi | 254 | fi |
@@ -221,122 +259,106 @@ do_deploy:append:k3r5 () { | |||
221 | install -m 644 $f ${DEPLOYDIR}/ | 259 | install -m 644 $f ${DEPLOYDIR}/ |
222 | fi | 260 | fi |
223 | done | 261 | done |
224 | |||
225 | rm ${DEPLOYDIR}/u-boot-initial-env || true | ||
226 | rm ${DEPLOYDIR}/${PN}-initial-env || true | ||
227 | rm ${DEPLOYDIR}/u-boot-initial-env-${MACHINE} || true | ||
228 | rm ${DEPLOYDIR}/${PN}-initial-env-${MACHINE} || true | ||
229 | rm ${DEPLOYDIR}/u-boot-initial-env-${MACHINE}-${PV}-${PR} || true | ||
230 | rm ${DEPLOYDIR}/${PN}-initial-env-${MACHINE}-${PV}-${PR} || true | ||
231 | } | 262 | } |
232 | 263 | ||
233 | do_deploy:append () { | 264 | uboot_deploy:append:am62lxx () { |
234 | if [ -n "${UBOOT_CONFIG}" ] | 265 | for f in ${B}/tiboot3*.bin; do |
235 | then | 266 | if [ -f "$f" ]; then |
236 | for config in ${UBOOT_MACHINE}; do | 267 | install -m 644 $f ${DEPLOYDIR}/ |
237 | i=$(expr $i + 1); | ||
238 | for type in ${UBOOT_CONFIG}; do | ||
239 | j=$(expr $j + 1); | ||
240 | if [ $j -eq $i ] | ||
241 | then | ||
242 | cd ${DEPLOYDIR} | ||
243 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | ||
244 | install ${B}/${config}/spl/${SPL_UART_BINARY} ${SPL_UART_IMAGE}-${type} | ||
245 | rm -f ${SPL_UART_BINARY} ${SPL_UART_SYMLINK} | ||
246 | ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_BINARY}-${type} | ||
247 | ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_BINARY} | ||
248 | ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_SYMLINK}-${type} | ||
249 | ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_SYMLINK} | ||
250 | fi | ||
251 | if [ -f ${B}/${config}/${SPL_HS_MLO_BINARY} ]; then | ||
252 | install ${B}/${config}/${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_IMAGE}-${type} | ||
253 | rm -f ${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_SYMLINK} | ||
254 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_SYMLINK}-${type} | ||
255 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_SYMLINK} | ||
256 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_BINARY}-${type} | ||
257 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_BINARY} | ||
258 | fi | ||
259 | if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then | ||
260 | install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_IMAGE}-${type} | ||
261 | rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK} | ||
262 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_SYMLINK}-${type} | ||
263 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_SYMLINK} | ||
264 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_BINARY}-${type} | ||
265 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_BINARY} | ||
266 | fi | ||
267 | if [ -f ${B}/${config}/${UBOOT_HS_MLO_BINARY} ]; then | ||
268 | install ${B}/${config}/${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_IMAGE}-${type} | ||
269 | rm -f ${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_SYMLINK} | ||
270 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_SYMLINK}-${type} | ||
271 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_SYMLINK} | ||
272 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY}-${type} | ||
273 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY} | ||
274 | fi | ||
275 | if [ -f ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ]; then | ||
276 | install ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_IMAGE}-${type} | ||
277 | rm -f ${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_SYMLINK} | ||
278 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_SYMLINK}-${type} | ||
279 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_SYMLINK} | ||
280 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_BINARY}-${type} | ||
281 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_BINARY} | ||
282 | fi | ||
283 | if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then | ||
284 | install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_IMAGE}-${type} | ||
285 | rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK} | ||
286 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK}-${type} | ||
287 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK} | ||
288 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY}-${type} | ||
289 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY} | ||
290 | fi | ||
291 | fi | ||
292 | done | ||
293 | unset j | ||
294 | done | ||
295 | unset i | ||
296 | else | ||
297 | cd ${DEPLOYDIR} | ||
298 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | ||
299 | install ${B}/spl/${SPL_UART_BINARY} ${SPL_UART_IMAGE} | ||
300 | rm -f ${SPL_UART_BINARY} ${SPL_UART_SYMLINK} | ||
301 | ln -sf ${SPL_UART_IMAGE} ${SPL_UART_BINARY} | ||
302 | ln -sf ${SPL_UART_IMAGE} ${SPL_UART_SYMLINK} | ||
303 | fi | ||
304 | if [ -f ${B}/${SPL_HS_MLO_BINARY} ]; then | ||
305 | install ${B}/${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_IMAGE} | ||
306 | rm -f ${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_SYMLINK} | ||
307 | ln -sf ${SPL_HS_MLO_IMAGE} ${SPL_HS_MLO_SYMLINK} | ||
308 | ln -sf ${SPL_HS_MLO_IMAGE} ${SPL_HS_MLO_BINARY} | ||
309 | fi | ||
310 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then | ||
311 | install ${B}/${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_IMAGE} | ||
312 | rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK} | ||
313 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_SYMLINK} | ||
314 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_BINARY} | ||
315 | fi | ||
316 | if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then | ||
317 | install ${B}/${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_IMAGE} | ||
318 | rm -f ${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_SYMLINK} | ||
319 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_SYMLINK} | ||
320 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_BINARY} | ||
321 | fi | ||
322 | if [ -f ${B}/${UBOOT_HS_ISSW_BINARY} ]; then | ||
323 | install ${B}/${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_IMAGE} | ||
324 | rm -f ${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_SYMLINK} | ||
325 | ln -sf ${UBOOT_HS_ISSW_IMAGE} ${UBOOT_HS_ISSW_SYMLINK} | ||
326 | ln -sf ${UBOOT_HS_ISSW_IMAGE} ${UBOOT_HS_ISSW_BINARY} | ||
327 | fi | ||
328 | if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then | ||
329 | install ${B}/${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_IMAGE} | ||
330 | rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK} | ||
331 | ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_SYMLINK} | ||
332 | ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_BINARY} | ||
333 | fi | 268 | fi |
334 | fi | 269 | done |
335 | } | 270 | } |
336 | 271 | ||
337 | do_install:append:am62xx() { | 272 | uboot_deploy_config:append () { |
338 | install -d ${D}/boot | 273 | cd ${DEPLOYDIR} |
339 | install -m 0644 ${S}/tools/logos/ti_logo_414x97_32bpp.bmp.gz ${D}/boot | 274 | if [ "x${SPL_UART_BINARY}" != "x" ]; then |
275 | install ${B}/${config}/spl/${SPL_UART_BINARY} ${SPL_UART_IMAGE}-${type} | ||
276 | rm -f ${SPL_UART_BINARY} ${SPL_UART_SYMLINK} | ||
277 | ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_BINARY}-${type} | ||
278 | ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_BINARY} | ||
279 | ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_SYMLINK}-${type} | ||
280 | ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_SYMLINK} | ||
281 | fi | ||
282 | if [ -f ${B}/${config}/${SPL_HS_MLO_BINARY} ]; then | ||
283 | install ${B}/${config}/${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_IMAGE}-${type} | ||
284 | rm -f ${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_SYMLINK} | ||
285 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_SYMLINK}-${type} | ||
286 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_SYMLINK} | ||
287 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_BINARY}-${type} | ||
288 | ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_BINARY} | ||
289 | fi | ||
290 | if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then | ||
291 | install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_IMAGE}-${type} | ||
292 | rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK} | ||
293 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_SYMLINK}-${type} | ||
294 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_SYMLINK} | ||
295 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_BINARY}-${type} | ||
296 | ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_BINARY} | ||
297 | fi | ||
298 | if [ -f ${B}/${config}/${UBOOT_HS_MLO_BINARY} ]; then | ||
299 | install ${B}/${config}/${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_IMAGE}-${type} | ||
300 | rm -f ${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_SYMLINK} | ||
301 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_SYMLINK}-${type} | ||
302 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_SYMLINK} | ||
303 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY}-${type} | ||
304 | ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY} | ||
305 | fi | ||
306 | if [ -f ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ]; then | ||
307 | install ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_IMAGE}-${type} | ||
308 | rm -f ${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_SYMLINK} | ||
309 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_SYMLINK}-${type} | ||
310 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_SYMLINK} | ||
311 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_BINARY}-${type} | ||
312 | ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_BINARY} | ||
313 | fi | ||
314 | if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then | ||
315 | install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_IMAGE}-${type} | ||
316 | rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK} | ||
317 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK}-${type} | ||
318 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK} | ||
319 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY}-${type} | ||
320 | ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY} | ||
321 | fi | ||
322 | } | ||
323 | |||
324 | uboot_deploy:append () { | ||
325 | cd ${DEPLOYDIR} | ||
326 | if [ "x${SPL_UART_BINARY}" != "x" ]; then | ||
327 | install ${B}/spl/${SPL_UART_BINARY} ${SPL_UART_IMAGE} | ||
328 | rm -f ${SPL_UART_BINARY} ${SPL_UART_SYMLINK} | ||
329 | ln -sf ${SPL_UART_IMAGE} ${SPL_UART_BINARY} | ||
330 | ln -sf ${SPL_UART_IMAGE} ${SPL_UART_SYMLINK} | ||
331 | fi | ||
332 | if [ -f ${B}/${SPL_HS_MLO_BINARY} ]; then | ||
333 | install ${B}/${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_IMAGE} | ||
334 | rm -f ${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_SYMLINK} | ||
335 | ln -sf ${SPL_HS_MLO_IMAGE} ${SPL_HS_MLO_SYMLINK} | ||
336 | ln -sf ${SPL_HS_MLO_IMAGE} ${SPL_HS_MLO_BINARY} | ||
337 | fi | ||
338 | if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then | ||
339 | install ${B}/${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_IMAGE} | ||
340 | rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK} | ||
341 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_SYMLINK} | ||
342 | ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_BINARY} | ||
343 | fi | ||
344 | if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then | ||
345 | install ${B}/${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_IMAGE} | ||
346 | rm -f ${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_SYMLINK} | ||
347 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_SYMLINK} | ||
348 | ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_BINARY} | ||
349 | fi | ||
350 | if [ -f ${B}/${UBOOT_HS_ISSW_BINARY} ]; then | ||
351 | install ${B}/${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_IMAGE} | ||
352 | rm -f ${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_SYMLINK} | ||
353 | ln -sf ${UBOOT_HS_ISSW_IMAGE} ${UBOOT_HS_ISSW_SYMLINK} | ||
354 | ln -sf ${UBOOT_HS_ISSW_IMAGE} ${UBOOT_HS_ISSW_BINARY} | ||
355 | fi | ||
356 | if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then | ||
357 | install ${B}/${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_IMAGE} | ||
358 | rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK} | ||
359 | ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_SYMLINK} | ||
360 | ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_BINARY} | ||
361 | fi | ||
340 | } | 362 | } |
341 | 363 | ||
342 | do_deploy:append:am62xx() { | 364 | do_deploy:append:am62xx() { |
@@ -344,14 +366,21 @@ do_deploy:append:am62xx() { | |||
344 | install -m 0644 ${S}/tools/logos/ti_logo_414x97_32bpp.bmp.gz ${DEPLOYDIR} | 366 | install -m 0644 ${S}/tools/logos/ti_logo_414x97_32bpp.bmp.gz ${DEPLOYDIR} |
345 | } | 367 | } |
346 | 368 | ||
347 | do_install:append:am62pxx() { | ||
348 | install -d ${D}/boot | ||
349 | install -m 0644 ${S}/tools/logos/ti_logo_414x97_32bpp.bmp.gz ${D}/boot | ||
350 | } | ||
351 | |||
352 | do_deploy:append:am62pxx() { | 369 | do_deploy:append:am62pxx() { |
353 | install -d ${DEPLOYDIR} | 370 | install -d ${DEPLOYDIR} |
354 | install -m 0644 ${S}/tools/logos/ti_logo_414x97_32bpp.bmp.gz ${DEPLOYDIR} | 371 | install -m 0644 ${S}/tools/logos/ti_logo_414x97_32bpp.bmp.gz ${DEPLOYDIR} |
355 | } | 372 | } |
356 | 373 | ||
374 | do_install:append:ti-falcon() { | ||
375 | install -m 0644 ${B}/tifalcon.bin ${D}/boot | ||
376 | } | ||
377 | |||
378 | FALCON_PKG = "" | ||
379 | FALCON_PKG:ti-falcon = "${PN}-falcon " | ||
380 | |||
381 | PACKAGES:prepend:am62xx-evm = "${FALCON_PKG} " | ||
382 | PACKAGES:prepend:am62axx-evm = "${FALCON_PKG} " | ||
383 | PACKAGES:prepend:am62pxx-evm = "${FALCON_PKG} " | ||
384 | PACKAGES:prepend:am62xx-lp-evm = "${FALCON_PKG} " | ||
385 | |||
357 | TOOLCHAIN = "gcc" | 386 | TOOLCHAIN = "gcc" |
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot/0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch b/meta-ti-bsp/recipes-bsp/u-boot/u-boot/0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch new file mode 100644 index 00000000..b6b90fcc --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot/0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch | |||
@@ -0,0 +1,59 @@ | |||
1 | From e093607e9a08e9c29b7bbaa6aeb137036db798a6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Markus Volk <f_l_k@t-online.de> | ||
3 | Date: Wed, 30 Oct 2024 05:46:00 +0100 | ||
4 | Subject: [PATCH] scripts/dtc/pylibfdt/libfdt.i_shipped: Use SWIG_AppendOutput | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Swig has changed language specific AppendOutput functions. The helper | ||
10 | macro SWIG_AppendOutput remains unchanged. Use that instead | ||
11 | of SWIG_Python_AppendOutput, which would require an extra parameter | ||
12 | since swig 4.3.0. | ||
13 | |||
14 | /home/flk/poky/build-test/tmp/work/qemux86_64-poky-linux/u-boot/2024.10/git/arch/x86/cpu/u-boot-64.lds | ||
15 | | scripts/dtc/pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_next_node’: | ||
16 | | scripts/dtc/pylibfdt/libfdt_wrap.c:5581:17: error: too few arguments to function ‘SWIG_Python_AppendOutput’ | ||
17 | | 5581 | resultobj = SWIG_Python_AppendOutput(resultobj, val); | ||
18 | | | ^~~~~~~~~~~~~~~~~~~~~~~~ | ||
19 | |||
20 | Upstream-Status: Backport [https://github.com/u-boot/u-boot/commit/a63456b9191fae2fe49f4b121e025792022e3950] | ||
21 | |||
22 | Signed-off-by: Markus Volk <f_l_k@t-online.de> | ||
23 | --- | ||
24 | scripts/dtc/pylibfdt/libfdt.i_shipped | 6 +++--- | ||
25 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
26 | |||
27 | diff --git a/scripts/dtc/pylibfdt/libfdt.i_shipped b/scripts/dtc/pylibfdt/libfdt.i_shipped | ||
28 | index 56cc5d48f4..e4659489a9 100644 | ||
29 | --- a/scripts/dtc/pylibfdt/libfdt.i_shipped | ||
30 | +++ b/scripts/dtc/pylibfdt/libfdt.i_shipped | ||
31 | @@ -1037,7 +1037,7 @@ typedef uint32_t fdt32_t; | ||
32 | fdt_string(fdt1, fdt32_to_cpu($1->nameoff))); | ||
33 | buff = PyByteArray_FromStringAndSize( | ||
34 | (const char *)($1 + 1), fdt32_to_cpu($1->len)); | ||
35 | - resultobj = SWIG_Python_AppendOutput(resultobj, buff); | ||
36 | + resultobj = SWIG_AppendOutput(resultobj, buff); | ||
37 | } | ||
38 | } | ||
39 | |||
40 | @@ -1076,7 +1076,7 @@ typedef uint32_t fdt32_t; | ||
41 | |||
42 | %typemap(argout) int *depth { | ||
43 | PyObject *val = Py_BuildValue("i", *arg$argnum); | ||
44 | - resultobj = SWIG_Python_AppendOutput(resultobj, val); | ||
45 | + resultobj = SWIG_AppendOutput(resultobj, val); | ||
46 | } | ||
47 | |||
48 | %apply int *depth { int *depth }; | ||
49 | @@ -1092,7 +1092,7 @@ typedef uint32_t fdt32_t; | ||
50 | if (PyTuple_GET_SIZE(resultobj) == 0) | ||
51 | resultobj = val; | ||
52 | else | ||
53 | - resultobj = SWIG_Python_AppendOutput(resultobj, val); | ||
54 | + resultobj = SWIG_AppendOutput(resultobj, val); | ||
55 | } | ||
56 | } | ||
57 | |||
58 | -- | ||
59 | 2.47.0 | ||
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 index 4ec09a70..ba320f5f 100644 --- 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 | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Radio Application Firmware" | 1 | SUMMARY = "Radio Application Firmware" |
2 | LICENSE = "TI-TSPA" | 2 | LICENSE = "TI-TSPA" |
3 | LIC_FILES_CHKSUM = "file://${S}/J6_VIS_DEMO_LINUX_BINARY_01.50.07.15-Manifest.html;md5=a59aa54b9470f555cf086b91dca0afa3" | 3 | LIC_FILES_CHKSUM = "file://${S}/J6_VIS_DEMO_LINUX_BINARY_01.50.07.15-Manifest.html;md5=a59aa54b9470f555cf086b91dca0afa3" |
4 | 4 | ||
@@ -11,7 +11,7 @@ SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/vis/01_50_07_15/exp | |||
11 | SRC_URI[md5sum] = "fe8b00e398fb3b7ada0c15b601867acb" | 11 | SRC_URI[md5sum] = "fe8b00e398fb3b7ada0c15b601867acb" |
12 | SRC_URI[sha256sum] = "6e2aa47ae892910616ebdc96646af778af9a59ca0657716ab4fa4b24a9afae69" | 12 | SRC_URI[sha256sum] = "6e2aa47ae892910616ebdc96646af778af9a59ca0657716ab4fa4b24a9afae69" |
13 | 13 | ||
14 | S = "${WORKDIR}" | 14 | S = "${UNPACKDIR}" |
15 | 15 | ||
16 | DSPAPP = "dra7-dsp1-fw-radio.xe66" | 16 | DSPAPP = "dra7-dsp1-fw-radio.xe66" |
17 | GPPAPP = "RadioApp" | 17 | GPPAPP = "RadioApp" |
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 index 8af49577..f147b234 100644 --- 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 | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "VPDMA firmware for Video Input Port and Video Processing Engine" | 1 | SUMMARY = "VPDMA firmware for Video Input Port and Video Processing Engine" |
2 | 2 | ||
3 | LICENSE = "TI-TSPA" | 3 | LICENSE = "TI-TSPA" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=fd463c9500441ed91d07a0331baa635c" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=fd463c9500441ed91d07a0331baa635c" |
@@ -9,7 +9,6 @@ SRC_URI = "http://downloads.ti.com/dsps/dsps_public_sw/glsdk/vpdma-fw/03-2012/ex | |||
9 | SRC_URI[dra7xx-evm.md5sum] = "80176df1350c21d9efa90171789c546e" | 9 | SRC_URI[dra7xx-evm.md5sum] = "80176df1350c21d9efa90171789c546e" |
10 | SRC_URI[dra7xx-evm.sha256sum] = "a0b254ffd0c7f481cb3989e632088f5e4a233c73a1c676faa3061721ea60dc90" | 10 | SRC_URI[dra7xx-evm.sha256sum] = "a0b254ffd0c7f481cb3989e632088f5e4a233c73a1c676faa3061721ea60dc90" |
11 | 11 | ||
12 | S = "${WORKDIR}/vpdma-fw-${PV}" | ||
13 | TARGET = "vpdma-1b8.bin" | 12 | TARGET = "vpdma-1b8.bin" |
14 | 13 | ||
15 | do_install() { | 14 | do_install() { |
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 index 7f4e8b77..d48adea5 100644 --- a/meta-ti-bsp/recipes-bsp/vpe-tests/vpe-tests_git.bb +++ b/meta-ti-bsp/recipes-bsp/vpe-tests/vpe-tests_git.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "VPE test program" | 1 | SUMMARY = "VPE test program" |
2 | 2 | ||
3 | LICENSE = "BSD-3-Clause" | 3 | LICENSE = "BSD-3-Clause" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=74d2f71d8898c54e3d1c9d0058c484aa" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=74d2f71d8898c54e3d1c9d0058c484aa" |
@@ -16,8 +16,6 @@ BRANCH ?= "master" | |||
16 | 16 | ||
17 | SRC_URI = "git://git.ti.com/git/vpe_tests/vpe_tests.git;protocol=https;branch=${BRANCH}" | 17 | SRC_URI = "git://git.ti.com/git/vpe_tests/vpe_tests.git;protocol=https;branch=${BRANCH}" |
18 | 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)}" | 19 | FLOATABI = "${@bb.utils.contains("TUNE_FEATURES", "vfp", bb.utils.contains("TUNE_FEATURES", "callconvention-hard", " -mfloat-abi=hard", " -mfloat-abi=softfp", d), "" ,d)}" |
22 | 20 | ||
23 | # The test application needs additional include headers from the kernel | 21 | # The test application needs additional include headers from the kernel |
diff --git a/meta-ti-bsp/recipes-bsp/zephyr-fw/zephyr-openamp-rsc-table-fw.bb b/meta-ti-bsp/recipes-bsp/zephyr-fw/zephyr-openamp-rsc-table-fw.bb index 4efc99ac..c7287e1f 100644 --- a/meta-ti-bsp/recipes-bsp/zephyr-fw/zephyr-openamp-rsc-table-fw.bb +++ b/meta-ti-bsp/recipes-bsp/zephyr-fw/zephyr-openamp-rsc-table-fw.bb | |||
@@ -6,6 +6,7 @@ FW_NAME = "zephyr_openamp_rsc_table.elf" | |||
6 | # List of cores for which this demo has a build | 6 | # List of cores for which this demo has a build |
7 | FW_CORES = "" | 7 | FW_CORES = "" |
8 | FW_CORES:am62xx = "mcu-m4f0_0" | 8 | FW_CORES:am62xx = "mcu-m4f0_0" |
9 | FW_CORES:am64xx = "mcu-m4f0_0" | ||
9 | 10 | ||
10 | # Note: Everything below is common to all our Zephyr firmwares and can be | 11 | # Note: Everything below is common to all our Zephyr firmwares and can be |
11 | # factored out to a common include file once we have more than one demo | 12 | # factored out to a common include file once we have more than one demo |
@@ -18,14 +19,13 @@ COMPATIBLE_MACHINE = "k3" | |||
18 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 19 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
19 | 20 | ||
20 | SRC_URI = "git://github.com/glneo/zephyr-firmware.git;protocol=https;branch=main" | 21 | SRC_URI = "git://github.com/glneo/zephyr-firmware.git;protocol=https;branch=main" |
21 | SRCREV = "146d4f9b3930722d73685d600958f0b10ea97de2" | 22 | SRCREV = "ef5aec48e589902839ebae7ad753c68cf498c15f" |
22 | PV = "3.6.0" | 23 | PV = "3.6.0" |
23 | #PR = "r1" | 24 | #PR = "r1" |
24 | 25 | ||
25 | S = "${WORKDIR}/git" | ||
26 | |||
27 | FW_PLAT = "" | 26 | FW_PLAT = "" |
28 | FW_PLAT:am62xx = "am62" | 27 | FW_PLAT:am62xx = "am62" |
28 | FW_PLAT:am64xx = "am64" | ||
29 | 29 | ||
30 | FW_INSTALL_DIR = "${nonarch_base_libdir}/firmware/zephyr/${FW_PLAT}" | 30 | FW_INSTALL_DIR = "${nonarch_base_libdir}/firmware/zephyr/${FW_PLAT}" |
31 | 31 | ||
diff --git a/meta-ti-bsp/recipes-core/udev/eudev_%.bbappend b/meta-ti-bsp/recipes-core/udev/eudev_%.bbappend index ddb1e75d..dee46cda 100644 --- a/meta-ti-bsp/recipes-core/udev/eudev_%.bbappend +++ b/meta-ti-bsp/recipes-core/udev/eudev_%.bbappend | |||
@@ -8,6 +8,6 @@ SRC_URI:append:ti-soc = " \ | |||
8 | PR:append:ti-soc = ".3" | 8 | PR:append:ti-soc = ".3" |
9 | 9 | ||
10 | do_install:append:ti-soc() { | 10 | do_install:append:ti-soc() { |
11 | install -m 0644 ${WORKDIR}/omap-tty.rules ${D}${sysconfdir}/udev/rules.d/ | 11 | install -m 0644 ${UNPACKDIR}/omap-tty.rules ${D}${sysconfdir}/udev/rules.d/ |
12 | install -m 0644 ${WORKDIR}/firmware.rules ${D}${sysconfdir}/udev/rules.d/ | 12 | install -m 0644 ${UNPACKDIR}/firmware.rules ${D}${sysconfdir}/udev/rules.d/ |
13 | } | 13 | } |
diff --git a/meta-ti-bsp/recipes-devtools/k3conf/k3conf_git.bb b/meta-ti-bsp/recipes-devtools/k3conf/k3conf_git.bb index c8da6674..cf96dd2e 100644 --- a/meta-ti-bsp/recipes-devtools/k3conf/k3conf_git.bb +++ b/meta-ti-bsp/recipes-devtools/k3conf/k3conf_git.bb | |||
@@ -10,8 +10,6 @@ PV = "0.3+git" | |||
10 | COMPATIBLE_MACHINE = "k3" | 10 | COMPATIBLE_MACHINE = "k3" |
11 | 11 | ||
12 | BRANCH ?= "master" | 12 | BRANCH ?= "master" |
13 | SRCREV = "85a7433202aafafbccea8a7b2491f4df8b1ecd80" | 13 | SRCREV = "3de294db4f2cd75404f358768f4be8f8fa3132d7" |
14 | 14 | ||
15 | SRC_URI = "git://git.ti.com/git/k3conf/k3conf.git;protocol=https;branch=${BRANCH}" | 15 | SRC_URI = "git://git.ti.com/git/k3conf/k3conf.git;protocol=https;branch=${BRANCH}" |
16 | |||
17 | S = "${WORKDIR}/git" | ||
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 index 807f421c..bd7cf015 100644 --- 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 | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Userspace libraries for GC320 chipset on TI SoCs" | 1 | SUMMARY = "Userspace libraries for GC320 chipset on TI SoCs" |
2 | HOMEPAGE = "https://git.ti.com/graphics/ti-gc320-libs" | 2 | HOMEPAGE = "https://git.ti.com/graphics/ti-gc320-libs" |
3 | LICENSE = "TI-TSPA" | 3 | LICENSE = "TI-TSPA" |
4 | LIC_FILES_CHKSUM = "file://Manifest.html;md5=a9121e8936ace09820d23f7626daaca5" | 4 | LIC_FILES_CHKSUM = "file://Manifest.html;md5=a9121e8936ace09820d23f7626daaca5" |
@@ -14,7 +14,7 @@ CLEANBROKEN = "1" | |||
14 | BRANCH = "ti-${PV}" | 14 | BRANCH = "ti-${PV}" |
15 | 15 | ||
16 | SRC_URI = "git://git.ti.com/git/graphics/ti-gc320-libs.git;protocol=https;branch=${BRANCH}" | 16 | SRC_URI = "git://git.ti.com/git/graphics/ti-gc320-libs.git;protocol=https;branch=${BRANCH}" |
17 | SRCREV = "c0afab259de59909cfe74c01f3f7fbaa147f94b5" | 17 | SRCREV = "85c175e8425c33dda6e272aeb45afe0f69a79096" |
18 | 18 | ||
19 | RRECOMMENDS:${PN} = "ti-gc320-driver" | 19 | RRECOMMENDS:${PN} = "ti-gc320-driver" |
20 | 20 | ||
@@ -34,8 +34,6 @@ TARGET_PRODUCT = "jacinto6evm" | |||
34 | 34 | ||
35 | PR = "r3" | 35 | PR = "r3" |
36 | 36 | ||
37 | S = "${WORKDIR}/git" | ||
38 | |||
39 | EXTRA_OEMAKE += "DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT} LIBDIR=${libdir}" | 37 | EXTRA_OEMAKE += "DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT} LIBDIR=${libdir}" |
40 | 38 | ||
41 | do_install() { | 39 | do_install() { |
@@ -43,4 +41,8 @@ do_install() { | |||
43 | chown -R root:root ${D} | 41 | chown -R root:root ${D} |
44 | } | 42 | } |
45 | 43 | ||
46 | INSANE_SKIP:${PN} += "ldflags" | 44 | PACKAGES = "${PN} ${PN}-dev" |
45 | FILES:${PN} += "${libdir}/libGAL.so" | ||
46 | FILES:${PN}-dev = "/usr/include" | ||
47 | |||
48 | INSANE_SKIP:${PN} += "ldflags already-stripped dev-so" | ||
diff --git a/meta-ti-bsp/recipes-graphics/mesa/files/0001-fix-gallivm-limit-usage-of-LLVMContextSetOpaquePoint.patch b/meta-ti-bsp/recipes-graphics/mesa/files/0001-fix-gallivm-limit-usage-of-LLVMContextSetOpaquePoint.patch deleted file mode 100644 index 905fad04..00000000 --- a/meta-ti-bsp/recipes-graphics/mesa/files/0001-fix-gallivm-limit-usage-of-LLVMContextSetOpaquePoint.patch +++ /dev/null | |||
@@ -1,128 +0,0 @@ | |||
1 | From 1a894699354f5f984f31e5d3418b651edf486df9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ryan Eatmon <reatmon@ti.com> | ||
3 | Date: Fri, 22 Sep 2023 22:32:41 -0500 | ||
4 | Subject: [PATCH] fix: gallivm: limit usage of LLVMContextSetOpaquePointers() | ||
5 | to LLVM 15 | ||
6 | |||
7 | LLVMContextSetOpaquePointers() was a temporary workaround offered to | ||
8 | allow transitioning to opaque pointers. Mesa is ready for this now with | ||
9 | recent versions of LLVM (16+). Therefore we limit the workaround of | ||
10 | using LLVMContextSetOpaquePointers() to LLVM 15 now, that this C | ||
11 | interface was removed in LLVM 17. | ||
12 | |||
13 | Reference: https://github.com/llvm/llvm-project/commit/1270879376025457e266572c7cccc51eb5de9276 | ||
14 | |||
15 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21124] | ||
16 | Signed-off-by: Ryan Eatmon <reatmon@ti.com> | ||
17 | --- | ||
18 | src/gallium/auxiliary/draw/draw_llvm.c | 2 +- | ||
19 | src/gallium/drivers/llvmpipe/lp_context.c | 2 +- | ||
20 | src/gallium/drivers/llvmpipe/lp_test_arit.c | 2 +- | ||
21 | src/gallium/drivers/llvmpipe/lp_test_blend.c | 2 +- | ||
22 | src/gallium/drivers/llvmpipe/lp_test_conv.c | 2 +- | ||
23 | src/gallium/drivers/llvmpipe/lp_test_format.c | 4 ++-- | ||
24 | src/gallium/drivers/llvmpipe/lp_test_printf.c | 2 +- | ||
25 | 7 files changed, 8 insertions(+), 8 deletions(-) | ||
26 | |||
27 | diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c | ||
28 | index 50c157bc3cc..8b3a1522725 100644 | ||
29 | --- a/src/gallium/auxiliary/draw/draw_llvm.c | ||
30 | +++ b/src/gallium/auxiliary/draw/draw_llvm.c | ||
31 | @@ -784,7 +784,7 @@ draw_llvm_create(struct draw_context *draw, LLVMContextRef context) | ||
32 | if (!llvm->context) { | ||
33 | llvm->context = LLVMContextCreate(); | ||
34 | |||
35 | -#if LLVM_VERSION_MAJOR >= 15 | ||
36 | +#if LLVM_VERSION_MAJOR == 15 | ||
37 | LLVMContextSetOpaquePointers(llvm->context, false); | ||
38 | #endif | ||
39 | |||
40 | diff --git a/src/gallium/drivers/llvmpipe/lp_context.c b/src/gallium/drivers/llvmpipe/lp_context.c | ||
41 | index 8309335aebc..0ef4317fc76 100644 | ||
42 | --- a/src/gallium/drivers/llvmpipe/lp_context.c | ||
43 | +++ b/src/gallium/drivers/llvmpipe/lp_context.c | ||
44 | @@ -263,7 +263,7 @@ llvmpipe_create_context(struct pipe_screen *screen, void *priv, | ||
45 | if (!llvmpipe->context) | ||
46 | goto fail; | ||
47 | |||
48 | -#if LLVM_VERSION_MAJOR >= 15 | ||
49 | +#if LLVM_VERSION_MAJOR == 15 | ||
50 | LLVMContextSetOpaquePointers(llvmpipe->context, false); | ||
51 | #endif | ||
52 | |||
53 | diff --git a/src/gallium/drivers/llvmpipe/lp_test_arit.c b/src/gallium/drivers/llvmpipe/lp_test_arit.c | ||
54 | index 4118928d52e..565b1c47753 100644 | ||
55 | --- a/src/gallium/drivers/llvmpipe/lp_test_arit.c | ||
56 | +++ b/src/gallium/drivers/llvmpipe/lp_test_arit.c | ||
57 | @@ -434,7 +434,7 @@ test_unary(unsigned verbose, FILE *fp, const struct unary_test_t *test, unsigned | ||
58 | } | ||
59 | |||
60 | context = LLVMContextCreate(); | ||
61 | -#if LLVM_VERSION_MAJOR >= 15 | ||
62 | +#if LLVM_VERSION_MAJOR == 15 | ||
63 | LLVMContextSetOpaquePointers(context, false); | ||
64 | #endif | ||
65 | gallivm = gallivm_create("test_module", context, NULL); | ||
66 | diff --git a/src/gallium/drivers/llvmpipe/lp_test_blend.c b/src/gallium/drivers/llvmpipe/lp_test_blend.c | ||
67 | index 37c3f731eaf..3d2899a78d4 100644 | ||
68 | --- a/src/gallium/drivers/llvmpipe/lp_test_blend.c | ||
69 | +++ b/src/gallium/drivers/llvmpipe/lp_test_blend.c | ||
70 | @@ -452,7 +452,7 @@ test_one(unsigned verbose, | ||
71 | dump_blend_type(stdout, blend, type); | ||
72 | |||
73 | context = LLVMContextCreate(); | ||
74 | -#if LLVM_VERSION_MAJOR >= 15 | ||
75 | +#if LLVM_VERSION_MAJOR == 15 | ||
76 | LLVMContextSetOpaquePointers(context, false); | ||
77 | #endif | ||
78 | gallivm = gallivm_create("test_module", context, NULL); | ||
79 | diff --git a/src/gallium/drivers/llvmpipe/lp_test_conv.c b/src/gallium/drivers/llvmpipe/lp_test_conv.c | ||
80 | index c7ea9efc12d..83236f0c0ba 100644 | ||
81 | --- a/src/gallium/drivers/llvmpipe/lp_test_conv.c | ||
82 | +++ b/src/gallium/drivers/llvmpipe/lp_test_conv.c | ||
83 | @@ -223,7 +223,7 @@ test_one(unsigned verbose, | ||
84 | } | ||
85 | |||
86 | context = LLVMContextCreate(); | ||
87 | -#if LLVM_VERSION_MAJOR >= 15 | ||
88 | +#if LLVM_VERSION_MAJOR == 15 | ||
89 | LLVMContextSetOpaquePointers(context, false); | ||
90 | #endif | ||
91 | gallivm = gallivm_create("test_module", context, NULL); | ||
92 | diff --git a/src/gallium/drivers/llvmpipe/lp_test_format.c b/src/gallium/drivers/llvmpipe/lp_test_format.c | ||
93 | index 0a2a1e449e8..89f7d5dec1a 100644 | ||
94 | --- a/src/gallium/drivers/llvmpipe/lp_test_format.c | ||
95 | +++ b/src/gallium/drivers/llvmpipe/lp_test_format.c | ||
96 | @@ -150,7 +150,7 @@ test_format_float(unsigned verbose, FILE *fp, | ||
97 | unsigned i, j, k, l; | ||
98 | |||
99 | context = LLVMContextCreate(); | ||
100 | -#if LLVM_VERSION_MAJOR >= 15 | ||
101 | +#if LLVM_VERSION_MAJOR == 15 | ||
102 | LLVMContextSetOpaquePointers(context, false); | ||
103 | #endif | ||
104 | gallivm = gallivm_create("test_module_float", context, NULL); | ||
105 | @@ -254,7 +254,7 @@ test_format_unorm8(unsigned verbose, FILE *fp, | ||
106 | unsigned i, j, k, l; | ||
107 | |||
108 | context = LLVMContextCreate(); | ||
109 | -#if LLVM_VERSION_MAJOR >= 15 | ||
110 | +#if LLVM_VERSION_MAJOR == 15 | ||
111 | LLVMContextSetOpaquePointers(context, false); | ||
112 | #endif | ||
113 | gallivm = gallivm_create("test_module_unorm8", context, NULL); | ||
114 | diff --git a/src/gallium/drivers/llvmpipe/lp_test_printf.c b/src/gallium/drivers/llvmpipe/lp_test_printf.c | ||
115 | index b3de9cb9e8b..850c0abfe22 100644 | ||
116 | --- a/src/gallium/drivers/llvmpipe/lp_test_printf.c | ||
117 | +++ b/src/gallium/drivers/llvmpipe/lp_test_printf.c | ||
118 | @@ -96,7 +96,7 @@ test_printf(unsigned verbose, FILE *fp, | ||
119 | boolean success = TRUE; | ||
120 | |||
121 | context = LLVMContextCreate(); | ||
122 | -#if LLVM_VERSION_MAJOR >= 15 | ||
123 | +#if LLVM_VERSION_MAJOR == 15 | ||
124 | LLVMContextSetOpaquePointers(context, false); | ||
125 | #endif | ||
126 | gallivm = gallivm_create("test_module", context, NULL); | ||
127 | -- | ||
128 | 2.17.1 | ||
diff --git a/meta-ti-bsp/recipes-graphics/mesa/files/0001-freedreno-pm4-Use-unsigned-instead-of-uint-to-fix-mu.patch b/meta-ti-bsp/recipes-graphics/mesa/files/0001-freedreno-pm4-Use-unsigned-instead-of-uint-to-fix-mu.patch deleted file mode 100644 index f0775176..00000000 --- a/meta-ti-bsp/recipes-graphics/mesa/files/0001-freedreno-pm4-Use-unsigned-instead-of-uint-to-fix-mu.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | From 8a5de0b6cf1090d7f29f3974ec79c32776cf2745 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jami Kettunen <jami.kettunen@protonmail.com> | ||
3 | Date: Tue, 31 Aug 2021 00:15:58 +0300 | ||
4 | Subject: [PATCH] freedreno/pm4: Use unsigned instead of uint to fix musl build | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | |||
8 | Fixes the following error I noticed when building against aarch64 with | ||
9 | musl libc: | ||
10 | |||
11 | In file included from ../src/freedreno/decode/crashdec.h:38, | ||
12 | from ../src/freedreno/decode/crashdec.c:40: | ||
13 | ../src/freedreno/common/freedreno_pm4.h:104:15: error: unknown type name 'uint' | ||
14 | 104 | static inline uint | ||
15 | | ^~~~ | ||
16 | ../src/freedreno/common/freedreno_pm4.h:105:25: error: unknown type name 'uint'; did you mean 'int'? | ||
17 | 105 | pm4_calc_odd_parity_bit(uint val) | ||
18 | | ^~~~ | ||
19 | | int | ||
20 | |||
21 | Signed-off-by: Jami Kettunen <jami.kettunen@protonmail.com> | ||
22 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19665> | ||
23 | --- | ||
24 | src/freedreno/common/freedreno_pm4.h | 4 ++-- | ||
25 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
26 | |||
27 | diff --git a/src/freedreno/common/freedreno_pm4.h b/src/freedreno/common/freedreno_pm4.h | ||
28 | index 8f958953d693..091247e709a0 100644 | ||
29 | --- a/src/freedreno/common/freedreno_pm4.h | ||
30 | +++ b/src/freedreno/common/freedreno_pm4.h | ||
31 | @@ -105,8 +105,8 @@ pm4_pkt7_hdr(uint8_t opcode, uint16_t cnt) | ||
32 | #define cp_type3_opcode(pkt) (((pkt) >> 8) & 0xFF) | ||
33 | #define type3_pkt_size(pkt) ((((pkt) >> 16) & 0x3FFF) + 1) | ||
34 | |||
35 | -static inline uint | ||
36 | -pm4_calc_odd_parity_bit(uint val) | ||
37 | +static inline unsigned | ||
38 | +pm4_calc_odd_parity_bit(unsigned val) | ||
39 | { | ||
40 | return (0x9669 >> (0xf & ((val) ^ ((val) >> 4) ^ ((val) >> 8) ^ | ||
41 | ((val) >> 12) ^ ((val) >> 16) ^ ((val) >> 20) ^ | ||
42 | -- | ||
43 | 2.39.2 | ||
diff --git a/meta-ti-bsp/recipes-graphics/mesa/files/0001-gallium-Fix-build-with-llvm-17.patch b/meta-ti-bsp/recipes-graphics/mesa/files/0001-gallium-Fix-build-with-llvm-17.patch deleted file mode 100644 index bdfe7bb8..00000000 --- a/meta-ti-bsp/recipes-graphics/mesa/files/0001-gallium-Fix-build-with-llvm-17.patch +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | From 2dfe0f899aeb415a5491b8c67e208673d2a2914f Mon Sep 17 00:00:00 2001 | ||
2 | From: Ryan Eatmon <reatmon@ti.com> | ||
3 | Date: Fri, 22 Sep 2023 21:50:08 -0500 | ||
4 | Subject: [PATCH] gallium: Fix build with llvm 17 | ||
5 | |||
6 | These headers are not available for C files in llvm 17+ | ||
7 | and they seem to be not needed to compile after all with llvm 17 | ||
8 | so add conditions to exclude them for llvm >= 17 | ||
9 | |||
10 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21262] | ||
11 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22980] | ||
12 | Signed-off-by: Ryan Eatmon <reatmon@ti.com> | ||
13 | --- | ||
14 | src/gallium/auxiliary/gallivm/lp_bld_init.c | 8 ++++---- | ||
15 | src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 4 ++++ | ||
16 | 2 files changed, 8 insertions(+), 4 deletions(-) | ||
17 | |||
18 | diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c | ||
19 | index 584ea738668..fe8bb2b11af 100644 | ||
20 | --- a/src/gallium/auxiliary/gallivm/lp_bld_init.c | ||
21 | +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c | ||
22 | @@ -42,14 +42,14 @@ | ||
23 | |||
24 | #include <llvm/Config/llvm-config.h> | ||
25 | #include <llvm-c/Analysis.h> | ||
26 | -#include <llvm-c/Transforms/Scalar.h> | ||
27 | -#if LLVM_VERSION_MAJOR >= 7 | ||
28 | -#include <llvm-c/Transforms/Utils.h> | ||
29 | -#endif | ||
30 | #include <llvm-c/BitWriter.h> | ||
31 | #if GALLIVM_USE_NEW_PASS == 1 | ||
32 | #include <llvm-c/Transforms/PassBuilder.h> | ||
33 | #elif GALLIVM_HAVE_CORO == 1 | ||
34 | +#include <llvm-c/Transforms/Scalar.h> | ||
35 | +#if LLVM_VERSION_MAJOR >= 7 | ||
36 | +#include <llvm-c/Transforms/Utils.h> | ||
37 | +#endif | ||
38 | #if LLVM_VERSION_MAJOR <= 8 && (defined(PIPE_ARCH_AARCH64) || defined (PIPE_ARCH_ARM) || defined(PIPE_ARCH_S390) || defined(PIPE_ARCH_MIPS64)) | ||
39 | #include <llvm-c/Transforms/IPO.h> | ||
40 | #endif | ||
41 | diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | ||
42 | index 2279e5acb28..0caeaf94263 100644 | ||
43 | --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | ||
44 | +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | ||
45 | @@ -56,7 +56,11 @@ | ||
46 | #include <llvm-c/ExecutionEngine.h> | ||
47 | #include <llvm/Target/TargetOptions.h> | ||
48 | #include <llvm/ExecutionEngine/ExecutionEngine.h> | ||
49 | +#if LLVM_VERSION_MAJOR >= 17 | ||
50 | +#include <llvm/TargetParser/Triple.h> | ||
51 | +#else | ||
52 | #include <llvm/ADT/Triple.h> | ||
53 | +#endif | ||
54 | #include <llvm/Analysis/TargetLibraryInfo.h> | ||
55 | #include <llvm/ExecutionEngine/SectionMemoryManager.h> | ||
56 | #include <llvm/Support/CommandLine.h> | ||
57 | -- | ||
58 | 2.17.1 | ||
diff --git a/meta-ti-bsp/recipes-graphics/mesa/files/0001-gbm-backend-fix-gbm-compile-without-dri.patch b/meta-ti-bsp/recipes-graphics/mesa/files/0001-gbm-backend-fix-gbm-compile-without-dri.patch deleted file mode 100644 index 289ff032..00000000 --- a/meta-ti-bsp/recipes-graphics/mesa/files/0001-gbm-backend-fix-gbm-compile-without-dri.patch +++ /dev/null | |||
@@ -1,64 +0,0 @@ | |||
1 | From 25946100e21cf2095bea334e8d7096798561d0b7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Vincent Davis Jr <vince@underview.tech> | ||
3 | Date: Wed, 28 Dec 2022 16:28:01 -0600 | ||
4 | Subject: [PATCH] gbm/backend: fix gbm compile without dri | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | |||
8 | https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20447 | ||
9 | https://gitlab.freedesktop.org/mesa/mesa/-/commit/842ca284650f066e58706741a7d22d67b5088e60 | ||
10 | |||
11 | At mesa version 22.2.3 patch wasn't introduced until after. | ||
12 | |||
13 | Commit introduces a fix that allows for gbm to be built with an empty | ||
14 | backend. There are situation especially in a Yocto/OE cross compilation | ||
15 | environment where you want to build with an empty backend. The particular | ||
16 | situation is as such: | ||
17 | |||
18 | The mesa-gl recipe is the preferred provider for virtual/libgbm, virtual/libgl, | ||
19 | virtual/mesa, etc... But the x11 DISTRO_FEATURE in't included this leads to build | ||
20 | errors such as: | ||
21 | |||
22 | | /../../../ld: src/gbm/libgbm.so.1.0.0.p/main_backend.c.o: in function `find_backend': | ||
23 | | backend.c:(.text.find_backend+0xa4): undefined reference to `gbm_dri_backend' | ||
24 | | /../../../ld: src/gbm/libgbm.so.1.0.0.p/main_backend.c.o:(.data.rel.ro.builtin_backends+0x4): | ||
25 | undefined reference to `gbm_dri_backend' | ||
26 | | collect2: error: ld returned 1 exit status | ||
27 | |||
28 | Issue should be replicable by setting -Ddri3=disabled and -Dgbm=enabled | ||
29 | |||
30 | Add fix to bypasses compilation issue by excluding gbm dri backend. If | ||
31 | HAVE_DRI || HAVE_DRIX not specified. | ||
32 | |||
33 | Acked-by: David Heidelberg <david.heidelberg@collabora.com> | ||
34 | Signed-off-by: Vincent Davis Jr <vince@underview.tech> | ||
35 | --- | ||
36 | src/gbm/main/backend.c | 4 ++++ | ||
37 | 1 file changed, 4 insertions(+) | ||
38 | |||
39 | diff --git a/src/gbm/main/backend.c b/src/gbm/main/backend.c | ||
40 | index 974d0a76a4e..feee0703495 100644 | ||
41 | --- a/src/gbm/main/backend.c | ||
42 | +++ b/src/gbm/main/backend.c | ||
43 | @@ -42,7 +42,9 @@ | ||
44 | #define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0])) | ||
45 | #define VER_MIN(a, b) ((a) < (b) ? (a) : (b)) | ||
46 | |||
47 | +#if defined(HAVE_DRI) || defined(HAVE_DRI2) || defined(HAVE_DRI3) | ||
48 | extern const struct gbm_backend gbm_dri_backend; | ||
49 | +#endif | ||
50 | |||
51 | struct gbm_backend_desc { | ||
52 | const char *name; | ||
53 | @@ -51,7 +53,9 @@ struct gbm_backend_desc { | ||
54 | }; | ||
55 | |||
56 | static const struct gbm_backend_desc builtin_backends[] = { | ||
57 | +#if defined(HAVE_DRI) || defined(HAVE_DRI2) || defined(HAVE_DRI3) | ||
58 | { "dri", &gbm_dri_backend }, | ||
59 | +#endif | ||
60 | }; | ||
61 | |||
62 | #define BACKEND_LIB_SUFFIX "_gbm" | ||
63 | -- | ||
64 | 2.34.1 | ||
diff --git a/meta-ti-bsp/recipes-graphics/mesa/files/0001-util-format-Check-for-NEON-before-using-it.patch b/meta-ti-bsp/recipes-graphics/mesa/files/0001-util-format-Check-for-NEON-before-using-it.patch deleted file mode 100644 index 6eea5ed8..00000000 --- a/meta-ti-bsp/recipes-graphics/mesa/files/0001-util-format-Check-for-NEON-before-using-it.patch +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | From f17e836ef9b1bbc6056790596420b699e48128c2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 2 Dec 2021 19:57:42 -0800 | ||
4 | Subject: [PATCH] util/format: Check for NEON before using it | ||
5 | |||
6 | This fixes build on rpi0-w and any other machine which does not have | ||
7 | neon unit and is not used as FPU unit | ||
8 | |||
9 | Fixes errors e.g. | ||
10 | |||
11 | In file included from ../mesa-21.3.0/src/util/format/u_format_unpack_neon.c:35: | ||
12 | /mnt/b/yoe/master/build/tmp/work/arm1176jzfshf-vfp-yoe-linux-gnueabi/mesa/2_21.3.0-r0/recipe-sysroot-native/usr/lib/clang/13.0.1/include/arm_neon.h:32:2: error: "NEON support not enabled" | ||
13 | |||
14 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14032] | ||
15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
16 | |||
17 | --- | ||
18 | src/util/format/u_format.c | 2 +- | ||
19 | src/util/format/u_format_unpack_neon.c | 2 +- | ||
20 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
21 | |||
22 | diff --git a/src/util/format/u_format.c b/src/util/format/u_format.c | ||
23 | index c071250..0880984 100644 | ||
24 | --- a/src/util/format/u_format.c | ||
25 | +++ b/src/util/format/u_format.c | ||
26 | @@ -1184,7 +1184,7 @@ static void | ||
27 | util_format_unpack_table_init(void) | ||
28 | { | ||
29 | for (enum pipe_format format = PIPE_FORMAT_NONE; format < PIPE_FORMAT_COUNT; format++) { | ||
30 | -#if (defined(PIPE_ARCH_AARCH64) || defined(PIPE_ARCH_ARM)) && !defined(NO_FORMAT_ASM) && !defined(__SOFTFP__) | ||
31 | +#if (defined(PIPE_ARCH_AARCH64) || (defined(__ARM_NEON) && defined(PIPE_ARCH_ARM))) && !defined(NO_FORMAT_ASM) | ||
32 | const struct util_format_unpack_description *unpack = util_format_unpack_description_neon(format); | ||
33 | if (unpack) { | ||
34 | util_format_unpack_table[format] = unpack; | ||
35 | diff --git a/src/util/format/u_format_unpack_neon.c b/src/util/format/u_format_unpack_neon.c | ||
36 | index a4a5cb1..1e4f794 100644 | ||
37 | --- a/src/util/format/u_format_unpack_neon.c | ||
38 | +++ b/src/util/format/u_format_unpack_neon.c | ||
39 | @@ -23,7 +23,7 @@ | ||
40 | |||
41 | #include <u_format.h> | ||
42 | |||
43 | -#if (defined(PIPE_ARCH_AARCH64) || defined(PIPE_ARCH_ARM)) && !defined(NO_FORMAT_ASM) && !defined(__SOFTFP__) | ||
44 | +#if (defined(PIPE_ARCH_AARCH64) || (defined(__ARM_NEON) && defined(PIPE_ARCH_ARM))) && !defined(NO_FORMAT_ASM) | ||
45 | |||
46 | /* armhf builds default to vfp, not neon, and refuses to compile neon intrinsics | ||
47 | * unless you tell it "no really". | ||
diff --git a/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-Update-lp_bld_misc.cpp-to-support-llvm-19.patch b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-Update-lp_bld_misc.cpp-to-support-llvm-19.patch new file mode 100644 index 00000000..9e5bb342 --- /dev/null +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-Update-lp_bld_misc.cpp-to-support-llvm-19.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From fa9cd89a85b904615ebc11da609445b5b751e68d Mon Sep 17 00:00:00 2001 | ||
2 | From: Satadru Pramanik <satadru@umich.edu> | ||
3 | Date: Sat, 5 Oct 2024 13:35:52 +0000 | ||
4 | Subject: [PATCH] Update lp_bld_misc.cpp to support llvm-19+. | ||
5 | |||
6 | Fixes #11896. | ||
7 | cc: mesa-stable | ||
8 | |||
9 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31533> | ||
10 | Upstream-Status: Backport [https://gitlab.freedesktop.org/mesa/mesa/-/commit/fa9cd89a85b904615ebc11da609445b5b751e68d] | ||
11 | Signed-off-by: Randolph Sapp <rs@ti.com> | ||
12 | --- | ||
13 | src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 10 ++++++++-- | ||
14 | 1 file changed, 8 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | ||
17 | index 7975fcf1ac9..5b615d627ff 100644 | ||
18 | --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | ||
19 | +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | ||
20 | @@ -329,8 +329,14 @@ lp_build_fill_mattrs(std::vector<std::string> &MAttrs) | ||
21 | * which allows us to enable/disable code generation based | ||
22 | * on the results of cpuid on these architectures. | ||
23 | */ | ||
24 | - llvm::StringMap<bool> features; | ||
25 | - llvm::sys::getHostCPUFeatures(features); | ||
26 | + #if LLVM_VERSION_MAJOR >= 19 | ||
27 | + /* llvm-19+ returns StringMap from getHostCPUFeatures. | ||
28 | + */ | ||
29 | + auto features = llvm::sys::getHostCPUFeatures(); | ||
30 | + #else | ||
31 | + llvm::StringMap<bool> features; | ||
32 | + llvm::sys::getHostCPUFeatures(features); | ||
33 | + #endif | ||
34 | |||
35 | for (llvm::StringMapIterator<bool> f = features.begin(); | ||
36 | f != features.end(); | ||
37 | -- | ||
38 | 2.47.1 | ||
diff --git a/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-drisw-fix-build-without-dri3.patch b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-drisw-fix-build-without-dri3.patch new file mode 100644 index 00000000..9d662b34 --- /dev/null +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-drisw-fix-build-without-dri3.patch | |||
@@ -0,0 +1,57 @@ | |||
1 | From 4bd15a419e892da843489c374c58c5b29c40b5d6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Romain Naour <romain.naour@smile.fr> | ||
3 | Date: Tue, 6 Feb 2024 09:47:09 +0100 | ||
4 | Subject: [PATCH 1/2] drisw: fix build without dri3 | ||
5 | |||
6 | commit 1887368df41 ("glx/sw: check for modifier support in the kopper path") | ||
7 | added dri3_priv.h header and dri3_check_multibuffer() function in drisw that | ||
8 | can be build without dri3. | ||
9 | |||
10 | i686-buildroot-linux-gnu/bin/ld: src/glx/libglx.a.p/drisw_glx.c.o: in function `driswCreateScreenDriver': | ||
11 | drisw_glx.c:(.text.driswCreateScreenDriver+0x3a0): undefined reference to `dri3_check_multibuffer' | ||
12 | collect2: error: ld returned 1 exit status | ||
13 | |||
14 | Add HAVE_DRI3 guard around dri3_priv.h header and the zink code using | ||
15 | dri3_check_multibuffer(). | ||
16 | |||
17 | Fixes: 1887368df41 ("glx/sw: check for modifier support in the kopper path") | ||
18 | |||
19 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27478] | ||
20 | Signed-off-by: Romain Naour <romain.naour@smile.fr> | ||
21 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
22 | --- | ||
23 | src/glx/drisw_glx.c | 4 ++++ | ||
24 | 1 file changed, 4 insertions(+) | ||
25 | |||
26 | diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c | ||
27 | index 3d3f752..4b19e2d 100644 | ||
28 | --- a/src/glx/drisw_glx.c | ||
29 | +++ b/src/glx/drisw_glx.c | ||
30 | @@ -32,7 +32,9 @@ | ||
31 | #include <dlfcn.h> | ||
32 | #include "dri_common.h" | ||
33 | #include "drisw_priv.h" | ||
34 | +#ifdef HAVE_DRI3 | ||
35 | #include "dri3_priv.h" | ||
36 | +#endif | ||
37 | #include <X11/extensions/shmproto.h> | ||
38 | #include <assert.h> | ||
39 | #include <vulkan/vulkan_core.h> | ||
40 | @@ -995,6 +997,7 @@ driswCreateScreenDriver(int screen, struct glx_display *priv, | ||
41 | goto handle_error; | ||
42 | } | ||
43 | |||
44 | +#ifdef HAVE_DRI3 | ||
45 | if (pdpyp->zink) { | ||
46 | bool err; | ||
47 | psc->has_multibuffer = dri3_check_multibuffer(priv->dpy, &err); | ||
48 | @@ -1005,6 +1008,7 @@ driswCreateScreenDriver(int screen, struct glx_display *priv, | ||
49 | goto handle_error; | ||
50 | } | ||
51 | } | ||
52 | +#endif | ||
53 | |||
54 | glx_config_destroy_list(psc->base.configs); | ||
55 | psc->base.configs = configs; | ||
56 | -- | ||
57 | 2.44.0 | ||
diff --git a/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-gallium-Fix-build-with-llvm-17.patch b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-gallium-Fix-build-with-llvm-17.patch new file mode 100644 index 00000000..738ff267 --- /dev/null +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-gallium-Fix-build-with-llvm-17.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From 6d07f6aa7f92f40d78a2db645f16f0f3e7d3c2e8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 23 Jun 2023 01:20:38 -0700 | ||
4 | Subject: [PATCH] gallium: Fix build with llvm 17 | ||
5 | |||
6 | These headers are not available for C files in llvm 17+ | ||
7 | and they seem to be not needed to compile after all with llvm 17 | ||
8 | so add conditions to exclude them for llvm >= 17 | ||
9 | |||
10 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23827] | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | |||
13 | --- | ||
14 | src/gallium/auxiliary/gallivm/lp_bld_init.c | 6 +++++- | ||
15 | 1 file changed, 5 insertions(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c | ||
18 | index cd2108f..b1a4d03 100644 | ||
19 | --- a/src/gallium/auxiliary/gallivm/lp_bld_init.c | ||
20 | +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c | ||
21 | @@ -46,15 +46,19 @@ | ||
22 | #if GALLIVM_USE_NEW_PASS == 1 | ||
23 | #include <llvm-c/Transforms/PassBuilder.h> | ||
24 | #elif GALLIVM_HAVE_CORO == 1 | ||
25 | +#if LLVM_VERSION_MAJOR < 17 | ||
26 | #include <llvm-c/Transforms/Scalar.h> | ||
27 | -#if LLVM_VERSION_MAJOR >= 7 | ||
28 | +#endif | ||
29 | +#if LLVM_VERSION_MAJOR >= 7 && LLVM_VERSION_MAJOR < 17 | ||
30 | #include <llvm-c/Transforms/Utils.h> | ||
31 | #endif | ||
32 | #if LLVM_VERSION_MAJOR <= 8 && (DETECT_ARCH_AARCH64 || DETECT_ARCH_ARM || DETECT_ARCH_S390 || DETECT_ARCH_MIPS64) | ||
33 | #include <llvm-c/Transforms/IPO.h> | ||
34 | #endif | ||
35 | +#if LLVM_VERSION_MAJOR < 17 | ||
36 | #include <llvm-c/Transforms/Coroutines.h> | ||
37 | #endif | ||
38 | +#endif | ||
39 | |||
40 | unsigned gallivm_perf = 0; | ||
diff --git a/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-gallivm-Call-StringMapIterator-from-llvm-scope.patch b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-gallivm-Call-StringMapIterator-from-llvm-scope.patch new file mode 100644 index 00000000..1751df6f --- /dev/null +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-gallivm-Call-StringMapIterator-from-llvm-scope.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From d17338d403980e1932a42f5d11c2a1fb7b25127b Mon Sep 17 00:00:00 2001 | ||
2 | From: MastaG <mastag@gmail.com> | ||
3 | Date: Wed, 3 Jul 2024 21:00:42 +0200 | ||
4 | Subject: [PATCH] gallivm: Call StringMapIterator from llvm:: scope | ||
5 | |||
6 | Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11392 | ||
7 | Fixes: b035d9cab5a4 ("gallivm: use getHostCPUFeatures on x86/llvm-4.0+.") | ||
8 | Reviewed-by: David Heidelberg <david@ixit.cz> | ||
9 | Signed-off-by: David Heidelberg <david@ixit.cz> | ||
10 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30009> | ||
11 | Upstream-Status: Backport [https://gitlab.freedesktop.org/mesa/mesa/-/commit/d17338d403980e1932a42f5d11c2a1fb7b25127b] | ||
12 | Signed-off-by: Randolph Sapp <rs@ti.com> | ||
13 | --- | ||
14 | src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | ||
18 | index 95a8a6c6a08..f3c10652ed6 100644 | ||
19 | --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | ||
20 | +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | ||
21 | @@ -332,7 +332,7 @@ lp_build_fill_mattrs(std::vector<std::string> &MAttrs) | ||
22 | llvm::StringMap<bool> features; | ||
23 | llvm::sys::getHostCPUFeatures(features); | ||
24 | |||
25 | - for (StringMapIterator<bool> f = features.begin(); | ||
26 | + for (llvm::StringMapIterator<bool> f = features.begin(); | ||
27 | f != features.end(); | ||
28 | ++f) { | ||
29 | MAttrs.push_back(((*f).second ? "+" : "-") + (*f).first().str()); | ||
30 | -- | ||
31 | 2.47.1 | ||
diff --git a/meta-ti-bsp/recipes-graphics/mesa/files/0001-meson-misdetects-64bit-atomics-on-mips-clang.patch b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-meson-misdetects-64bit-atomics-on-mips-clang.patch index 35bd0ea1..35bd0ea1 100644 --- a/meta-ti-bsp/recipes-graphics/mesa/files/0001-meson-misdetects-64bit-atomics-on-mips-clang.patch +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-meson-misdetects-64bit-atomics-on-mips-clang.patch | |||
diff --git a/meta-ti-bsp/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-meson.build-check-for-all-linux-host_os-combinations.patch index f0c1de46..964e0a44 100644 --- a/meta-ti-bsp/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0001-meson.build-check-for-all-linux-host_os-combinations.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 3b4d6b89f644b43e507c08181fef06db4326f9da Mon Sep 17 00:00:00 2001 | 1 | From f2fe76d506f356de055b8eca83a7c9d0744a40af Mon Sep 17 00:00:00 2001 |
2 | From: Alistair Francis <alistair@alistair23.me> | 2 | From: Alistair Francis <alistair@alistair23.me> |
3 | Date: Thu, 14 Nov 2019 13:04:49 -0800 | 3 | Date: Thu, 14 Nov 2019 13:04:49 -0800 |
4 | Subject: [PATCH] meson.build: check for all linux host_os combinations | 4 | Subject: [PATCH] meson.build: check for all linux host_os combinations |
@@ -20,24 +20,24 @@ Signed-off-by: Alistair Francis <alistair@alistair23.me> | |||
20 | 1 file changed, 2 insertions(+), 2 deletions(-) | 20 | 1 file changed, 2 insertions(+), 2 deletions(-) |
21 | 21 | ||
22 | diff --git a/meson.build b/meson.build | 22 | diff --git a/meson.build b/meson.build |
23 | index 172c64a..9b5294c 100644 | 23 | index 35cc5f1..9a49c0d 100644 |
24 | --- a/meson.build | 24 | --- a/meson.build |
25 | +++ b/meson.build | 25 | +++ b/meson.build |
26 | @@ -173,7 +173,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2 | 26 | @@ -128,7 +128,7 @@ |
27 | # Only build shared_glapi if at least one OpenGL API is enabled | 27 | # Only build shared_glapi if at least one OpenGL API is enabled |
28 | with_shared_glapi = with_shared_glapi and with_any_opengl | 28 | with_shared_glapi = with_shared_glapi and with_any_opengl |
29 | 29 | ||
30 | -system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux', 'sunos', 'android'].contains(host_machine.system()) | 30 | -system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux', 'sunos', 'android', 'managarm'].contains(host_machine.system()) |
31 | +system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux', 'sunos', 'android'].contains(host_machine.system()) or host_machine.system().startswith('linux') | 31 | +system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux', 'sunos', 'android', 'managarm'].contains(host_machine.system()) or host_machine.system().startswith('linux') |
32 | 32 | ||
33 | with_freedreno_kgsl = get_option('freedreno-kgsl') | 33 | gallium_drivers = get_option('gallium-drivers') |
34 | if with_freedreno_kgsl | 34 | if gallium_drivers.contains('auto') |
35 | @@ -1076,7 +1076,7 @@ if cc.has_function('reallocarray') | 35 | @@ -998,7 +998,7 @@ |
36 | endif | 36 | endif |
37 | 37 | ||
38 | # TODO: this is very incomplete | 38 | # TODO: this is very incomplete |
39 | -if ['linux', 'cygwin', 'gnu', 'freebsd', 'gnu/kfreebsd', 'haiku', 'android'].contains(host_machine.system()) | 39 | -if ['linux', 'cygwin', 'gnu', 'freebsd', 'gnu/kfreebsd', 'haiku', 'android', 'managarm'].contains(host_machine.system()) |
40 | +if ['linux', 'cygwin', 'gnu', 'freebsd', 'gnu/kfreebsd', 'haiku'].contains(host_machine.system()) or host_machine.system().startswith('linux') | 40 | +if ['linux', 'cygwin', 'gnu', 'freebsd', 'gnu/kfreebsd', 'haiku', 'android', 'managarm'].contains(host_machine.system()) or host_machine.system().startswith('linux') |
41 | pre_args += '-D_GNU_SOURCE' | 41 | pre_args += '-D_GNU_SOURCE' |
42 | elif host_machine.system() == 'sunos' | 42 | elif host_machine.system() == 'sunos' |
43 | pre_args += '-D__EXTENSIONS__' | 43 | pre_args += '-D__EXTENSIONS__' |
diff --git a/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0002-glxext-don-t-try-zink-if-not-enabled-in-mesa.patch b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0002-glxext-don-t-try-zink-if-not-enabled-in-mesa.patch new file mode 100644 index 00000000..1203c446 --- /dev/null +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr-24.0.1/0002-glxext-don-t-try-zink-if-not-enabled-in-mesa.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 62495ebb977866c52d5bed8499a547c49f0d9bc1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Romain Naour <romain.naour@smile.fr> | ||
3 | Date: Tue, 6 Feb 2024 09:47:10 +0100 | ||
4 | Subject: [PATCH 2/2] glxext: don't try zink if not enabled in mesa | ||
5 | |||
6 | Commit 7d9ea77b459 ("glx: add automatic zink fallback loading between hw and sw drivers") | ||
7 | added an automatic zink fallback even when the zink gallium is not | ||
8 | enabled at build time. | ||
9 | |||
10 | It leads to unexpected error log while loading drisw driver and | ||
11 | zink is not installed on the rootfs: | ||
12 | |||
13 | MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so | ||
14 | |||
15 | Fixes: 7d9ea77b459 ("glx: add automatic zink fallback loading between hw and sw drivers") | ||
16 | |||
17 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27478] | ||
18 | Signed-off-by: Romain Naour <romain.naour@smile.fr> | ||
19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
20 | --- | ||
21 | src/glx/glxext.c | 2 ++ | ||
22 | 1 file changed, 2 insertions(+) | ||
23 | |||
24 | diff --git a/src/glx/glxext.c b/src/glx/glxext.c | ||
25 | index 05c825a..7a06aa9 100644 | ||
26 | --- a/src/glx/glxext.c | ||
27 | +++ b/src/glx/glxext.c | ||
28 | @@ -908,9 +908,11 @@ __glXInitialize(Display * dpy) | ||
29 | #endif /* HAVE_DRI3 */ | ||
30 | if (!debug_get_bool_option("LIBGL_DRI2_DISABLE", false)) | ||
31 | dpyPriv->dri2Display = dri2CreateDisplay(dpy); | ||
32 | +#if defined(HAVE_ZINK) | ||
33 | if (!dpyPriv->dri3Display && !dpyPriv->dri2Display) | ||
34 | try_zink = !debug_get_bool_option("LIBGL_KOPPER_DISABLE", false) && | ||
35 | !getenv("GALLIUM_DRIVER"); | ||
36 | +#endif /* HAVE_ZINK */ | ||
37 | } | ||
38 | #endif /* GLX_USE_DRM */ | ||
39 | if (glx_direct) | ||
40 | -- | ||
41 | 2.44.0 | ||
diff --git a/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr.inc b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr.inc new file mode 100644 index 00000000..45d5ada3 --- /dev/null +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr.inc | |||
@@ -0,0 +1,370 @@ | |||
1 | # Copy of mesa.inc from OE-core before commit f9eb0468e45e ("mesa: upgrade 24.0.7 -> 25.0.2") | ||
2 | |||
3 | SUMMARY = "A free implementation of the OpenGL API" | ||
4 | DESCRIPTION = "Mesa is an open-source implementation of the OpenGL specification - \ | ||
5 | a system for rendering interactive 3D graphics. \ | ||
6 | A variety of device drivers allows Mesa to be used in many different environments \ | ||
7 | ranging from software emulation to complete hardware acceleration for modern GPUs. \ | ||
8 | Mesa is used as part of the overall Direct Rendering Infrastructure and X.org \ | ||
9 | environment." | ||
10 | |||
11 | HOMEPAGE = "http://mesa3d.org" | ||
12 | BUGTRACKER = "https://bugs.freedesktop.org" | ||
13 | SECTION = "x11" | ||
14 | LICENSE = "MIT" | ||
15 | LIC_FILES_CHKSUM = "file://docs/license.rst;md5=63779ec98d78d823a9dc533a0735ef10" | ||
16 | |||
17 | PE = "2" | ||
18 | |||
19 | SRC_URI = "https://archive.mesa3d.org/mesa-${PV}.tar.xz \ | ||
20 | file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \ | ||
21 | file://0001-drisw-fix-build-without-dri3.patch \ | ||
22 | file://0002-glxext-don-t-try-zink-if-not-enabled-in-mesa.patch \ | ||
23 | file://0001-Revert-meson-do-not-pull-in-clc-for-clover.patch \ | ||
24 | file://0001-amd-Include-missing-llvm-IR-header-Module.h.patch \ | ||
25 | file://0001-freedreno-don-t-encode-build-path-into-binaries.patch\ | ||
26 | " | ||
27 | |||
28 | SRC_URI[sha256sum] = "7454425f1ed4a6f1b5b107e1672b30c88b22ea0efea000ae2c7d96db93f6c26a" | ||
29 | PV = "24.0.7" | ||
30 | |||
31 | UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)" | ||
32 | |||
33 | #because we cannot rely on the fact that all apps will use pkgconfig, | ||
34 | #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER | ||
35 | do_install:append() { | ||
36 | # sed can't find EGL/eglplatform.h as it doesn't get installed when glvnd enabled. | ||
37 | # So, check if EGL/eglplatform.h exists before running sed. | ||
38 | if ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'true', 'false', d)} && [ -f ${D}${includedir}/EGL/eglplatform.h ]; then | ||
39 | sed -i -e 's/^#elif defined(__unix__) && defined(EGL_NO_X11)$/#elif defined(__unix__) \&\& defined(EGL_NO_X11) || ${@bb.utils.contains('PACKAGECONFIG', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h | ||
40 | fi | ||
41 | } | ||
42 | |||
43 | DEPENDS = "expat makedepend-native flex-native bison-native libxml2-native zlib chrpath-replacement-native python3-mako-native gettext-native" | ||
44 | DEPENDS:append:class-target = " ${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'mesa-native', '', d)}" | ||
45 | EXTRANATIVEPATH += "chrpath-native" | ||
46 | PROVIDES = " \ | ||
47 | ${@bb.utils.contains('PACKAGECONFIG', 'opengl', 'virtual/libgl', '', d)} \ | ||
48 | ${@bb.utils.contains('PACKAGECONFIG', 'glvnd', 'virtual/libglx', '', d)} \ | ||
49 | ${@bb.utils.contains('PACKAGECONFIG', 'gles', 'virtual/libgles1 virtual/libgles2 virtual/libgles3', '', d)} \ | ||
50 | ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'virtual/egl', '', d)} \ | ||
51 | ${@bb.utils.contains('PACKAGECONFIG', 'gbm', 'virtual/libgbm', '', d)} \ | ||
52 | virtual/mesa \ | ||
53 | " | ||
54 | |||
55 | inherit meson pkgconfig python3native gettext features_check | ||
56 | |||
57 | BBCLASSEXTEND = "native nativesdk" | ||
58 | |||
59 | ANY_OF_DISTRO_FEATURES = "opengl vulkan" | ||
60 | |||
61 | PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)}" | ||
62 | |||
63 | # set the MESA_BUILD_TYPE to either 'release' (default) or 'debug' | ||
64 | # by default the upstream mesa sources build a debug release | ||
65 | # here we assume the user will want a release build by default | ||
66 | MESA_BUILD_TYPE ?= "release" | ||
67 | def check_buildtype(d): | ||
68 | _buildtype = d.getVar('MESA_BUILD_TYPE') | ||
69 | if _buildtype not in ['release', 'debug']: | ||
70 | bb.fatal("unknown build type (%s), please set MESA_BUILD_TYPE to either 'release' or 'debug'" % _buildtype) | ||
71 | if _buildtype == 'debug': | ||
72 | return 'debugoptimized' | ||
73 | return 'plain' | ||
74 | MESON_BUILDTYPE = "${@check_buildtype(d)}" | ||
75 | |||
76 | EXTRA_OEMESON = " \ | ||
77 | -Dshared-glapi=enabled \ | ||
78 | -Dglx-read-only-text=true \ | ||
79 | -Dplatforms='${@",".join("${PLATFORMS}".split())}' \ | ||
80 | " | ||
81 | |||
82 | EXTRA_OEMESON:append:class-target = " ${@bb.utils.contains('PACKAGECONFIG', 'opencl', '-Dintel-clc=system', '', d)}" | ||
83 | EXTRA_OEMESON:append:class-native = " ${@bb.utils.contains('PACKAGECONFIG', 'opencl', '-Dintel-clc=enabled', '', d)}" | ||
84 | |||
85 | def strip_comma(s): | ||
86 | return s.strip(',') | ||
87 | |||
88 | PACKAGECONFIG = " \ | ||
89 | gallium \ | ||
90 | video-codecs \ | ||
91 | ${@bb.utils.filter('DISTRO_FEATURES', 'x11 vulkan wayland', d)} \ | ||
92 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'opengl egl gles gbm virgl', '', d)} \ | ||
93 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'dri3', '', d)} \ | ||
94 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 'dri3', '', d)} \ | ||
95 | ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'zink', '', d)} \ | ||
96 | " | ||
97 | |||
98 | PACKAGECONFIG:append:class-native = " gallium-llvm r600" | ||
99 | |||
100 | # "gbm" requires "opengl" | ||
101 | PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled" | ||
102 | |||
103 | X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes xrandr" | ||
104 | # "x11" requires "opengl" | ||
105 | PACKAGECONFIG[x11] = ",-Dglx=disabled,${X11_DEPS}" | ||
106 | PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols" | ||
107 | |||
108 | PACKAGECONFIG[dri3] = "-Ddri3=enabled, -Ddri3=disabled, xorgproto libxshmfence" | ||
109 | |||
110 | # Vulkan drivers need dri3 enabled | ||
111 | # amd could be enabled as well but requires gallium-llvm with llvm >= 3.9 | ||
112 | VULKAN_DRIVERS = "" | ||
113 | VULKAN_DRIVERS:append:x86 = ",intel,amd" | ||
114 | VULKAN_DRIVERS:append:x86-64 = ",intel,amd" | ||
115 | # i686 is a 32 bit override for mesa-native | ||
116 | VULKAN_DRIVERS:append:i686 = ",intel,amd" | ||
117 | VULKAN_DRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" | ||
118 | VULKAN_DRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'broadcom', ',broadcom', '', d)}" | ||
119 | VULKAN_DRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', ',swrast', '', d)}" | ||
120 | VULKAN_DRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'imagination', ',imagination-experimental', '', d)}" | ||
121 | PACKAGECONFIG[vulkan] = "-Dvulkan-drivers=${@strip_comma('${VULKAN_DRIVERS}')}, -Dvulkan-drivers='',glslang-native vulkan-loader vulkan-headers" | ||
122 | |||
123 | # mesa development and testing tools support, per driver | ||
124 | TOOLS = "" | ||
125 | TOOLS_DEPS = "" | ||
126 | TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}" | ||
127 | TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" | ||
128 | TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}" | ||
129 | TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}" | ||
130 | TOOLS:append = "${@bb.utils.contains('PACKAGECONFIG', 'imagination', ',imagination', '', d)}" | ||
131 | |||
132 | # dependencies for tools. | ||
133 | TOOLS_DEPS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ' ncurses libxml2 ', '', d)}" | ||
134 | |||
135 | # the fdperf tool requires libconfig (a part of meta-oe) so it needs special | ||
136 | # treatment in addition to the usual 'freedreno tools'. | ||
137 | PACKAGECONFIG[freedreno-fdperf] = ",,libconfig" | ||
138 | |||
139 | PACKAGECONFIG[tools] = "-Dtools=${@strip_comma('${TOOLS}')}, -Dtools='', ${TOOLS_DEPS}" | ||
140 | |||
141 | PACKAGECONFIG[opengl] = "-Dopengl=true, -Dopengl=false" | ||
142 | PACKAGECONFIG[glvnd] = "-Dglvnd=true, -Dglvnd=false, libglvnd" | ||
143 | |||
144 | # "gles" requires "opengl" | ||
145 | PACKAGECONFIG[gles] = "-Dgles1=enabled -Dgles2=enabled, -Dgles1=disabled -Dgles2=disabled" | ||
146 | |||
147 | # "egl" requires "opengl" | ||
148 | PACKAGECONFIG[egl] = "-Degl=enabled, -Degl=disabled" | ||
149 | |||
150 | # "opencl" requires libclc from meta-clang and spirv-tools from OE-Core | ||
151 | OPENCL_NATIVE = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', '-Dopencl-native=true', '', d)}" | ||
152 | PACKAGECONFIG[opencl] = "-Dgallium-opencl=icd -Dopencl-spirv=true ${OPENCL_NATIVE},-Dgallium-opencl=disabled -Dopencl-spirv=false,libclc spirv-tools python3-ply-native" | ||
153 | |||
154 | PACKAGECONFIG[broadcom] = "" | ||
155 | PACKAGECONFIG[etnaviv] = ",,python3-pycparser-native" | ||
156 | PACKAGECONFIG[freedreno] = "" | ||
157 | PACKAGECONFIG[kmsro] = "" | ||
158 | PACKAGECONFIG[vc4] = "" | ||
159 | PACKAGECONFIG[v3d] = "" | ||
160 | PACKAGECONFIG[zink] = "" | ||
161 | |||
162 | GALLIUMDRIVERS = "swrast" | ||
163 | # gallium swrast was found to crash Xorg on startup in x32 qemu | ||
164 | GALLIUMDRIVERS:x86-x32 = "" | ||
165 | GALLIUMDRIVERS:append:x86 = ",i915,iris,crocus" | ||
166 | GALLIUMDRIVERS:append:x86-64 = ",i915,iris,crocus" | ||
167 | # i686 is a 32 bit override for mesa-native | ||
168 | GALLIUMDRIVERS:append:i686 = ",i915,iris,crocus" | ||
169 | |||
170 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}" | ||
171 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" | ||
172 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'kmsro', ',kmsro', '', d)}" | ||
173 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'vc4', ',vc4', '', d)}" | ||
174 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'v3d', ',v3d', '', d)}" | ||
175 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'zink', ',zink', '', d)}" | ||
176 | |||
177 | # radeonsi requires LLVM | ||
178 | GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',radeonsi', '', d)}" | ||
179 | GALLIUMDRIVERS_LLVM = ",r300,nouveau${GALLIUMDRIVERS_RADEONSI}" | ||
180 | GALLIUMDRIVERS_LLVM:append:x86 = ",svga" | ||
181 | GALLIUMDRIVERS_LLVM:append:x86-64 = ",svga" | ||
182 | # i686 is a 32 bit override for mesa-native | ||
183 | GALLIUMDRIVERS_LLVM:append:i686 = ",svga" | ||
184 | |||
185 | PACKAGECONFIG[r600] = "" | ||
186 | PACKAGECONFIG[virgl] = "" | ||
187 | |||
188 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${GALLIUMDRIVERS_LLVM}', '', d)}" | ||
189 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',r600', '', d)}" | ||
190 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'virgl', ',virgl', '', d)}" | ||
191 | |||
192 | PACKAGECONFIG[gallium] = "-Dgallium-drivers=${@strip_comma('${GALLIUMDRIVERS}')}, -Dgallium-drivers='', libdrm" | ||
193 | PACKAGECONFIG[gallium-llvm] = "-Dllvm=enabled -Dshared-llvm=enabled, -Dllvm=disabled, llvm llvm-native elfutils" | ||
194 | PACKAGECONFIG[xa] = "-Dgallium-xa=enabled, -Dgallium-xa=disabled" | ||
195 | PACKAGECONFIG[va] = "-Dgallium-va=enabled,-Dgallium-va=disabled,libva-initial" | ||
196 | PACKAGECONFIG[vdpau] = "-Dgallium-vdpau=enabled,-Dgallium-vdpau=disabled,libvdpau" | ||
197 | |||
198 | PACKAGECONFIG[imagination] = "-Dimagination-srv=true,-Dimagination-srv=false" | ||
199 | |||
200 | PACKAGECONFIG[lima] = "" | ||
201 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}" | ||
202 | |||
203 | PACKAGECONFIG[panfrost] = "" | ||
204 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'panfrost', ',panfrost', '', d)}" | ||
205 | |||
206 | PACKAGECONFIG[tegra] = "" | ||
207 | GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'tegra', ',tegra,nouveau', '', d)}" | ||
208 | |||
209 | PACKAGECONFIG[vulkan-beta] = "-Dvulkan-beta=true,-Dvulkan-beta=false" | ||
210 | |||
211 | PACKAGECONFIG[osmesa] = "-Dosmesa=true,-Dosmesa=false" | ||
212 | |||
213 | PACKAGECONFIG[perfetto] = "-Dperfetto=true,-Dperfetto=false,libperfetto" | ||
214 | |||
215 | PACKAGECONFIG[unwind] = "-Dlibunwind=enabled,-Dlibunwind=disabled,libunwind" | ||
216 | |||
217 | PACKAGECONFIG[lmsensors] = "-Dlmsensors=enabled,-Dlmsensors=disabled,lmsensors" | ||
218 | |||
219 | VIDEO_CODECS ?= "${@bb.utils.contains('LICENSE_FLAGS_ACCEPTED', 'commercial', 'all', 'all_free', d)}" | ||
220 | PACKAGECONFIG[video-codecs] = "-Dvideo-codecs=${VIDEO_CODECS}, -Dvideo-codecs=''" | ||
221 | |||
222 | # llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2) | ||
223 | FULL_OPTIMIZATION:append = " -fno-omit-frame-pointer" | ||
224 | |||
225 | CFLAGS:append:armv5 = " -DMISSING_64BIT_ATOMICS" | ||
226 | CFLAGS:append:armv6 = " -DMISSING_64BIT_ATOMICS" | ||
227 | |||
228 | # Remove the mesa dependency on mesa-dev, as mesa is empty | ||
229 | DEV_PKG_DEPENDENCY = "" | ||
230 | |||
231 | # GLES2 and GLES3 implementations are packaged in a single library in libgles2-mesa. | ||
232 | # Add a dependency so the GLES3 dev package is associated with its implementation. | ||
233 | RPROVIDES:libgles2-mesa += "libgles3-mesa" | ||
234 | RPROVIDES:libgles2-mesa-dev += "libgles3-mesa-dev" | ||
235 | |||
236 | RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'libclc spirv-tools', '', d)}" | ||
237 | |||
238 | PACKAGES =+ "libegl-mesa libegl-mesa-dev \ | ||
239 | libosmesa libosmesa-dev \ | ||
240 | libgl-mesa libgl-mesa-dev \ | ||
241 | libglx-mesa libglx-mesa-dev \ | ||
242 | libglapi libglapi-dev \ | ||
243 | libgbm libgbm-dev \ | ||
244 | libgles1-mesa libgles1-mesa-dev \ | ||
245 | libgles2-mesa libgles2-mesa-dev \ | ||
246 | libopencl-mesa libopencl-mesa-dev \ | ||
247 | libxatracker libxatracker-dev \ | ||
248 | mesa-megadriver mesa-vulkan-drivers \ | ||
249 | mesa-vdpau-drivers mesa-tools \ | ||
250 | " | ||
251 | |||
252 | do_install:append () { | ||
253 | # Drivers never need libtool .la files | ||
254 | rm -f ${D}${libdir}/dri/*.la | ||
255 | rm -f ${D}${libdir}/egl/*.la | ||
256 | rm -f ${D}${libdir}/gallium-pipe/*.la | ||
257 | rm -f ${D}${libdir}/gbm/*.la | ||
258 | |||
259 | # libwayland-egl has been moved to wayland 1.15+ | ||
260 | rm -f ${D}${libdir}/libwayland-egl* | ||
261 | rm -f ${D}${libdir}/pkgconfig/wayland-egl.pc | ||
262 | } | ||
263 | |||
264 | do_install:append:class-native () { | ||
265 | if ${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'true', 'false', d)}; then | ||
266 | install -d ${D}${bindir} | ||
267 | install -m0755 ${B}/src/intel/compiler/intel_clc ${D}${bindir} | ||
268 | fi | ||
269 | } | ||
270 | |||
271 | # For the packages that make up the OpenGL interfaces, inject variables so that | ||
272 | # they don't get Debian-renamed (which would remove the -mesa suffix), and | ||
273 | # RPROVIDEs/RCONFLICTs on the generic libgl name. | ||
274 | python __anonymous() { | ||
275 | pkgconfig = (d.getVar('PACKAGECONFIG') or "").split() | ||
276 | suffix = "" | ||
277 | if "-native" in d.getVar("PN"): | ||
278 | suffix = "-native" | ||
279 | for p in (("egl", "libegl", "libegl1"), | ||
280 | ("opengl", "libgl", "libgl1"), | ||
281 | ("glvnd", "libglx",), | ||
282 | ("gles", "libgles1", "libglesv1-cm1"), | ||
283 | ("gles", "libgles2", "libglesv2-2", "libgles3"), | ||
284 | ("opencl", "libopencl",)): | ||
285 | if not p[0] in pkgconfig: | ||
286 | continue | ||
287 | mlprefix = d.getVar("MLPREFIX") | ||
288 | fullp = mlprefix + p[1] + "-mesa" + suffix | ||
289 | mlprefix = d.getVar("MLPREFIX") | ||
290 | pkgs = " " + " ".join(mlprefix + x + suffix for x in p[1:]) | ||
291 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") | ||
292 | d.appendVar("RREPLACES:" + fullp, pkgs) | ||
293 | d.appendVar("RPROVIDES:" + fullp, pkgs) | ||
294 | d.appendVar("RCONFLICTS:" + fullp, pkgs) | ||
295 | |||
296 | d.appendVar("RRECOMMENDS:" + fullp, " ${MLPREFIX}mesa-megadriver" + suffix) | ||
297 | |||
298 | # For -dev, the first element is both the Debian and original name | ||
299 | fullp = mlprefix + p[1] + "-mesa-dev" + suffix | ||
300 | pkgs = " " + mlprefix + p[1] + "-dev" + suffix | ||
301 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") | ||
302 | d.appendVar("RREPLACES:" + fullp, pkgs) | ||
303 | d.appendVar("RPROVIDES:" + fullp, pkgs) | ||
304 | d.appendVar("RCONFLICTS:" + fullp, pkgs) | ||
305 | } | ||
306 | |||
307 | python mesa_populate_packages() { | ||
308 | pkgs = ['mesa', 'mesa-dev', 'mesa-dbg'] | ||
309 | for pkg in pkgs: | ||
310 | d.setVar("RPROVIDES:%s" % pkg, pkg.replace("mesa", "mesa-dri", 1)) | ||
311 | d.setVar("RCONFLICTS:%s" % pkg, pkg.replace("mesa", "mesa-dri", 1)) | ||
312 | d.setVar("RREPLACES:%s" % pkg, pkg.replace("mesa", "mesa-dri", 1)) | ||
313 | |||
314 | import re | ||
315 | dri_drivers_root = oe.path.join(d.getVar('PKGD'), d.getVar('libdir'), "dri") | ||
316 | if os.path.isdir(dri_drivers_root): | ||
317 | dri_pkgs = sorted(os.listdir(dri_drivers_root)) | ||
318 | lib_name = d.expand("${MLPREFIX}mesa-megadriver") | ||
319 | for p in dri_pkgs: | ||
320 | m = re.match(r'^(.*)_dri\.so$', p) | ||
321 | if m: | ||
322 | pkg_name = " ${MLPREFIX}mesa-driver-%s" % legitimize_package_name(m.group(1)) | ||
323 | d.appendVar("RPROVIDES:%s" % lib_name, pkg_name) | ||
324 | d.appendVar("RCONFLICTS:%s" % lib_name, pkg_name) | ||
325 | d.appendVar("RREPLACES:%s" % lib_name, pkg_name) | ||
326 | |||
327 | pipe_drivers_root = os.path.join(d.getVar('libdir'), "gallium-pipe") | ||
328 | do_split_packages(d, pipe_drivers_root, r'^pipe_(.*)\.so$', 'mesa-driver-pipe-%s', 'Mesa %s pipe driver', extra_depends='') | ||
329 | } | ||
330 | |||
331 | PACKAGESPLITFUNCS =+ "mesa_populate_packages" | ||
332 | |||
333 | PACKAGES_DYNAMIC += "^mesa-driver-.*" | ||
334 | PACKAGES_DYNAMIC:class-native = "^mesa-driver-.*-native" | ||
335 | |||
336 | FILES:mesa-megadriver = "${libdir}/dri/* ${datadir}/drirc.d" | ||
337 | FILES:mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${libdir}/libpowervr_rogue.so ${datadir}/vulkan" | ||
338 | FILES:${PN}-vdpau-drivers = "${libdir}/vdpau/*.so.*" | ||
339 | FILES:libegl-mesa = "${libdir}/libEGL*.so.* ${datadir}/glvnd/egl_vendor.d" | ||
340 | FILES:libgbm = "${libdir}/libgbm.so.*" | ||
341 | FILES:libgles1-mesa = "${libdir}/libGLESv1*.so.*" | ||
342 | FILES:libgles2-mesa = "${libdir}/libGLESv2.so.*" | ||
343 | FILES:libgl-mesa = "${libdir}/libGL.so.*" | ||
344 | FILES:libglx-mesa = "${libdir}/libGLX*.so.*" | ||
345 | FILES:libopencl-mesa = "${libdir}/libMesaOpenCL.so.* ${libdir}/gallium-pipe/*.so ${sysconfdir}/OpenCL/vendors/mesa.icd" | ||
346 | FILES:libglapi = "${libdir}/libglapi.so.*" | ||
347 | FILES:libosmesa = "${libdir}/libOSMesa.so.*" | ||
348 | FILES:libxatracker = "${libdir}/libxatracker.so.*" | ||
349 | |||
350 | FILES:${PN}-dev = "${libdir}/pkgconfig/dri.pc ${includedir}/vulkan ${libdir}/vdpau/*.so" | ||
351 | FILES:libegl-mesa-dev = "${libdir}/libEGL*.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" | ||
352 | FILES:libgbm-dev = "${libdir}/libgbm.* ${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h" | ||
353 | FILES:libgl-mesa-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/gl.pc" | ||
354 | FILES:libglx-mesa-dev = "${libdir}/libGLX*.*" | ||
355 | FILES:libglapi-dev = "${libdir}/libglapi.*" | ||
356 | FILES:libgles1-mesa-dev = "${libdir}/libGLESv1*.* ${includedir}/GLES ${libdir}/pkgconfig/glesv1*.pc" | ||
357 | FILES:libgles2-mesa-dev = "${libdir}/libGLESv2.* ${includedir}/GLES2 ${includedir}/GLES3 ${libdir}/pkgconfig/glesv2.pc" | ||
358 | FILES:libopencl-mesa-dev = "${libdir}/libMesaOpenCL.so" | ||
359 | FILES:libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/GL/osmesa.h ${libdir}/pkgconfig/osmesa.pc" | ||
360 | FILES:libxatracker-dev = "${libdir}/libxatracker.so ${libdir}/libxatracker.la \ | ||
361 | ${includedir}/xa_tracker.h ${includedir}/xa_composite.h ${includedir}/xa_context.h \ | ||
362 | ${libdir}/pkgconfig/xatracker.pc" | ||
363 | # catch all to get all the tools and data | ||
364 | FILES:${PN}-tools = "${bindir} ${datadir}" | ||
365 | ALLOW_EMPTY:${PN}-tools = "1" | ||
366 | |||
367 | # Fix upgrade path from mesa to mesa-megadriver | ||
368 | RREPLACES:mesa-megadriver = "mesa" | ||
369 | RCONFLICTS:mesa-megadriver = "mesa" | ||
370 | RPROVIDES:mesa-megadriver = "mesa" | ||
diff --git a/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_22.3.5.bb b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_24.0.1.bb index 5abd0793..e4f99d36 100644 --- a/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_22.3.5.bb +++ b/meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_24.0.1.bb | |||
@@ -2,44 +2,37 @@ | |||
2 | # upstream yet. This allows us to build the shims we need without completely | 2 | # upstream yet. This allows us to build the shims we need without completely |
3 | # clobbering mesa. | 3 | # clobbering mesa. |
4 | 4 | ||
5 | require recipes-graphics/mesa/mesa.inc | 5 | require recipes-graphics/mesa/mesa-pvr.inc |
6 | 6 | ||
7 | SUMMARY += " (with PowerVR support for TI platforms)" | 7 | SUMMARY += " (with PowerVR for TI parts)" |
8 | 8 | ||
9 | LIC_FILES_CHKSUM = "file://docs/license.rst;md5=63779ec98d78d823a9dc533a0735ef10" | 9 | LIC_FILES_CHKSUM = "file://docs/license.rst;md5=63779ec98d78d823a9dc533a0735ef10" |
10 | 10 | ||
11 | BRANCH = "powervr/kirkstone/${PV}" | 11 | BRANCH = "powervr/${PV}" |
12 | 12 | ||
13 | SRC_URI = " \ | 13 | SRC_URI = " \ |
14 | git://gitlab.freedesktop.org/StaticRocket/mesa.git;protocol=https;branch=${BRANCH} \ | 14 | git://gitlab.freedesktop.org/StaticRocket/mesa.git;protocol=https;branch=${BRANCH} \ |
15 | file://0001-meson.build-check-for-all-linux-host_os-combinations.patch \ | 15 | file://0001-meson.build-check-for-all-linux-host_os-combinations.patch \ |
16 | file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \ | 16 | file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \ |
17 | file://0001-util-format-Check-for-NEON-before-using-it.patch \ | ||
18 | file://0001-gbm-backend-fix-gbm-compile-without-dri.patch \ | ||
19 | file://0001-freedreno-pm4-Use-unsigned-instead-of-uint-to-fix-mu.patch \ | ||
20 | file://0001-gallium-Fix-build-with-llvm-17.patch \ | 17 | file://0001-gallium-Fix-build-with-llvm-17.patch \ |
21 | file://0001-fix-gallivm-limit-usage-of-LLVMContextSetOpaquePoint.patch \ | 18 | file://0001-drisw-fix-build-without-dri3.patch \ |
19 | file://0002-glxext-don-t-try-zink-if-not-enabled-in-mesa.patch \ | ||
20 | file://0001-gallivm-Call-StringMapIterator-from-llvm-scope.patch \ | ||
21 | file://0001-Update-lp_bld_misc.cpp-to-support-llvm-19.patch \ | ||
22 | " | 22 | " |
23 | 23 | ||
24 | S = "${WORKDIR}/git" | ||
25 | |||
26 | PACKAGECONFIG:append = " \ | 24 | PACKAGECONFIG:append = " \ |
27 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-img-rogue-driver', 'pvr', '', d)} \ | 25 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-img-rogue-driver', 'pvr', '', d)} \ |
28 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-sgx-ddk-km', 'sgx', '', d)} \ | 26 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-sgx-ddk-km', 'sgx', '', d)} \ |
29 | " | 27 | " |
30 | 28 | ||
31 | SRCREV = "1be98ba80452ebe38546a7fca26b5a70f2629083" | 29 | SRCREV = "82e6a9293c476267417c5b6b906b01fb73a34e38" |
30 | PV = "24.0.1" | ||
32 | 31 | ||
33 | PVR_DISPLAY_CONTROLLER_ALIAS ??= "tidss" | 32 | PVR_DISPLAY_CONTROLLER_ALIAS ??= "tidss" |
34 | PACKAGECONFIG[pvr] = "-Dgallium-pvr-alias=${PVR_DISPLAY_CONTROLLER_ALIAS}," | 33 | PACKAGECONFIG[pvr] = "-Dgallium-pvr-alias=${PVR_DISPLAY_CONTROLLER_ALIAS}," |
35 | PACKAGECONFIG[sgx] = "-Dgallium-sgx-alias=${PVR_DISPLAY_CONTROLLER_ALIAS}," | 34 | PACKAGECONFIG[sgx] = "-Dgallium-sgx-alias=${PVR_DISPLAY_CONTROLLER_ALIAS}," |
36 | 35 | ||
37 | PACKAGECONFIG:remove = "video-codecs" | ||
38 | PACKAGECONFIG[video-codecs] = "" | ||
39 | PACKAGECONFIG:remove = "elf-tls" | ||
40 | PACKAGECONFIG[elf-tls] = "" | ||
41 | PACKAGECONFIG:remove = "xvmc" | ||
42 | PACKAGECONFIG[xvmc] = "" | ||
43 | 36 | ||
44 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 37 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
45 | 38 | ||
diff --git a/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb b/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_24.2.6643903.bb index a0a9a295..949c2d5d 100644 --- a/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_23.3.6512818.bb +++ b/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-img-rogue-umlibs_24.2.6643903.bb | |||
@@ -1,25 +1,21 @@ | |||
1 | DESCRIPTION = "Userspace libraries for PowerVR Rogue GPU on TI SoCs" | 1 | SUMMARY = "Userspace libraries for PowerVR Rogue GPU on TI SoCs" |
2 | HOMEPAGE = "http://git.ti.com/graphics/ti-img-rogue-umlibs" | 2 | HOMEPAGE = "http://git.ti.com/graphics/ti-img-rogue-umlibs" |
3 | LICENSE = "TI-TFL" | 3 | LICENSE = "TI-TFL" |
4 | LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=7232b98c1c58f99e3baa03de5207e76f" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=7232b98c1c58f99e3baa03de5207e76f" |
5 | |||
6 | inherit bin_package | ||
7 | |||
8 | INHIBIT_DEFAULT_DEPS = "" | ||
9 | 5 | ||
10 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 6 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
11 | COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|am62xx|am62pxx|j722s" | 7 | COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|j742s2|am62xx|am62pxx|j722s" |
12 | 8 | ||
13 | PR = "r3" | 9 | PR = "r4" |
14 | 10 | ||
15 | BRANCH = "linuxws/scarthgap/k6.6/${PV}" | 11 | BRANCH = "linuxws/scarthgap/k6.12/${PV}" |
16 | SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-umlibs.git;protocol=https;branch=${BRANCH}" | 12 | SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-umlibs.git;protocol=https;branch=${BRANCH}" |
17 | SRCREV = "0b9e64254269be2fa95c4f3e1dd925d6e4d58199" | 13 | SRCREV = "1ed9ee185cd876200e6747192854015b8e94a7b0" |
18 | S = "${WORKDIR}/git/targetfs/${TARGET_PRODUCT}/${PVR_WS}/${PVR_BUILD}" | ||
19 | 14 | ||
20 | TARGET_PRODUCT:j721e = "j721e_linux" | 15 | TARGET_PRODUCT:j721e = "j721e_linux" |
21 | TARGET_PRODUCT:j721s2 = "j721s2_linux" | 16 | TARGET_PRODUCT:j721s2 = "j721s2_linux" |
22 | TARGET_PRODUCT:j784s4 = "j784s4_linux" | 17 | TARGET_PRODUCT:j784s4 = "j784s4_linux" |
18 | TARGET_PRODUCT:j742s2 = "j784s4_linux" | ||
23 | TARGET_PRODUCT:am62xx = "am62_linux" | 19 | TARGET_PRODUCT:am62xx = "am62_linux" |
24 | TARGET_PRODUCT:am62pxx = "am62p_linux" | 20 | TARGET_PRODUCT:am62pxx = "am62p_linux" |
25 | TARGET_PRODUCT:j722s = "j722s_linux" | 21 | TARGET_PRODUCT:j722s = "j722s_linux" |
@@ -44,7 +40,7 @@ PACKAGECONFIG[opencl] = ",,,,${OPENCL_PACKAGES}" | |||
44 | def get_file_list(package_list_var, d): | 40 | def get_file_list(package_list_var, d): |
45 | file_list = [] | 41 | file_list = [] |
46 | package_list = d.getVar(package_list_var) | 42 | package_list = d.getVar(package_list_var) |
47 | prefix = f"{d.getVar('S')}/" | 43 | prefix = f"{d.getVar('D')}/" |
48 | if package_list: | 44 | if package_list: |
49 | for package in package_list.split(): | 45 | for package in package_list.split(): |
50 | package_file_string = d.getVar(f"FILES:{package}") | 46 | package_file_string = d.getVar(f"FILES:{package}") |
@@ -53,7 +49,12 @@ def get_file_list(package_list_var, d): | |||
53 | file_list.append(f"{prefix}{package_file}") | 49 | file_list.append(f"{prefix}{package_file}") |
54 | return " ".join(file_list) | 50 | return " ".join(file_list) |
55 | 51 | ||
56 | do_install:prepend() { | 52 | EXTRA_OEMAKE += 'BUILD=${PVR_BUILD} TARGET_PRODUCT=${TARGET_PRODUCT} WINDOW_SYSTEM=${PVR_WS}' |
53 | |||
54 | do_configure[noexec] = "1" | ||
55 | do_compile[noexec] = "1" | ||
56 | do_install() { | ||
57 | oe_runmake 'DESTDIR=${D}' install | ||
57 | if ${@bb.utils.contains('PACKAGECONFIG', 'opengl', 'false', 'true', d)}; then | 58 | if ${@bb.utils.contains('PACKAGECONFIG', 'opengl', 'false', 'true', d)}; then |
58 | for file in ${@get_file_list('GLES_PACKAGES', d)}; do | 59 | for file in ${@get_file_list('GLES_PACKAGES', d)}; do |
59 | rm -rf ${file} | 60 | rm -rf ${file} |
@@ -70,13 +71,16 @@ do_install:prepend() { | |||
70 | done | 71 | done |
71 | fi | 72 | fi |
72 | if ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'true', 'false', d)}; then | 73 | if ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'true', 'false', d)}; then |
73 | if [ -e ${S}/lib/firmware ]; then | 74 | if [ -e ${D}/lib/firmware ]; then |
74 | mv ${S}/lib/firmware ${S}${nonarch_base_libdir} | 75 | mv ${D}/lib/firmware ${D}${nonarch_base_libdir} |
75 | fi | 76 | fi |
76 | fi | 77 | fi |
77 | 78 | ||
78 | # clean up any empty directories | 79 | # clean up any empty directories |
79 | find "${S}" -empty -type d -delete | 80 | find "${D}" -empty -type d -delete |
81 | |||
82 | # fix permissions | ||
83 | chown -R root:root "${D}" | ||
80 | } | 84 | } |
81 | 85 | ||
82 | GLES_PACKAGES = "libgles1-rogue libgles2-rogue libgles3-rogue" | 86 | GLES_PACKAGES = "libgles1-rogue libgles2-rogue libgles3-rogue" |
@@ -109,7 +113,7 @@ python __anonymous() { | |||
109 | mlprefix = d.getVar("MLPREFIX") | 113 | mlprefix = d.getVar("MLPREFIX") |
110 | pkgs = " " + " ".join(mlprefix + x + suffix for x in p[1:]) | 114 | pkgs = " " + " ".join(mlprefix + x + suffix for x in p[1:]) |
111 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") | 115 | d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1") |
112 | d.setVar("INSANE_SKIP:" + fullp, "dev-so") | 116 | d.setVar("INSANE_SKIP:" + fullp, "dev-so ldflags") |
113 | d.appendVar("RRECOMMENDS:" + fullp, " ${MLPREFIX}ti-img-rogue-umlibs" + suffix) | 117 | d.appendVar("RRECOMMENDS:" + fullp, " ${MLPREFIX}ti-img-rogue-umlibs" + suffix) |
114 | } | 118 | } |
115 | 119 | ||
@@ -129,17 +133,22 @@ RDEPENDS:libopencl-rogue += "opencl-icd-loader" | |||
129 | RRECOMMENDS:libopencl-rogue += "libopencl-rogue-tools" | 133 | RRECOMMENDS:libopencl-rogue += "libopencl-rogue-tools" |
130 | FILES:libopencl-rogue-tools += "${bindir}/ocl*" | 134 | FILES:libopencl-rogue-tools += "${bindir}/ocl*" |
131 | DEBIAN_NOAUTONAME:libopencl-rogue-tools = "1" | 135 | DEBIAN_NOAUTONAME:libopencl-rogue-tools = "1" |
136 | INSANE_SKIP:libopencl-rogue-tools = "ldflags" | ||
132 | 137 | ||
133 | # optional tools and tests | 138 | # optional tools and tests |
134 | FILES:${PN}-tools = "${bindir}/" | 139 | FILES:${PN}-tools = "${bindir}/" |
135 | RDEPENDS:${PN}-tools = "python3-core ${PN}" | 140 | RDEPENDS:${PN}-tools = "python3-core libdrm ${PN}" |
141 | INSANE_SKIP:${PN}-tools = "ldflags" | ||
136 | 142 | ||
137 | # required firmware | 143 | # required firmware |
138 | FILES:${PN}-firmware = "${base_libdir}/firmware/*" | 144 | FILES:${PN}-firmware = "${base_libdir}/firmware/*" |
139 | INSANE_SKIP:${PN}-firmware += "arch" | 145 | INSANE_SKIP:${PN}-firmware += "arch" |
140 | 146 | ||
147 | # common libraries | ||
148 | FILES:${PN} = "${libdir}" | ||
149 | |||
141 | RRECOMMENDS:${PN} += " \ | 150 | RRECOMMENDS:${PN} += " \ |
142 | ${PN}-tools \ | 151 | ${PN}-tools \ |
143 | " | 152 | " |
144 | 153 | ||
145 | INSANE_SKIP:${PN} += "already-stripped dev-so" | 154 | INSANE_SKIP:${PN} += "already-stripped dev-so ldflags" |
diff --git a/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb b/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb index d2565318..84a9afcf 100644 --- a/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb +++ b/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Userspace libraries for PowerVR SGX chipset on TI SoCs" | 1 | SUMMARY = "Userspace libraries for PowerVR SGX chipset on TI SoCs" |
2 | HOMEPAGE = "https://git.ti.com/graphics/omap5-sgx-ddk-um-linux" | 2 | HOMEPAGE = "https://git.ti.com/graphics/omap5-sgx-ddk-um-linux" |
3 | LICENSE = "TI-TSPA" | 3 | LICENSE = "TI-TSPA" |
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=7232b98c1c58f99e3baa03de5207e76f" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=7232b98c1c58f99e3baa03de5207e76f" |
@@ -13,18 +13,27 @@ BRANCH = "${PV}/mesa/glibc-2.35" | |||
13 | SRC_URI = " \ | 13 | SRC_URI = " \ |
14 | git://git.ti.com/git/graphics/omap5-sgx-ddk-um-linux.git;protocol=https;branch=${BRANCH} \ | 14 | git://git.ti.com/git/graphics/omap5-sgx-ddk-um-linux.git;protocol=https;branch=${BRANCH} \ |
15 | " | 15 | " |
16 | SRCREV = "70364424dd496833fad5b243c9e6cc8b077f04ac" | 16 | SRCREV = "84a396a4fb379f10931421e489ac8a199d6a9f2c" |
17 | 17 | ||
18 | INITSCRIPT_NAME = "rc.pvr" | 18 | INITSCRIPT_NAME = "rc.pvr" |
19 | INITSCRIPT_PARAMS = "defaults 8" | 19 | INITSCRIPT_PARAMS = "defaults 8" |
20 | SYSTEMD_SERVICE:${PN} = "pvrsrvctl.service" | ||
20 | 21 | ||
22 | # Prefer udev rules over everything, but we do have init services if necessary | ||
21 | PACKAGECONFIG ??= "udev" | 23 | PACKAGECONFIG ??= "udev" |
22 | PACKAGECONFIG[udev] = "UDEV=true,,,udev" | 24 | PACKAGECONFIG[udev] = "UDEV=true,UDEV=false,,udev,,sysvinit systemd" |
25 | PACKAGECONFIG[systemd] = "SYSTEMD=true,SYSTEMD=false,,,,udev sysvinit" | ||
26 | PACKAGECONFIG[sysvinit] = ",,,,,udev systemd" | ||
23 | 27 | ||
24 | def use_sysvinit(d): | 28 | def pick_init(d): |
25 | return d.getVar('VIRTUAL-RUNTIME_init_manager') == 'sysvinit' | 29 | packageconfig = d.getVar('PACKAGECONFIG').split() |
30 | if 'udev' not in packageconfig: | ||
31 | if d.getVar('VIRTUAL-RUNTIME_init_manager') == 'sysvinit': | ||
32 | return "update-rc.d" | ||
33 | return "systemd" | ||
34 | return "" | ||
26 | 35 | ||
27 | inherit ${@oe.utils.ifelse(use_sysvinit(d), 'update-rc.d', '')} | 36 | inherit ${@pick_init(d)} |
28 | 37 | ||
29 | TARGET_PRODUCT:ti33x = "ti335x_linux" | 38 | TARGET_PRODUCT:ti33x = "ti335x_linux" |
30 | TARGET_PRODUCT:ti43x = "ti437x_linux" | 39 | TARGET_PRODUCT:ti43x = "ti437x_linux" |
@@ -35,10 +44,10 @@ RDEPENDS:${PN} += "libdrm" | |||
35 | 44 | ||
36 | RRECOMMENDS:${PN} += "ti-sgx-ddk-km" | 45 | RRECOMMENDS:${PN} += "ti-sgx-ddk-km" |
37 | 46 | ||
38 | S = "${WORKDIR}/git" | ||
39 | |||
40 | EXTRA_OEMAKE += "DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT} ${PACKAGECONFIG_CONFARGS}" | 47 | EXTRA_OEMAKE += "DESTDIR=${D} TARGET_PRODUCT=${TARGET_PRODUCT} ${PACKAGECONFIG_CONFARGS}" |
41 | 48 | ||
49 | do_configure[noexec] = "1" | ||
50 | do_compile[noexec] = "1" | ||
42 | do_install() { | 51 | do_install() { |
43 | oe_runmake install | 52 | oe_runmake install |
44 | } | 53 | } |
diff --git a/meta-ti-bsp/recipes-graphics/wayland/weston-ti-version.inc b/meta-ti-bsp/recipes-graphics/wayland/weston-ti-version.inc new file mode 100644 index 00000000..42e6b6ac --- /dev/null +++ b/meta-ti-bsp/recipes-graphics/wayland/weston-ti-version.inc | |||
@@ -0,0 +1,7 @@ | |||
1 | FILESEXTRAPATHS:prepend := "${THISDIR}/weston:" | ||
2 | |||
3 | PR:append = ".tisoc1" | ||
4 | |||
5 | SRC_URI += " \ | ||
6 | file://0001-Revert-require-GL_EXT_unpack_subimage-commit.patch \ | ||
7 | " | ||
diff --git a/meta-ti-bsp/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patch b/meta-ti-bsp/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patch new file mode 100644 index 00000000..fbe8f2bb --- /dev/null +++ b/meta-ti-bsp/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patch | |||
@@ -0,0 +1,95 @@ | |||
1 | From 5a05e5b66dd3831a9c9c2b3f64bd42419d9ade2d Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@konsulko.com> | ||
3 | Date: Thu, 6 Jul 2023 01:48:41 +0000 | ||
4 | Subject: [PATCH] Revert require GL_EXT_unpack_subimage commit | ||
5 | |||
6 | This reverts commit 593d5af43a8e2c2a3371088fa7ae430d0517c82d. | ||
7 | |||
8 | That commit removed support for GPU drivers without GL_EXT_unpack_subimage | ||
9 | which SGX does not support. Add back support for GPUs without this | ||
10 | extension. | ||
11 | |||
12 | Upstream-Status: Inappropriate [specific to TI SGX] | ||
13 | |||
14 | Signed-off-by: Andrew Davis <afd@ti.com> | ||
15 | Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> | ||
16 | |||
17 | --- | ||
18 | libweston/renderer-gl/gl-renderer-internal.h | 2 ++ | ||
19 | libweston/renderer-gl/gl-renderer.c | 29 ++++++++++++++++---- | ||
20 | 2 files changed, 26 insertions(+), 5 deletions(-) | ||
21 | |||
22 | diff --git a/libweston/renderer-gl/gl-renderer-internal.h b/libweston/renderer-gl/gl-renderer-internal.h | ||
23 | index 5032035..85616c9 100644 | ||
24 | --- a/libweston/renderer-gl/gl-renderer-internal.h | ||
25 | +++ b/libweston/renderer-gl/gl-renderer-internal.h | ||
26 | @@ -229,6 +229,8 @@ struct gl_renderer { | ||
27 | PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC create_platform_window; | ||
28 | bool has_platform_base; | ||
29 | |||
30 | + bool has_unpack_subimage; | ||
31 | + | ||
32 | PFNEGLBINDWAYLANDDISPLAYWL bind_display; | ||
33 | PFNEGLUNBINDWAYLANDDISPLAYWL unbind_display; | ||
34 | PFNEGLQUERYWAYLANDBUFFERWL query_buffer; | ||
35 | diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c | ||
36 | index e694418b..2be6d621 100644 | ||
37 | --- a/libweston/renderer-gl/gl-renderer.c | ||
38 | +++ b/libweston/renderer-gl/gl-renderer.c | ||
39 | @@ -2523,6 +2523,7 @@ gl_renderer_flush_damage(struct weston_paint_node *pnode) | ||
40 | struct weston_surface *surface = pnode->surface; | ||
41 | const struct weston_testsuite_quirks *quirks = | ||
42 | &surface->compositor->test_data.test_quirks; | ||
43 | + struct gl_renderer *gr = get_renderer(surface->compositor); | ||
44 | struct weston_buffer *buffer = surface->buffer_ref.buffer; | ||
45 | struct gl_surface_state *gs = get_surface_state(surface); | ||
46 | struct gl_buffer_state *gb = gs->buffer; | ||
47 | @@ -2550,6 +2551,24 @@ gl_renderer_flush_damage(struct weston_paint_node *pnode) | ||
48 | |||
49 | data = wl_shm_buffer_get_data(buffer->shm_buffer); | ||
50 | |||
51 | + if (!gr->has_unpack_subimage) { | ||
52 | + wl_shm_buffer_begin_access(buffer->shm_buffer); | ||
53 | + for (j = 0; j < gs->buffer->num_textures; j++) { | ||
54 | + glBindTexture(GL_TEXTURE_2D, gs->buffer->textures[j]); | ||
55 | + glTexImage2D(GL_TEXTURE_2D, 0, | ||
56 | + gs->buffer->gl_format[j], | ||
57 | + gs->buffer->pitch / pixel_format_hsub(buffer->pixel_format, j), | ||
58 | + buffer->height / pixel_format_vsub(buffer->pixel_format, j), | ||
59 | + 0, | ||
60 | + gl_format_from_internal(gs->buffer->gl_format[j]), | ||
61 | + gs->buffer->gl_pixel_type, | ||
62 | + data + gs->buffer->offset[j]); | ||
63 | + } | ||
64 | + wl_shm_buffer_end_access(buffer->shm_buffer); | ||
65 | + | ||
66 | + goto done; | ||
67 | + } | ||
68 | + | ||
69 | if (gb->needs_full_upload || quirks->gl_force_full_upload) { | ||
70 | wl_shm_buffer_begin_access(buffer->shm_buffer); | ||
71 | |||
72 | @@ -4754,11 +4773,9 @@ gl_renderer_setup(struct weston_compositor *ec) | ||
73 | else | ||
74 | ec->read_format = pixel_format_get_info(DRM_FORMAT_ABGR8888); | ||
75 | |||
76 | - if (gr->gl_version < gr_gl_version(3, 0) && | ||
77 | - !weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) { | ||
78 | - weston_log("GL_EXT_unpack_subimage not available.\n"); | ||
79 | - return -1; | ||
80 | - } | ||
81 | + if (gr->gl_version >= gr_gl_version(3, 0) || | ||
82 | + weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) | ||
83 | + gr->has_unpack_subimage = true; | ||
84 | |||
85 | if (gr->gl_version >= gr_gl_version(3, 0) || | ||
86 | weston_check_egl_extension(extensions, "GL_EXT_texture_type_2_10_10_10_REV")) | ||
87 | @@ -4880,6 +4897,8 @@ gl_renderer_setup(struct weston_compositor *ec) | ||
88 | gr_gl_version_minor(gr->gl_version)); | ||
89 | weston_log_continue(STAMP_SPACE "read-back format: %s\n", | ||
90 | ec->read_format->drm_format_name); | ||
91 | + weston_log_continue(STAMP_SPACE "wl_shm sub-image to texture: %s\n", | ||
92 | + gr->has_unpack_subimage ? "yes" : "no"); | ||
93 | weston_log_continue(STAMP_SPACE "glReadPixels supports y-flip: %s\n", | ||
94 | yesno(gr->has_pack_reverse)); | ||
95 | weston_log_continue(STAMP_SPACE "glReadPixels supports PBO: %s\n", | ||
diff --git a/meta-ti-bsp/recipes-graphics/wayland/weston_14.0.%.bbappend b/meta-ti-bsp/recipes-graphics/wayland/weston_14.0.%.bbappend new file mode 100644 index 00000000..cf4f530a --- /dev/null +++ b/meta-ti-bsp/recipes-graphics/wayland/weston_14.0.%.bbappend | |||
@@ -0,0 +1,4 @@ | |||
1 | WESTON_TI_VERSION = "" | ||
2 | WESTON_TI_VERSION:ti-soc = "${BPN}-ti-version.inc" | ||
3 | |||
4 | require ${WESTON_TI_VERSION} | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch b/meta-ti-bsp/recipes-kernel/linux/files/0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch new file mode 100644 index 00000000..56a06e01 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch | |||
@@ -0,0 +1,55 @@ | |||
1 | From 2c78d22a78584f2a17eb33b5b5fd6fa602c2af8d Mon Sep 17 00:00:00 2001 | ||
2 | From: Ryan Eatmon <reatmon@ti.com> | ||
3 | Date: Wed, 17 Jul 2024 16:19:20 -0500 | ||
4 | Subject: [PATCH] drivers: gpu: drm: msm: registers: improve reproducibility | ||
5 | |||
6 | The files generated by gen_header.py capture the source path to the | ||
7 | input files and the date. While that can be informative, it varies | ||
8 | based on where and when the kernel was built as the full path is | ||
9 | captured. | ||
10 | |||
11 | Since all of the files that this tool is run on is under the drivers | ||
12 | directory, this modifies the application to strip all of the path before | ||
13 | drivers. Additionally it prints <stripped> instead of the date. | ||
14 | |||
15 | Both changes solve the reproducibility issue. | ||
16 | |||
17 | Upstream-Status: Inappropriate | ||
18 | |||
19 | Signed-off-by: Ryan Eatmon <reatmon@ti.com> | ||
20 | --- | ||
21 | drivers/gpu/drm/msm/registers/gen_header.py | 8 +++++--- | ||
22 | 1 file changed, 5 insertions(+), 3 deletions(-) | ||
23 | |||
24 | diff --git a/drivers/gpu/drm/msm/registers/gen_header.py b/drivers/gpu/drm/msm/registers/gen_header.py | ||
25 | index 3926485bb197..a409404627c7 100644 | ||
26 | --- a/drivers/gpu/drm/msm/registers/gen_header.py | ||
27 | +++ b/drivers/gpu/drm/msm/registers/gen_header.py | ||
28 | @@ -11,6 +11,7 @@ import collections | ||
29 | import argparse | ||
30 | import time | ||
31 | import datetime | ||
32 | +import re | ||
33 | |||
34 | class Error(Exception): | ||
35 | def __init__(self, message): | ||
36 | @@ -877,13 +878,14 @@ The rules-ng-ng source files this header was generated from are: | ||
37 | """) | ||
38 | maxlen = 0 | ||
39 | for filepath in p.xml_files: | ||
40 | - maxlen = max(maxlen, len(filepath)) | ||
41 | + new_filepath = re.sub("^.+drivers","drivers",filepath) | ||
42 | + maxlen = max(maxlen, len(new_filepath)) | ||
43 | for filepath in p.xml_files: | ||
44 | - pad = " " * (maxlen - len(filepath)) | ||
45 | + pad = " " * (maxlen - len(new_filepath)) | ||
46 | filesize = str(os.path.getsize(filepath)) | ||
47 | filesize = " " * (7 - len(filesize)) + filesize | ||
48 | filetime = time.ctime(os.path.getmtime(filepath)) | ||
49 | - print("- " + filepath + pad + " (" + filesize + " bytes, from " + filetime + ")") | ||
50 | + print("- " + new_filepath + pad + " (" + filesize + " bytes, from <stripped>)") | ||
51 | if p.copyright_year: | ||
52 | current_year = str(datetime.date.today().year) | ||
53 | print() | ||
54 | -- | ||
55 | 2.17.1 | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/0001-gcc-plugins-Fix-build-for-upcoming-GCC-release.patch b/meta-ti-bsp/recipes-kernel/linux/files/0001-gcc-plugins-Fix-build-for-upcoming-GCC-release.patch deleted file mode 100644 index 3dfa31a1..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/files/0001-gcc-plugins-Fix-build-for-upcoming-GCC-release.patch +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | From 3cd29a3d7c25cca9989e7d8966141f725fa99c68 Mon Sep 17 00:00:00 2001 | ||
2 | From: Palmer Dabbelt <palmer@rivosinc.com> | ||
3 | Date: Fri, 13 Jan 2023 09:30:33 -0800 | ||
4 | Subject: [PATCH] gcc-plugins: Fix build for upcoming GCC release | ||
5 | |||
6 | The upcoming GCC release has refactored the gimple plugin interface a | ||
7 | bit and unless gimple-iterator.h is included before gimple-fold.h I end | ||
8 | up with a bunch of missing declarations when building the stack | ||
9 | protector plugin. | ||
10 | |||
11 | Upstream-Status: Backport [https://lore.kernel.org/all/20230113173033.4380-1-palmer@rivosinc.com/] | ||
12 | Reported-by: Palmer Dabbelt <palmer@rivosinc.com> | ||
13 | Acked-by: Palmer Dabbelt <palmer@rivosinc.com> | ||
14 | Link: https://lore.kernel.org/all/20230113173033.4380-1-palmer@rivosinc.com/ | ||
15 | Cc: linux-hardening@vger.kernel.org | ||
16 | Signed-off-by: Kees Cook <keescook@chromium.org> | ||
17 | --- | ||
18 | scripts/gcc-plugins/gcc-common.h | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | --- a/scripts/gcc-plugins/gcc-common.h | ||
22 | +++ b/scripts/gcc-plugins/gcc-common.h | ||
23 | @@ -108,7 +108,9 @@ | ||
24 | #include "varasm.h" | ||
25 | #include "stor-layout.h" | ||
26 | #include "internal-fn.h" | ||
27 | +#include "gimple.h" | ||
28 | #include "gimple-expr.h" | ||
29 | +#include "gimple-iterator.h" | ||
30 | #include "gimple-fold.h" | ||
31 | #include "context.h" | ||
32 | #include "tree-ssa-alias.h" | ||
33 | @@ -124,13 +126,10 @@ | ||
34 | #include "gimplify.h" | ||
35 | #endif | ||
36 | |||
37 | -#include "gimple.h" | ||
38 | - | ||
39 | #if BUILDING_GCC_VERSION >= 4009 | ||
40 | #include "tree-ssa-operands.h" | ||
41 | #include "tree-phinodes.h" | ||
42 | #include "tree-cfg.h" | ||
43 | -#include "gimple-iterator.h" | ||
44 | #include "gimple-ssa.h" | ||
45 | #include "ssa-iterators.h" | ||
46 | #endif | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/0001-perf-python-Fix-compile-for-32bit-platforms.patch b/meta-ti-bsp/recipes-kernel/linux/files/0001-perf-python-Fix-compile-for-32bit-platforms.patch new file mode 100644 index 00000000..12e12c68 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/0001-perf-python-Fix-compile-for-32bit-platforms.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From a51ebf08cec81d84ac258da1c0ead139d6ddc94f Mon Sep 17 00:00:00 2001 | ||
2 | From: Ryan Eatmon <reatmon@ti.com> | ||
3 | Date: Tue, 2 Jul 2024 11:07:14 -0500 | ||
4 | Subject: [master][PATCH] perf python: Fix compile for 32bit platforms | ||
5 | |||
6 | The definition for perf_sample is missing on 32bit compiles: | ||
7 | |||
8 | tools/perf/util/python.c:75:28: error: field 'sample' has incomplete type | ||
9 | 75 | struct perf_sample sample; | ||
10 | |||
11 | Adding #include "sample.h" fixes it. | ||
12 | |||
13 | Upstream-Status: Inappropriate | ||
14 | |||
15 | Signed-off-by: Ryan Eatmon <reatmon@ti.com> | ||
16 | --- | ||
17 | tools/perf/util/python.c | 2 ++ | ||
18 | 1 file changed, 2 insertions(+) | ||
19 | |||
20 | diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c | ||
21 | index 3be882b2e845..de64ca3cf2d1 100644 | ||
22 | --- a/tools/perf/util/python.c | ||
23 | +++ b/tools/perf/util/python.c | ||
24 | @@ -1,3 +1,5 @@ | ||
25 | +#include "sample.h" | ||
26 | + | ||
27 | // SPDX-License-Identifier: GPL-2.0 | ||
28 | #include <Python.h> | ||
29 | #include <structmember.h> | ||
30 | -- | ||
31 | 2.17.1 | ||
32 | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/0001-vt-conmakehash-improve-reproducibility-for-v6.10.patch b/meta-ti-bsp/recipes-kernel/linux/files/0001-vt-conmakehash-improve-reproducibility-for-v6.10.patch new file mode 100644 index 00000000..f9fdece8 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/0001-vt-conmakehash-improve-reproducibility-for-v6.10.patch | |||
@@ -0,0 +1,60 @@ | |||
1 | From 4907fa9ff1dbdd72ce9fa7855091fb604a35a62d Mon Sep 17 00:00:00 2001 | ||
2 | From: Ryan Eatmon <reatmon@ti.com> | ||
3 | Date: Wed, 17 Jul 2024 14:55:10 -0500 | ||
4 | Subject: [PATCH] vt/conmakehash: improve reproducibility for v6.10 | ||
5 | |||
6 | The file generated by conmakehash capture the application | ||
7 | path used to generate the file. While that can be informative, | ||
8 | it varies based on where the kernel was built, as the full | ||
9 | path is captured. | ||
10 | |||
11 | We tweak the application to use a second input as the "capture | ||
12 | name", and then modify the Makefile to pass the basename of | ||
13 | the source, making it reproducible. | ||
14 | |||
15 | This could be improved by using some sort of path mapping, | ||
16 | or the application manipualing argv[1] itself, but for now | ||
17 | this solves the reprodicibility issue. | ||
18 | |||
19 | Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
20 | |||
21 | Upstream-Status: Inappropriate | ||
22 | |||
23 | Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> | ||
24 | |||
25 | This is a minior rework of Bruce's original patch for the v6.10 kernel. | ||
26 | |||
27 | Signed-off-by: Ryan Eatmon <reatmon@ti.com> | ||
28 | --- | ||
29 | drivers/tty/vt/Makefile | 2 +- | ||
30 | drivers/tty/vt/conmakehash.c | 2 ++ | ||
31 | 2 files changed, 3 insertions(+), 1 deletion(-) | ||
32 | |||
33 | diff --git a/drivers/tty/vt/Makefile b/drivers/tty/vt/Makefile | ||
34 | index 2c8ce8b592ed..8532077ed3bb 100644 | ||
35 | --- a/drivers/tty/vt/Makefile | ||
36 | +++ b/drivers/tty/vt/Makefile | ||
37 | @@ -15,7 +15,7 @@ clean-files := consolemap_deftbl.c defkeymap.c | ||
38 | hostprogs += conmakehash | ||
39 | |||
40 | quiet_cmd_conmk = CONMK $@ | ||
41 | - cmd_conmk = $(obj)/conmakehash $< > $@ | ||
42 | + cmd_conmk = $(obj)/conmakehash $< $(shell basename $<) > $@ | ||
43 | |||
44 | $(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) $(obj)/conmakehash | ||
45 | $(call cmd,conmk) | ||
46 | diff --git a/drivers/tty/vt/conmakehash.c b/drivers/tty/vt/conmakehash.c | ||
47 | index dc2177fec715..9cd4096a8ffa 100644 | ||
48 | --- a/drivers/tty/vt/conmakehash.c | ||
49 | +++ b/drivers/tty/vt/conmakehash.c | ||
50 | @@ -112,6 +112,8 @@ int main(int argc, char *argv[]) | ||
51 | else | ||
52 | rel_tblname = tblname; | ||
53 | |||
54 | + rel_tblname = argv[2]; | ||
55 | + | ||
56 | /* For now we assume the default font is always 256 characters. */ | ||
57 | fontlen = 256; | ||
58 | |||
59 | -- | ||
60 | 2.17.1 | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/0001-vt-conmakehash-improve-reproducibility.patch b/meta-ti-bsp/recipes-kernel/linux/files/0001-vt-conmakehash-improve-reproducibility.patch new file mode 100644 index 00000000..211460c1 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/0001-vt-conmakehash-improve-reproducibility.patch | |||
@@ -0,0 +1,56 @@ | |||
1 | From 0f586f4ee8adacac79b64d1f3d47799a5eb7fbea Mon Sep 17 00:00:00 2001 | ||
2 | From: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
3 | Date: Sun, 10 Jul 2022 21:37:07 -0400 | ||
4 | Subject: [PATCH] vt/conmakehash: improve reproducibility | ||
5 | |||
6 | The file generated by conmakehash capture the application | ||
7 | path used to generate the file. While that can be informative, | ||
8 | it varies based on where the kernel was built, as the full | ||
9 | path is captured. | ||
10 | |||
11 | We tweak the application to use a second input as the "capture | ||
12 | name", and then modify the Makefile to pass the basename of | ||
13 | the source, making it reproducible. | ||
14 | |||
15 | This could be improved by using some sort of path mapping, | ||
16 | or the application manipualing argv[1] itself, but for now | ||
17 | this solves the reprodicibility issue. | ||
18 | |||
19 | Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
20 | |||
21 | Upstream-Status: Inappropriate | ||
22 | |||
23 | Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> | ||
24 | --- | ||
25 | drivers/tty/vt/Makefile | 2 +- | ||
26 | drivers/tty/vt/conmakehash.c | 2 +- | ||
27 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
28 | |||
29 | diff --git a/drivers/tty/vt/Makefile b/drivers/tty/vt/Makefile | ||
30 | index fe30ce512819..cb51c21b58f9 100644 | ||
31 | --- a/drivers/tty/vt/Makefile | ||
32 | +++ b/drivers/tty/vt/Makefile | ||
33 | @@ -15,7 +15,7 @@ clean-files := consolemap_deftbl.c defkeymap.c | ||
34 | hostprogs += conmakehash | ||
35 | |||
36 | quiet_cmd_conmk = CONMK $@ | ||
37 | - cmd_conmk = $(obj)/conmakehash $< > $@ | ||
38 | + cmd_conmk = $(obj)/conmakehash $< $(shell basename $<) > $@ | ||
39 | |||
40 | $(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) $(obj)/conmakehash | ||
41 | $(call cmd,conmk) | ||
42 | diff --git a/drivers/tty/vt/conmakehash.c b/drivers/tty/vt/conmakehash.c | ||
43 | index cddd789fe46e..d62510b280e9 100644 | ||
44 | --- a/drivers/tty/vt/conmakehash.c | ||
45 | +++ b/drivers/tty/vt/conmakehash.c | ||
46 | @@ -253,7 +253,7 @@ int main(int argc, char *argv[]) | ||
47 | #include <linux/types.h>\n\ | ||
48 | \n\ | ||
49 | u8 dfont_unicount[%d] = \n\ | ||
50 | -{\n\t", argv[1], fontlen); | ||
51 | +{\n\t", argv[2], fontlen); | ||
52 | |||
53 | for ( i = 0 ; i < fontlen ; i++ ) | ||
54 | { | ||
55 | -- | ||
56 | 2.25.1 | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/init_disassemble_info-signature-changes-causes-compile-failures.patch b/meta-ti-bsp/recipes-kernel/linux/files/init_disassemble_info-signature-changes-causes-compile-failures.patch deleted file mode 100644 index e1e04c34..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/files/init_disassemble_info-signature-changes-causes-compile-failures.patch +++ /dev/null | |||
@@ -1,111 +0,0 @@ | |||
1 | |||
2 | Adaption of a patch [A] applied to meta-arm for the kernel. But since TI has it's own | ||
3 | kernel we have to "adjust" the patch to match our files. | ||
4 | |||
5 | [A] https://patchwork.yoctoproject.org/project/arm/patch/20220824025819.4888-1-jon.mason@arm.com/#5104 | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Ryan Eatmon <reatmon@ti.com> | ||
10 | |||
11 | |||
12 | |||
13 | From 1b2013986271de39360cf79e62ed9b7d2cc59f9b Mon Sep 17 00:00:00 2001 | ||
14 | From: Andres Freund <andres@anarazel.de> | ||
15 | Date: Wed, 22 Jun 2022 11:19:18 -0700 | ||
16 | Subject: [PATCH] init_disassemble_info() signature changes causes compile | ||
17 | failures | ||
18 | MIME-Version: 1.0 | ||
19 | Content-Type: text/plain; charset=UTF-8 | ||
20 | Content-Transfer-Encoding: 8bit | ||
21 | |||
22 | Hi, | ||
23 | |||
24 | binutils changed the signature of init_disassemble_info(), which now causes | ||
25 | perf and bpftool to fail to compile (e.g. on debian unstable). | ||
26 | |||
27 | Relevant binutils commit: https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=60a3da00bd5407f07d64dff82a4dae98230dfaac | ||
28 | |||
29 | util/annotate.c: In function ?symbol__disassemble_bpf?: | ||
30 | util/annotate.c:1765:9: error: too few arguments to function ?init_disassemble_info? | ||
31 | 1765 | init_disassemble_info(&info, s, | ||
32 | | ^~~~~~~~~~~~~~~~~~~~~ | ||
33 | In file included from util/annotate.c:1718: | ||
34 | /usr/include/dis-asm.h:472:13: note: declared here | ||
35 | 472 | extern void init_disassemble_info (struct disassemble_info *dinfo, void *stream, | ||
36 | | ^~~~~~~~~~~~~~~~~~~~~ | ||
37 | |||
38 | with equivalent failures in | ||
39 | |||
40 | tools/bpf/bpf_jit_disasm.c | ||
41 | tools/bpf/bpftool/jit_disasm.c | ||
42 | |||
43 | The fix is easy enough, add a wrapper around fprintf() that conforms to the | ||
44 | new signature. | ||
45 | |||
46 | However I assume the necessary feature test and wrapper should only be added | ||
47 | once? I don't know the kernel stuff well enough to choose the right structure | ||
48 | here. | ||
49 | |||
50 | Attached is my local fix for perf. Obviously would need work to be a real | ||
51 | solution. | ||
52 | |||
53 | Greetings, | ||
54 | |||
55 | Andres Freund | ||
56 | --- | ||
57 | |||
58 | binutils 2.39 changed the signature of init_disassemble_info(), | ||
59 | which now causes perf and bpftool to fail to compile. | ||
60 | |||
61 | Relevant binutils commit: [1] | ||
62 | |||
63 | There is a proper fix in development upstream[2]. | ||
64 | This is a work-around for older kernels. | ||
65 | |||
66 | [1] https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=60a3da00bd5407f07d64dff82a4dae98230dfaac | ||
67 | [2] https://patchwork.kernel.org/project/netdevbpf/cover/20220801013834.156015-1-andres@anarazel.de/ | ||
68 | |||
69 | Upstream-Status: Pending | ||
70 | Signed-off-by: Anton Antonov <Anton.Antonov@arm.com> | ||
71 | |||
72 | |||
73 | tools/perf/util/annotate.c | 15 ++++++++++++++- | ||
74 | 1 file changed, 14 insertions(+), 1 deletion(-) | ||
75 | |||
76 | diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c | ||
77 | index 308189454788..6573d2b07548 100644 | ||
78 | --- a/tools/perf/util/annotate.c | ||
79 | +++ b/tools/perf/util/annotate.c | ||
80 | @@ -1685,6 +1685,18 @@ | ||
81 | #include <bfd.h> | ||
82 | #include <dis-asm.h> | ||
83 | |||
84 | +static int fprintf_styled(void *, enum disassembler_style, const char* fmt, ...) | ||
85 | +{ | ||
86 | + va_list args; | ||
87 | + int r; | ||
88 | + | ||
89 | + va_start(args, fmt); | ||
90 | + r = vprintf(fmt, args); | ||
91 | + va_end(args); | ||
92 | + | ||
93 | + return r; | ||
94 | +} | ||
95 | + | ||
96 | static int symbol__disassemble_bpf(struct symbol *sym, | ||
97 | struct annotate_args *args) | ||
98 | { | ||
99 | @@ -1727,7 +1739,8 @@ static int symbol__disassemble_bpf(struct symbol *sym, | ||
100 | goto out; | ||
101 | } | ||
102 | init_disassemble_info(&info, s, | ||
103 | - (fprintf_ftype) fprintf); | ||
104 | + (fprintf_ftype) fprintf, | ||
105 | + fprintf_styled); | ||
106 | |||
107 | info.arch = bfd_get_arch(bfdf); | ||
108 | info.mach = bfd_get_mach(bfdf); | ||
109 | -- | ||
110 | 2.17.1 | ||
111 | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-blk-iocost-avoid-64-bit-division-in-ioc_timer_fn.patch b/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-blk-iocost-avoid-64-bit-division-in-ioc_timer_fn.patch deleted file mode 100644 index a7806c22..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-blk-iocost-avoid-64-bit-division-in-ioc_timer_fn.patch +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | From 5f2779dfa7b8cc7dfd4a1b6586d86e0d193266f3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Arnd Bergmann <arnd@arndb.de> | ||
3 | Date: Wed, 18 Jan 2023 09:07:01 +0100 | ||
4 | Subject: [PATCH] blk-iocost: avoid 64-bit division in ioc_timer_fn | ||
5 | |||
6 | The behavior of 'enum' types has changed in gcc-13, so now the | ||
7 | UNBUSY_THR_PCT constant is interpreted as a 64-bit number because | ||
8 | it is defined as part of the same enum definition as some other | ||
9 | constants that do not fit within a 32-bit integer. This in turn | ||
10 | leads to some inefficient code on 32-bit architectures as well | ||
11 | as a link error: | ||
12 | |||
13 | arm-linux-gnueabi/bin/arm-linux-gnueabi-ld: block/blk-iocost.o: in function `ioc_timer_fn': | ||
14 | blk-iocost.c:(.text+0x68e8): undefined reference to `__aeabi_uldivmod' | ||
15 | arm-linux-gnueabi-ld: blk-iocost.c:(.text+0x6908): undefined reference to `__aeabi_uldivmod' | ||
16 | |||
17 | Split the enum definition to keep the 64-bit timing constants in | ||
18 | a separate enum type from those constants that can clearly fit | ||
19 | within a smaller type. | ||
20 | |||
21 | Signed-off-by: Arnd Bergmann <arnd@arndb.de> | ||
22 | Acked-by: Tejun Heo <tj@kernel.org> | ||
23 | Link: https://lore.kernel.org/r/20230118080706.3303186-1-arnd@kernel.org | ||
24 | Signed-off-by: Jens Axboe <axboe@kernel.dk> | ||
25 | --- | ||
26 | block/blk-iocost.c | 8 +++++--- | ||
27 | 1 file changed, 5 insertions(+), 3 deletions(-) | ||
28 | |||
29 | diff --git a/block/blk-iocost.c b/block/blk-iocost.c | ||
30 | index 6955605629e4..b691b6bb498f 100644 | ||
31 | --- a/block/blk-iocost.c | ||
32 | +++ b/block/blk-iocost.c | ||
33 | @@ -258,6 +258,11 @@ enum { | ||
34 | VRATE_MIN = VTIME_PER_USEC * VRATE_MIN_PPM / MILLION, | ||
35 | VRATE_CLAMP_ADJ_PCT = 4, | ||
36 | |||
37 | + /* switch iff the conditions are met for longer than this */ | ||
38 | + AUTOP_CYCLE_NSEC = 10LLU * NSEC_PER_SEC, | ||
39 | +}; | ||
40 | + | ||
41 | +enum { | ||
42 | /* if IOs end up waiting for requests, issue less */ | ||
43 | RQ_WAIT_BUSY_PCT = 5, | ||
44 | |||
45 | @@ -296,9 +301,6 @@ enum { | ||
46 | /* don't let cmds which take a very long time pin lagging for too long */ | ||
47 | MAX_LAGGING_PERIODS = 10, | ||
48 | |||
49 | - /* switch iff the conditions are met for longer than this */ | ||
50 | - AUTOP_CYCLE_NSEC = 10LLU * NSEC_PER_SEC, | ||
51 | - | ||
52 | /* | ||
53 | * Count IO size in 4k pages. The 12bit shift helps keeping | ||
54 | * size-proportional components of cost calculation in closer | ||
55 | -- | ||
56 | 2.40.1 | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-block-blk-iocost-gcc13-keep-large-values-in-a-new-en.patch b/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-block-blk-iocost-gcc13-keep-large-values-in-a-new-en.patch deleted file mode 100644 index f5d0f476..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-block-blk-iocost-gcc13-keep-large-values-in-a-new-en.patch +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | From ff1cc97b1f4c10db224f276d9615b22835b8c424 Mon Sep 17 00:00:00 2001 | ||
2 | From: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> | ||
3 | Date: Tue, 13 Dec 2022 13:08:26 +0100 | ||
4 | Subject: [PATCH] block/blk-iocost (gcc13): keep large values in a new enum | ||
5 | |||
6 | Since gcc13, each member of an enum has the same type as the enum [1]. And | ||
7 | that is inherited from its members. Provided: | ||
8 | VTIME_PER_SEC_SHIFT = 37, | ||
9 | VTIME_PER_SEC = 1LLU << VTIME_PER_SEC_SHIFT, | ||
10 | ... | ||
11 | AUTOP_CYCLE_NSEC = 10LLU * NSEC_PER_SEC, | ||
12 | the named type is unsigned long. | ||
13 | |||
14 | This generates warnings with gcc-13: | ||
15 | block/blk-iocost.c: In function 'ioc_weight_prfill': | ||
16 | block/blk-iocost.c:3037:37: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' | ||
17 | |||
18 | block/blk-iocost.c: In function 'ioc_weight_show': | ||
19 | block/blk-iocost.c:3047:34: error: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' | ||
20 | |||
21 | So split the anonymous enum with large values to a separate enum, so | ||
22 | that they don't affect other members. | ||
23 | |||
24 | [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36113 | ||
25 | |||
26 | Cc: Martin Liska <mliska@suse.cz> | ||
27 | Cc: Tejun Heo <tj@kernel.org> | ||
28 | Cc: Josef Bacik <josef@toxicpanda.com> | ||
29 | Cc: Jens Axboe <axboe@kernel.dk> | ||
30 | Cc: cgroups@vger.kernel.org | ||
31 | Cc: linux-block@vger.kernel.org | ||
32 | Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> | ||
33 | Link: https://lore.kernel.org/r/20221213120826.17446-1-jirislaby@kernel.org | ||
34 | Signed-off-by: Jens Axboe <axboe@kernel.dk> | ||
35 | --- | ||
36 | block/blk-iocost.c | 2 ++ | ||
37 | 1 file changed, 2 insertions(+) | ||
38 | |||
39 | diff --git a/block/blk-iocost.c b/block/blk-iocost.c | ||
40 | index d1bdc12deaa7..549ddc9e0c6f 100644 | ||
41 | --- a/block/blk-iocost.c | ||
42 | +++ b/block/blk-iocost.c | ||
43 | @@ -232,7 +232,9 @@ enum { | ||
44 | |||
45 | /* 1/64k is granular enough and can easily be handled w/ u32 */ | ||
46 | WEIGHT_ONE = 1 << 16, | ||
47 | +}; | ||
48 | |||
49 | +enum { | ||
50 | /* | ||
51 | * As vtime is used to calculate the cost of each IO, it needs to | ||
52 | * be fairly high precision. For example, it should be able to | ||
53 | -- | ||
54 | 2.40.1 | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb b/meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb deleted file mode 100644 index 144028e5..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | SECTION = "kernel" | ||
2 | SUMMARY = "BeagleBoard.org Linux kernel" | ||
3 | LICENSE = "GPL-2.0-only" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
5 | |||
6 | COMPATIBLE_MACHINE = "beagle.*" | ||
7 | |||
8 | inherit kernel | ||
9 | |||
10 | require recipes-kernel/linux/setup-defconfig.inc | ||
11 | require recipes-kernel/linux/ti-kernel.inc | ||
12 | |||
13 | # BB.org hasn't switched to "vendored" DTB layout by default yet | ||
14 | KERNEL_DTBVENDORED = "0" | ||
15 | |||
16 | DEPENDS += "gmp-native libmpc-native" | ||
17 | |||
18 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}" | ||
19 | |||
20 | S = "${WORKDIR}/git" | ||
21 | |||
22 | # 6.1.69 version for 32-bit | ||
23 | SRCREV:armv7a = "a1f26a19581970f76220c68c438981796ce5b767" | ||
24 | PV:armv7a = "6.1.69+git" | ||
25 | BRANCH:armv7a = "v6.1.69-ti-r22" | ||
26 | |||
27 | # 6.1.69 version for 64-bit | ||
28 | SRCREV:aarch64 = "bc76b5d278271f66a6faeb2d09cb09fc6c57dd3c" | ||
29 | PV:aarch64 = "6.1.69+git" | ||
30 | BRANCH:aarch64 = "v6.1.69-ti-arm64-r24" | ||
31 | |||
32 | SRC_URI = " \ | ||
33 | git://github.com/beagleboard/linux.git;protocol=https;branch=${BRANCH} \ | ||
34 | file://defconfig \ | ||
35 | " | ||
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 index 5c495d46..92fb1e6c 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb | |||
@@ -3,40 +3,31 @@ SUMMARY = "Mainline Linux kernel for TI devices" | |||
3 | LICENSE = "GPL-2.0-only" | 3 | LICENSE = "GPL-2.0-only" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
5 | 5 | ||
6 | inherit kernel | ||
7 | |||
8 | require recipes-kernel/linux/ti-kernel.inc | 6 | require recipes-kernel/linux/ti-kernel.inc |
9 | 7 | ||
10 | DEPENDS += "gmp-native libmpc-native" | 8 | inherit ${KERNEL_BASE_CLASS} |
11 | 9 | ||
12 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \ | 10 | DEPENDS += "gmp-native libmpc-native" |
13 | ${EXTRA_DTC_ARGS}" | ||
14 | 11 | ||
15 | S = "${WORKDIR}/git" | 12 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}" |
16 | 13 | ||
17 | # 6.6 Mainline version | 14 | S = "${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}" |
18 | SRCREV = "ffc253263a1375a65fa6c9f62a893e9767fbebfa" | ||
19 | PV = "6.6+git" | ||
20 | 15 | ||
21 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | 16 | # 6.12 Mainline version |
22 | MACHINE_KERNEL_PR:append = "b" | 17 | SRCREV = "adc218676eef25575469234709c2d87185ca223a" |
23 | PR = "${MACHINE_KERNEL_PR}" | 18 | PV = "6.12" |
24 | 19 | ||
25 | KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git" | 20 | KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git" |
26 | KERNEL_GIT_PROTOCOL = "https" | 21 | BRANCH = "master" |
27 | KERNEL_GIT_BRANCH = "master" | 22 | |
28 | SRC_URI += " \ | 23 | KERNEL_DEFCONFIG = "" |
29 | ${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${KERNEL_GIT_BRANCH} \ | 24 | |
25 | KERNEL_REPRODUCIBILITY_PATCHES = " \ | ||
26 | file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \ | ||
27 | file://0001-perf-python-Fix-compile-for-32bit-platforms.patch \ | ||
30 | " | 28 | " |
31 | 29 | ||
32 | DEFCONFIG_NAME = "multi_v7_defconfig" | 30 | DEFCONFIG_NAME = "multi_v7_defconfig" |
33 | DEFCONFIG_NAME:omapl138 = "davinci_all_defconfig" | 31 | DEFCONFIG_NAME:omapl138 = "davinci_all_defconfig" |
34 | DEFCONFIG_NAME:k3 = "defconfig" | 32 | DEFCONFIG_NAME:k3 = "defconfig" |
35 | KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${DEFCONFIG_NAME}" | 33 | KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${DEFCONFIG_NAME}" |
36 | |||
37 | do_shared_workdir:prepend() { | ||
38 | cd ${B} | ||
39 | echo >> Module.symvers | ||
40 | } | ||
41 | |||
42 | FILES:${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-next_git.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-next_git.bb index f1a14ab1..60b647f1 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-next_git.bb +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-next_git.bb | |||
@@ -1,26 +1,11 @@ | |||
1 | SECTION = "kernel" | 1 | require linux-ti-mainline_git.bb |
2 | SUMMARY = "Linux-next kernel for TI devices" | ||
3 | LICENSE = "GPL-2.0-only" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
5 | |||
6 | inherit kernel | ||
7 | |||
8 | require recipes-kernel/linux/ti-kernel.inc | ||
9 | include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''} | ||
10 | 2 | ||
11 | DEPENDS += "gmp-native libmpc-native" | 3 | SUMMARY = "Linux-next kernel for TI devices" |
12 | |||
13 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | 4 | ||
17 | # 6.6.0-rc3+ version | 5 | # 6.6.0-rc3+ version |
18 | SRCREV = "6465e260f48790807eef06b583b38ca9789b6072" | 6 | SRCREV = "6465e260f48790807eef06b583b38ca9789b6072" |
19 | PV = "6.6.0-rc3+git" | 7 | PV = "6.6.0-rc3+git" |
20 | 8 | ||
21 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git;protocol=https;branch=master" | 9 | KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git" |
22 | 10 | ||
23 | DEFCONFIG_NAME = "multi_v7_defconfig" | 11 | KERNEL_REPRODUCIBILITY_PATCHES = "" |
24 | DEFCONFIG_NAME:omapl138 = "davinci_all_defconfig" | ||
25 | DEFCONFIG_NAME:k3 = "defconfig" | ||
26 | KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${DEFCONFIG_NAME}" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.1/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/defconfig index 24b53cf7..24b53cf7 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.1/defconfig +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/defconfig | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.1/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/k3/defconfig index ef1d3efd..ef1d3efd 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.1/k3/defconfig +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/k3/defconfig | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.1/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/omapl138/defconfig index 099493af..099493af 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.1/omapl138/defconfig +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/omapl138/defconfig | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.1/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti33x/defconfig index 24b53cf7..24b53cf7 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.1/defconfig +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti33x/defconfig | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.6/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti43x/defconfig index 24b53cf7..24b53cf7 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.6/defconfig +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti43x/defconfig | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.1/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.1/omapl138/defconfig deleted file mode 100644 index 2c829c0b..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.1/omapl138/defconfig +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | use-kernel-config=davinci_all_defconfig | ||
2 | config-fragment=kernel/configs/ti_rt.config | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.1/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.1/ti33x/defconfig deleted file mode 100644 index 5de2b229..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.1/ti33x/defconfig +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | use-kernel-config=multi_v7_defconfig | ||
2 | config-fragment=kernel/configs/ti_multi_v7_prune.config kernel/configs/ti_rt.config kernel/configs/no_smp.config | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.1/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.1/ti43x/defconfig deleted file mode 100644 index 5de2b229..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.1/ti43x/defconfig +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | use-kernel-config=multi_v7_defconfig | ||
2 | config-fragment=kernel/configs/ti_multi_v7_prune.config kernel/configs/ti_rt.config kernel/configs/no_smp.config | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.1/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/defconfig index 43089dc8..43089dc8 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.1/defconfig +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/defconfig | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.1/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/k3/defconfig index 47d78664..47d78664 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.1/k3/defconfig +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/k3/defconfig | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.1/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/omapl138/defconfig index 099493af..3d890b6e 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.1/omapl138/defconfig +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/omapl138/defconfig | |||
@@ -1 +1,2 @@ | |||
1 | use-kernel-config=davinci_all_defconfig | 1 | use-kernel-config=davinci_all_defconfig |
2 | config-fragment= | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.1/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti33x/defconfig index e6a967e1..43089dc8 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.1/ti33x/defconfig +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti33x/defconfig | |||
@@ -1,2 +1,2 @@ | |||
1 | use-kernel-config=multi_v7_defconfig | 1 | use-kernel-config=multi_v7_defconfig |
2 | config-fragment=kernel/configs/ti_multi_v7_prune.config kernel/configs/no_smp.config | 2 | config-fragment=kernel/configs/ti_multi_v7_prune.config kernel/configs/ti_rt.config |
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.1/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti43x/defconfig index e6a967e1..43089dc8 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.1/ti43x/defconfig +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti43x/defconfig | |||
@@ -1,2 +1,2 @@ | |||
1 | use-kernel-config=multi_v7_defconfig | 1 | use-kernel-config=multi_v7_defconfig |
2 | config-fragment=kernel/configs/ti_multi_v7_prune.config kernel/configs/no_smp.config | 2 | config-fragment=kernel/configs/ti_multi_v7_prune.config kernel/configs/ti_rt.config |
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb deleted file mode 100644 index 45461419..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | require linux-ti-staging_6.1.bb | ||
2 | |||
3 | KERNEL_LOCALVERSION:append = "-rt" | ||
4 | |||
5 | # Look in the generic major.minor directory for files | ||
6 | # This will have priority over generic non-rt path | ||
7 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.1:" | ||
8 | |||
9 | BRANCH = "ti-rt-linux-6.1.y" | ||
10 | |||
11 | SRCREV = "01dbe4e64bacaa4c891c1997f2724c320698d61f" | ||
12 | |||
13 | include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if d.getVar('TI_EXTRAS') else ''} | ||
14 | |||
15 | PV = "6.1.82+git" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.12.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.12.bb new file mode 100644 index 00000000..a6a1e7c7 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.12.bb | |||
@@ -0,0 +1,28 @@ | |||
1 | require linux-ti-staging_6.12.bb | ||
2 | |||
3 | KERNEL_LOCALVERSION:append = "-rt" | ||
4 | |||
5 | # Look in the generic major.minor directory for files | ||
6 | # This will have priority over generic non-rt path | ||
7 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.12:" | ||
8 | |||
9 | BRANCH_ARM64 = "ti-linux-6.12.y" | ||
10 | BRANCH = "${BRANCH_ARM64}" | ||
11 | |||
12 | BRANCH_ARM32 = "ti-rt-linux-6.12.y-arm32" | ||
13 | SRCREV_ARM32 = "9085e19579dfb5074d05000dcca3b9b7d8afb106" | ||
14 | PV_ARM32 = "6.12.43+git" | ||
15 | |||
16 | BRANCH:ti33x = "${BRANCH_ARM32}" | ||
17 | BRANCH:ti43x = "${BRANCH_ARM32}" | ||
18 | BRANCH:am57xx = "${BRANCH_ARM32}" | ||
19 | |||
20 | SRCREV:ti33x = "${SRCREV_ARM32}" | ||
21 | SRCREV:ti43x = "${SRCREV_ARM32}" | ||
22 | SRCREV:am57xx = "${SRCREV_ARM32}" | ||
23 | |||
24 | PV:ti33x = "${PV_ARM32}" | ||
25 | PV:ti43x = "${PV_ARM32}" | ||
26 | PV:am57xx = "${PV_ARM32}" | ||
27 | |||
28 | include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if d.getVar('TI_EXTRAS') else ''} | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.6.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.6.bb index e527e070..e817b530 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.6.bb +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.6.bb | |||
@@ -1,7 +1,5 @@ | |||
1 | require linux-ti-staging_6.6.bb | 1 | require linux-ti-staging_6.6.bb |
2 | 2 | ||
3 | DEFAULT_PREFERENCE = "-1" | ||
4 | |||
5 | KERNEL_LOCALVERSION:append = "-rt" | 3 | KERNEL_LOCALVERSION:append = "-rt" |
6 | 4 | ||
7 | # Look in the generic major.minor directory for files | 5 | # Look in the generic major.minor directory for files |
@@ -10,8 +8,8 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.6:" | |||
10 | 8 | ||
11 | BRANCH = "ti-rt-linux-6.6.y" | 9 | BRANCH = "ti-rt-linux-6.6.y" |
12 | 10 | ||
13 | SRCREV = "82fd2ecb48b6bdb66081cb2f24b9bdfce218dea6" | 11 | SRCREV = "c79d7ef3a56ff61dd83d5527520b419a4f0e32e2" |
14 | 12 | ||
15 | include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if d.getVar('TI_EXTRAS') else ''} | 13 | include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if d.getVar('TI_EXTRAS') else ''} |
16 | 14 | ||
17 | PV = "6.6.23+git" | 15 | PV = "6.6.58+git" |
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.1/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.1/k3/defconfig deleted file mode 100644 index ef1d3efd..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.1/k3/defconfig +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | use-kernel-config=defconfig | ||
2 | config-fragment=kernel/configs/ti_arm64_prune.config | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.6/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.6/k3/defconfig deleted file mode 100644 index ef1d3efd..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.6/k3/defconfig +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | use-kernel-config=defconfig | ||
2 | config-fragment=kernel/configs/ti_arm64_prune.config | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.6/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.6/omapl138/defconfig deleted file mode 100644 index 099493af..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.6/omapl138/defconfig +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | use-kernel-config=davinci_all_defconfig | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_6.1.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_6.1.bb deleted file mode 100644 index 9c170e65..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_6.1.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require linux-ti-staging_6.1.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}-6.1:" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_6.6.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_6.6.bb deleted file mode 100644 index 21090904..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_6.6.bb +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | require linux-ti-staging_6.6.bb | ||
2 | |||
3 | DEFAULT_PREFERENCE = "-1" | ||
4 | |||
5 | # Look in the generic major.minor directory for files | ||
6 | # This will have priority over generic non-rt path | ||
7 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.6:" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb index a58494df..5d8f27a5 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb | |||
@@ -3,37 +3,31 @@ SUMMARY = "Linux kernel for TI devices" | |||
3 | LICENSE = "GPL-2.0-only" | 3 | LICENSE = "GPL-2.0-only" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
5 | 5 | ||
6 | inherit ti-secdev | 6 | require recipes-kernel/linux/ti-kernel.inc |
7 | inherit kernel | 7 | |
8 | inherit ${KERNEL_BASE_CLASS} | ||
8 | 9 | ||
9 | require recipes-kernel/linux/setup-defconfig.inc | 10 | require recipes-kernel/linux/setup-defconfig.inc |
10 | require recipes-kernel/linux/ti-kernel.inc | ||
11 | include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''} | ||
12 | include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} | 11 | include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} |
13 | 12 | ||
14 | DEPENDS += "gmp-native libmpc-native" | 13 | DEPENDS += "gmp-native libmpc-native" |
15 | 14 | ||
16 | # Look in the generic major.minor directory for files | 15 | # Look in the generic major.minor directory for files |
17 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.1:" | 16 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.12:" |
18 | 17 | ||
19 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \ | 18 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \ |
20 | ${EXTRA_DTC_ARGS}" | 19 | ${EXTRA_DTC_ARGS}" |
21 | 20 | ||
22 | S = "${WORKDIR}/git" | 21 | S = "${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}" |
23 | |||
24 | BRANCH ?= "ti-linux-6.1.y" | ||
25 | 22 | ||
26 | SRCREV ?= "e44f83d2aa4366b3097307c5915d03696cf3e1b8" | 23 | BRANCH ?= "ti-linux-6.12.y" |
27 | PV = "6.1.82+git" | ||
28 | 24 | ||
29 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | 25 | SRCREV ?= "10c7960f9cf6c5e3ed0c8865596e07540bf9ba1b" |
30 | MACHINE_KERNEL_PR:append = "b" | 26 | PV = "6.12.43+git" |
31 | PR = "${MACHINE_KERNEL_PR}" | ||
32 | 27 | ||
33 | KERNEL_GIT_URI ?= "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git" | 28 | KERNEL_REPRODUCIBILITY_PATCHES = " \ |
34 | KERNEL_GIT_PROTOCOL = "https" | 29 | file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \ |
35 | SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ | 30 | " |
36 | file://defconfig" | ||
37 | 31 | ||
38 | # Special configuration for remoteproc/rpmsg IPC modules | 32 | # Special configuration for remoteproc/rpmsg IPC modules |
39 | module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" | 33 | module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" |
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb index 4871f3cf..b6d882d8 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb | |||
@@ -3,14 +3,11 @@ SUMMARY = "Linux kernel for TI devices" | |||
3 | LICENSE = "GPL-2.0-only" | 3 | LICENSE = "GPL-2.0-only" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
5 | 5 | ||
6 | inherit ti-secdev | 6 | require recipes-kernel/linux/ti-kernel.inc |
7 | inherit kernel | ||
8 | 7 | ||
9 | DEFAULT_PREFERENCE = "-1" | 8 | inherit ${KERNEL_BASE_CLASS} |
10 | 9 | ||
11 | require recipes-kernel/linux/setup-defconfig.inc | 10 | require recipes-kernel/linux/setup-defconfig.inc |
12 | require recipes-kernel/linux/ti-kernel.inc | ||
13 | include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''} | ||
14 | include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} | 11 | include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} |
15 | 12 | ||
16 | DEPENDS += "gmp-native libmpc-native" | 13 | DEPENDS += "gmp-native libmpc-native" |
@@ -21,21 +18,16 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.6:" | |||
21 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \ | 18 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \ |
22 | ${EXTRA_DTC_ARGS}" | 19 | ${EXTRA_DTC_ARGS}" |
23 | 20 | ||
24 | S = "${WORKDIR}/git" | 21 | S = "${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}" |
25 | 22 | ||
26 | BRANCH ?= "ti-linux-6.6.y" | 23 | BRANCH ?= "ti-linux-6.6.y" |
27 | 24 | ||
28 | SRCREV ?= "02bfb99615b1c26a06d0af269e97401251a25c40" | 25 | SRCREV ?= "a7758da17c2807e5285d6546b6797aae1d34a7d6" |
29 | PV = "6.6.23+git" | 26 | PV = "6.6.58+git" |
30 | |||
31 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | ||
32 | MACHINE_KERNEL_PR:append = "b" | ||
33 | PR = "${MACHINE_KERNEL_PR}" | ||
34 | 27 | ||
35 | KERNEL_GIT_URI ?= "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git" | 28 | KERNEL_REPRODUCIBILITY_PATCHES = " \ |
36 | KERNEL_GIT_PROTOCOL = "https" | 29 | file://0001-vt-conmakehash-improve-reproducibility.patch \ |
37 | SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ | 30 | " |
38 | file://defconfig" | ||
39 | 31 | ||
40 | # Special configuration for remoteproc/rpmsg IPC modules | 32 | # Special configuration for remoteproc/rpmsg IPC modules |
41 | module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" | 33 | module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" |
diff --git a/meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc b/meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc index 8da90c79..213f6871 100644 --- a/meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc +++ b/meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc | |||
@@ -9,7 +9,7 @@ do_configure() { | |||
9 | # Always copy the defconfig file to .config to keep consistency | 9 | # Always copy the defconfig file to .config to keep consistency |
10 | # between the case where there is a real config and the in kernel | 10 | # between the case where there is a real config and the in kernel |
11 | # tree config | 11 | # tree config |
12 | cp ${WORKDIR}/defconfig ${B}/.config | 12 | cp ${UNPACKDIR}/defconfig ${B}/.config |
13 | 13 | ||
14 | scm_version=$(printf '%s%s' -g $(git -C ${S} rev-parse --verify HEAD 2>/dev/null | cut -c1-12)) | 14 | scm_version=$(printf '%s%s' -g $(git -C ${S} rev-parse --verify HEAD 2>/dev/null | cut -c1-12)) |
15 | 15 | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc index 530a1783..dba9ef38 100644 --- a/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc +++ b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc | |||
@@ -2,10 +2,10 @@ | |||
2 | # Use different commit, repo and branch for TI extras build | 2 | # Use different commit, repo and branch for TI extras build |
3 | # This will have priority over generic rt path | 3 | # This will have priority over generic rt path |
4 | 4 | ||
5 | COMPATIBLE_MACHINE = "am62xx|am62pxx" | 5 | COMPATIBLE_MACHINE = "am62xx|am62pxx|am62lxx" |
6 | 6 | ||
7 | BRANCH = "ti-rt-linux-6.1.y" | 7 | BRANCH = "ti-linux-6.12.y" |
8 | BRANCH:tie-jailhouse = "ti-rt-linux-6.1.y-jailhouse" | 8 | BRANCH:tie-jailhouse = "ti-linux-6.12.y-jailhouse" |
9 | 9 | ||
10 | SRCREV = "685e77152461bd6b791500f717bec62d17c1b36d" | 10 | SRCREV = "c9e21a1ebd757f2b4487035382bbf65299cf8170" |
11 | SRCREV:tie-jailhouse = "a74088b40b4d27478a2af5c20cdc0b4ec8ed9470" | 11 | SRCREV:tie-jailhouse = "229a48602ad1557612a4ffabec6a3cbcdd745f87" |
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc b/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc index 0b22aca9..4b7a9f20 100644 --- a/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc +++ b/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc | |||
@@ -2,13 +2,13 @@ | |||
2 | # Use different commit, repo and branch for TI extras build | 2 | # Use different commit, repo and branch for TI extras build |
3 | # This will have priority over generic rt path | 3 | # This will have priority over generic rt path |
4 | 4 | ||
5 | COMPATIBLE_MACHINE = "am62xx|am62pxx" | 5 | COMPATIBLE_MACHINE = "am62xx|am62pxx|am62lxx" |
6 | 6 | ||
7 | BRANCH = "ti-linux-6.1.y" | 7 | BRANCH = "ti-linux-6.12.y" |
8 | BRANCH:tie-jailhouse = "ti-linux-6.1.y-jailhouse" | 8 | BRANCH:tie-jailhouse = "ti-linux-6.12.y-jailhouse" |
9 | 9 | ||
10 | SRCREV = "ec058c3ddc5377c629e988a95ef84826b14a3307" | 10 | SRCREV = "c9e21a1ebd757f2b4487035382bbf65299cf8170" |
11 | SRCREV:tie-jailhouse = "d035e0cc72399f1c087a63c4210d29e79a7a66e4" | 11 | SRCREV:tie-jailhouse = "229a48602ad1557612a4ffabec6a3cbcdd745f87" |
12 | 12 | ||
13 | KERNEL_GIT_URI = "git://git.ti.com/git/processor-sdk/linux.git" | 13 | KERNEL_GIT_URI = "git://git.ti.com/git/processor-sdk/linux.git" |
14 | 14 | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-kernel-fitimage.bb b/meta-ti-bsp/recipes-kernel/linux/ti-kernel-fitimage.bb new file mode 100644 index 00000000..cc90d390 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/ti-kernel-fitimage.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | SUMMARY = "Generate and sign the fitImage file for TI Machines" | ||
2 | |||
3 | FIT_DESC ?= "Kernel fitImage for ${DISTRO_NAME}/${PKGV}/${MACHINE}" | ||
4 | FIT_CONF_PREFIX ?= "conf-ti_" | ||
5 | |||
6 | require recipes-kernel/linux/linux-yocto-fitimage.bb | ||
7 | |||
8 | inherit ti-secdev | ||
9 | |||
10 | inherit ${@ 'ti-devicetree-prefix' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''} | ||
11 | |||
12 | do_compile[depends] += "virtual/kernel:do_shared_workdir" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc b/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc index dd5578f5..32b6c95d 100644 --- a/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc +++ b/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc | |||
@@ -1,14 +1,15 @@ | |||
1 | # Add DTC FLAGS -@ when KERNEL_DTB_OVERLAY_SUPPORT is enabled | 1 | KERNEL_GIT_URI ?= "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git" |
2 | KERNEL_GIT_PROTOCOL ?= "https" | ||
3 | KERNEL_GIT_BRANCH ?= "branch=${BRANCH}" | ||
2 | 4 | ||
3 | def get_extra_dtc_args(d): | 5 | KERNEL_DEFCONFIG ?= "file://defconfig" |
4 | if d.getVar('KERNEL_DTB_OVERLAY_SUPPORT') == "1": | ||
5 | return "DTC_FLAGS=-@" | ||
6 | else: | ||
7 | return "" | ||
8 | 6 | ||
9 | EXTRA_DTC_ARGS += "${@get_extra_dtc_args(d)}" | 7 | KERNEL_BASE_CLASS ?= "kernel" |
10 | 8 | ||
11 | # Tell the kernel class to install the DTBs in the same directory structure as | 9 | KERNEL_REPRODUCIBILITY_PATCHES ?= "" |
12 | # the kernel. | 10 | |
13 | KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb" | 11 | SRC_URI = " \ |
14 | KERNEL_DTBVENDORED = "1" | 12 | ${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};${KERNEL_GIT_BRANCH} \ |
13 | ${KERNEL_DEFCONFIG} \ | ||
14 | ${KERNEL_REPRODUCIBILITY_PATCHES} \ | ||
15 | " | ||
diff --git a/meta-ti-bsp/recipes-multimedia/ti-multimedia-udev/files/67-multimedia.rules b/meta-ti-bsp/recipes-multimedia/ti-multimedia-udev/files/67-multimedia.rules new file mode 100644 index 00000000..5239d1ef --- /dev/null +++ b/meta-ti-bsp/recipes-multimedia/ti-multimedia-udev/files/67-multimedia.rules | |||
@@ -0,0 +1,5 @@ | |||
1 | SUBSYSTEM=="video4linux", DEVPATH=="/devices/*/*210000.video-codec/video4linux/video*", ATTR{name}=="C&M Wave5 VPU decoder", SYMLINK+="video-dec0" | ||
2 | SUBSYSTEM=="video4linux", DEVPATH=="/devices/*/*210000.video-codec/video4linux/video*", ATTR{name}=="C&M Wave5 VPU encoder", SYMLINK+="video-enc0" | ||
3 | SUBSYSTEM=="video4linux", DEVPATH=="/devices/*/4220000.video-codec/video4linux/video*", ATTR{name}=="C&M Wave5 VPU decoder", SYMLINK+="video-dec1" | ||
4 | SUBSYSTEM=="video4linux", DEVPATH=="/devices/*/4220000.video-codec/video4linux/video*", ATTR{name}=="C&M Wave5 VPU encoder", SYMLINK+="video-enc1" | ||
5 | SUBSYSTEM=="video4linux", DEVPATH=="/devices/*/fd20000.jpeg-encoder/video4linux/video*", ATTR{name}=="e5010", SYMLINK+="jpeg-enc0" | ||
diff --git a/meta-ti-bsp/recipes-multimedia/ti-multimedia-udev/ti-multimedia-udev.bb b/meta-ti-bsp/recipes-multimedia/ti-multimedia-udev/ti-multimedia-udev.bb new file mode 100644 index 00000000..785cd252 --- /dev/null +++ b/meta-ti-bsp/recipes-multimedia/ti-multimedia-udev/ti-multimedia-udev.bb | |||
@@ -0,0 +1,13 @@ | |||
1 | SUMMARY = "Udev rules for device naming of VPU devices and JPEG encoder" | ||
2 | |||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
5 | |||
6 | SRC_URI += "file://67-multimedia.rules" | ||
7 | |||
8 | S = "${UNPACKDIR}" | ||
9 | |||
10 | do_install() { | ||
11 | install -d ${D}${sysconfdir}/udev/rules.d | ||
12 | install -m 0644 ${UNPACKDIR}/67-multimedia.rules ${D}${sysconfdir}/udev/rules.d/ | ||
13 | } | ||
diff --git a/meta-ti-bsp/recipes-security/optee/optee-client-ti-version.inc b/meta-ti-bsp/recipes-security/optee/optee-client-ti-version.inc index 16fbd6c5..dd00cde1 100644 --- a/meta-ti-bsp/recipes-security/optee/optee-client-ti-version.inc +++ b/meta-ti-bsp/recipes-security/optee/optee-client-ti-version.inc | |||
@@ -1,2 +1,6 @@ | |||
1 | PV = "4.1.0+git" | 1 | PV = "4.6.0+git" |
2 | SRCREV = "f7e4ced15d1fefd073bbfc484fe0e1f74afe96c2" | 2 | SRCREV = "02e7f9213b0d7db9c35ebf1e41e733fc9c5a3f75" |
3 | |||
4 | SRC_URI:remove = " \ | ||
5 | file://0001-tee-supplicant-add-udev-rule-and-systemd-service-fil.patch \ | ||
6 | " | ||
diff --git a/meta-ti-bsp/recipes-security/optee/optee-examples-ti-version.inc b/meta-ti-bsp/recipes-security/optee/optee-examples-ti-version.inc index 23cd7580..6c120be2 100644 --- a/meta-ti-bsp/recipes-security/optee/optee-examples-ti-version.inc +++ b/meta-ti-bsp/recipes-security/optee/optee-examples-ti-version.inc | |||
@@ -1,2 +1,2 @@ | |||
1 | PV = "4.0.0+git" | 1 | PV = "4.6.0+git" |
2 | SRCREV = "378dc0db2d5dd279f58a3b6cb3f78ffd6b165035" | 2 | SRCREV = "5306d2c7c618bb4a91df17a2d5d79ae4701af4a3" |
diff --git a/meta-ti-bsp/recipes-security/optee/optee-os-4.0.0/0002ti-core-Define-section-attributes-for-clang.patch b/meta-ti-bsp/recipes-security/optee/optee-os-4.0.0/0002ti-core-Define-section-attributes-for-clang.patch deleted file mode 100644 index 06a8ff60..00000000 --- a/meta-ti-bsp/recipes-security/optee/optee-os-4.0.0/0002ti-core-Define-section-attributes-for-clang.patch +++ /dev/null | |||
@@ -1,249 +0,0 @@ | |||
1 | |||
2 | This is a fixup of the patch in meta-arm. The file: | ||
3 | core/arch/arm/mm/pgt_cache.c | ||
4 | was moved to: | ||
5 | core/mm/pgt_cache.c | ||
6 | |||
7 | Ryan Eatmon <reatmon@ti.com> | ||
8 | |||
9 | |||
10 | From 6f588813a170a671ebf1d6b51cebc7bc761295dc Mon Sep 17 00:00:00 2001 | ||
11 | From: Emekcan Aras <emekcan.aras@arm.com> | ||
12 | Date: Wed, 21 Dec 2022 10:55:58 +0000 | ||
13 | Subject: [PATCH] core: Define section attributes for clang | ||
14 | |||
15 | Clang's attribute section is not same as gcc, here we need to add flags | ||
16 | to sections so they can be eventually collected by linker into final | ||
17 | output segments. Only way to do so with clang is to use | ||
18 | |||
19 | pragma clang section ... | ||
20 | |||
21 | The behavious is described here [1], this allows us to define names bss | ||
22 | sections. This was not an issue until clang-15 where LLD linker starts | ||
23 | to detect the section flags before merging them and throws the following | ||
24 | errors | ||
25 | |||
26 | | ld.lld: error: section type mismatch for .nozi.kdata_page | ||
27 | | >>> /mnt/b/yoe/master/build/tmp/work/qemuarm64-yoe-linux/optee-os-tadevkit/3.17.0-r0/build/core/arch/arm/kernel/thread.o:(.nozi.kdata_page): SHT_PROGBITS | ||
28 | | >>> output section .nozi: SHT_NOBITS | ||
29 | | | ||
30 | | ld.lld: error: section type mismatch for .nozi.mmu.l2 | ||
31 | | >>> /mnt/b/yoe/master/build/tmp/work/qemuarm64-yoe-linux/optee-os-tadevkit/3.17.0-r0/build/core/arch/arm/mm/core_mmu_lpae.o:(.nozi.mmu.l2): SHT_PROGBITS | ||
32 | | >>> output section .nozi: SHT_NOBITS | ||
33 | |||
34 | These sections should be carrying SHT_NOBITS but so far it was not | ||
35 | possible to do so, this patch tries to use clangs pragma to get this | ||
36 | going and match the functionality with gcc. | ||
37 | |||
38 | [1] https://intel.github.io/llvm-docs/clang/LanguageExtensions.html#specifying-section-names-for-global-objects-pragma-clang-section | ||
39 | |||
40 | Upstream-Status: Pending | ||
41 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
42 | --- | ||
43 | core/arch/arm/kernel/thread.c | 19 +++++++++++++++-- | ||
44 | core/arch/arm/mm/core_mmu_lpae.c | 35 +++++++++++++++++++++++++++---- | ||
45 | core/arch/arm/mm/core_mmu_v7.c | 36 +++++++++++++++++++++++++++++--- | ||
46 | core/arch/arm/mm/pgt_cache.c | 12 ++++++++++- | ||
47 | core/kernel/thread.c | 13 +++++++++++- | ||
48 | 5 files changed, 104 insertions(+), 11 deletions(-) | ||
49 | |||
50 | diff --git a/core/arch/arm/kernel/thread.c b/core/arch/arm/kernel/thread.c | ||
51 | index 4487ef026df9..f3624389611b 100644 | ||
52 | --- a/core/arch/arm/kernel/thread.c | ||
53 | +++ b/core/arch/arm/kernel/thread.c | ||
54 | @@ -44,15 +44,30 @@ static size_t thread_user_kcode_size __nex_bss; | ||
55 | #if defined(CFG_CORE_UNMAP_CORE_AT_EL0) && \ | ||
56 | defined(CFG_CORE_WORKAROUND_SPECTRE_BP_SEC) && defined(ARM64) | ||
57 | long thread_user_kdata_sp_offset __nex_bss; | ||
58 | +#ifdef __clang__ | ||
59 | +#ifndef CFG_VIRTUALIZATION | ||
60 | +#pragma clang section bss=".nozi.kdata_page" | ||
61 | +#else | ||
62 | +#pragma clang section bss=".nex_nozi.kdata_page" | ||
63 | +#endif | ||
64 | +#endif | ||
65 | static uint8_t thread_user_kdata_page[ | ||
66 | ROUNDUP(sizeof(struct thread_core_local) * CFG_TEE_CORE_NB_CORE, | ||
67 | SMALL_PAGE_SIZE)] | ||
68 | __aligned(SMALL_PAGE_SIZE) | ||
69 | +#ifndef __clang__ | ||
70 | #ifndef CFG_NS_VIRTUALIZATION | ||
71 | - __section(".nozi.kdata_page"); | ||
72 | + __section(".nozi.kdata_page") | ||
73 | #else | ||
74 | - __section(".nex_nozi.kdata_page"); | ||
75 | + __section(".nex_nozi.kdata_page") | ||
76 | #endif | ||
77 | +#endif | ||
78 | + ; | ||
79 | +#endif | ||
80 | + | ||
81 | +/* reset BSS section to default ( .bss ) */ | ||
82 | +#ifdef __clang__ | ||
83 | +#pragma clang section bss="" | ||
84 | #endif | ||
85 | |||
86 | #ifdef ARM32 | ||
87 | diff --git a/core/arch/arm/mm/core_mmu_lpae.c b/core/arch/arm/mm/core_mmu_lpae.c | ||
88 | index 7e79f780ad28..ec4db9dc98c5 100644 | ||
89 | --- a/core/arch/arm/mm/core_mmu_lpae.c | ||
90 | +++ b/core/arch/arm/mm/core_mmu_lpae.c | ||
91 | @@ -233,19 +233,46 @@ typedef uint16_t l1_idx_t; | ||
92 | typedef uint64_t base_xlat_tbls_t[CFG_TEE_CORE_NB_CORE][NUM_BASE_LEVEL_ENTRIES]; | ||
93 | typedef uint64_t xlat_tbl_t[XLAT_TABLE_ENTRIES]; | ||
94 | |||
95 | +#ifdef __clang__ | ||
96 | +#pragma clang section bss=".nozi.mmu.base_table" | ||
97 | +#endif | ||
98 | static base_xlat_tbls_t base_xlation_table[NUM_BASE_TABLES] | ||
99 | __aligned(NUM_BASE_LEVEL_ENTRIES * XLAT_ENTRY_SIZE) | ||
100 | - __section(".nozi.mmu.base_table"); | ||
101 | +#ifndef __clang__ | ||
102 | + __section(".nozi.mmu.base_table") | ||
103 | +#endif | ||
104 | +; | ||
105 | +#ifdef __clang__ | ||
106 | +#pragma clang section bss="" | ||
107 | +#endif | ||
108 | |||
109 | +#ifdef __clang__ | ||
110 | +#pragma clang section bss=".nozi.mmu.l2" | ||
111 | +#endif | ||
112 | static xlat_tbl_t xlat_tables[MAX_XLAT_TABLES] | ||
113 | - __aligned(XLAT_TABLE_SIZE) __section(".nozi.mmu.l2"); | ||
114 | + __aligned(XLAT_TABLE_SIZE) | ||
115 | +#ifndef __clang__ | ||
116 | + __section(".nozi.mmu.l2") | ||
117 | +#endif | ||
118 | +; | ||
119 | +#ifdef __clang__ | ||
120 | +#pragma clang section bss="" | ||
121 | +#endif | ||
122 | |||
123 | #define XLAT_TABLES_SIZE (sizeof(xlat_tbl_t) * MAX_XLAT_TABLES) | ||
124 | |||
125 | +#ifdef __clang__ | ||
126 | +#pragma clang section bss=".nozi.mmu.l2" | ||
127 | +#endif | ||
128 | /* MMU L2 table for TAs, one for each thread */ | ||
129 | static xlat_tbl_t xlat_tables_ul1[CFG_NUM_THREADS] | ||
130 | - __aligned(XLAT_TABLE_SIZE) __section(".nozi.mmu.l2"); | ||
131 | - | ||
132 | +#ifndef __clang__ | ||
133 | + __aligned(XLAT_TABLE_SIZE) __section(".nozi.mmu.l2") | ||
134 | +#endif | ||
135 | +; | ||
136 | +#ifdef __clang__ | ||
137 | +#pragma clang section bss="" | ||
138 | +#endif | ||
139 | /* | ||
140 | * TAs page table entry inside a level 1 page table. | ||
141 | * | ||
142 | diff --git a/core/arch/arm/mm/core_mmu_v7.c b/core/arch/arm/mm/core_mmu_v7.c | ||
143 | index 61e703da89c8..1960c08ca688 100644 | ||
144 | --- a/core/arch/arm/mm/core_mmu_v7.c | ||
145 | +++ b/core/arch/arm/mm/core_mmu_v7.c | ||
146 | @@ -204,16 +204,46 @@ typedef uint32_t l1_xlat_tbl_t[NUM_L1_ENTRIES]; | ||
147 | typedef uint32_t l2_xlat_tbl_t[NUM_L2_ENTRIES]; | ||
148 | typedef uint32_t ul1_xlat_tbl_t[NUM_UL1_ENTRIES]; | ||
149 | |||
150 | +#ifdef __clang__ | ||
151 | +#pragma clang section bss=".nozi.mmu.l1" | ||
152 | +#endif | ||
153 | static l1_xlat_tbl_t main_mmu_l1_ttb | ||
154 | - __aligned(L1_ALIGNMENT) __section(".nozi.mmu.l1"); | ||
155 | + __aligned(L1_ALIGNMENT) | ||
156 | +#ifndef __clang__ | ||
157 | + __section(".nozi.mmu.l1") | ||
158 | +#endif | ||
159 | +; | ||
160 | +#ifdef __clang__ | ||
161 | +#pragma clang section bss="" | ||
162 | +#endif | ||
163 | |||
164 | /* L2 MMU tables */ | ||
165 | +#ifdef __clang__ | ||
166 | +#pragma clang section bss=".nozi.mmu.l2" | ||
167 | +#endif | ||
168 | static l2_xlat_tbl_t main_mmu_l2_ttb[MAX_XLAT_TABLES] | ||
169 | - __aligned(L2_ALIGNMENT) __section(".nozi.mmu.l2"); | ||
170 | + __aligned(L2_ALIGNMENT) | ||
171 | +#ifndef __clang__ | ||
172 | + __section(".nozi.mmu.l2") | ||
173 | +#endif | ||
174 | +; | ||
175 | +#ifdef __clang__ | ||
176 | +#pragma clang section bss="" | ||
177 | +#endif | ||
178 | |||
179 | /* MMU L1 table for TAs, one for each thread */ | ||
180 | +#ifdef __clang__ | ||
181 | +#pragma clang section bss=".nozi.mmu.ul1" | ||
182 | +#endif | ||
183 | static ul1_xlat_tbl_t main_mmu_ul1_ttb[CFG_NUM_THREADS] | ||
184 | - __aligned(UL1_ALIGNMENT) __section(".nozi.mmu.ul1"); | ||
185 | + __aligned(UL1_ALIGNMENT) | ||
186 | +#ifndef __clang__ | ||
187 | + __section(".nozi.mmu.ul1") | ||
188 | +#endif | ||
189 | +; | ||
190 | +#ifdef __clang__ | ||
191 | +#pragma clang section bss="" | ||
192 | +#endif | ||
193 | |||
194 | struct mmu_partition { | ||
195 | l1_xlat_tbl_t *l1_table; | ||
196 | diff --git a/core/mm/pgt_cache.c b/core/mm/pgt_cache.c | ||
197 | index 79553c6d2183..b9efdf42780b 100644 | ||
198 | --- a/core/mm/pgt_cache.c | ||
199 | +++ b/core/mm/pgt_cache.c | ||
200 | @@ -410,8 +410,18 @@ void pgt_init(void) | ||
201 | * has a large alignment, while .bss has a small alignment. The current | ||
202 | * link script is optimized for small alignment in .bss | ||
203 | */ | ||
204 | +#ifdef __clang__ | ||
205 | +#pragma clang section bss=".nozi.mmu.l2" | ||
206 | +#endif | ||
207 | static uint8_t pgt_tables[PGT_CACHE_SIZE][PGT_SIZE] | ||
208 | - __aligned(PGT_SIZE) __section(".nozi.pgt_cache"); | ||
209 | + __aligned(PGT_SIZE) | ||
210 | +#ifndef __clang__ | ||
211 | + __section(".nozi.pgt_cache") | ||
212 | +#endif | ||
213 | + ; | ||
214 | +#ifdef __clang__ | ||
215 | +#pragma clang section bss="" | ||
216 | +#endif | ||
217 | size_t n; | ||
218 | |||
219 | for (n = 0; n < ARRAY_SIZE(pgt_tables); n++) { | ||
220 | diff --git a/core/kernel/thread.c b/core/kernel/thread.c | ||
221 | index 2a1f22dce635..5516b677141a 100644 | ||
222 | --- a/core/kernel/thread.c | ||
223 | +++ b/core/kernel/thread.c | ||
224 | @@ -39,13 +39,24 @@ static uint32_t end_canary_value = 0xababab00; | ||
225 | name[stack_num][sizeof(name[stack_num]) / sizeof(uint32_t) - 1] | ||
226 | #endif | ||
227 | |||
228 | +#define DO_PRAGMA(x) _Pragma (#x) | ||
229 | + | ||
230 | +#ifdef __clang__ | ||
231 | +#define DECLARE_STACK(name, num_stacks, stack_size, linkage) \ | ||
232 | +DO_PRAGMA (clang section bss=".nozi_stack." #name) \ | ||
233 | +linkage uint32_t name[num_stacks] \ | ||
234 | + [ROUNDUP(stack_size + STACK_CANARY_SIZE + STACK_CHECK_EXTRA, \ | ||
235 | + STACK_ALIGNMENT) / sizeof(uint32_t)] \ | ||
236 | + __attribute__((aligned(STACK_ALIGNMENT))); \ | ||
237 | +DO_PRAGMA(clang section bss="") | ||
238 | +#else | ||
239 | #define DECLARE_STACK(name, num_stacks, stack_size, linkage) \ | ||
240 | linkage uint32_t name[num_stacks] \ | ||
241 | [ROUNDUP(stack_size + STACK_CANARY_SIZE + STACK_CHECK_EXTRA, \ | ||
242 | STACK_ALIGNMENT) / sizeof(uint32_t)] \ | ||
243 | __attribute__((section(".nozi_stack." # name), \ | ||
244 | aligned(STACK_ALIGNMENT))) | ||
245 | - | ||
246 | +#endif | ||
247 | #define GET_STACK(stack) ((vaddr_t)(stack) + STACK_SIZE(stack)) | ||
248 | |||
249 | DECLARE_STACK(stack_tmp, CFG_TEE_CORE_NB_CORE, STACK_TMP_SIZE, | ||
diff --git a/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc b/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc index 0ea30907..61a74a06 100644 --- a/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc +++ b/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc | |||
@@ -3,12 +3,15 @@ inherit ti-secdev | |||
3 | 3 | ||
4 | EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y" | 4 | EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y" |
5 | 5 | ||
6 | EXTRA_OEMAKE:append:k3 = "${@ ' CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}" | 6 | EXTRA_OEMAKE:append:k3 = " ${@ 'CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}" |
7 | EXTRA_OEMAKE:append:k3 = " ${@ 'CFG_TZDRAM_START='+ d.getVar('OPTEE_K3_TZDRAM_START') if d.getVar('OPTEE_K3_TZDRAM_START') else ''}" | ||
7 | 8 | ||
8 | EXTRA_OEMAKE:append:am62xx = " CFG_TEE_CORE_LOG_LEVEL=1" | 9 | EXTRA_OEMAKE:append:am62xx = " CFG_TEE_CORE_LOG_LEVEL=1" |
9 | EXTRA_OEMAKE:append:am62pxx = " CFG_WITH_SOFTWARE_PRNG=y CFG_TEE_CORE_LOG_LEVEL=1" | 10 | EXTRA_OEMAKE:append:am62lxx = " CFG_TEE_CORE_LOG_LEVEL=1" |
11 | EXTRA_OEMAKE:append:am62pxx = " CFG_TEE_CORE_LOG_LEVEL=1" | ||
10 | EXTRA_OEMAKE:append:am62axx = " CFG_TEE_CORE_LOG_LEVEL=1" | 12 | EXTRA_OEMAKE:append:am62axx = " CFG_TEE_CORE_LOG_LEVEL=1" |
11 | EXTRA_OEMAKE:append:j722s = " CFG_WITH_SOFTWARE_PRNG=y CFG_TEE_CORE_LOG_LEVEL=1" | 13 | EXTRA_OEMAKE:append:am62dxx = " CFG_TEE_CORE_LOG_LEVEL=1" |
14 | EXTRA_OEMAKE:append:j722s = " CFG_TEE_CORE_LOG_LEVEL=1" | ||
12 | 15 | ||
13 | do_compile:append:k3() { | 16 | do_compile:append:k3() { |
14 | cp ${B}/core/tee-pager_v2.bin ${B}/bl32.bin | 17 | cp ${B}/core/tee-pager_v2.bin ${B}/bl32.bin |
@@ -46,10 +49,6 @@ do_install:append() { | |||
46 | install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true | 49 | install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true |
47 | install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true | 50 | install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true |
48 | install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true | 51 | install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true |
49 | |||
50 | # Install embedded TAs | ||
51 | mkdir -p ${D}${nonarch_base_libdir}/optee_armtz/ | ||
52 | install -D -p -m0444 ${B}/ta/*/*.ta ${D}${nonarch_base_libdir}/optee_armtz/ | ||
53 | } | 52 | } |
54 | 53 | ||
55 | optee_deploy_legacyhs() { | 54 | optee_deploy_legacyhs() { |
@@ -72,7 +71,8 @@ do_deploy:append:k3() { | |||
72 | ln -sf optee/bl32.elf ${DEPLOYDIR}/ | 71 | ln -sf optee/bl32.elf ${DEPLOYDIR}/ |
73 | } | 72 | } |
74 | 73 | ||
75 | FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/" | 74 | # Make the OS depend on embedded TAs |
75 | RDEPENDS:${PN} += "${PN}-ta" | ||
76 | 76 | ||
77 | # This is needed for bl32.elf | 77 | # This is needed for bl32.elf |
78 | INSANE_SKIP:${PN}:append:k3 = " textrel" | 78 | INSANE_SKIP:${PN}:append:k3 = " textrel" |
diff --git a/meta-ti-bsp/recipes-security/optee/optee-os-ti-version.inc b/meta-ti-bsp/recipes-security/optee/optee-os-ti-version.inc index 9db67567..a9a1d1e8 100644 --- a/meta-ti-bsp/recipes-security/optee/optee-os-ti-version.inc +++ b/meta-ti-bsp/recipes-security/optee/optee-os-ti-version.inc | |||
@@ -1,7 +1,9 @@ | |||
1 | PV = "4.1.0+git" | 1 | PV = "4.6.0+git" |
2 | SRCREV = "012cdca49db398693903e05c42a254a3a0c0d8f2" | 2 | SRCREV = "71785645fa6ce42db40dbf5a54e0eaedc4f61591" |
3 | 3 | ||
4 | # Fixes for pointing to 4.0.0 before upstream meta-arm | 4 | SRC_URI:remove = " \ |
5 | FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-4.0.0:" | 5 | file://0001-mk-compile.mk-remove-absolute-build-time-paths.patch \ |
6 | SRC_URI:remove = "file://0002-core-Define-section-attributes-for-clang.patch" | 6 | file://0001-compile.mk-use-CFLAGS-from-environment.patch \ |
7 | SRC_URI:append = " file://0002ti-core-Define-section-attributes-for-clang.patch" | 7 | file://0002-link.mk-use-CFLAGS-with-version.o.patch \ |
8 | file://0003-link.mk-generate-version.o-in-link-out-dir.patch \ | ||
9 | " | ||
diff --git a/meta-ti-bsp/recipes-security/optee/optee-test-ti-version.inc b/meta-ti-bsp/recipes-security/optee/optee-test-ti-version.inc index 16b2dfc3..dec59d88 100644 --- a/meta-ti-bsp/recipes-security/optee/optee-test-ti-version.inc +++ b/meta-ti-bsp/recipes-security/optee/optee-test-ti-version.inc | |||
@@ -1,6 +1,5 @@ | |||
1 | PV = "4.1.0+git" | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/optee-test:" |
2 | SRCREV = "2e1e7a9c9d659585566a75fc8802f4758c42bcb2" | ||
3 | |||
4 | # Fixes for pointing to 4.0.0 before upstream meta-arm | ||
5 | SRC_URI:remove = "file://0001-xtest-regression_1000-remove-unneeded-stat.h-include.patch" | ||
6 | 2 | ||
3 | PV = "4.6.0+git" | ||
4 | SRCREV = "a9e9495f4d57b97022008ad11198195e7e044c5d" | ||
5 | SRC_URI += "file://0001-Suppress-new-gcc-15-Wunterminated-string-initializat.patch" | ||
diff --git a/meta-ti-bsp/recipes-security/optee/optee-test/0001-Suppress-new-gcc-15-Wunterminated-string-initializat.patch b/meta-ti-bsp/recipes-security/optee/optee-test/0001-Suppress-new-gcc-15-Wunterminated-string-initializat.patch new file mode 100644 index 00000000..018952f8 --- /dev/null +++ b/meta-ti-bsp/recipes-security/optee/optee-test/0001-Suppress-new-gcc-15-Wunterminated-string-initializat.patch | |||
@@ -0,0 +1,68 @@ | |||
1 | From a8e58203dcb4c13ee340259cd2692202ac8414d1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Denys Dmytriyenko <denys@konsulko.com> | ||
3 | Date: Tue, 6 May 2025 21:35:55 -0400 | ||
4 | Subject: [PATCH] Suppress new gcc-15 -Wunterminated-string-initialization | ||
5 | |||
6 | GCC 15 now warns when character arrays are being initialized by strings | ||
7 | and terminating NUL character doesn't fit. GCC 15.1 also allows marking | ||
8 | such arrays with nonstring attribute to suppress the warning. W/o such | ||
9 | attribute, the warning becomes error due to the global -Werror. Add the | ||
10 | attribute accordingly. | ||
11 | |||
12 | Fixes these errors: | ||
13 | |||
14 | | ./regression_4000_data.h:7919:9: error: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (20 chars into 19 available) [-Werror=unterminated-string-initialization] | ||
15 | | 7919 | "encryption standard"; | ||
16 | | | ^~~~~~~~~~~~~~~~~~~~~ | ||
17 | | ./regression_4000_data.h:8387:9: error: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (113 chars into 112 available) [-Werror=unterminated-string-initialization] | ||
18 | | 8387 | "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomn" | ||
19 | | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
20 | | ./regression_4000.c:1295:47: error: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (4 chars into 3 available) [-Werror=unterminated-string-initialization] | ||
21 | | 1295 | static const uint8_t hash_data_sm3_a1_in[3] = "abc"; | ||
22 | | | ^~~~~ | ||
23 | |||
24 | Upstream-Status: Pending | ||
25 | |||
26 | Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> | ||
27 | --- | ||
28 | host/xtest/regression_4000.c | 2 +- | ||
29 | host/xtest/regression_4000_data.h | 4 ++-- | ||
30 | 2 files changed, 3 insertions(+), 3 deletions(-) | ||
31 | |||
32 | diff --git a/host/xtest/regression_4000.c b/host/xtest/regression_4000.c | ||
33 | index 3aa15be..46e6f8e 100644 | ||
34 | --- a/host/xtest/regression_4000.c | ||
35 | +++ b/host/xtest/regression_4000.c | ||
36 | @@ -1292,7 +1292,7 @@ static const uint8_t hash_data_shake256_out2[] = { | ||
37 | * https://tools.ietf.org/html/draft-sca-cfrg-sm3-02 | ||
38 | * Appendix A.1 | ||
39 | */ | ||
40 | -static const uint8_t hash_data_sm3_a1_in[3] = "abc"; | ||
41 | +static const uint8_t hash_data_sm3_a1_in[3] __attribute__((nonstring)) = "abc"; | ||
42 | |||
43 | static const uint8_t hash_data_sm3_a1_out[] = { | ||
44 | 0x66, 0xc7, 0xf0, 0xf4, 0x62, 0xee, 0xed, 0xd9, | ||
45 | diff --git a/host/xtest/regression_4000_data.h b/host/xtest/regression_4000_data.h | ||
46 | index 0881ac3..eb101b2 100644 | ||
47 | --- a/host/xtest/regression_4000_data.h | ||
48 | +++ b/host/xtest/regression_4000_data.h | ||
49 | @@ -7914,7 +7914,7 @@ static struct derive_key_ecdh_t { | ||
50 | }; | ||
51 | |||
52 | /* G/MT 0003 (SM2) Part 5 Annex C.2 - encryption/decryption */ | ||
53 | -static const uint8_t gmt_0003_part5_c2_sm2_testvector_ptx[19] = | ||
54 | +static const uint8_t gmt_0003_part5_c2_sm2_testvector_ptx[19] __attribute__((nonstring)) = | ||
55 | /* M */ | ||
56 | "encryption standard"; | ||
57 | static const uint8_t gmt_0003_part5_c2_sm2_testvector_private[] = { | ||
58 | @@ -8383,7 +8383,7 @@ static const uint8_t mac_data_sha3_512_out1[] = { | ||
59 | * GM/T 0042-2015 | ||
60 | * Section D.3 Test vector 1 | ||
61 | */ | ||
62 | -static const uint8_t mac_data_sm3_d31_in[112] = | ||
63 | +static const uint8_t mac_data_sm3_d31_in[112] __attribute__((nonstring)) = | ||
64 | "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomn" | ||
65 | "opnopqabcdbcdecdefdefgefghfghighijhijkijkljklmklmn" | ||
66 | "lmnomnopnopq"; | ||
67 | -- | ||
68 | 2.25.1 | ||
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-common.inc b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-common.inc index ec1e71be..da7e4733 100644 --- a/meta-ti-bsp/recipes-ti/ipc/ti-ipc-common.inc +++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc-common.inc | |||
@@ -3,7 +3,7 @@ INC_PR = "r0" | |||
3 | 3 | ||
4 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 4 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
5 | COMPATIBLE_HOST ?= "null" | 5 | COMPATIBLE_HOST ?= "null" |
6 | COMPATIBLE_HOST:ti-soc = "(.*)" | 6 | COMPATIBLE_HOST:ti-soc = ".*-linux" |
7 | 7 | ||
8 | PLATFORM = "UNKNOWN" | 8 | PLATFORM = "UNKNOWN" |
9 | PLATFORM:dra7xx = "DRA7XX" | 9 | PLATFORM:dra7xx = "DRA7XX" |
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc.inc b/meta-ti-bsp/recipes-ti/ipc/ti-ipc.inc index 44be2466..9c14c544 100644 --- a/meta-ti-bsp/recipes-ti/ipc/ti-ipc.inc +++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc.inc | |||
@@ -1,5 +1,6 @@ | |||
1 | SUMMARY = "TI Inter Process Communication (IPC) Mechanisms" | ||
1 | DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)" | 2 | 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 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:IPC" |
3 | 4 | ||
4 | LICENSE = "BSD-3-Clause" | 5 | LICENSE = "BSD-3-Clause" |
5 | LIC_FILES_CHKSUM = "file://${S}/ipc-linux.mak;beginline=1;endline=30;md5=7b327f9b710fd7c95e545b91cec79255" | 6 | LIC_FILES_CHKSUM = "file://${S}/ipc-linux.mak;beginline=1;endline=30;md5=7b327f9b710fd7c95e545b91cec79255" |
@@ -8,13 +9,11 @@ TI_IPC_GIT_URI = "git://git.ti.com/git/ipc/ipcdev.git" | |||
8 | TI_IPC_GIT_PROTOCOL = "https" | 9 | TI_IPC_GIT_PROTOCOL = "https" |
9 | TI_IPC_GIT_BRANCH = "master" | 10 | TI_IPC_GIT_BRANCH = "master" |
10 | 11 | ||
11 | #Corresponds to 3.51.00.00A | 12 | #Corresponds to 3.52.00.01 |
12 | TI_IPC_SRCREV = "7a6e343a208d2849139b7272a67abc01db806e00" | 13 | TI_IPC_SRCREV = "7f76e5cc15c634b70efee18d1aa0474d603224a6" |
13 | 14 | ||
14 | BRANCH = "${TI_IPC_GIT_BRANCH}" | 15 | BRANCH = "${TI_IPC_GIT_BRANCH}" |
15 | SRC_URI = "${TI_IPC_GIT_URI};protocol=${TI_IPC_GIT_PROTOCOL};branch=${BRANCH};name=ipcdev" | 16 | SRC_URI = "${TI_IPC_GIT_URI};protocol=${TI_IPC_GIT_PROTOCOL};branch=${BRANCH};name=ipcdev" |
16 | SRCREV = "${TI_IPC_SRCREV}" | 17 | SRCREV = "${TI_IPC_SRCREV}" |
17 | 18 | ||
18 | CFLAGS += "-fcommon" | 19 | CFLAGS += "-fcommon" |
19 | |||
20 | S = "${WORKDIR}/git" | ||
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc_git.bb b/meta-ti-bsp/recipes-ti/ipc/ti-ipc_git.bb index e2db6efd..539a83f9 100644 --- a/meta-ti-bsp/recipes-ti/ipc/ti-ipc_git.bb +++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc_git.bb | |||
@@ -1,5 +1,6 @@ | |||
1 | SUMMARY = "TI Inter Process Communication (IPC) Mechanisms" | ||
1 | DESCRIPTION = "TI Inter Process Communication (IPC) Mechanisms (for Uni- and Multi- Processor Configurations)" | 2 | 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 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:IPC" |
3 | 4 | ||
4 | require ti-ipc.inc | 5 | require ti-ipc.inc |
5 | require ti-ipc-common.inc | 6 | require ti-ipc-common.inc |
@@ -18,7 +19,7 @@ SRC_URI += "file://tiipclad-daemon.sh \ | |||
18 | file://0001-MmRpc-Stop-looking-for-rpmsg_rpc.h-in-the-kernel.patch \ | 19 | file://0001-MmRpc-Stop-looking-for-rpmsg_rpc.h-in-the-kernel.patch \ |
19 | " | 20 | " |
20 | 21 | ||
21 | CFLAGS += "-I${WORKDIR}" | 22 | CFLAGS += "-I${UNPACKDIR} -fdebug-prefix-map=${UNPACKDIR}=${TARGET_DBGSRC_DIR}" |
22 | 23 | ||
23 | DAEMON = "UNKNOWN" | 24 | DAEMON = "UNKNOWN" |
24 | DAEMON:dra7xx = "lad_dra7xx" | 25 | DAEMON:dra7xx = "lad_dra7xx" |
@@ -45,18 +46,18 @@ do_install:append() { | |||
45 | 46 | ||
46 | # Modify the startup scripts to point to the right | 47 | # Modify the startup scripts to point to the right |
47 | # lad daemon executable. | 48 | # lad daemon executable. |
48 | sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.sh | 49 | sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${UNPACKDIR}/tiipclad-daemon.sh |
49 | sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.service | 50 | sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${UNPACKDIR}/tiipclad-daemon.service |
50 | 51 | ||
51 | install -d ${D}${systemd_system_unitdir} | 52 | install -d ${D}${systemd_system_unitdir} |
52 | install -m 0644 ${WORKDIR}/tiipclad-daemon.service ${D}${systemd_system_unitdir} | 53 | install -m 0644 ${UNPACKDIR}/tiipclad-daemon.service ${D}${systemd_system_unitdir} |
53 | install -d ${D}${sysconfdir}/init.d/ | 54 | install -d ${D}${sysconfdir}/init.d/ |
54 | install -c -m 755 ${WORKDIR}/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} | 55 | install -c -m 755 ${UNPACKDIR}/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} |
55 | } | 56 | } |
56 | 57 | ||
57 | do_install:append:dra7xx() { | 58 | do_install:append:dra7xx() { |
58 | install -d ${D}${sysconfdir}/modprobe.d/ | 59 | install -d ${D}${sysconfdir}/modprobe.d/ |
59 | install -c -m 644 ${WORKDIR}/omap_remoteproc.conf ${D}${sysconfdir}/modprobe.d/ | 60 | install -c -m 644 ${UNPACKDIR}/omap_remoteproc.conf ${D}${sysconfdir}/modprobe.d/ |
60 | } | 61 | } |
61 | 62 | ||
62 | PACKAGES =+ "${PN}-test" | 63 | PACKAGES =+ "${PN}-test" |
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-librpmsg-dma_1.0.bb b/meta-ti-bsp/recipes-ti/ipc/ti-librpmsg-dma_1.0.bb new file mode 100644 index 00000000..165ce8fb --- /dev/null +++ b/meta-ti-bsp/recipes-ti/ipc/ti-librpmsg-dma_1.0.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | SUMMARY = "RPMsg DMA shared library" | ||
2 | LICENSE = "MIT" | ||
3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=744e63d2bb8c6151dcdd97f49aa02c53" | ||
4 | |||
5 | SRC_URI = "git://github.com/TexasInstruments/rpmsg-dma.git;protocol=https;branch=main" | ||
6 | SRCREV = "609fd72f458ba56f80d06810509ef88d010d2c03" | ||
7 | |||
8 | inherit cmake | ||
9 | |||
10 | DEPENDS = "ti-rpmsg-char" | ||
11 | |||
12 | EXTRA_OECMAKE += "-DBUILD_LIB=ON -DBUILD_EXAMPLE=OFF" | ||
13 | |||
14 | COMPATIBLE_MACHINE = "^(k3)$" | ||
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char.inc b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char.inc index 4710be09..0350152d 100644 --- a/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char.inc +++ b/meta-ti-bsp/recipes-ti/ipc/ti-rpmsg-char.inc | |||
@@ -7,12 +7,9 @@ PROTOCOL = "https" | |||
7 | BRANCH = "master" | 7 | BRANCH = "master" |
8 | SRC_URI = "git://git.ti.com/git/rpmsg/ti-rpmsg-char.git;protocol=${PROTOCOL};branch=${BRANCH};" | 8 | SRC_URI = "git://git.ti.com/git/rpmsg/ti-rpmsg-char.git;protocol=${PROTOCOL};branch=${BRANCH};" |
9 | 9 | ||
10 | # 0.6.6 release | 10 | # 0.6.9 release |
11 | SRCREV = "55a6f4032246631a309f8608af5e822024664b59" | 11 | SRCREV = "09b064c6663ed46e4a402291dd87c8fe96135bd7" |
12 | 12 | ||
13 | PV = "0.6.6+git" | 13 | PV = "0.6.9+git" |
14 | 14 | ||
15 | S = "${WORKDIR}/git" | 15 | COMPATIBLE_MACHINE = "^(k3)$" |
16 | |||
17 | COMPATIBLE_HOST ?= "null" | ||
18 | COMPATIBLE_HOST:ti-soc = "(.*)" | ||
diff --git a/meta-ti-bsp/recipes-ti/secdev/ti-k3-secdev_git.bb b/meta-ti-bsp/recipes-ti/secdev/ti-k3-secdev_git.bb index e3267a23..bf8e0d00 100644 --- a/meta-ti-bsp/recipes-ti/secdev/ti-k3-secdev_git.bb +++ b/meta-ti-bsp/recipes-ti/secdev/ti-k3-secdev_git.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Security development tools for High-Security(HS) TI K3 processors." | 1 | SUMMARY = "Security development tools for High-Security(HS) TI K3 processors." |
2 | HOMEPAGE = "https://git.ti.com/cgit/security-development-tools/core-secdev-k3" | 2 | HOMEPAGE = "https://git.ti.com/cgit/security-development-tools/core-secdev-k3" |
3 | SECTION = "devel" | 3 | SECTION = "devel" |
4 | LICENSE = "BSD-3-Clause" | 4 | LICENSE = "BSD-3-Clause" |
@@ -20,8 +20,6 @@ GIT_SRCREV = "ed6951fd3877c6cac7f1237311f7278ac21634f3" | |||
20 | SRC_URI = "${GIT_URI};protocol=${GIT_PROTOCOL};branch=${GIT_BRANCH}" | 20 | SRC_URI = "${GIT_URI};protocol=${GIT_PROTOCOL};branch=${GIT_BRANCH}" |
21 | SRCREV = "${GIT_SRCREV}" | 21 | SRCREV = "${GIT_SRCREV}" |
22 | 22 | ||
23 | S = "${WORKDIR}/git" | ||
24 | |||
25 | do_install() { | 23 | do_install() { |
26 | CP_ARGS="-Prf --preserve=mode,links,timestamps --no-preserve=ownership" | 24 | CP_ARGS="-Prf --preserve=mode,links,timestamps --no-preserve=ownership" |
27 | install -d ${D}${TI_K3_SECDEV_INSTALL_DIR_RECIPE} | 25 | install -d ${D}${TI_K3_SECDEV_INSTALL_DIR_RECIPE} |
diff --git a/meta-ti-bsp/recipes-ti/ti-rtos-bin/files/empty b/meta-ti-bsp/recipes-ti/ti-rtos-bin/files/empty deleted file mode 100644 index c6cac692..00000000 --- a/meta-ti-bsp/recipes-ti/ti-rtos-bin/files/empty +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | empty | ||
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 deleted file mode 100644 index feee1cf9..00000000 --- a/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-metadata.bb +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | LICENSE = "BSD-3-Clause" | ||
2 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9" | ||
3 | |||
4 | COMPATIBLE_MACHINE = "j721e|j7200|am65xx|am64xx" | ||
5 | |||
6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
7 | |||
8 | INHIBIT_DEFAULT_DEPS = "1" | ||
9 | |||
10 | inherit nopackages deploy | ||
11 | |||
12 | PLAT_SFX = "" | ||
13 | PLAT_SFX:j721e = "/j721e" | ||
14 | PLAT_SFX:j7200 = "/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/git/processor-sdk/coresdk_rtos_releases.git" | ||
20 | TI_RTOS_METADATA_PROTOCOL ?= "https" | ||
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" | ||
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/wic/sdimage-2part-efi.wks.in b/meta-ti-bsp/wic/sdimage-2part-efi.wks.in index ca042be1..ae38daa7 100644 --- a/meta-ti-bsp/wic/sdimage-2part-efi.wks.in +++ b/meta-ti-bsp/wic/sdimage-2part-efi.wks.in | |||
@@ -3,6 +3,6 @@ | |||
3 | # supports EFI. Boot files are located in the first vfat partition with extra | 3 | # supports EFI. Boot files are located in the first vfat partition with extra |
4 | # reserved space. We cannot use a GPT here. | 4 | # reserved space. We cannot use a GPT here. |
5 | 5 | ||
6 | bootloader --timeout=3 --append="rootfstype=ext4" | 6 | bootloader --timeout=3 --append="rootfstype=ext4 ${TI_WKS_BOOTLOADER_APPEND}" |
7 | part --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER}" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M | 7 | part --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER}" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M |
8 | part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid | 8 | part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid |
diff --git a/meta-ti-extras/SECURITY b/meta-ti-extras/SECURITY new file mode 100644 index 00000000..367adc34 --- /dev/null +++ b/meta-ti-extras/SECURITY | |||
@@ -0,0 +1,20 @@ | |||
1 | How to Report a Potential Vulnerability? | ||
2 | ======================================== | ||
3 | |||
4 | If you would like to report a public issue (for example, one with a released | ||
5 | CVE number), please report it to the mailing list: | ||
6 | |||
7 | https://lists.yoctoproject.org/g/meta-ti | ||
8 | |||
9 | If you are dealing with a not-yet released or urgent issue, please send a | ||
10 | message to one of the maintainers listed in the README. Include as many | ||
11 | details as possible: | ||
12 | - the layer or software module affected | ||
13 | - the recipe and its version | ||
14 | - any example code, if available | ||
15 | |||
16 | Branches maintained with security fixes | ||
17 | --------------------------------------- | ||
18 | |||
19 | See https://wiki.yoctoproject.org/wiki/Releases for the list of current | ||
20 | releases. We only accept patches for the LTS releases and the master branch. | ||
diff --git a/meta-ti-extras/conf/layer.conf b/meta-ti-extras/conf/layer.conf index f2d6b250..af82e95b 100644 --- a/meta-ti-extras/conf/layer.conf +++ b/meta-ti-extras/conf/layer.conf | |||
@@ -9,7 +9,7 @@ BBFILE_COLLECTIONS += "meta-ti-extras" | |||
9 | BBFILE_PATTERN_meta-ti-extras := "^${LAYERDIR}/" | 9 | BBFILE_PATTERN_meta-ti-extras := "^${LAYERDIR}/" |
10 | BBFILE_PRIORITY_meta-ti-extras = "6" | 10 | BBFILE_PRIORITY_meta-ti-extras = "6" |
11 | 11 | ||
12 | LAYERSERIES_COMPAT_meta-ti-extras = "nanbield scarthgap styhead" | 12 | LAYERSERIES_COMPAT_meta-ti-extras = "whinlatter" |
13 | 13 | ||
14 | LICENSE_PATH += "${LAYERDIR}/licenses" | 14 | LICENSE_PATH += "${LAYERDIR}/licenses" |
15 | 15 | ||
diff --git a/meta-ti-extras/recipes-bsp/bt-fw/bt-fw_git.bb b/meta-ti-extras/recipes-bsp/bt-fw/bt-fw_git.bb index 9a5a6ffa..0d856362 100644 --- a/meta-ti-extras/recipes-bsp/bt-fw/bt-fw_git.bb +++ b/meta-ti-extras/recipes-bsp/bt-fw/bt-fw_git.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Firmware files for Bluetooth" | 1 | SUMMARY = "Firmware files for Bluetooth" |
2 | LICENSE = "TI-TSPA" | 2 | LICENSE = "TI-TSPA" |
3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f39eac9f4573be5b012e8313831e72a9" | 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f39eac9f4573be5b012e8313831e72a9" |
4 | 4 | ||
@@ -10,8 +10,6 @@ SRCREV = "0ee619b598d023fffc77679f099bc2a4815510e4" | |||
10 | BRANCH = "master" | 10 | BRANCH = "master" |
11 | SRC_URI = "git://git.ti.com/git/ti-bt/service-packs.git;protocol=https;branch=${BRANCH}" | 11 | SRC_URI = "git://git.ti.com/git/ti-bt/service-packs.git;protocol=https;branch=${BRANCH}" |
12 | 12 | ||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | do_compile() { | 13 | do_compile() { |
16 | : | 14 | : |
17 | } | 15 | } |
diff --git a/meta-ti-extras/recipes-bsp/cc33xx-fw/cc33xx-fw_git.bb b/meta-ti-extras/recipes-bsp/cc33xx-fw/cc33xx-fw_git.bb new file mode 100644 index 00000000..d5597ab9 --- /dev/null +++ b/meta-ti-extras/recipes-bsp/cc33xx-fw/cc33xx-fw_git.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | SUMMARY = "Firmware files for use with TI cc33xx" | ||
2 | LICENSE = "TI-TSPA" | ||
3 | LIC_FILES_CHKSUM = "file://LICENCE;md5=df68504cbd0a4da1643ebcfd5783dbc9" | ||
4 | |||
5 | SRCREV = "988ded3a7d4d0e46de62e9ebfcb685c502bd9edf" | ||
6 | SRC_URI = "git://git.ti.com/git/cc33xx-wlan/cc33xx-fw.git;protocol=https;branch=master" | ||
7 | |||
8 | PV = "1.7.0.120" | ||
9 | |||
10 | CLEANBROKEN = "1" | ||
11 | |||
12 | do_compile[no_exec] = "1" | ||
13 | |||
14 | EXTRA_OEMAKE = "DEST_DIR=${D} BASE_LIB_DIR=${nonarch_base_libdir}" | ||
15 | |||
16 | do_install() { | ||
17 | oe_runmake install | ||
18 | } | ||
19 | |||
20 | FILES:${PN} = "${nonarch_base_libdir}/firmware/ti-connectivity/*" | ||
diff --git a/meta-ti-extras/recipes-bsp/dspdce-fw/dspdce-fw_git.bb b/meta-ti-extras/recipes-bsp/dspdce-fw/dspdce-fw_git.bb deleted file mode 100644 index 491ee0f3..00000000 --- a/meta-ti-extras/recipes-bsp/dspdce-fw/dspdce-fw_git.bb +++ /dev/null | |||
@@ -1,65 +0,0 @@ | |||
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/git/glsdk/dspdce.git;protocol=https;branch=master" | ||
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}${nonarch_base_libdir}/firmware | ||
55 | install -m 0644 ${S}/dra7xx-c66x-dsp.xe66 ${D}${nonarch_base_libdir}/firmware/${TARGET}.${BPN} | ||
56 | } | ||
57 | |||
58 | ALTERNATIVE:${PN} = "dra7-dsp1-fw.xe66" | ||
59 | ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = "${nonarch_base_libdir}/firmware/${TARGET}" | ||
60 | ALTERNATIVE_TARGET[dra7-dsp1-fw.xe66] = "${nonarch_base_libdir}/firmware/${TARGET}.${BPN}" | ||
61 | ALTERNATIVE_PRIORITY = "10" | ||
62 | |||
63 | INSANE_SKIP:${PN} = "arch" | ||
64 | |||
65 | FILES:${PN} += "${nonarch_base_libdir}/firmware/*" | ||
diff --git a/meta-ti-extras/recipes-bsp/dsptop/debugss-module-drv_git.bb b/meta-ti-extras/recipes-bsp/dsptop/debugss-module-drv_git.bb index 9d85829b..d8e759d9 100644 --- a/meta-ti-extras/recipes-bsp/dsptop/debugss-module-drv_git.bb +++ b/meta-ti-extras/recipes-bsp/dsptop/debugss-module-drv_git.bb | |||
@@ -1,13 +1,10 @@ | |||
1 | DESCRIPTION = "Debug Sub-System (DebugSS) driver for Keystone and DRA7xx devices" | 1 | SUMMARY = "Debug Sub-System (DebugSS) driver for Keystone and DRA7xx devices" |
2 | LICENSE = "GPL-2.0-only" | 2 | LICENSE = "GPL-2.0-only" |
3 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=9d4316fe434ba450dca4da25348ca5a3" | 3 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=9d4316fe434ba450dca4da25348ca5a3" |
4 | 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" | 5 | PV:append = "+git" |
9 | 6 | ||
10 | S = "${WORKDIR}/git/debugss_module/debugss-mod" | 7 | S:append = "/debugss_module/debugss-mod" |
11 | 8 | ||
12 | inherit module | 9 | inherit module |
13 | 10 | ||
@@ -20,3 +17,8 @@ COMPATIBLE_MACHINE = "dra7xx" | |||
20 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 17 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
21 | 18 | ||
22 | include dsptop.inc | 19 | include dsptop.inc |
20 | |||
21 | SRC_URI += "\ | ||
22 | file://0001-debugss_kmodule-Add-include-for-mod_devicetable.h.patch \ | ||
23 | file://0002-debugss_kmodule-kernel-6.11-changed-return-value-for.patch \ | ||
24 | " | ||
diff --git a/meta-ti-extras/recipes-bsp/dsptop/dsptop_git.bb b/meta-ti-extras/recipes-bsp/dsptop/dsptop_git.bb index 90ce8943..5e8c56b8 100644 --- a/meta-ti-extras/recipes-bsp/dsptop/dsptop_git.bb +++ b/meta-ti-extras/recipes-bsp/dsptop/dsptop_git.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "TI dsptop utility." | 1 | SUMMARY = "TI dsptop utility." |
2 | LICENSE = "BSD-3-Clause" | 2 | LICENSE = "BSD-3-Clause" |
3 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=309825aa8f5edfcf2c44912ac094b979" | 3 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=309825aa8f5edfcf2c44912ac094b979" |
4 | 4 | ||
@@ -6,7 +6,7 @@ DEPENDS = "libulm ncurses" | |||
6 | 6 | ||
7 | PR = "${INC_PR}.2" | 7 | PR = "${INC_PR}.2" |
8 | 8 | ||
9 | S = "${WORKDIR}/git/dsptop" | 9 | S:append = "/dsptop" |
10 | 10 | ||
11 | DEVICE = "" | 11 | DEVICE = "" |
12 | DEVICE:dra7xx = "DRA7xx" | 12 | DEVICE:dra7xx = "DRA7xx" |
diff --git a/meta-ti-extras/recipes-bsp/dsptop/files/0001-debugss_kmodule-Add-include-for-mod_devicetable.h.patch b/meta-ti-extras/recipes-bsp/dsptop/files/0001-debugss_kmodule-Add-include-for-mod_devicetable.h.patch new file mode 100644 index 00000000..19c6791e --- /dev/null +++ b/meta-ti-extras/recipes-bsp/dsptop/files/0001-debugss_kmodule-Add-include-for-mod_devicetable.h.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 5a514f6a6bb1c49bdbaf8eabc1776f54851227af Mon Sep 17 00:00:00 2001 | ||
2 | From: Ryan Eatmon <reatmon@ti.com> | ||
3 | Date: Sun, 4 Aug 2024 11:17:28 -0500 | ||
4 | Subject: [PATCH] debugss_kmodule: Add include for mod_devicetable.h | ||
5 | |||
6 | Add include for <linux/mod_devicetable.h> to fix compile error: | ||
7 | |||
8 | git/debugss_module/debugss-mod/debugss_kmodule.c:1149:34: error: | ||
9 | array type has incomplete element type 'struct of_device_id' | ||
10 | |||
11 | Upstream-Status: Inactive-Upstream | ||
12 | |||
13 | Signed-off-by: Ryan Eatmon <reatmon@ti.com> | ||
14 | --- | ||
15 | debugss_kmodule.c | 2 ++ | ||
16 | 1 file changed, 2 insertions(+) | ||
17 | |||
18 | diff --git a/debugss_kmodule.c b/debugss_kmodule.c | ||
19 | index 6fac61d..9e084eb 100644 | ||
20 | --- a/debugss_kmodule.c | ||
21 | +++ b/debugss_kmodule.c | ||
22 | @@ -26,6 +26,8 @@ | ||
23 | #include <linux/of_device.h> | ||
24 | #include "debugss_kmodule.h" | ||
25 | |||
26 | +#include <linux/mod_devicetable.h> | ||
27 | + | ||
28 | /* un-comment the line below to enable printing for kernel debug messages */ | ||
29 | //#define DEBUGSS_DRV_DEBUG | ||
30 | |||
31 | -- | ||
32 | 2.17.1 | ||
diff --git a/meta-ti-extras/recipes-bsp/dsptop/files/0002-debugss_kmodule-kernel-6.11-changed-return-value-for.patch b/meta-ti-extras/recipes-bsp/dsptop/files/0002-debugss_kmodule-kernel-6.11-changed-return-value-for.patch new file mode 100644 index 00000000..0afe0264 --- /dev/null +++ b/meta-ti-extras/recipes-bsp/dsptop/files/0002-debugss_kmodule-kernel-6.11-changed-return-value-for.patch | |||
@@ -0,0 +1,57 @@ | |||
1 | From aaddf1fa8b92db23ae2ebc83826c2bb5f5c87c35 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ryan Eatmon <reatmon@ti.com> | ||
3 | Date: Thu, 3 Oct 2024 14:25:18 -0500 | ||
4 | Subject: [PATCH] debugss_kmodule: kernel 6.11 changed return value for remove | ||
5 | slot | ||
6 | |||
7 | In kernel version 6.11 the function footprint changed for the remove | ||
8 | slot to return a void instead of an int. [1] | ||
9 | |||
10 | Add ifdef checking code to look for kernel version and pick the correct | ||
11 | return code. | ||
12 | |||
13 | [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/linux/platform_device.h?id=0edb555a65d1ef047a9805051c36922b52a38a9d | ||
14 | |||
15 | Upstream-Status: Inactive-Upstream [lastcommit: 2021-04-20] | ||
16 | |||
17 | Signed-off-by: Ryan Eatmon <reatmon@ti.com> | ||
18 | --- | ||
19 | debugss_kmodule.c | 4 ++++ | ||
20 | 1 file changed, 4 insertions(+) | ||
21 | |||
22 | diff --git a/debugss_kmodule.c b/debugss_kmodule.c | ||
23 | index 9e084eb..4191be8 100644 | ||
24 | --- a/debugss_kmodule.c | ||
25 | +++ b/debugss_kmodule.c | ||
26 | @@ -27,6 +27,7 @@ | ||
27 | #include "debugss_kmodule.h" | ||
28 | |||
29 | #include <linux/mod_devicetable.h> | ||
30 | +#include <linux/version.h> | ||
31 | |||
32 | /* un-comment the line below to enable printing for kernel debug messages */ | ||
33 | //#define DEBUGSS_DRV_DEBUG | ||
34 | @@ -1132,7 +1133,11 @@ static int dra7xx_debugss_probe(struct platform_device *pdev) | ||
35 | return retval; | ||
36 | } | ||
37 | |||
38 | +#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 11, 0)) | ||
39 | static int dra7xx_debugss_remove(struct platform_device *pdev) | ||
40 | +#else | ||
41 | +static void dra7xx_debugss_remove(struct platform_device *pdev) | ||
42 | +#endif | ||
43 | { | ||
44 | __D("%s:\n",__FUNCTION__); | ||
45 | |||
46 | @@ -1145,7 +1150,9 @@ static int dra7xx_debugss_remove(struct platform_device *pdev) | ||
47 | /* Un-prepare debugSS clock */ | ||
48 | clk_disable_unprepare(sys_clk_in1); | ||
49 | |||
50 | +#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 11, 0)) | ||
51 | return 0; | ||
52 | +#endif | ||
53 | } | ||
54 | |||
55 | static const struct of_device_id dra7xx_debugss_of_match[] = { | ||
56 | -- | ||
57 | 2.17.1 | ||
diff --git a/meta-ti-extras/recipes-bsp/dsptop/libulm_git.bb b/meta-ti-extras/recipes-bsp/dsptop/libulm_git.bb index 6a2cde30..73c7831e 100644 --- a/meta-ti-extras/recipes-bsp/dsptop/libulm_git.bb +++ b/meta-ti-extras/recipes-bsp/dsptop/libulm_git.bb | |||
@@ -9,9 +9,9 @@ REQUIRED_MACHINE_FEATURES = "dsp" | |||
9 | DEPENDS = "ti-cgt6x-native" | 9 | DEPENDS = "ti-cgt6x-native" |
10 | PR = "${INC_PR}.0" | 10 | PR = "${INC_PR}.0" |
11 | 11 | ||
12 | S = "${WORKDIR}/git/dsptop/ulm" | 12 | S:append = "/dsptop/ulm" |
13 | 13 | ||
14 | DEVICE="" | 14 | DEVICE = "" |
15 | DEVICE:dra7xx = "DRA7xx" | 15 | DEVICE:dra7xx = "DRA7xx" |
16 | 16 | ||
17 | EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX}" | 17 | EXTRA_OEMAKE = "release DEVICE=${DEVICE} CROSS_COMPILE=${TARGET_PREFIX}" |
@@ -42,4 +42,14 @@ include dsptop.inc | |||
42 | 42 | ||
43 | ALLOW_EMPTY:${PN} = "1" | 43 | ALLOW_EMPTY:${PN} = "1" |
44 | 44 | ||
45 | PARALLEL_MAKE= "" | 45 | PARALLEL_MAKE = "" |
46 | |||
47 | # Disable the "buildpaths" check while we figure out how we are | ||
48 | # going to address this issue. | ||
49 | # | ||
50 | # The ti-cgt6x compiler is a custom TI compiler for the TI C6000 | ||
51 | # Digital Signal Processor(DSP) platform. It does not currently | ||
52 | # support reproducible builds and is provided via a binary blob | ||
53 | # download that we cannot patch in the recipe to address the | ||
54 | # issue. | ||
55 | INSANE_SKIP:${PN}-dev += "buildpaths" | ||
diff --git a/meta-ti-extras/recipes-bsp/ipumm-fw/ipumm-fw_git.bb b/meta-ti-extras/recipes-bsp/ipumm-fw/ipumm-fw_git.bb index 8d066eb0..bfdf1ac5 100644 --- a/meta-ti-extras/recipes-bsp/ipumm-fw/ipumm-fw_git.bb +++ b/meta-ti-extras/recipes-bsp/ipumm-fw/ipumm-fw_git.bb | |||
@@ -15,8 +15,6 @@ SRC_URI = "git://git.ti.com/git/ivimm/ipumm.git;protocol=https;branch=master" | |||
15 | 15 | ||
16 | SRCREV = "df4c50aecc9aad7ab3eb1ca9ebacfe473fcad7c5" | 16 | SRCREV = "df4c50aecc9aad7ab3eb1ca9ebacfe473fcad7c5" |
17 | 17 | ||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | PV = "3.00.15.00" | 18 | PV = "3.00.15.00" |
21 | PR = "r7" | 19 | PR = "r7" |
22 | 20 | ||
@@ -26,18 +24,18 @@ inherit update-alternatives | |||
26 | 24 | ||
27 | DEPENDS = "ti-xdctools-native ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-cgt-arm-native ti-ipc-rtos" | 25 | DEPENDS = "ti-xdctools-native ti-sysbios ti-codec-engine ti-framework-components ti-xdais ti-cgt-arm-native ti-ipc-rtos" |
28 | 26 | ||
29 | export HWVERSION="ES10" | 27 | export HWVERSION = "ES10" |
30 | export BIOSTOOLSROOT="${STAGING_DIR_TARGET}/usr/share/ti" | 28 | export BIOSTOOLSROOT = "${STAGING_DIR_TARGET}/usr/share/ti" |
31 | 29 | ||
32 | export XDCVERSION="ti-xdctools-tree" | 30 | export XDCVERSION = "ti-xdctools-tree" |
33 | export BIOSVERSION="ti-sysbios-tree" | 31 | export BIOSVERSION = "ti-sysbios-tree" |
34 | export IPCVERSION="ti-ipc-tree" | 32 | export IPCVERSION = "ti-ipc-tree" |
35 | export CEVERSION="ti-codec-engine-tree" | 33 | export CEVERSION = "ti-codec-engine-tree" |
36 | export FCVERSION="ti-framework-components-tree" | 34 | export FCVERSION = "ti-framework-components-tree" |
37 | export XDAISVERSION="ti-xdais-tree" | 35 | export XDAISVERSION = "ti-xdais-tree" |
38 | 36 | ||
39 | export TMS470CGTOOLPATH="${M4_TOOLCHAIN_INSTALL_DIR}" | 37 | export TMS470CGTOOLPATH = "${M4_TOOLCHAIN_INSTALL_DIR}" |
40 | export IPCSRC="${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" | 38 | export IPCSRC = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" |
41 | 39 | ||
42 | EXTRA_OEMAKE += "XDCDIST_TREE=${STAGING_DIR_NATIVE}/usr/share/ti/${XDCVERSION}" | 40 | EXTRA_OEMAKE += "XDCDIST_TREE=${STAGING_DIR_NATIVE}/usr/share/ti/${XDCVERSION}" |
43 | 41 | ||
@@ -65,3 +63,12 @@ ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${nonarch_base_libdir}/firmware/${TARGE | |||
65 | ALTERNATIVE_PRIORITY = "20" | 63 | ALTERNATIVE_PRIORITY = "20" |
66 | 64 | ||
67 | FILES:${PN} += "${nonarch_base_libdir}/firmware/*" | 65 | FILES:${PN} += "${nonarch_base_libdir}/firmware/*" |
66 | |||
67 | # Disable the "buildpaths" check while we figure out how we are | ||
68 | # going to address this issue. | ||
69 | # | ||
70 | # The ti-cgt-arm compiler is a custom TI compiler. It does not | ||
71 | # currently support reproducible builds and is provided via a | ||
72 | # binary blob download that we cannot patch in the recipe to address | ||
73 | # the issue. | ||
74 | INSANE_SKIP:${PN} += "buildpaths" | ||
diff --git a/meta-ti-extras/recipes-bsp/pru/pru-icss_git.bb b/meta-ti-extras/recipes-bsp/pru/pru-icss_git.bb index b01dd6a5..84d00eed 100644 --- a/meta-ti-extras/recipes-bsp/pru/pru-icss_git.bb +++ b/meta-ti-extras/recipes-bsp/pru/pru-icss_git.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Programmable Real-time Unit Software Package" | 1 | SUMMARY = "Programmable Real-time Unit Software Package" |
2 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/PRU-ICSS" | 2 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/PRU-ICSS" |
3 | LICENSE = "BSD-3-Clause & PD" | 3 | LICENSE = "BSD-3-Clause & PD" |
4 | 4 | ||
@@ -8,9 +8,9 @@ inherit update-alternatives | |||
8 | 8 | ||
9 | BRANCH = "master" | 9 | BRANCH = "master" |
10 | SRC_URI = "git://git.ti.com/git/pru-software-support-package/pru-software-support-package.git;protocol=https;branch=${BRANCH}" | 10 | SRC_URI = "git://git.ti.com/git/pru-software-support-package/pru-software-support-package.git;protocol=https;branch=${BRANCH}" |
11 | SRCREV = "00a5efa5157feb84cb2e4bf50b481f7082acca82" | 11 | SRCREV = "5584926fa3721274e61c5473593cfb7f9f4284d4" |
12 | 12 | ||
13 | PV = "6.3.0" | 13 | PV = "6.5.0" |
14 | 14 | ||
15 | require recipes-ti/includes/ti-paths.inc | 15 | require recipes-ti/includes/ti-paths.inc |
16 | 16 | ||
@@ -29,8 +29,6 @@ RDEPENDS:${PN}:append = " \ | |||
29 | 29 | ||
30 | DEPENDS = "ti-cgt-pru-native" | 30 | DEPENDS = "ti-cgt-pru-native" |
31 | 31 | ||
32 | S = "${WORKDIR}/git" | ||
33 | |||
34 | export PRU_CGT = "${TI_CGT_PRU_INSTALL_DIR}" | 32 | export PRU_CGT = "${TI_CGT_PRU_INSTALL_DIR}" |
35 | export PRU_SSP = "${S}" | 33 | export PRU_SSP = "${S}" |
36 | 34 | ||
diff --git a/meta-ti-extras/recipes-bsp/wl18xx-fw/wl18xx-fw/0001-Add-Makefile-to-install-firmware-files.patch b/meta-ti-extras/recipes-bsp/wl18xx-fw/wl18xx-fw/0001-Add-Makefile-to-install-firmware-files.patch deleted file mode 100644 index bb05c6fe..00000000 --- a/meta-ti-extras/recipes-bsp/wl18xx-fw/wl18xx-fw/0001-Add-Makefile-to-install-firmware-files.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
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 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Denys Dmytriyenko <denys@ti.com> | ||
9 | --- | ||
10 | Makefile | 9 +++++++++ | ||
11 | 1 file changed, 9 insertions(+) | ||
12 | create mode 100644 Makefile | ||
13 | |||
14 | diff --git a/Makefile b/Makefile | ||
15 | new file mode 100644 | ||
16 | index 0000000..1cf38e3 | ||
17 | --- /dev/null | ||
18 | +++ b/Makefile | ||
19 | @@ -0,0 +1,9 @@ | ||
20 | +# Installs the the ti-connectivity wlan firmware files into the root file system | ||
21 | + | ||
22 | +install: | ||
23 | + @if [ ! -d $(DESTDIR) ] ; then \ | ||
24 | + echo "Target filesystem directory doesn't exist."; \ | ||
25 | + exit 1; \ | ||
26 | + fi | ||
27 | + install -d $(DEST_DIR)/lib/firmware/ti-connectivity | ||
28 | + cp *.bin $(DEST_DIR)/lib/firmware/ti-connectivity/ | ||
29 | -- | ||
30 | 2.7.4 | ||
31 | |||
diff --git a/meta-ti-extras/recipes-bsp/wl18xx-fw/wl18xx-fw_8.9.0.0.86.bb b/meta-ti-extras/recipes-bsp/wl18xx-fw/wl18xx-fw_8.9.0.0.86.bb index dbae5a21..3e61db88 100644 --- a/meta-ti-extras/recipes-bsp/wl18xx-fw/wl18xx-fw_8.9.0.0.86.bb +++ b/meta-ti-extras/recipes-bsp/wl18xx-fw/wl18xx-fw_8.9.0.0.86.bb | |||
@@ -1,17 +1,12 @@ | |||
1 | DESCRIPTION = "Firmware files for use with TI wl18xx" | 1 | SUMMARY = "Firmware files for use with TI wl18xx" |
2 | LICENSE = "TI-TSPA" | 2 | LICENSE = "TI-TSPA" |
3 | LIC_FILES_CHKSUM = "file://LICENCE;md5=4977a0fe767ee17765ae63c435a32a9e" | 3 | LIC_FILES_CHKSUM = "file://LICENCE;md5=4977a0fe767ee17765ae63c435a32a9e" |
4 | 4 | ||
5 | SRC_URI = " \ | 5 | SRC_URI = "git://git.ti.com/git/wilink8-wlan/wl18xx_fw.git;protocol=https;branch=${BRANCH}" |
6 | git://git.ti.com/git/wilink8-wlan/wl18xx_fw.git;protocol=https;branch=${BRANCH} \ | ||
7 | file://0001-Add-Makefile-to-install-firmware-files.patch \ | ||
8 | " | ||
9 | 6 | ||
10 | SRCREV = "5ec05007f2662f460f881c5868311fd3ab7e6e71" | 7 | SRCREV = "5ec05007f2662f460f881c5868311fd3ab7e6e71" |
11 | BRANCH = "master" | 8 | BRANCH = "master" |
12 | 9 | ||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | CLEANBROKEN = "1" | 10 | CLEANBROKEN = "1" |
16 | 11 | ||
17 | do_compile() { | 12 | do_compile() { |
@@ -19,11 +14,8 @@ do_compile() { | |||
19 | } | 14 | } |
20 | 15 | ||
21 | do_install() { | 16 | do_install() { |
22 | if ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','true','false',d)}; then | 17 | install -d ${D}${nonarch_base_libdir}/firmware/ti-connectivity |
23 | oe_runmake 'DEST_DIR=${D}/usr' install | 18 | install -m 0644 ${S}/*.bin ${D}${nonarch_base_libdir}/firmware/ti-connectivity/ |
24 | else | ||
25 | oe_runmake 'DEST_DIR=${D}' install | ||
26 | fi | ||
27 | } | 19 | } |
28 | 20 | ||
29 | FILES:${PN} = "${nonarch_base_libdir}/firmware/ti-connectivity/*" | 21 | FILES:${PN} = "${nonarch_base_libdir}/firmware/ti-connectivity/*" |
diff --git a/meta-ti-extras/recipes-connectivity/cc33calibrator/cc33calibrator_git.bb b/meta-ti-extras/recipes-connectivity/cc33calibrator/cc33calibrator_git.bb new file mode 100644 index 00000000..57311667 --- /dev/null +++ b/meta-ti-extras/recipes-connectivity/cc33calibrator/cc33calibrator_git.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | SUMMARY = "The calibrator utility for TI wireless solution based on cc33xx driver" | ||
2 | LICENSE = "BSD-3-Clause" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=d5fc448a36efe573623542dcb989afc4" | ||
4 | |||
5 | SRCREV = "89d7e55b40972cbfc84f0734c35a7a6b4f7f5b31" | ||
6 | SRC_URI = "git://git.ti.com/git/cc33xx-wlan/cc33xx-utils.git;branch=master;protocol=https" | ||
7 | |||
8 | PV = "1.0.0.50" | ||
9 | |||
10 | DEPENDS = "libnl" | ||
11 | |||
12 | S:append = "/cc33calibrator" | ||
13 | |||
14 | export CROSS_COMPILE = "${TARGET_PREFIX}" | ||
15 | |||
16 | EXTRA_OEMAKE = "CFLAGS="${CFLAGS} -I${STAGING_INCDIR}/libnl3/ -DCONFIG_LIBNL32 " \ | ||
17 | LDFLAGS="${LDFLAGS} -L${STAGING_LIBDIR}" \ | ||
18 | CC="${CC}" \ | ||
19 | NLVER=3" | ||
20 | |||
21 | do_install() { | ||
22 | install -d ${D}${bindir} | ||
23 | install -m 0755 cc33calibrator ${D}${bindir}/ | ||
24 | } | ||
diff --git a/meta-ti-extras/recipes-connectivity/cc33conf/cc33conf_git.bb b/meta-ti-extras/recipes-connectivity/cc33conf/cc33conf_git.bb new file mode 100644 index 00000000..724be6e5 --- /dev/null +++ b/meta-ti-extras/recipes-connectivity/cc33conf/cc33conf_git.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | SUMMARY = "Configuration utility for TI CC33xx wireless devices" | ||
2 | LICENSE = "BSD-3-Clause" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=d5fc448a36efe573623542dcb989afc4" | ||
4 | |||
5 | SRCREV = "a2f84140b8d67cfc94472cf92676a409d1e47d86" | ||
6 | SRC_URI = "git://git.ti.com/git/cc33xx-wlan/cc33xx-utils.git;branch=master;protocol=https" | ||
7 | |||
8 | PV = "1.7.0.120" | ||
9 | |||
10 | S:append = "/cc33conf" | ||
11 | |||
12 | EXTRA_OEMAKE = "CC="${CC}"" | ||
13 | |||
14 | do_install() { | ||
15 | install -d ${D}${sbindir} | ||
16 | install -d ${D}${sbindir}/cc33conf/ | ||
17 | |||
18 | install -m 0755 cc33xxconf ${D}${sbindir}/cc33conf/ | ||
19 | install -m 0755 dictionary.txt ${D}${sbindir}/cc33conf/ | ||
20 | install -m 0755 default.conf ${D}${sbindir}/cc33conf/ | ||
21 | install -m 0755 README ${D}${sbindir}/cc33conf/ | ||
22 | install -m 0755 cc33xx-conf.conf ${D}${sbindir}/cc33conf/ | ||
23 | install -m 0755 cc33xx-conf.ini ${D}${sbindir}/cc33conf/ | ||
24 | install -m 0755 conf.h ${D}${sbindir}/cc33conf/ | ||
25 | } | ||
26 | |||
27 | FILES:${PN} += " \ | ||
28 | ${sbindir}/cc33conf \ | ||
29 | " | ||
diff --git a/meta-ti-extras/recipes-connectivity/cc33xx-target-scripts/cc33xx-target-scripts_git.bb b/meta-ti-extras/recipes-connectivity/cc33xx-target-scripts/cc33xx-target-scripts_git.bb new file mode 100644 index 00000000..e3fe6f80 --- /dev/null +++ b/meta-ti-extras/recipes-connectivity/cc33xx-target-scripts/cc33xx-target-scripts_git.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | SUMMARY = "Scripts and configuration files for TI cc33xx wireless drivers" | ||
2 | LICENSE = "BSD-3-Clause" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=904443cf7fae5c09c3d5f83f8557c265" | ||
4 | |||
5 | SRCREV = "4371c93ea01b339f6f73f77d6d6bfcc185def8c0" | ||
6 | SRC_URI = "git://git.ti.com/git/cc33xx-wlan/cc33xx-target-scripts.git;protocol=https;branch=master" | ||
7 | |||
8 | FILES:${PN} += "${datadir}/cc33xx/" | ||
9 | |||
10 | do_install() { | ||
11 | install -d ${D}${datadir}/cc33xx/ | ||
12 | |||
13 | scripts=`find ./* -type f -name "*.*"` | ||
14 | for s in $scripts | ||
15 | do | ||
16 | install -m 0755 $s ${D}${datadir}/cc33xx/ | ||
17 | done | ||
18 | } | ||
diff --git a/meta-ti-extras/recipes-connectivity/uim/uim-sysfs_8.5.bb b/meta-ti-extras/recipes-connectivity/uim/uim-sysfs_8.5.bb index 2e528376..707f7c77 100644 --- a/meta-ti-extras/recipes-connectivity/uim/uim-sysfs_8.5.bb +++ b/meta-ti-extras/recipes-connectivity/uim/uim-sysfs_8.5.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Shared Transport Line Discipline User Mode initialisation Manager Daemon" | 1 | SUMMARY = "Shared Transport Line Discipline User Mode initialisation Manager Daemon" |
2 | LICENSE = "GPL-2.0-or-later" | 2 | LICENSE = "GPL-2.0-or-later" |
3 | LIC_FILES_CHKSUM = "file://uim.c;beginline=1;endline=18;md5=9f0bbfbc10c67689e81a523e2976c31e" | 3 | LIC_FILES_CHKSUM = "file://uim.c;beginline=1;endline=18;md5=9f0bbfbc10c67689e81a523e2976c31e" |
4 | 4 | ||
@@ -10,8 +10,6 @@ inherit update-rc.d | |||
10 | SRCREV = "a75f45be2d5c74fc1dd913d08afc30f09a230aa9" | 10 | SRCREV = "a75f45be2d5c74fc1dd913d08afc30f09a230aa9" |
11 | SRC_URI = "git://git.ti.com/git/ti-bt/uim.git;branch=master;protocol=https" | 11 | SRC_URI = "git://git.ti.com/git/ti-bt/uim.git;branch=master;protocol=https" |
12 | 12 | ||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | do_install() { | 13 | do_install() { |
16 | install -d ${D}${bindir} | 14 | install -d ${D}${bindir} |
17 | install -m 0755 uim ${D}${bindir} | 15 | install -m 0755 uim ${D}${bindir} |
diff --git a/meta-ti-extras/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator_8.7.3.bb b/meta-ti-extras/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator_8.7.3.bb index 1e9c445d..fac0524e 100644 --- a/meta-ti-extras/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator_8.7.3.bb +++ b/meta-ti-extras/recipes-connectivity/wl18xx-calibrator/wl18xx-calibrator_8.7.3.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "The calibrator utility for TI wireless solution based on wl18xx driver" | 1 | SUMMARY = "The calibrator utility for TI wireless solution based on wl18xx driver" |
2 | LICENSE = "BSD-3-Clause" | 2 | LICENSE = "BSD-3-Clause" |
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=4725015cb0be7be389cf06deeae3683d" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=4725015cb0be7be389cf06deeae3683d" |
4 | 4 | ||
@@ -11,8 +11,6 @@ SRC_URI = "git://git.ti.com/git/wilink8-wlan/18xx-ti-utils.git;branch=master;pro | |||
11 | file://0001-plt.h-Do-not-define-EFUSE_PARAMETER_TYPE_ENMT-type-e.patch \ | 11 | file://0001-plt.h-Do-not-define-EFUSE_PARAMETER_TYPE_ENMT-type-e.patch \ |
12 | " | 12 | " |
13 | 13 | ||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | export CROSS_COMPILE = "${TARGET_PREFIX}" | 14 | export CROSS_COMPILE = "${TARGET_PREFIX}" |
17 | 15 | ||
18 | EXTRA_OEMAKE = "CFLAGS="${CFLAGS} -I${STAGING_INCDIR}/libnl3/ -DCONFIG_LIBNL32 " \ | 16 | EXTRA_OEMAKE = "CFLAGS="${CFLAGS} -I${STAGING_INCDIR}/libnl3/ -DCONFIG_LIBNL32 " \ |
diff --git a/meta-ti-extras/recipes-connectivity/wl18xx-target-scripts/wl18xx-target-scripts_8.8.1.bb b/meta-ti-extras/recipes-connectivity/wl18xx-target-scripts/wl18xx-target-scripts_8.8.1.bb index 87890a31..e3ea98aa 100644 --- a/meta-ti-extras/recipes-connectivity/wl18xx-target-scripts/wl18xx-target-scripts_8.8.1.bb +++ b/meta-ti-extras/recipes-connectivity/wl18xx-target-scripts/wl18xx-target-scripts_8.8.1.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Scripts and configuration files for TI wireless drivers" | 1 | SUMMARY = "Scripts and configuration files for TI wireless drivers" |
2 | LICENSE = "GPL-2.0-only" | 2 | LICENSE = "GPL-2.0-only" |
3 | LIC_FILES_CHKSUM = "file://README;beginline=1;endline=21;md5=b8d6a0865f50159bf5c0d175d1f4a705" | 3 | LIC_FILES_CHKSUM = "file://README;beginline=1;endline=21;md5=b8d6a0865f50159bf5c0d175d1f4a705" |
4 | 4 | ||
@@ -11,8 +11,6 @@ file://0001-print_stat.sh-replace-system-bin-sh-with-bin-sh.patch \ | |||
11 | 11 | ||
12 | PR = "r1" | 12 | PR = "r1" |
13 | 13 | ||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | FILES:${PN} += "${datadir}/wl18xx/" | 14 | FILES:${PN} += "${datadir}/wl18xx/" |
17 | 15 | ||
18 | do_install() { | 16 | do_install() { |
diff --git a/meta-ti-extras/recipes-connectivity/wlconf/wlconf_8.7.3.bb b/meta-ti-extras/recipes-connectivity/wlconf/wlconf_8.7.3.bb index a2a8b775..8285bf9f 100644 --- a/meta-ti-extras/recipes-connectivity/wlconf/wlconf_8.7.3.bb +++ b/meta-ti-extras/recipes-connectivity/wlconf/wlconf_8.7.3.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Configuration utility for TI wireless drivers" | 1 | SUMMARY = "Configuration utility for TI wireless drivers" |
2 | LICENSE = "GPL-2.0-only" | 2 | LICENSE = "GPL-2.0-only" |
3 | LIC_FILES_CHKSUM = "file://README;beginline=1;endline=21;md5=adc05a1903d3f107f85c90328e3a9438" | 3 | LIC_FILES_CHKSUM = "file://README;beginline=1;endline=21;md5=adc05a1903d3f107f85c90328e3a9438" |
4 | 4 | ||
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://README;beginline=1;endline=21;md5=adc05a1903d3f107f85 | |||
6 | SRCREV = "5048b59a444ac59ba7171d6e122d5a84581aebf2" | 6 | SRCREV = "5048b59a444ac59ba7171d6e122d5a84581aebf2" |
7 | SRC_URI = "git://git.ti.com/git/wilink8-wlan/18xx-ti-utils.git;branch=master;protocol=https" | 7 | SRC_URI = "git://git.ti.com/git/wilink8-wlan/18xx-ti-utils.git;branch=master;protocol=https" |
8 | 8 | ||
9 | S = "${WORKDIR}/git/wlconf" | 9 | S:append = "/wlconf" |
10 | 10 | ||
11 | EXTRA_OEMAKE = "CC="${CC}"" | 11 | EXTRA_OEMAKE = "CC="${CC}"" |
12 | 12 | ||
diff --git a/meta-ti-extras/recipes-devtools/cuia/cuia_1.0.0.13.bb b/meta-ti-extras/recipes-devtools/cuia/cuia_1.0.0.13.bb index 8b16830f..20548443 100644 --- a/meta-ti-extras/recipes-devtools/cuia/cuia_1.0.0.13.bb +++ b/meta-ti-extras/recipes-devtools/cuia/cuia_1.0.0.13.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "TI Unified Instrumentation Architecture in C (cUIA)" | 1 | SUMMARY = "TI Unified Instrumentation Architecture in C (cUIA)" |
2 | LICENSE = "BSD-3-Clause" | 2 | LICENSE = "BSD-3-Clause" |
3 | LIC_FILES_CHKSUM = "file://cuia_${CUIA_PV}_manifest.html;md5=0eea94e3bb94de4ddee77653eba1c7c5" | 3 | LIC_FILES_CHKSUM = "file://cuia_${CUIA_PV}_manifest.html;md5=0eea94e3bb94de4ddee77653eba1c7c5" |
4 | 4 | ||
@@ -9,7 +9,7 @@ SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/UIA/SCMCSD | |||
9 | SRC_URI[cuia.md5sum] = "ef53989ac70c191841cd656cdc8770be" | 9 | SRC_URI[cuia.md5sum] = "ef53989ac70c191841cd656cdc8770be" |
10 | SRC_URI[cuia.sha256sum] = "f16d138a9146fdc7d52cba77bd30596da65835f6ffe4092baf2b33d1c1a4fb0d" | 10 | SRC_URI[cuia.sha256sum] = "f16d138a9146fdc7d52cba77bd30596da65835f6ffe4092baf2b33d1c1a4fb0d" |
11 | 11 | ||
12 | S = "${WORKDIR}/cuia_${CUIA_PV}${CUIA_PVExtra}" | 12 | S = "${UNPACKDIR}/cuia_${CUIA_PV}${CUIA_PVExtra}" |
13 | 13 | ||
14 | CLEANBROKEN = "1" | 14 | CLEANBROKEN = "1" |
15 | 15 | ||
diff --git a/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x_git.bb b/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x_git.bb index d3ada9c6..b803ac5b 100644 --- a/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x_git.bb +++ b/meta-ti-extras/recipes-devtools/gdbc6x/gdbc6x_git.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "GNU debugger for TI C6X DSP." | 1 | SUMMARY = "GNU debugger for TI C6X DSP." |
2 | SECTION = "devel" | 2 | SECTION = "devel" |
3 | LICENSE = "GPL-3.0-or-later" | 3 | LICENSE = "GPL-3.0-or-later" |
4 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=bf0fe2872eb3dfeebb2cbe38206fe81f" | 4 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=bf0fe2872eb3dfeebb2cbe38206fe81f" |
@@ -14,12 +14,12 @@ SRC_URI:append = " \ | |||
14 | file://0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch;striplevel=2 \ | 14 | file://0001-libbfd.h-suppress-GCC9-Wstringop-truncation.patch;striplevel=2 \ |
15 | " | 15 | " |
16 | 16 | ||
17 | S = "${WORKDIR}/git/gdbc6x" | 17 | S:append = "/gdbc6x" |
18 | 18 | ||
19 | inherit update-rc.d | 19 | inherit update-rc.d |
20 | inherit gettext | 20 | inherit gettext |
21 | 21 | ||
22 | CFLAGS += "-fcommon" | 22 | CFLAGS += "-fcommon -fpermissive -std=gnu11" |
23 | 23 | ||
24 | do_configure () { | 24 | do_configure () { |
25 | cd ${S} | 25 | cd ${S} |
@@ -36,7 +36,7 @@ do_install () { | |||
36 | cp -rf ${S}/install_gdb/include/* ${D}${includedir} | 36 | cp -rf ${S}/install_gdb/include/* ${D}${includedir} |
37 | 37 | ||
38 | install -d ${D}${sysconfdir}/init.d | 38 | install -d ${D}${sysconfdir}/init.d |
39 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/gdbserverproxy | 39 | install -m 0755 ${UNPACKDIR}/init ${D}${sysconfdir}/init.d/gdbserverproxy |
40 | } | 40 | } |
41 | 41 | ||
42 | RDEPENDS:${PN} = "gdbserverproxy-module-drv bash" | 42 | RDEPENDS:${PN} = "gdbserverproxy-module-drv bash" |
@@ -47,3 +47,7 @@ INITSCRIPT_NAME = "gdbserverproxy" | |||
47 | INITSCRIPT_PARAMS = "defaults 95" | 47 | INITSCRIPT_PARAMS = "defaults 95" |
48 | 48 | ||
49 | PARALLEL_MAKE = "" | 49 | PARALLEL_MAKE = "" |
50 | |||
51 | # Disable the "buildpaths" check while we figure out how we are | ||
52 | # going to address this issue. | ||
53 | INSANE_SKIP:${PN} += "buildpaths" | ||
diff --git a/meta-ti-extras/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb b/meta-ti-extras/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb index 3460eadb..6c538817 100644 --- a/meta-ti-extras/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb +++ b/meta-ti-extras/recipes-devtools/gdbc6x/gdbserver-c6x_git.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "TI gdb-server to be used with c6xgdb." | 1 | SUMMARY = "TI gdb-server to be used with c6xgdb." |
2 | LICENSE = "BSD-3-Clause" | 2 | LICENSE = "BSD-3-Clause" |
3 | LIC_FILES_CHKSUM = "file://../debian/copyright;md5=82c616b6c8f9c11c46feaaf8f9a11495" | 3 | LIC_FILES_CHKSUM = "file://../debian/copyright;md5=82c616b6c8f9c11c46feaaf8f9a11495" |
4 | 4 | ||
@@ -6,7 +6,7 @@ DEPENDS = "ti-xdais ti-framework-components ti-cgt6x-native ti-sysbios ti-xdctoo | |||
6 | 6 | ||
7 | PR = "${INC_PR}.0" | 7 | PR = "${INC_PR}.0" |
8 | 8 | ||
9 | S = "${WORKDIR}/git/gdbserver-c6x/src" | 9 | S:append = "/gdbserver-c6x/src" |
10 | 10 | ||
11 | PLATFORM = "" | 11 | PLATFORM = "" |
12 | PLATFORM:dra7xx = "DRA7xx_PLATFORM" | 12 | PLATFORM:dra7xx = "DRA7xx_PLATFORM" |
@@ -47,3 +47,13 @@ require recipes-ti/includes/ti-paths.inc | |||
47 | ALLOW_EMPTY:${PN} = "1" | 47 | ALLOW_EMPTY:${PN} = "1" |
48 | 48 | ||
49 | PARALLEL_MAKE = "" | 49 | PARALLEL_MAKE = "" |
50 | |||
51 | # Disable the "buildpaths" check while we figure out how we are | ||
52 | # going to address this issue. | ||
53 | # | ||
54 | # The ti-cgt6x compiler is a custom TI compiler for the TI C6000 | ||
55 | # Digital Signal Processor(DSP) platform. It does not currently | ||
56 | # support reproducible builds and is provided via a binary blob | ||
57 | # download that we cannot patch in the recipe to address the | ||
58 | # issue. | ||
59 | INSANE_SKIP:${PN}-dev += "buildpaths" | ||
diff --git a/meta-ti-extras/recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb b/meta-ti-extras/recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb index 8bea12f7..2ee97269 100644 --- a/meta-ti-extras/recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb +++ b/meta-ti-extras/recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb | |||
@@ -1,10 +1,7 @@ | |||
1 | DESCRIPTION = "Interface for GDB to commincate witha TI C66X DSP" | 1 | SUMMARY = "Interface for GDB to commincate witha TI C66X DSP" |
2 | LICENSE = "GPL-2.0-only" | 2 | LICENSE = "GPL-2.0-only" |
3 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=75859989545e37968a99b631ef42722e" | 3 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=75859989545e37968a99b631ef42722e" |
4 | 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" | 5 | PV:append = "+git" |
9 | 6 | ||
10 | SRC_URI:append = "\ | 7 | SRC_URI:append = "\ |
@@ -12,7 +9,7 @@ SRC_URI:append = "\ | |||
12 | file://0002-Support-Linux-kernels-v6.6.patch;patchdir=../.. \ | 9 | file://0002-Support-Linux-kernels-v6.6.patch;patchdir=../.. \ |
13 | " | 10 | " |
14 | 11 | ||
15 | S = "${WORKDIR}/git/kernel_module/gdbproxy-mod" | 12 | S:append = "/kernel_module/gdbproxy-mod" |
16 | 13 | ||
17 | inherit module | 14 | inherit module |
18 | 15 | ||
diff --git a/meta-ti-extras/recipes-devtools/python-yamllint/python3-yamllint_1.33.0.bb b/meta-ti-extras/recipes-devtools/python-yamllint/python3-yamllint_1.33.0.bb deleted file mode 100644 index 4b7bd065..00000000 --- a/meta-ti-extras/recipes-devtools/python-yamllint/python3-yamllint_1.33.0.bb +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | SUMMARY = "A linter for YAML files." | ||
2 | HOMEPAGE = "https://github.com/adrienverge/yamllint" | ||
3 | LICENSE = "GPL-3.0-only" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464" | ||
5 | |||
6 | inherit pypi setuptools3 | ||
7 | |||
8 | PYPI_PACKAGE = "yamllint" | ||
9 | |||
10 | SRC_URI[sha256sum] = "2dceab9ef2d99518a2fcf4ffc964d44250ac4459be1ba3ca315118e4a1a81f7d" | ||
11 | |||
12 | DEPENDS += "${PYTHON_PN}-setuptools-scm-native" | ||
13 | RDEPENDS:${PN} += "${PYTHON_PN}-pyyaml" | ||
14 | |||
15 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/meta-ti-extras/recipes-multimedia/libdce/libdce_3.00.15.00.bb b/meta-ti-extras/recipes-multimedia/libdce/libdce_3.00.15.00.bb index 54f6ff8a..2ae44086 100644 --- a/meta-ti-extras/recipes-multimedia/libdce/libdce_3.00.15.00.bb +++ b/meta-ti-extras/recipes-multimedia/libdce/libdce_3.00.15.00.bb | |||
@@ -6,10 +6,10 @@ inherit autotools pkgconfig | |||
6 | 6 | ||
7 | DEPENDS = "libdrm ti-ipc" | 7 | DEPENDS = "libdrm ti-ipc" |
8 | 8 | ||
9 | SRC_URI = "git://git.omapzoom.org/repo/libdce.git;protocol=git;branch=master" | 9 | SRC_URI = "git://git.ti.com/git/omapzoom/libdce.git;protocol=https;branch=master" |
10 | SRCREV = "ec14e1d5cea1ed3c3ea0e2b9cf1fd581acff93e3" | 10 | |
11 | SRCREV = "182aea18596eb2b3a82cffc536a6404f5000fb30" | ||
11 | 12 | ||
12 | S = "${WORKDIR}/git" | ||
13 | EXTRA_OECONF += "IPC_HEADERS=${STAGING_INCDIR}/ti/ipc/mm" | 13 | EXTRA_OECONF += "IPC_HEADERS=${STAGING_INCDIR}/ti/ipc/mm" |
14 | 14 | ||
15 | COMPATIBLE_HOST ?= "null" | 15 | COMPATIBLE_HOST ?= "null" |
diff --git a/meta-ti-extras/recipes-ti/beagleboard/beaglebone-capes.bb b/meta-ti-extras/recipes-ti/beagleboard/beaglebone-capes.bb index ceefe0d6..22fa67fd 100644 --- a/meta-ti-extras/recipes-ti/beagleboard/beaglebone-capes.bb +++ b/meta-ti-extras/recipes-ti/beagleboard/beaglebone-capes.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Userspace setup for beaglebone capes" | 1 | SUMMARY = "Userspace setup for beaglebone capes" |
2 | 2 | ||
3 | LICENSE = "MIT" | 3 | LICENSE = "MIT" |
4 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | 4 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" |
@@ -14,13 +14,13 @@ SRC_URI = "file://cape.service \ | |||
14 | 14 | ||
15 | do_install() { | 15 | do_install() { |
16 | install -d ${D}${base_libdir}/systemd/system/ | 16 | install -d ${D}${base_libdir}/systemd/system/ |
17 | install -m 0644 ${WORKDIR}/cape.service ${D}${base_libdir}/systemd/system | 17 | install -m 0644 ${UNPACKDIR}/cape.service ${D}${base_libdir}/systemd/system |
18 | 18 | ||
19 | install -d ${D}${base_libdir}/systemd/system/basic.target.wants | 19 | install -d ${D}${base_libdir}/systemd/system/basic.target.wants |
20 | ln -sf ../cape.service ${D}${base_libdir}/systemd/system/basic.target.wants/ | 20 | ln -sf ../cape.service ${D}${base_libdir}/systemd/system/basic.target.wants/ |
21 | 21 | ||
22 | install -d ${D}${bindir} | 22 | install -d ${D}${bindir} |
23 | install -m 0755 ${WORKDIR}/cape*.sh ${D}${bindir} | 23 | install -m 0755 ${UNPACKDIR}/cape*.sh ${D}${bindir} |
24 | } | 24 | } |
25 | 25 | ||
26 | FILES:${PN} += "${base_libdir}/systemd/system" | 26 | FILES:${PN} += "${base_libdir}/systemd/system" |
diff --git a/meta-ti-extras/recipes-ti/beagleboard/beaglebone-getting-started.bb b/meta-ti-extras/recipes-ti/beagleboard/beaglebone-getting-started.bb index 85ab861d..8ad75f26 100644 --- a/meta-ti-extras/recipes-ti/beagleboard/beaglebone-getting-started.bb +++ b/meta-ti-extras/recipes-ti/beagleboard/beaglebone-getting-started.bb | |||
@@ -10,8 +10,6 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f6f02761e31334c48f7021fb94c89aaa" | |||
10 | SRCREV = "05bedba192646152b7bc80b0accaea75aef864e5" | 10 | SRCREV = "05bedba192646152b7bc80b0accaea75aef864e5" |
11 | SRC_URI = "git://github.com/jadonk/beaglebone-getting-started.git;protocol=https;branch=master" | 11 | SRC_URI = "git://github.com/jadonk/beaglebone-getting-started.git;protocol=https;branch=master" |
12 | 12 | ||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | do_install() { | 13 | do_install() { |
16 | install -d ${D}${datadir}/${PN} | 14 | install -d ${D}${datadir}/${PN} |
17 | cp -R --no-dereference --preserve=mode,links ${S}/* ${D}${datadir}/${PN} | 15 | cp -R --no-dereference --preserve=mode,links ${S}/* ${D}${datadir}/${PN} |
diff --git a/meta-ti-extras/recipes-ti/beagleboard/gadget-init.bb b/meta-ti-extras/recipes-ti/beagleboard/gadget-init.bb deleted file mode 100644 index 3ab00ec3..00000000 --- a/meta-ti-extras/recipes-ti/beagleboard/gadget-init.bb +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
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-extras/recipes-ti/beagleboard/gadget-init/bone-gmass-eject.rules b/meta-ti-extras/recipes-ti/beagleboard/gadget-init/bone-gmass-eject.rules deleted file mode 100644 index ee6f93e2..00000000 --- a/meta-ti-extras/recipes-ti/beagleboard/gadget-init/bone-gmass-eject.rules +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | SUBSYSTEM=="block",ACTION=="change",KERNEL=="mmcblk0p1",RUN+="/usr/bin/g-ether-start-service.sh" | ||
diff --git a/meta-ti-extras/recipes-ti/beagleboard/gadget-init/g-ether-load.sh b/meta-ti-extras/recipes-ti/beagleboard/gadget-init/g-ether-load.sh deleted file mode 100755 index f9400649..00000000 --- a/meta-ti-extras/recipes-ti/beagleboard/gadget-init/g-ether-load.sh +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
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-extras/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh b/meta-ti-extras/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh deleted file mode 100755 index 6e73b155..00000000 --- a/meta-ti-extras/recipes-ti/beagleboard/gadget-init/g-ether-start-service.sh +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
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-extras/recipes-ti/beagleboard/gadget-init/g-storage-reinsert.sh b/meta-ti-extras/recipes-ti/beagleboard/gadget-init/g-storage-reinsert.sh deleted file mode 100755 index d358640a..00000000 --- a/meta-ti-extras/recipes-ti/beagleboard/gadget-init/g-storage-reinsert.sh +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
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-extras/recipes-ti/beagleboard/gadget-init/network-gadget-init.service b/meta-ti-extras/recipes-ti/beagleboard/gadget-init/network-gadget-init.service deleted file mode 100644 index 0ee29147..00000000 --- a/meta-ti-extras/recipes-ti/beagleboard/gadget-init/network-gadget-init.service +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
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-extras/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service b/meta-ti-extras/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service deleted file mode 100644 index 9a8513e8..00000000 --- a/meta-ti-extras/recipes-ti/beagleboard/gadget-init/storage-gadget-init.service +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
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-extras/recipes-ti/beagleboard/gadget-init/udhcpd.conf b/meta-ti-extras/recipes-ti/beagleboard/gadget-init/udhcpd.conf deleted file mode 100644 index 3bcf00f0..00000000 --- a/meta-ti-extras/recipes-ti/beagleboard/gadget-init/udhcpd.conf +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
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-extras/recipes-ti/beagleboard/gadget-init/udhcpd.rules b/meta-ti-extras/recipes-ti/beagleboard/gadget-init/udhcpd.rules deleted file mode 100644 index db65f9ac..00000000 --- a/meta-ti-extras/recipes-ti/beagleboard/gadget-init/udhcpd.rules +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
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-extras/recipes-ti/beagleboard/gadget-init/udhcpd.service b/meta-ti-extras/recipes-ti/beagleboard/gadget-init/udhcpd.service deleted file mode 100644 index 1f4ac688..00000000 --- a/meta-ti-extras/recipes-ti/beagleboard/gadget-init/udhcpd.service +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
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-extras/recipes-ti/beagleboard/gadget-init/update-image-info-on-mmcblk0p1.sh b/meta-ti-extras/recipes-ti/beagleboard/gadget-init/update-image-info-on-mmcblk0p1.sh deleted file mode 100755 index a4daf734..00000000 --- a/meta-ti-extras/recipes-ti/beagleboard/gadget-init/update-image-info-on-mmcblk0p1.sh +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
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-extras/recipes-ti/bios/ti-sysbios.inc b/meta-ti-extras/recipes-ti/bios/ti-sysbios.inc index f31decec..edcea538 100644 --- a/meta-ti-extras/recipes-ti/bios/ti-sysbios.inc +++ b/meta-ti-extras/recipes-ti/bios/ti-sysbios.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "TI SYS/BIOS v6 Kernel" | 1 | SUMMARY = "TI SYS/BIOS v6 Kernel" |
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios" | 2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios" |
3 | SECTION = "devel" | 3 | SECTION = "devel" |
4 | LICENSE = "BSD-3-Clause" | 4 | LICENSE = "BSD-3-Clause" |
@@ -7,16 +7,18 @@ require ../includes/ti-paths.inc | |||
7 | require ../includes/ti-staging.inc | 7 | require ../includes/ti-staging.inc |
8 | require ../includes/ti-eula-unpack.inc | 8 | require ../includes/ti-eula-unpack.inc |
9 | 9 | ||
10 | S = "${WORKDIR}/bios_${PV}" | 10 | S = "${UNPACKDIR}/bios_${PV}" |
11 | 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" | 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" | 13 | BINFILE = "bios_${PV}.bin" |
14 | TI_BIN_UNPK_CMDS="Y: q:workdir:Y" | 14 | TI_BIN_UNPK_CMDS = "Y: q:workdir:Y" |
15 | 15 | ||
16 | do_install() { | 16 | do_install() { |
17 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | 17 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" |
18 | install -d ${D}${SYSBIOS_INSTALL_DIR_RECIPE} | 18 | install -d ${D}${SYSBIOS_INSTALL_DIR_RECIPE} |
19 | cp ${CP_ARGS} ${S}/* ${D}${SYSBIOS_INSTALL_DIR_RECIPE} | 19 | cp ${CP_ARGS} ${S}/* ${D}${SYSBIOS_INSTALL_DIR_RECIPE} |
20 | |||
21 | rm ${D}${SYSBIOS_INSTALL_DIR_RECIPE}/bios_${PV}*.log | ||
20 | } | 22 | } |
21 | 23 | ||
22 | ALLOW_EMPTY:${PN} = "1" | 24 | ALLOW_EMPTY:${PN} = "1" |
diff --git a/meta-ti-extras/recipes-ti/bios/ti-sysbios_6.76.03.01.bb b/meta-ti-extras/recipes-ti/bios/ti-sysbios_6.76.03.01.bb index d242510f..4b0723df 100644 --- a/meta-ti-extras/recipes-ti/bios/ti-sysbios_6.76.03.01.bb +++ b/meta-ti-extras/recipes-ti/bios/ti-sysbios_6.76.03.01.bb | |||
@@ -10,7 +10,7 @@ SRC_URI[sysbiosbin.md5sum] = "647243209d66d5dd35503b0ec5a84ab9" | |||
10 | SRC_URI[sysbiosbin.sha256sum] = "b762b7f2343d26d367f952488e529046785128005158cc921c3baef08e97116a" | 10 | SRC_URI[sysbiosbin.sha256sum] = "b762b7f2343d26d367f952488e529046785128005158cc921c3baef08e97116a" |
11 | 11 | ||
12 | TI_BIN_UNPK_CMDS = "" | 12 | TI_BIN_UNPK_CMDS = "" |
13 | TI_BIN_UNPK_ARGS = "--mode unattended --prefix ${WORKDIR}" | 13 | TI_BIN_UNPK_ARGS = "--mode unattended --prefix ${UNPACKDIR}" |
14 | 14 | ||
15 | BINFILE = "bios_${PV}.run" | 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" | 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-extras/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb b/meta-ti-extras/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb index 2e25ea76..b248683b 100644 --- a/meta-ti-extras/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb +++ b/meta-ti-extras/recipes-ti/codec-engine/ti-codec-engine_3.24.00.08.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Codec Engine for TI ARM/DSP processors" | 1 | SUMMARY = "Codec Engine for TI ARM/DSP processors" |
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce" | 2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ce" |
3 | SECTION = "devel" | 3 | SECTION = "devel" |
4 | LICENSE = "BSD-3-Clause" | 4 | LICENSE = "BSD-3-Clause" |
@@ -14,7 +14,7 @@ LIC_FILES_CHKSUM = "file://codec_engine_${PV}_Manifest.html;md5=de7d9c2594a6f386 | |||
14 | SRC_URI[cetarball.md5sum] = "d66a8ccbd6cdfe9f735af9f4a07e2b9b" | 14 | SRC_URI[cetarball.md5sum] = "d66a8ccbd6cdfe9f735af9f4a07e2b9b" |
15 | SRC_URI[cetarball.sha256sum] = "ed7b7399903bbf76af06ee6457836f344ad75b903618339bae82b3967f27ffa1" | 15 | SRC_URI[cetarball.sha256sum] = "ed7b7399903bbf76af06ee6457836f344ad75b903618339bae82b3967f27ffa1" |
16 | 16 | ||
17 | S = "${WORKDIR}/codec_engine_${PV}" | 17 | S = "${UNPACKDIR}/codec_engine_${PV}" |
18 | 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 " | 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 | 20 | ||
diff --git a/meta-ti-extras/recipes-ti/ctoolslib/libaet_git.bb b/meta-ti-extras/recipes-ti/ctoolslib/libaet_git.bb index 400221f9..4043da55 100644 --- a/meta-ti-extras/recipes-ti/ctoolslib/libaet_git.bb +++ b/meta-ti-extras/recipes-ti/ctoolslib/libaet_git.bb | |||
@@ -13,9 +13,9 @@ SRCREV = "de7954abab0f0caa8a2c7b53095c30226d901a31" | |||
13 | DEPENDS = "ti-cgt6x-native" | 13 | DEPENDS = "ti-cgt6x-native" |
14 | PR = "r0" | 14 | PR = "r0" |
15 | 15 | ||
16 | S = "${WORKDIR}/git/aet" | 16 | S:append = "/aet" |
17 | 17 | ||
18 | DEVICE="" | 18 | DEVICE = "" |
19 | DEVICE:dra7xx = "DRA7xx" | 19 | DEVICE:dra7xx = "DRA7xx" |
20 | 20 | ||
21 | EXTRA_OEMAKE = "C6X_C_DIR=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x/include" | 21 | EXTRA_OEMAKE = "C6X_C_DIR=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x/include" |
diff --git a/meta-ti-extras/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb b/meta-ti-extras/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb index 64bac240..df34a39e 100644 --- a/meta-ti-extras/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb +++ b/meta-ti-extras/recipes-ti/devtools/gcc-arm-baremetal_7-2018-q2-update.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "Baremetal GCC for ARM" | 1 | SUMMARY = "Baremetal GCC for ARM" |
2 | LICENSE = "GPL-3.0-with-GCC-exception & GPL-3.0-only" | 2 | LICENSE = "GPL-3.0-with-GCC-exception & GPL-3.0-only" |
3 | 3 | ||
4 | LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=f77466c63f5787f4bd669c402aabe061" | 4 | LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=f77466c63f5787f4bd669c402aabe061" |
@@ -10,7 +10,7 @@ SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2018q2/gcc | |||
10 | SRC_URI[gcc-arm-none.md5sum] = "299ebd3f1c2c90930d28ab82e5d8d6c0" | 10 | SRC_URI[gcc-arm-none.md5sum] = "299ebd3f1c2c90930d28ab82e5d8d6c0" |
11 | SRC_URI[gcc-arm-none.sha256sum] = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69" | 11 | SRC_URI[gcc-arm-none.sha256sum] = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69" |
12 | 12 | ||
13 | S = "${WORKDIR}/gcc-arm-none-eabi-7-2018-q2-update" | 13 | S = "${UNPACKDIR}/gcc-arm-none-eabi-7-2018-q2-update" |
14 | 14 | ||
15 | # only x86_64 is supported | 15 | # only x86_64 is supported |
16 | COMPATIBLE_HOST = "x86_64.*-linux" | 16 | COMPATIBLE_HOST = "x86_64.*-linux" |
@@ -23,7 +23,7 @@ do_install() { | |||
23 | 23 | ||
24 | FILES:${PN} = "${GCC_ARM_NONE_TOOLCHAIN_RECIPE}/*" | 24 | FILES:${PN} = "${GCC_ARM_NONE_TOOLCHAIN_RECIPE}/*" |
25 | 25 | ||
26 | INSANE_SKIP:${PN} = "already-stripped libdir staticdev build-deps file-rdeps" | 26 | INSANE_SKIP:${PN} = "already-stripped libdir staticdev build-deps file-rdeps arch" |
27 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 27 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
28 | 28 | ||
29 | BBCLASSEXTEND = "native nativesdk" | 29 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cg-xml_2.61.00.bb b/meta-ti-extras/recipes-ti/devtools/ti-cg-xml_2.61.00.bb index c7608a76..4341acb0 100644 --- a/meta-ti-extras/recipes-ti/devtools/ti-cg-xml_2.61.00.bb +++ b/meta-ti-extras/recipes-ti/devtools/ti-cg-xml_2.61.00.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "TI CG_XML" | 1 | SUMMARY = "TI CG_XML" |
2 | HOMEPAGE = "http://software-dl.ti.com/ccs/non-esd/releases/other/applications_packages/cg_xml/index.htm" | 2 | HOMEPAGE = "http://software-dl.ti.com/ccs/non-esd/releases/other/applications_packages/cg_xml/index.htm" |
3 | SECTION = "devel" | 3 | SECTION = "devel" |
4 | LICENSE = "BSD-3-Clause" | 4 | LICENSE = "BSD-3-Clause" |
@@ -9,7 +9,7 @@ require recipes-ti/includes/ti-unpack.inc | |||
9 | 9 | ||
10 | PV = "2.61.00" | 10 | PV = "2.61.00" |
11 | PE = "1" | 11 | PE = "1" |
12 | S = "${WORKDIR}/cg_xml_${PV}" | 12 | S = "${UNPACKDIR}/cg_xml_${PV}" |
13 | 13 | ||
14 | SRC_URI = "\ | 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 \ | 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 \ |
@@ -19,9 +19,9 @@ LIC_FILES_CHKSUM = "file://cg_xml_${PV}_Manifest.pdf;md5=fc02a39748ba50373f32b2f | |||
19 | SRC_URI[cgxmlbin_linux.md5sum] = "6ce60caa97bbf15158d806fb062fadff" | 19 | SRC_URI[cgxmlbin_linux.md5sum] = "6ce60caa97bbf15158d806fb062fadff" |
20 | SRC_URI[cgxmlbin_linux.sha256sum] = "da77cb10bd3d5de89e27e4ce8f4408a2e50775c8980225f9a828ddc242bb81f9" | 20 | SRC_URI[cgxmlbin_linux.sha256sum] = "da77cb10bd3d5de89e27e4ce8f4408a2e50775c8980225f9a828ddc242bb81f9" |
21 | 21 | ||
22 | BINFILE="cgxml-${PV}-linux-installer.run" | 22 | BINFILE = "cgxml-${PV}-linux-installer.run" |
23 | TI_BIN_UNPK_CMDS="" | 23 | TI_BIN_UNPK_CMDS = "" |
24 | TI_BIN_UNPK_ARGS="--prefix ${S} --mode unattended" | 24 | TI_BIN_UNPK_ARGS = "--prefix ${S} --mode unattended" |
25 | 25 | ||
26 | do_install() { | 26 | do_install() { |
27 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | 27 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" |
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb b/meta-ti-extras/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb index b7b6d9b1..031d889f 100644 --- a/meta-ti-extras/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb +++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt-arm_18.12.5.bb | |||
@@ -8,7 +8,7 @@ require recipes-ti/includes/ti-unpack.inc | |||
8 | require recipes-ti/includes/ti-staging.inc | 8 | require recipes-ti/includes/ti-staging.inc |
9 | require recipes-ti/includes/ti-paths.inc | 9 | require recipes-ti/includes/ti-paths.inc |
10 | 10 | ||
11 | S = "${WORKDIR}/ti-cgt-arm-${PV}" | 11 | S = "${UNPACKDIR}/ti-cgt-arm-${PV}" |
12 | 12 | ||
13 | PE = "1" | 13 | PE = "1" |
14 | PR = "r0" | 14 | PR = "r0" |
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.3.bb b/meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.3.bb index c96113fe..7ef20b7a 100644 --- a/meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.3.bb +++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt-pru_2.3.3.bb | |||
@@ -1,8 +1,8 @@ | |||
1 | DESCRIPTION = "TI PRU Code Generation Tools" | 1 | SUMMARY = "TI PRU Code Generation Tools" |
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | 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" | 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 | 4 | ||
5 | LIC_FILES_CHKSUM = "file://ti-cgt-pru_${PV}/PRU_Code_Generation_Tools_2.3.x_manifest.html;md5=e22f9d8240f7cca0c0aa5242d9ffa5bc" | 5 | LIC_FILES_CHKSUM = "file://${UNPACKDIR}/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" | 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 | 7 | ||
8 | require recipes-ti/includes/ti-paths.inc | 8 | require recipes-ti/includes/ti-paths.inc |
@@ -10,7 +10,7 @@ require recipes-ti/includes/ti-unpack.inc | |||
10 | 10 | ||
11 | BINFILE = "ti_cgt_pru_${PV}_linux_installer_x86.bin" | 11 | BINFILE = "ti_cgt_pru_${PV}_linux_installer_x86.bin" |
12 | BINFILE_NAME = "cgt-pru-x86" | 12 | BINFILE_NAME = "cgt-pru-x86" |
13 | TI_BIN_UNPK_ARGS = "--prefix ${S}" | 13 | TI_BIN_UNPK_ARGS = "--prefix ${UNPACKDIR}" |
14 | TI_BIN_UNPK_CMDS = "" | 14 | TI_BIN_UNPK_CMDS = "" |
15 | 15 | ||
16 | BINFILE:class-target = "ti_cgt_pru_${PV}_armlinuxa8hf_busybox_installer.sh" | 16 | BINFILE:class-target = "ti_cgt_pru_${PV}_armlinuxa8hf_busybox_installer.sh" |
@@ -24,14 +24,17 @@ SRC_URI[cgt-pru-x86.sha256sum] = "1f1405167214f2c0ef848591b17a7799fdcd9f55f11bc9 | |||
24 | SRC_URI[cgt-pru-arm.md5sum] = "648a6d7d8162fd6a89f381c7b974e6b0" | 24 | SRC_URI[cgt-pru-arm.md5sum] = "648a6d7d8162fd6a89f381c7b974e6b0" |
25 | SRC_URI[cgt-pru-arm.sha256sum] = "8390cb77b46b728ce2940595b81406f76d86dfed58c21258e3206a7c1232ccf2" | 25 | SRC_URI[cgt-pru-arm.sha256sum] = "8390cb77b46b728ce2940595b81406f76d86dfed58c21258e3206a7c1232ccf2" |
26 | 26 | ||
27 | S = "${UNPACKDIR}" | ||
28 | |||
27 | do_install() { | 29 | do_install() { |
28 | install -d ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE} | 30 | install -d ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE} |
29 | cp -r ${S}/ti-cgt-pru_${PV}/. \ | 31 | cp -r ${S}/ti-cgt-pru_${PV}/. \ |
30 | ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}/ | 32 | ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}/ |
33 | rm ${D}${TI_CGT_PRU_INSTALL_DIR_RECIPE}/*installer_install.log | ||
31 | } | 34 | } |
32 | 35 | ||
33 | do_install:class-target() { | 36 | do_install:class-target() { |
34 | ${WORKDIR}/${BINFILE} --prefix ${D} | 37 | ${S}/${BINFILE} --prefix ${D} |
35 | } | 38 | } |
36 | 39 | ||
37 | FILES:${PN} += "${datadir}/ti/*" | 40 | FILES:${PN} += "${datadir}/ti/*" |
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cgt470.inc b/meta-ti-extras/recipes-ti/devtools/ti-cgt470.inc index f0992aa7..f32bc0d3 100644 --- a/meta-ti-extras/recipes-ti/devtools/ti-cgt470.inc +++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt470.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "TI ARM Code Generation Tools" | 1 | SUMMARY = "TI ARM Code Generation Tools" |
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/CodeGenerationTools.htm" | 2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/CodeGenerationTools.htm" |
3 | SECTION = "devel" | 3 | SECTION = "devel" |
4 | LICENSE = "TI" | 4 | LICENSE = "TI" |
@@ -9,13 +9,13 @@ require ../includes/ti-paths.inc | |||
9 | require ../includes/ti-staging.inc | 9 | require ../includes/ti-staging.inc |
10 | require ../includes/ti-eula-unpack.inc | 10 | require ../includes/ti-eula-unpack.inc |
11 | 11 | ||
12 | S = "${WORKDIR}/cgt470_${PV}" | 12 | S = "${UNPACKDIR}/cgt470_${PV}" |
13 | 13 | ||
14 | SRC_URI = "http://install.source.dir.local/ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin;name=cgt470bin" | 14 | SRC_URI = "http://install.source.dir.local/ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin;name=cgt470bin" |
15 | 15 | ||
16 | BINFILE="ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin" | 16 | BINFILE = "ti_cgt_tms470_${PVwithdots}_setup_linux_x86.bin" |
17 | TI_BIN_UNPK_CMDS="Y:qY:workdir: : " | 17 | TI_BIN_UNPK_CMDS = "Y:qY:workdir: : " |
18 | TI_BIN_UNPK_WDEXT="/cgt470_${PV}" | 18 | TI_BIN_UNPK_WDEXT = "/cgt470_${PV}" |
19 | 19 | ||
20 | do_install() { | 20 | do_install() { |
21 | install -d ${D}${CODEGEN_ARM_INSTALL_DIR_RECIPE} | 21 | install -d ${D}${CODEGEN_ARM_INSTALL_DIR_RECIPE} |
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb b/meta-ti-extras/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb index a7de8e38..adf21563 100644 --- a/meta-ti-extras/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb +++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt6x-7_7.4.16.bb | |||
@@ -11,15 +11,15 @@ LICENSE = "TI-TSPA" | |||
11 | 11 | ||
12 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca" | 12 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b6311962635a4f15630e36ec2d875eca" |
13 | 13 | ||
14 | S = "${WORKDIR}/c6000_7.4.16" | 14 | S = "${UNPACKDIR}/c6000_7.4.16" |
15 | 15 | ||
16 | require recipes-ti/includes/ti-paths.inc | 16 | require recipes-ti/includes/ti-paths.inc |
17 | require recipes-ti/includes/ti-unpack.inc | 17 | require recipes-ti/includes/ti-unpack.inc |
18 | 18 | ||
19 | BINFILE = "ti_cgt_c6000_7.4.16_linux_installer_x86.bin" | 19 | BINFILE = "ti_cgt_c6000_7.4.16_linux_installer_x86.bin" |
20 | BINFILE_NAME = "cgt6x_7.4.16_x86_installer" | 20 | BINFILE_NAME = "cgt6x_7.4.16_x86_installer" |
21 | TI_BIN_UNPK_ARGS = "--prefix ${WORKDIR} --mode unattended" | 21 | TI_BIN_UNPK_ARGS = "--prefix ${UNPACKDIR} --mode unattended" |
22 | TI_BIN_UNPK_CMDS="" | 22 | TI_BIN_UNPK_CMDS = "" |
23 | 23 | ||
24 | SRC_URI = "http://install.source.dir.local/${BINFILE};name=${BINFILE_NAME}" | 24 | SRC_URI = "http://install.source.dir.local/${BINFILE};name=${BINFILE_NAME}" |
25 | 25 | ||
@@ -32,7 +32,7 @@ COMPATIBLE_HOST:class-target = "null" | |||
32 | 32 | ||
33 | do_install() { | 33 | do_install() { |
34 | install -d ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE} | 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} | 35 | cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${UNPACKDIR}/c6000_7.4.16/. ${D}/${TI_CGT6X_7_INSTALL_DIR_RECIPE} |
36 | } | 36 | } |
37 | 37 | ||
38 | FILES:${PN} += "${TI_CGT6X_7_INSTALL_DIR_RECIPE}" | 38 | FILES:${PN} += "${TI_CGT6X_7_INSTALL_DIR_RECIPE}" |
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cgt6x_8.3.2.bb b/meta-ti-extras/recipes-ti/devtools/ti-cgt6x_8.3.2.bb index fd34657a..25e0f596 100644 --- a/meta-ti-extras/recipes-ti/devtools/ti-cgt6x_8.3.2.bb +++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt6x_8.3.2.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "TI DSP Code Generation Tools" | 1 | SUMMARY = "TI DSP Code Generation Tools" |
2 | HOMEPAGE = "https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm" | 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" | 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 | 4 | ||
@@ -92,7 +92,7 @@ do_install() { | |||
92 | } | 92 | } |
93 | 93 | ||
94 | do_install:class-target() { | 94 | do_install:class-target() { |
95 | ${WORKDIR}/${BINFILE} --prefix ${D} | 95 | ${UNPACKDIR}/${BINFILE} --prefix ${D} |
96 | } | 96 | } |
97 | 97 | ||
98 | FILES:${PN} += "${datadir}/ti/*" | 98 | FILES:${PN} += "${datadir}/ti/*" |
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-cgt7x_1.2.0.bb b/meta-ti-extras/recipes-ti/devtools/ti-cgt7x_1.2.0.bb index b45b52a3..04b16032 100644 --- a/meta-ti-extras/recipes-ti/devtools/ti-cgt7x_1.2.0.bb +++ b/meta-ti-extras/recipes-ti/devtools/ti-cgt7x_1.2.0.bb | |||
@@ -30,11 +30,11 @@ TI_BIN_UNPK_CMDS = "" | |||
30 | SRC_URI[cgt7x_x86_installer.md5sum] = "813840908f333dd2a31f92edec71c1fb" | 30 | SRC_URI[cgt7x_x86_installer.md5sum] = "813840908f333dd2a31f92edec71c1fb" |
31 | SRC_URI[cgt7x_x86_installer.sha256sum] = "21379811a8857489f72ca8ec45a46eb086ced0bdbb58e78f73a86e63984ab2f5" | 31 | SRC_URI[cgt7x_x86_installer.sha256sum] = "21379811a8857489f72ca8ec45a46eb086ced0bdbb58e78f73a86e63984ab2f5" |
32 | 32 | ||
33 | S = "${WORKDIR}/c7000_${PV}" | 33 | S = "${UNPACKDIR}/c7000_${PV}" |
34 | 34 | ||
35 | do_install() { | 35 | do_install() { |
36 | install -d ${D}/${TI_CGT7X_INSTALL_DIR_RECIPE} | 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} | 37 | cp -rP --preserve=mode,links,timestamps --no-preserve=ownership ${UNPACKDIR}/c7000_${PV}/ti-cgt-c7000_${PV}.STS/. ${D}/${TI_CGT7X_INSTALL_DIR_RECIPE} |
38 | } | 38 | } |
39 | 39 | ||
40 | 40 | ||
diff --git a/meta-ti-extras/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb b/meta-ti-extras/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb index b1361804..969518e2 100644 --- a/meta-ti-extras/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb +++ b/meta-ti-extras/recipes-ti/devtools/ti-xdctools_3.55.02.22.bb | |||
@@ -1,3 +1,4 @@ | |||
1 | SUMMARY = "TI XDCtools (RTSC - Real Time Software Components" | ||
1 | DESCRIPTION = "TI XDCtools (RTSC - Real Time Software Components - http://rtsc.eclipse.org)" | 2 | 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 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc" |
3 | SECTION = "devel" | 4 | SECTION = "devel" |
@@ -69,7 +70,7 @@ COMPATIBLE_HOST:ti-soc = "(.*)" | |||
69 | COMPATIBLE_HOST:class-native = "(.*)" | 70 | COMPATIBLE_HOST:class-native = "(.*)" |
70 | COMPATIBLE_HOST:class-nativesdk = "(.*)" | 71 | COMPATIBLE_HOST:class-nativesdk = "(.*)" |
71 | 72 | ||
72 | S = "${WORKDIR}/xdctools_${PV}_core" | 73 | S = "${UNPACKDIR}/xdctools_${PV}_core" |
73 | 74 | ||
74 | 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" | 75 | 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" |
75 | 76 | ||
diff --git a/meta-ti-extras/recipes-ti/dsplib/dsplib.inc b/meta-ti-extras/recipes-ti/dsplib/dsplib.inc index 6ebc3b34..566dab0a 100644 --- a/meta-ti-extras/recipes-ti/dsplib/dsplib.inc +++ b/meta-ti-extras/recipes-ti/dsplib/dsplib.inc | |||
@@ -11,11 +11,8 @@ DEPENDS = "ti-cgt6x-native \ | |||
11 | ti-xdctools-native \ | 11 | ti-xdctools-native \ |
12 | ti-sysbios \ | 12 | ti-sysbios \ |
13 | doxygen-native \ | 13 | doxygen-native \ |
14 | zip-native \ | ||
15 | swtools" | 14 | swtools" |
16 | 15 | ||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | DSPLIB_GIT_BRANCH = "master" | 16 | DSPLIB_GIT_BRANCH = "master" |
20 | DSPLIB_GIT_PROTOCOL = "https" | 17 | DSPLIB_GIT_PROTOCOL = "https" |
21 | DSPLIB_GIT_URI = "git://git.ti.com/git/ep-processor-libraries/dsplib.git" | 18 | DSPLIB_GIT_URI = "git://git.ti.com/git/ep-processor-libraries/dsplib.git" |
@@ -26,19 +23,19 @@ SRCREV = "${DSPLIB_SRCREV}" | |||
26 | 23 | ||
27 | LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b" | 24 | LIC_FILES_CHKSUM = "file://ti/dsplib/src/common/c66/lnk.cmd;beginline=1;endline=37;md5=0f0c9c4d51d8af75419781591ace190b" |
28 | 25 | ||
29 | export DSPLIB_WORK_DIR="${S}" | 26 | export DSPLIB_WORK_DIR = "${S}" |
30 | export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | 27 | export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" |
31 | export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | 28 | export C64PCODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" |
32 | export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | 29 | export C674CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" |
33 | export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}" | 30 | export C66CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" |
34 | export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools" | 31 | export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools" |
35 | export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld" | 32 | export XDCBUILDCFG = "${SWTOOLS_PATH}/config.bld" |
36 | export INCDIR="${MATHLIB_INSTALL_DIR}/" | 33 | export INCDIR = "${MATHLIB_INSTALL_DIR}/" |
37 | 34 | ||
38 | PATH:append = ":${XDC_INSTALL_DIR}" | 35 | PATH:append = ":${XDC_INSTALL_DIR}" |
39 | 36 | ||
40 | XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" | 37 | XDCPATH .= "${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" |
41 | XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};" | 38 | XDCPATH .= "${SWTOOLS_INSTALL_DIR};${MATHLIB_INSTALL_DIR};${DSPLIB_WORK_DIR};" |
42 | 39 | ||
43 | export XDCPATH | 40 | export XDCPATH |
44 | 41 | ||
@@ -57,19 +54,6 @@ do_install() { | |||
57 | rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib | 54 | rm -r ${D}${DSPLIB_INSTALL_DIR_RECIPE}/dsplib |
58 | } | 55 | } |
59 | 56 | ||
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" | 57 | ALLOW_EMPTY:${PN} = "1" |
74 | FILES:${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}" | 58 | FILES:${PN}-dev += "${DSPLIB_INSTALL_DIR_RECIPE}" |
75 | 59 | ||
diff --git a/meta-ti-extras/recipes-ti/framework-components/ti-framework-components.inc b/meta-ti-extras/recipes-ti/framework-components/ti-framework-components.inc index 81407ed7..6a1768a3 100644 --- a/meta-ti-extras/recipes-ti/framework-components/ti-framework-components.inc +++ b/meta-ti-extras/recipes-ti/framework-components/ti-framework-components.inc | |||
@@ -1,11 +1,11 @@ | |||
1 | DESCRIPTION = "TI Framework Components" | 1 | SUMMARY = "TI Framework Components" |
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/fc" | 2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/fc" |
3 | SECTION = "devel" | 3 | SECTION = "devel" |
4 | LICENSE = "BSD-3-Clause" | 4 | LICENSE = "BSD-3-Clause" |
5 | 5 | ||
6 | require recipes-ti/includes/ti-paths.inc | 6 | require recipes-ti/includes/ti-paths.inc |
7 | 7 | ||
8 | S = "${WORKDIR}/framework_components_${PV}" | 8 | S = "${UNPACKDIR}/framework_components_${PV}" |
9 | 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" | 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 | 11 | ||
diff --git a/meta-ti-extras/recipes-ti/imglib/imglib-c66x.inc b/meta-ti-extras/recipes-ti/imglib/imglib-c66x.inc index ab5cbdb6..8fa2ceca 100644 --- a/meta-ti-extras/recipes-ti/imglib/imglib-c66x.inc +++ b/meta-ti-extras/recipes-ti/imglib/imglib-c66x.inc | |||
@@ -1,3 +1,4 @@ | |||
1 | SUMMARY = "IMGLIB for TI DSPs" | ||
1 | DESCRIPTION = "IMGLIB contains optimized general-purpose image/video processing routines for TI DSPs" | 2 | DESCRIPTION = "IMGLIB contains optimized general-purpose image/video processing routines for TI DSPs" |
2 | HOMEPAGE = "http://www.ti.com/tool/sprc264" | 3 | HOMEPAGE = "http://www.ti.com/tool/sprc264" |
3 | SECTION = "devel" | 4 | SECTION = "devel" |
@@ -11,7 +12,7 @@ COMPATIBLE_MACHINE = "omap-a15" | |||
11 | 12 | ||
12 | SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/imglib/${PV}/exports/${BINFILE};name=imglib" | 13 | SRC_URI = "http://software-dl.ti.com/sdoemb/sdoemb_public_sw/imglib/${PV}/exports/${BINFILE};name=imglib" |
13 | 14 | ||
14 | S = "${WORKDIR}/imglib-c66x-${PV}" | 15 | S = "${UNPACKDIR}/imglib-c66x-${PV}" |
15 | 16 | ||
16 | BINFILE = "imglib_c66x_${PV}_Linux.bin" | 17 | BINFILE = "imglib_c66x_${PV}_Linux.bin" |
17 | TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}" | 18 | TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}" |
diff --git a/meta-ti-extras/recipes-ti/includes/ti-paths.inc b/meta-ti-extras/recipes-ti/includes/ti-paths.inc index e8b0f17b..9f8b5897 100644 --- a/meta-ti-extras/recipes-ti/includes/ti-paths.inc +++ b/meta-ti-extras/recipes-ti/includes/ti-paths.inc | |||
@@ -20,7 +20,6 @@ export MATHLIB_C66_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c66x-tree" | |||
20 | export MATHLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree" | 20 | export MATHLIB_C674_INSTALL_DIR_RECIPE = "${installdir}/ti-mathlib-c674x-tree" |
21 | export MPM_INSTALL_DIR_RECIPE = "${installdir}/ti-mpm-tree" | 21 | export MPM_INSTALL_DIR_RECIPE = "${installdir}/ti-mpm-tree" |
22 | export OMP_INSTALL_DIR_RECIPE = "${installdir}/ti-omp-tree" | 22 | export OMP_INSTALL_DIR_RECIPE = "${installdir}/ti-omp-tree" |
23 | export OSAL_INSTALL_DIR_RECIPE = "${installdir}/ti-osal-tree" | ||
24 | export PDK_INSTALL_DIR_RECIPE = "${installdir}/ti-pdk-tree" | 23 | export PDK_INSTALL_DIR_RECIPE = "${installdir}/ti-pdk-tree" |
25 | export SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-sysbios-tree" | 24 | export SYSBIOS_INSTALL_DIR_RECIPE = "${installdir}/ti-sysbios-tree" |
26 | export SWTOOLS_INSTALL_DIR_RECIPE = "${installdir}/ti-swtools-tree" | 25 | export SWTOOLS_INSTALL_DIR_RECIPE = "${installdir}/ti-swtools-tree" |
@@ -48,7 +47,6 @@ export MATHLIB_C66_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C66_INSTALL_DI | |||
48 | export MATHLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}" | 47 | export MATHLIB_C674_INSTALL_DIR = "${STAGING_DIR_TARGET}${MATHLIB_C674_INSTALL_DIR_RECIPE}" |
49 | export MPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${MPM_INSTALL_DIR_RECIPE}" | 48 | export MPM_INSTALL_DIR = "${STAGING_DIR_TARGET}${MPM_INSTALL_DIR_RECIPE}" |
50 | export OMP_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMP_INSTALL_DIR_RECIPE}" | 49 | export OMP_INSTALL_DIR = "${STAGING_DIR_TARGET}${OMP_INSTALL_DIR_RECIPE}" |
51 | export OSAL_INSTALL_DIR = "${STAGING_DIR_TARGET}${OSAL_INSTALL_DIR_RECIPE}" | ||
52 | export PDK_INSTALL_DIR = "${STAGING_DIR_TARGET}${PDK_INSTALL_DIR_RECIPE}" | 50 | export PDK_INSTALL_DIR = "${STAGING_DIR_TARGET}${PDK_INSTALL_DIR_RECIPE}" |
53 | export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}" | 51 | export SWTOOLS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SWTOOLS_INSTALL_DIR_RECIPE}" |
54 | export SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSBIOS_INSTALL_DIR_RECIPE}" | 52 | export SYSBIOS_INSTALL_DIR = "${STAGING_DIR_TARGET}${SYSBIOS_INSTALL_DIR_RECIPE}" |
diff --git a/meta-ti-extras/recipes-ti/includes/ti-unpack.inc b/meta-ti-extras/recipes-ti/includes/ti-unpack.inc index 13068843..4cefefbf 100644 --- a/meta-ti-extras/recipes-ti/includes/ti-unpack.inc +++ b/meta-ti-extras/recipes-ti/includes/ti-unpack.inc | |||
@@ -5,7 +5,7 @@ | |||
5 | # TI_BIN_UNPK_ARGS - contains the arguments to be passed to the bin file. | 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 | 6 | # TI_BIN_UNPK_CMDS - contains list of commands separated with colon to be |
7 | # passed while unpacking the bin file. The keyword | 7 | # passed while unpacking the bin file. The keyword |
8 | # workdir expands to WORKDIR and commands are appendded | 8 | # workdir expands to UNPACKDIR and commands are appendded |
9 | # with '\n'. Eg. TI_BIN_UNPK_CMDS="Y:Y: qY:workdir" | 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 | 10 | # TI_BIN_UNPK_WDEXT - This variable extends workdir path, if user wants to put |
11 | # the output in some internal directory | 11 | # the output in some internal directory |
@@ -30,7 +30,7 @@ python ti_bin_do_unpack() { | |||
30 | 30 | ||
31 | # Change to the working directory | 31 | # Change to the working directory |
32 | save_cwd = os.getcwd() | 32 | save_cwd = os.getcwd() |
33 | workdir = localdata.getVar('WORKDIR') | 33 | workdir = localdata.getVar('UNPACKDIR') |
34 | workdir = bb.data.expand(workdir, localdata) | 34 | workdir = bb.data.expand(workdir, localdata) |
35 | os.chdir(workdir) | 35 | os.chdir(workdir) |
36 | 36 | ||
diff --git a/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch b/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch deleted file mode 100644 index ea514695..00000000 --- a/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux/0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
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-extras/recipes-ti/ipc/ti-ipc-examples-linux_git.bb b/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux_git.bb index 81706592..4a9481fe 100644 --- a/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux_git.bb +++ b/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples-linux_git.bb | |||
@@ -1,11 +1,28 @@ | |||
1 | DESCRIPTION = "TI Inter Process Communication (IPC) examples with Host running bios" | 1 | DESCRIPTION = "TI Inter Processor Communication (IPC) MessageQ Application for Linux Host" |
2 | require ti-ipc-examples.inc | 2 | SUMMARY = "TI IPC MessageQ Application for Linux Host" |
3 | 3 | ||
4 | SRC_URI += "file://0001-examples-ClusterMgr-sys_errlist-has-been-deprecated-.patch;patchdir=../git/ipc-examples" | 4 | require recipes-ti/ipc/ti-ipc-common.inc |
5 | require ti-ipc-rtos.inc | ||
5 | 6 | ||
6 | DEPENDS = "ti-ipc ti-xdctools-native ti-sysbios ti-ipc-rtos zip-native" | 7 | LICENSE = "BSD-3-Clause" |
8 | LIC_FILES_CHKSUM = "file://${S_ipc-examples}/src/makefile;beginline=1;endline=30;md5=a52324bd5033bb49ea07bade1244ac9a" | ||
7 | 9 | ||
8 | do_compile:append() { | 10 | IPC_INSTALL_DIR = "${STAGING_DIR_TARGET}/usr/share/ti/ti-ipc-tree" |
11 | INHIBIT_PACKAGE_STRIP = "1" | ||
12 | |||
13 | DEPENDS = "ti-ipc ti-ipc-rtos ti-xdctools-native zip-native" | ||
14 | |||
15 | EX02_PATH = "examples/DRA7XX_linux_elf/ex02_messageq/host" | ||
16 | |||
17 | do_compile() { | ||
18 | cd ${S_ipc-examples}/src | ||
19 | oe_runmake .examples \ | ||
20 | IPCTOOLS="${S_ipc-metadata}/src/etc" | ||
21 | |||
22 | for alt_platform in ${ALT_PLATFORM}; do | ||
23 | oe_runmake .examples "PLATFORM=${alt_platform}" \ | ||
24 | IPCTOOLS="${S_ipc-metadata}/src/etc" | ||
25 | done | ||
9 | 26 | ||
10 | if [ "${PLATFORM}" != "UNKNOWN" ]; then | 27 | if [ "${PLATFORM}" != "UNKNOWN" ]; then |
11 | oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" | 28 | oe_runmake extract HOSTOS="linux" IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" |
@@ -14,12 +31,12 @@ do_compile:append() { | |||
14 | oe_runmake extract PLATFORM="${ALT_PLATFORM}" HOSTOS="linux" \ | 31 | oe_runmake extract PLATFORM="${ALT_PLATFORM}" HOSTOS="linux" \ |
15 | IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" | 32 | IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" |
16 | fi | 33 | fi |
17 | oe_runmake -C examples all HOSTOS="linux" \ | 34 | oe_runmake -C ${EX02_PATH} all HOSTOS="linux" \ |
18 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ | 35 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ |
19 | IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" | 36 | IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" |
20 | 37 | ||
21 | if [ ! -z ${ALT_PLATFORM} ]; then | 38 | if [ ! -z ${ALT_PLATFORM} ]; then |
22 | oe_runmake -C examples all HOSTOS="linux" \ | 39 | oe_runmake -C ${EX02_PATH} all HOSTOS="linux" \ |
23 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ | 40 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ |
24 | IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ | 41 | IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ |
25 | PLATFORM="${ALT_PLATFORM}" | 42 | PLATFORM="${ALT_PLATFORM}" |
@@ -27,20 +44,20 @@ do_compile:append() { | |||
27 | fi | 44 | fi |
28 | } | 45 | } |
29 | 46 | ||
30 | do_install:append() { | 47 | do_install() { |
31 | cd ${S_ipc-examples}/src | 48 | cd ${S_ipc-examples}/src |
32 | 49 | ||
33 | if [ "${PLATFORM}" != "UNKNOWN" ]; then | 50 | if [ "${PLATFORM}" != "UNKNOWN" ]; then |
34 | # Install directory for linux examples | 51 | # Install directory for linux examples |
35 | install -d ${D}${bindir}/ipc/examples | 52 | install -d ${D}${bindir}/ipc/examples/ex02_messageq |
36 | oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ | 53 | oe_runmake -C ${EX02_PATH} install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ |
37 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ | 54 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ |
38 | HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples" | 55 | HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples/ex02_messageq" |
39 | 56 | ||
40 | if [ ! -z ${ALT_PLATFORM} ]; then | 57 | if [ ! -z ${ALT_PLATFORM} ]; then |
41 | oe_runmake -C examples install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ | 58 | oe_runmake -C ${EX02_PATH} install IPC_INSTALL_DIR="${IPC_INSTALL_DIR}" \ |
42 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ | 59 | LINUX_SYSROOT_DIR="${STAGING_INCDIR}" \ |
43 | HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples" \ | 60 | HOSTOS="linux" EXEC_DIR="${D}/${bindir}/ipc/examples/ex02_messageq" \ |
44 | PLATFORM="${ALT_PLATFORM}" | 61 | PLATFORM="${ALT_PLATFORM}" |
45 | fi | 62 | fi |
46 | fi | 63 | fi |
diff --git a/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples.inc b/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples.inc deleted file mode 100644 index 09352505..00000000 --- a/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples.inc +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:IPC" | ||
2 | require recipes-ti/ipc/ti-ipc-common.inc | ||
3 | require ti-ipc-rtos.inc | ||
4 | |||
5 | LICENSE = "BSD-3-Clause" | ||
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-extras/recipes-ti/ipc/ti-ipc-examples_git.bb b/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples_git.bb deleted file mode 100644 index bcc8674e..00000000 --- a/meta-ti-extras/recipes-ti/ipc/ti-ipc-examples_git.bb +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
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-extras/recipes-ti/ipc/ti-ipc-rtos.inc b/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos.inc index 14ac7c77..2f93db72 100644 --- a/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos.inc +++ b/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos.inc | |||
@@ -1,7 +1,7 @@ | |||
1 | require recipes-ti/includes/ti-paths.inc | 1 | require recipes-ti/includes/ti-paths.inc |
2 | 2 | ||
3 | TI_IPC_EXAMPLES_GIT_URI = "git://git.ti.com/git/ipc/ipc-examples.git" | 3 | TI_IPC_EXAMPLES_GIT_URI = "git://git.ti.com/git/ipc/ipc-examples.git" |
4 | TI_IPC_EXAMPLES_DEST_SUFFIX = "git/ipc-examples" | 4 | TI_IPC_EXAMPLES_DEST_SUFFIX = "${BB_GIT_DEFAULT_DESTSUFFIX}/ipc-examples" |
5 | TI_IPC_EXAMPLES_GIT_PROTOCOL = "https" | 5 | TI_IPC_EXAMPLES_GIT_PROTOCOL = "https" |
6 | TI_IPC_EXAMPLES_GIT_BRANCH = "master" | 6 | TI_IPC_EXAMPLES_GIT_BRANCH = "master" |
7 | TI_IPC_EXAMPLES_NAME = "ipc-examples" | 7 | TI_IPC_EXAMPLES_NAME = "ipc-examples" |
@@ -13,7 +13,7 @@ branch=${TI_IPC_EXAMPLES_GIT_BRANCH};\ | |||
13 | name=${TI_IPC_EXAMPLES_NAME}" | 13 | name=${TI_IPC_EXAMPLES_NAME}" |
14 | 14 | ||
15 | TI_IPC_METADATA_GIT_URI = "git://git.ti.com/git/ipc/ipc-metadata.git" | 15 | TI_IPC_METADATA_GIT_URI = "git://git.ti.com/git/ipc/ipc-metadata.git" |
16 | TI_IPC_METADATA_DEST_SUFFIX = "git/ipc-metadata" | 16 | TI_IPC_METADATA_DEST_SUFFIX = "${BB_GIT_DEFAULT_DESTSUFFIX}/ipc-metadata" |
17 | TI_IPC_METADATA_GIT_PROTOCOL = "https" | 17 | TI_IPC_METADATA_GIT_PROTOCOL = "https" |
18 | TI_IPC_METADATA_GIT_BRANCH = "master" | 18 | TI_IPC_METADATA_GIT_BRANCH = "master" |
19 | TI_IPC_METADATA_NAME = "ipc-metadata" | 19 | TI_IPC_METADATA_NAME = "ipc-metadata" |
@@ -33,8 +33,8 @@ SRCREV_FORMAT = "default" | |||
33 | SRCREV_ipc-metadata = "${TI_IPC_METADATA_SRCREV}" | 33 | SRCREV_ipc-metadata = "${TI_IPC_METADATA_SRCREV}" |
34 | SRCREV_ipc-examples = "${TI_IPC_EXAMPLES_SRCREV}" | 34 | SRCREV_ipc-examples = "${TI_IPC_EXAMPLES_SRCREV}" |
35 | 35 | ||
36 | S_ipc-examples = "${WORKDIR}/git/ipc-examples" | 36 | S_ipc-examples = "${S}/ipc-examples" |
37 | S_ipc-metadata = "${WORKDIR}/git/ipc-metadata" | 37 | S_ipc-metadata = "${S}/ipc-metadata" |
38 | 38 | ||
39 | RELEASE_TYPE = "GA" | 39 | RELEASE_TYPE = "GA" |
40 | RELEASE_SUFFIX = "" | 40 | RELEASE_SUFFIX = "" |
diff --git a/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb b/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb index 999993ea..d2ac6276 100644 --- a/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb +++ b/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb | |||
@@ -2,6 +2,8 @@ require recipes-ti/ipc/ti-ipc.inc | |||
2 | require recipes-ti/ipc/ti-ipc-common.inc | 2 | require recipes-ti/ipc/ti-ipc-common.inc |
3 | require ti-ipc-rtos.inc | 3 | require ti-ipc-rtos.inc |
4 | 4 | ||
5 | inherit update-alternatives | ||
6 | |||
5 | DEPENDS = "ti-xdctools-native ti-sysbios doxygen-native zip-native" | 7 | DEPENDS = "ti-xdctools-native ti-sysbios doxygen-native zip-native" |
6 | 8 | ||
7 | PACKAGES =+ "${PN}-fw" | 9 | PACKAGES =+ "${PN}-fw" |
@@ -78,24 +80,32 @@ KFPLAT = "" | |||
78 | 80 | ||
79 | ALTERNATIVE_PRIORITY = "5" | 81 | ALTERNATIVE_PRIORITY = "5" |
80 | 82 | ||
81 | pkg_postinst:${PN}-fw:omap-a15 () { | 83 | ALTERNATIVE:${PN}-fw:omapl138 = "rproc-dsp-fw" |
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} | 84 | ALTERNATIVE:${PN}-fw:omap-a15 = "dra7-dsp1-fw.xe66 \ |
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} | 85 | dra7-dsp2-fw.xe66 \ |
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} | 86 | dra7-ipu1-fw.xem4 \ |
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} | 87 | dra7-ipu2-fw.xem4 \ |
86 | } | 88 | " |
87 | 89 | ||
88 | pkg_postrm:${PN}-fw:omap-a15 () { | 90 | ALTERNATIVE_LINK_NAME[rproc-dsp-fw] = "${nonarch_base_libdir}/firmware/rproc-dsp-fw" |
89 | update-alternatives --remove dra7-dsp1-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66 | 91 | ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = "${nonarch_base_libdir}/firmware/dra7-dsp1-fw.xe66" |
90 | update-alternatives --remove dra7-dsp2-fw.xe66 ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66 | 92 | ALTERNATIVE_LINK_NAME[dra7-dsp2-fw.xe66] = "${nonarch_base_libdir}/firmware/dra7-dsp2-fw.xe66" |
91 | update-alternatives --remove dra7-ipu1-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4 | 93 | ALTERNATIVE_LINK_NAME[dra7-ipu1-fw.xem4] = "${nonarch_base_libdir}/firmware/dra7-ipu1-fw.xem4" |
92 | update-alternatives --remove dra7-ipu2-fw.xem4 ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4 | 94 | ALTERNATIVE_LINK_NAME[dra7-ipu2-fw.xem4] = "${nonarch_base_libdir}/firmware/dra7-ipu2-fw.xem4" |
93 | } | 95 | |
94 | 96 | ALTERNATIVE_TARGET[rproc-dsp-fw] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674" | |
95 | pkg_postinst:${PN}-fw:omapl138 () { | 97 | ALTERNATIVE_TARGET[dra7-dsp1-fw.xe66] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_dsp1/test_omx_dsp1_vayu.xe66" |
96 | update-alternatives --install /lib/firmware/rproc-dsp-fw rproc-dsp-fw ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674 ${ALTERNATIVE_PRIORITY} | 98 | ALTERNATIVE_TARGET[dra7-dsp2-fw.xe66] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_dsp2/test_omx_dsp2_vayu.xe66" |
97 | } | 99 | ALTERNATIVE_TARGET[dra7-ipu1-fw.xem4] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4" |
98 | 100 | ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4" | |
99 | pkg_postrm:${PN}-fw:omapl138 () { | 101 | |
100 | update-alternatives --remove rproc-dsp-fw ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674 | 102 | # Disable the "buildpaths" check while we figure out how we are |
101 | } | 103 | # going to address this issue. |
104 | # | ||
105 | # The ti-cgt6x compiler is a custom TI compiler for the TI C6000 | ||
106 | # Digital Signal Processor(DSP) platform. It does not currently | ||
107 | # support reproducible builds and is provided via a binary blob | ||
108 | # download that we cannot patch in the recipe to address the | ||
109 | # issue. | ||
110 | INSANE_SKIP:${PN}-dev += "buildpaths" | ||
111 | INSANE_SKIP:${PN}-fw += "buildpaths" | ||
diff --git a/meta-ti-extras/recipes-ti/jailhouse/jailhouse_git.bb b/meta-ti-extras/recipes-ti/jailhouse/jailhouse_git.bb index 98ec0e9e..0113a916 100644 --- a/meta-ti-extras/recipes-ti/jailhouse/jailhouse_git.bb +++ b/meta-ti-extras/recipes-ti/jailhouse/jailhouse_git.bb | |||
@@ -10,11 +10,13 @@ JH_CELL_FILES ?= "*.cell" | |||
10 | JH_CELL_FILES:k3 ?= "k3-*.cell" | 10 | JH_CELL_FILES:k3 ?= "k3-*.cell" |
11 | JH_CELL_FILES:am62xx ?= "k3-am625-*.cell" | 11 | JH_CELL_FILES:am62xx ?= "k3-am625-*.cell" |
12 | JH_CELL_FILES:am62pxx ?= "k3-am62p5-*.cell" | 12 | JH_CELL_FILES:am62pxx ?= "k3-am62p5-*.cell" |
13 | JH_CELL_FILES:am62lxx ?= "k3-am62l*.cell" | ||
13 | 14 | ||
14 | JH_INMATE_DTB ?= "" | 15 | JH_INMATE_DTB ?= "" |
15 | JH_INMATE_DTB:am62xx ?= "inmate-k3-am625-sk.dtb" | 16 | JH_INMATE_DTB:am62xx ?= "inmate-k3-am625-sk.dtb" |
16 | JH_INMATE_DTB:am65xx ?= "inmate-k3-am654-idk.dtb" | 17 | JH_INMATE_DTB:am65xx ?= "inmate-k3-am654-idk.dtb" |
17 | JH_INMATE_DTB:am62pxx ?= "inmate-k3-am62p5-sk.dtb" | 18 | JH_INMATE_DTB:am62pxx ?= "inmate-k3-am62p5-sk.dtb" |
19 | JH_INMATE_DTB:am62lxx ?= "inmate-k3-am62l3-evm.dtb" | ||
18 | JH_INMATE_DTB:j7 ?= "inmate-k3-j721e-evm.dtb" | 20 | JH_INMATE_DTB:j7 ?= "inmate-k3-j721e-evm.dtb" |
19 | JH_INMATE_DTB:j7200-evm ?= "inmate-k3-j7200-evm.dtb" | 21 | JH_INMATE_DTB:j7200-evm ?= "inmate-k3-j7200-evm.dtb" |
20 | 22 | ||
@@ -22,6 +24,7 @@ JH_LINUX_DEMO_CELL ?= "" | |||
22 | JH_LINUX_DEMO_CELL:am62xx ?= "k3-am625-sk-linux-demo.cell" | 24 | JH_LINUX_DEMO_CELL:am62xx ?= "k3-am625-sk-linux-demo.cell" |
23 | JH_LINUX_DEMO_CELL:am65xx ?= "k3-am654-idk-linux-demo.cell" | 25 | JH_LINUX_DEMO_CELL:am65xx ?= "k3-am654-idk-linux-demo.cell" |
24 | JH_LINUX_DEMO_CELL:am62pxx ?= "k3-am62p5-sk-linux-demo.cell" | 26 | JH_LINUX_DEMO_CELL:am62pxx ?= "k3-am62p5-sk-linux-demo.cell" |
27 | JH_LINUX_DEMO_CELL:am62lxx ?= "k3-am62l3-evm-linux-demo.cell" | ||
25 | JH_LINUX_DEMO_CELL:j7 ?= "k3-j721e-evm-linux-demo.cell" | 28 | JH_LINUX_DEMO_CELL:j7 ?= "k3-j721e-evm-linux-demo.cell" |
26 | JH_LINUX_DEMO_CELL:j7200-evm ?= "k3-j7200-evm-linux-demo.cell" | 29 | JH_LINUX_DEMO_CELL:j7200-evm ?= "k3-j7200-evm-linux-demo.cell" |
27 | 30 | ||
@@ -31,6 +34,7 @@ JH_RAMFS_IMAGE ?= "${INITRAMFS_IMAGE}" | |||
31 | JH_CMDLINE ?= "" | 34 | JH_CMDLINE ?= "" |
32 | JH_CMDLINE:am62xx ?= "console=ttyS3,115200n8 earlycon=ns16550a,mmio32,0x02810000" | 35 | JH_CMDLINE:am62xx ?= "console=ttyS3,115200n8 earlycon=ns16550a,mmio32,0x02810000" |
33 | JH_CMDLINE:am62pxx ?= "console=ttyS1,115200n8" | 36 | JH_CMDLINE:am62pxx ?= "console=ttyS1,115200n8" |
37 | JH_CMDLINE:am62lxx ?= "console=ttyS3,115200n8" | ||
34 | JH_CMDLINE:am65xx ?= "console=ttyS1,115200n8" | 38 | JH_CMDLINE:am65xx ?= "console=ttyS1,115200n8" |
35 | JH_CMDLINE:j7 ?= "console=ttyS3,115200n8" | 39 | JH_CMDLINE:j7 ?= "console=ttyS3,115200n8" |
36 | JH_CMDLINE:j7200-evm ?= "console=ttyS3,115200n8" | 40 | JH_CMDLINE:j7200-evm ?= "console=ttyS3,115200n8" |
@@ -51,11 +55,11 @@ do_install() { | |||
51 | install -d ${D}/boot | 55 | install -d ${D}/boot |
52 | if [ -n "${JH_RAMFS_IMAGE}" ] | 56 | if [ -n "${JH_RAMFS_IMAGE}" ] |
53 | then | 57 | then |
54 | if [ -f ${DEPLOY_DIR_IMAGE}/${JH_RAMFS_IMAGE}-${MACHINE}.cpio ] | 58 | if [ -f ${DEPLOY_DIR_IMAGE}/${JH_RAMFS_IMAGE}*-${MACHINE}.rootfs.cpio ] |
55 | then | 59 | then |
56 | install -m 0644 ${DEPLOY_DIR_IMAGE}/${JH_RAMFS_IMAGE}-${MACHINE}.cpio ${D}/boot | 60 | install -m 0644 ${DEPLOY_DIR_IMAGE}/${JH_RAMFS_IMAGE}*-${MACHINE}.rootfs.cpio ${D}/boot |
57 | else | 61 | else |
58 | bberror "Could not find JH_RAMFS_IMAGE (${JH_RAMFS_IMAGE}-${MACHINE}.cpio)!" | 62 | bberror "Could not find JH_RAMFS_IMAGE (${JH_RAMFS_IMAGE}*-${MACHINE}.rootfs.cpio)!" |
59 | bberror "Please make sure that \"cpio\" is in IMAGE_FSTYPES." | 63 | bberror "Please make sure that \"cpio\" is in IMAGE_FSTYPES." |
60 | fi | 64 | fi |
61 | fi | 65 | fi |
@@ -68,7 +72,7 @@ do_install() { | |||
68 | ./jailhouse-cell-linux -w ${D}${JH_DATADIR}/${JH_INMATE_DTB} \ | 72 | ./jailhouse-cell-linux -w ${D}${JH_DATADIR}/${JH_INMATE_DTB} \ |
69 | -a ${JH_ARCH} -c "${JH_CMDLINE}" \ | 73 | -a ${JH_ARCH} -c "${JH_CMDLINE}" \ |
70 | -d ../configs/${JH_ARCH}/dts/${JH_INMATE_DTB} \ | 74 | -d ../configs/${JH_ARCH}/dts/${JH_INMATE_DTB} \ |
71 | -i ${D}/boot/${JH_RAMFS_IMAGE}-${MACHINE}.cpio \ | 75 | -i ${D}/boot/${JH_RAMFS_IMAGE}*-${MACHINE}.rootfs.cpio \ |
72 | ${D}${CELL_DIR}/${JH_LINUX_DEMO_CELL} \ | 76 | ${D}${CELL_DIR}/${JH_LINUX_DEMO_CELL} \ |
73 | ${DEPLOY_DIR_IMAGE}/Image \ | 77 | ${DEPLOY_DIR_IMAGE}/Image \ |
74 | | tr -cd '\11\12\15\40-\176' \ | 78 | | tr -cd '\11\12\15\40-\176' \ |
@@ -96,7 +100,8 @@ RDEPENDS:pyjailhouse = "python3-core python3-ctypes python3-fcntl python3-shell" | |||
96 | 100 | ||
97 | RRECOMMENDS:${PN} = "${PN}-tools" | 101 | RRECOMMENDS:${PN} = "${PN}-tools" |
98 | 102 | ||
99 | INSANE_SKIP:${PN} = "ldflags" | 103 | INSANE_SKIP:${PN} = "ldflags usrmerge" |
104 | INSANE_SKIP:${PN}-dbg = "usrmerge buildpaths" | ||
100 | 105 | ||
101 | KERNEL_MODULE_AUTOLOAD += "jailhouse" | 106 | KERNEL_MODULE_AUTOLOAD += "jailhouse" |
102 | 107 | ||
@@ -117,10 +122,7 @@ python __anonymous () { | |||
117 | } | 122 | } |
118 | 123 | ||
119 | FILES:${PN} = " \ | 124 | FILES:${PN} = " \ |
120 | /boot/* \ | 125 | /boot \ |
121 | /usr/libexec \ | 126 | /usr \ |
122 | /usr/sbin/* \ | 127 | /lib \ |
123 | /usr/libexec/* \ | ||
124 | /usr/share/* \ | ||
125 | /lib/firmware/* \ | ||
126 | " | 128 | " |
diff --git a/meta-ti-extras/recipes-ti/jailhouse/ti-jailhouse.inc b/meta-ti-extras/recipes-ti/jailhouse/ti-jailhouse.inc index 6faf16b8..e8374201 100644 --- a/meta-ti-extras/recipes-ti/jailhouse/ti-jailhouse.inc +++ b/meta-ti-extras/recipes-ti/jailhouse/ti-jailhouse.inc | |||
@@ -11,10 +11,10 @@ LIC_FILES_CHKSUM = " \ | |||
11 | file://COPYING;md5=9fa7f895f96bde2d47fd5b7d95b6ba4d \ | 11 | file://COPYING;md5=9fa7f895f96bde2d47fd5b7d95b6ba4d \ |
12 | " | 12 | " |
13 | 13 | ||
14 | COMPATIBLE_MACHINE = "am62xx|am62pxx" | 14 | COMPATIBLE_MACHINE = "am62xx|am62pxx|am62lxx" |
15 | TARGET_CC_ARCH += "${LDFLAGS}" | 15 | TARGET_CC_ARCH += "${LDFLAGS}" |
16 | PV = "0.12+git" | 16 | PV = "0.12+git" |
17 | SRCREV = "603819ef9a771a3c253a141220daab8e61751a43" | 17 | SRCREV = "ef512f9591febed854d8f07ad8c1fa731c2d3c69" |
18 | BRANCH = "master" | 18 | BRANCH = "master" |
19 | SRC_URI = " \ | 19 | SRC_URI = " \ |
20 | git://git.ti.com/git/jailhouse/ti-jailhouse.git;protocol=https;branch=${BRANCH} \ | 20 | git://git.ti.com/git/jailhouse/ti-jailhouse.git;protocol=https;branch=${BRANCH} \ |
@@ -43,7 +43,6 @@ export JH_ARCH = "${@map_jh_arch(d.getVar('TARGET_ARCH', True), d)}" | |||
43 | 43 | ||
44 | COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux" | 44 | COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux" |
45 | 45 | ||
46 | S = "${WORKDIR}/git" | ||
47 | B = "${S}" | 46 | B = "${S}" |
48 | 47 | ||
49 | DEPENDS = "virtual/kernel dtc-native python3-mako-native python3-mako make-native" | 48 | DEPENDS = "virtual/kernel dtc-native python3-mako-native python3-mako make-native" |
@@ -63,6 +62,7 @@ JH_SYSCONFIG_CELL ?= "" | |||
63 | JH_SYSCONFIG_CELL:am62xx ?= "k3-am625-sk.cell" | 62 | JH_SYSCONFIG_CELL:am62xx ?= "k3-am625-sk.cell" |
64 | JH_SYSCONFIG_CELL:am65xx ?= "k3-am654-idk.cell" | 63 | JH_SYSCONFIG_CELL:am65xx ?= "k3-am654-idk.cell" |
65 | JH_SYSCONFIG_CELL:am62pxx ?= "k3-am62p5-sk.cell" | 64 | JH_SYSCONFIG_CELL:am62pxx ?= "k3-am62p5-sk.cell" |
65 | JH_SYSCONFIG_CELL:am62lxx ?= "k3-am62l3-evm.cell" | ||
66 | JH_SYSCONFIG_CELL:j7 ?= "k3-j721e-evm.cell" | 66 | JH_SYSCONFIG_CELL:j7 ?= "k3-j721e-evm.cell" |
67 | JH_SYSCONFIG_CELL:j7200-evm ?= "k3-j7200-evm.cell" | 67 | JH_SYSCONFIG_CELL:j7200-evm ?= "k3-j7200-evm.cell" |
68 | 68 | ||
diff --git a/meta-ti-extras/recipes-ti/mathlib/mathlib.inc b/meta-ti-extras/recipes-ti/mathlib/mathlib.inc index 6ad073ec..ae70cc37 100644 --- a/meta-ti-extras/recipes-ti/mathlib/mathlib.inc +++ b/meta-ti-extras/recipes-ti/mathlib/mathlib.inc | |||
@@ -11,11 +11,8 @@ DEPENDS = "ti-cgt6x-native \ | |||
11 | ti-xdctools-native \ | 11 | ti-xdctools-native \ |
12 | ti-sysbios \ | 12 | ti-sysbios \ |
13 | doxygen-native \ | 13 | doxygen-native \ |
14 | zip-native \ | ||
15 | swtools" | 14 | swtools" |
16 | 15 | ||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | MATHLIB_GIT_BRANCH = "master" | 16 | MATHLIB_GIT_BRANCH = "master" |
20 | MATHLIB_GIT_PROTOCOL = "https" | 17 | MATHLIB_GIT_PROTOCOL = "https" |
21 | MATHLIB_GIT_URI = "git://git.ti.com/git/ep-processor-libraries/mathlib.git" | 18 | MATHLIB_GIT_URI = "git://git.ti.com/git/ep-processor-libraries/mathlib.git" |
@@ -26,18 +23,18 @@ SRCREV = "${MATHLIB_SRCREV}" | |||
26 | 23 | ||
27 | LIC_FILES_CHKSUM = "file://ti/mathlib/src/acosdp/acosdp.h;beginline=1;endline=35;md5=c133f7e139b46385906c861dd9552250" | 24 | LIC_FILES_CHKSUM = "file://ti/mathlib/src/acosdp/acosdp.h;beginline=1;endline=35;md5=c133f7e139b46385906c861dd9552250" |
28 | 25 | ||
29 | export MATHLIB_WORK_DIR="${S}" | 26 | export MATHLIB_WORK_DIR = "${S}" |
30 | export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" | 27 | export CGTOOLS_INSTALL_DIR = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" |
31 | export C64PCODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | 28 | export C64PCODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" |
32 | export C674CODEGENTOOL="${CGTOOLS_INSTALL_DIR}" | 29 | export C674CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" |
33 | export C66CODEGENTOOL ="${CGTOOLS_INSTALL_DIR}" | 30 | export C66CODEGENTOOL = "${CGTOOLS_INSTALL_DIR}" |
34 | export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools" | 31 | export SWTOOLS_PATH = "${SWTOOLS_INSTALL_DIR}/ti/mas/swtools" |
35 | export XDCBUILDCFG="${SWTOOLS_PATH}/config.bld" | 32 | export XDCBUILDCFG = "${SWTOOLS_PATH}/config.bld" |
36 | 33 | ||
37 | PATH:append = ":${XDC_INSTALL_DIR}" | 34 | PATH:append = ":${XDC_INSTALL_DIR}" |
38 | 35 | ||
39 | XDCPATH.="${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" | 36 | XDCPATH .= "${XDCCGROOT}/include;${XDC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages;" |
40 | XDCPATH.="${SWTOOLS_INSTALL_DIR};${MATHLIB_WORK_DIR};" | 37 | XDCPATH .= "${SWTOOLS_INSTALL_DIR};${MATHLIB_WORK_DIR};" |
41 | 38 | ||
42 | export XDCPATH | 39 | export XDCPATH |
43 | 40 | ||
@@ -56,19 +53,6 @@ do_install() { | |||
56 | rm -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/mathlib | 53 | rm -r ${D}${MATHLIB_INSTALL_DIR_RECIPE}/mathlib |
57 | } | 54 | } |
58 | 55 | ||
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" | 56 | ALLOW_EMPTY:${PN} = "1" |
73 | FILES:${PN}-dev += "${MATHLIB_INSTALL_DIR_RECIPE}" | 57 | FILES:${PN}-dev += "${MATHLIB_INSTALL_DIR_RECIPE}" |
74 | 58 | ||
diff --git a/meta-ti-extras/recipes-ti/openmp-rtos/openmp-rtos_git.bb b/meta-ti-extras/recipes-ti/openmp-rtos/openmp-rtos_git.bb deleted file mode 100644 index aa4bc6cd..00000000 --- a/meta-ti-extras/recipes-ti/openmp-rtos/openmp-rtos_git.bb +++ /dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | DESCRIPTION = "TI OpenMP RTOS" | ||
2 | HOMEPAGE = "git://git.ti.com/git/openmp/ti-openmp-dsp-runtime.git" | ||
3 | LICENSE = "BSD-3-Clause" | ||
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/git/openmp/ti-openmp-dsp-runtime.git" | ||
16 | OPENMP_RTOS_GIT_PROTOCOL = "https" | ||
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-extras/recipes-ti/osal/ti-osal.inc b/meta-ti-extras/recipes-ti/osal/ti-osal.inc deleted file mode 100644 index b0470793..00000000 --- a/meta-ti-extras/recipes-ti/osal/ti-osal.inc +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
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-3-Clause & 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-extras/recipes-ti/osal/ti-osal_1.24.00.09.bb b/meta-ti-extras/recipes-ti/osal/ti-osal_1.24.00.09.bb deleted file mode 100644 index 226458be..00000000 --- a/meta-ti-extras/recipes-ti/osal/ti-osal_1.24.00.09.bb +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
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-extras/recipes-ti/swtools/swtools_git.bb b/meta-ti-extras/recipes-ti/swtools/swtools_git.bb index 4bcd6754..82de2040 100644 --- a/meta-ti-extras/recipes-ti/swtools/swtools_git.bb +++ b/meta-ti-extras/recipes-ti/swtools/swtools_git.bb | |||
@@ -12,7 +12,6 @@ DEPENDS = "ti-cgt6x-native \ | |||
12 | 12 | ||
13 | PV = "5_0_8" | 13 | PV = "5_0_8" |
14 | PR = "r3" | 14 | PR = "r3" |
15 | S = "${WORKDIR}/git" | ||
16 | 15 | ||
17 | SWTOOLS_GIT_BRANCH = "master" | 16 | SWTOOLS_GIT_BRANCH = "master" |
18 | SWTOOLS_GIT_PROTOCOL = "https" | 17 | SWTOOLS_GIT_PROTOCOL = "https" |
diff --git a/meta-ti-extras/recipes-ti/vlib/vlib-c66x.inc b/meta-ti-extras/recipes-ti/vlib/vlib-c66x.inc index 6b5e186c..94c5d33b 100644 --- a/meta-ti-extras/recipes-ti/vlib/vlib-c66x.inc +++ b/meta-ti-extras/recipes-ti/vlib/vlib-c66x.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "TI Vision Library (VLIB) for C66x" | 1 | SUMMARY = "TI Vision Library (VLIB) for C66x" |
2 | HOMEPAGE = "http://software-dl.ti.com/libs/vlib/latest/index_FDS.html" | 2 | HOMEPAGE = "http://software-dl.ti.com/libs/vlib/latest/index_FDS.html" |
3 | SECTION = "devel" | 3 | SECTION = "devel" |
4 | LICENSE = "TI-TSPA & BSD-3-Clause" | 4 | LICENSE = "TI-TSPA & BSD-3-Clause" |
@@ -11,11 +11,11 @@ COMPATIBLE_MACHINE = "omap-a15" | |||
11 | 11 | ||
12 | SRC_URI = "http://software-dl.ti.com/libs/vlib/${PV}//exports/vlib_c66x_obj_${PV}_Linux.bin;name=vlibbin" | 12 | SRC_URI = "http://software-dl.ti.com/libs/vlib/${PV}//exports/vlib_c66x_obj_${PV}_Linux.bin;name=vlibbin" |
13 | 13 | ||
14 | S = "${WORKDIR}/vlib_c66x_${PV}" | 14 | S = "${UNPACKDIR}/vlib_c66x_${PV}" |
15 | 15 | ||
16 | BINFILE="vlib_c66x_obj_${PV}_Linux.bin" | 16 | BINFILE = "vlib_c66x_obj_${PV}_Linux.bin" |
17 | TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}" | 17 | TI_BIN_UNPK_ARGS = "--mode silent --prefix ${S}" |
18 | TI_BIN_UNPK_CMDS="" | 18 | TI_BIN_UNPK_CMDS = "" |
19 | 19 | ||
20 | do_install() { | 20 | do_install() { |
21 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" | 21 | CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" |
diff --git a/meta-ti-extras/recipes-ti/xdais/ti-xdais.inc b/meta-ti-extras/recipes-ti/xdais/ti-xdais.inc index 67d19022..070e28c3 100644 --- a/meta-ti-extras/recipes-ti/xdais/ti-xdais.inc +++ b/meta-ti-extras/recipes-ti/xdais/ti-xdais.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | DESCRIPTION = "TI eXpress DSP Algorithm Interface Standard (XDAIS) specification" | 1 | SUMMARY = "TI eXpress DSP Algorithm Interface Standard (XDAIS) specification" |
2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais" | 2 | HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais" |
3 | LICENSE = "GPL-2.0-only" | 3 | LICENSE = "GPL-2.0-only" |
4 | SECTION = "devel" | 4 | SECTION = "devel" |
@@ -6,7 +6,7 @@ SECTION = "devel" | |||
6 | require ../includes/ti-paths.inc | 6 | require ../includes/ti-paths.inc |
7 | require ../includes/ti-staging.inc | 7 | require ../includes/ti-staging.inc |
8 | 8 | ||
9 | S = "${WORKDIR}/xdais_${PV}" | 9 | S = "${UNPACKDIR}/xdais_${PV}" |
10 | 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" | 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 | 12 | ||