mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-01-12 01:20:20 +00:00
Compare commits
135 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
71f4340b0b | ||
|
|
fb55d467f7 | ||
|
|
b5ea831422 | ||
|
|
7749ba5e88 | ||
|
|
1a81652380 | ||
|
|
e871a1e0d6 | ||
|
|
f415cb72cf | ||
|
|
bbf306391e | ||
|
|
9708a12876 | ||
|
|
a23fe49a1a | ||
|
|
273f540683 | ||
|
|
6cc9fcd312 | ||
|
|
b7e1e375b7 | ||
|
|
0d76dba1b1 | ||
|
|
2eca858068 | ||
|
|
b0fe2ddde8 | ||
|
|
05afb88f43 | ||
|
|
4213a71a8e | ||
|
|
94d038be8d | ||
|
|
e7d80bc915 | ||
|
|
80c9829297 | ||
|
|
861e52fc76 | ||
|
|
980b28342c | ||
|
|
54eecb7396 | ||
|
|
826884d6b2 | ||
|
|
97d9fa9789 | ||
|
|
9b65d04f86 | ||
|
|
96734a5f8b | ||
|
|
9d913fce5b | ||
|
|
a4ccd43c13 | ||
|
|
d6c601ea34 | ||
|
|
88143efec9 | ||
|
|
361078b2ed | ||
|
|
12daa0348e | ||
|
|
ed26456630 | ||
|
|
50acaea235 | ||
|
|
2d5cedf0a9 | ||
|
|
a4defea6f5 | ||
|
|
f1cb005a52 | ||
|
|
9c8eec8733 | ||
|
|
f06324bc16 | ||
|
|
f405f79d86 | ||
|
|
d952379f55 | ||
|
|
b444d36dc5 | ||
|
|
f269e761a2 | ||
|
|
57863a821a | ||
|
|
befff0d605 | ||
|
|
2a6e706d99 | ||
|
|
9997a83156 | ||
|
|
336a538aee | ||
|
|
4a086d523b | ||
|
|
156b054b33 | ||
|
|
52c5d383ec | ||
|
|
9b0da26b3b | ||
|
|
8c88422367 | ||
|
|
7c2ede094f | ||
|
|
0727cfb4c3 | ||
|
|
ed304b22e1 | ||
|
|
3086738d4e | ||
|
|
320b9e5dd8 | ||
|
|
cf6400520e | ||
|
|
9757032847 | ||
|
|
dc78e06a6b | ||
|
|
c82f29cae7 | ||
|
|
47ebda87ea | ||
|
|
e9913bd85d | ||
|
|
124d54ec4f | ||
|
|
de9414801c | ||
|
|
8be5ed9003 | ||
|
|
dcd39720f6 | ||
|
|
d06fd153d0 | ||
|
|
caf03395d7 | ||
|
|
c47b32806d | ||
|
|
19784e27f9 | ||
|
|
ee060643e2 | ||
|
|
8634e44674 | ||
|
|
b8523a7b03 | ||
|
|
2a95f97903 | ||
|
|
acaca70dea | ||
|
|
07edb3156e | ||
|
|
11ce93afcf | ||
|
|
56c8f4a23e | ||
|
|
2a1878a6b3 | ||
|
|
1e536ba12e | ||
|
|
9a12c2b49b | ||
|
|
692ec454f4 | ||
|
|
850131c1ae | ||
|
|
c1faefa62a | ||
|
|
fc52833b34 | ||
|
|
f39943db86 | ||
|
|
a1eb263dd3 | ||
|
|
7784943fda | ||
|
|
cada5eb9a6 | ||
|
|
4250e0efa3 | ||
|
|
b173fe9692 | ||
|
|
12f956fc70 | ||
|
|
44c411e544 | ||
|
|
d2ad1d667a | ||
|
|
0f9b4b437d | ||
|
|
23af1ebc21 | ||
|
|
779d0a9a52 | ||
|
|
16af84c57d | ||
|
|
84328ead40 | ||
|
|
5250a7d136 | ||
|
|
d27fa33b3a | ||
|
|
483e420dee | ||
|
|
bfb1338e11 | ||
|
|
2d37a5babf | ||
|
|
b33978b8df | ||
|
|
8039d2c150 | ||
|
|
6fe59578fa | ||
|
|
1380773496 | ||
|
|
fb3ea09a04 | ||
|
|
a451e19973 | ||
|
|
f2feb85e96 | ||
|
|
d398ed7472 | ||
|
|
33668f996f | ||
|
|
ed9d48d39a | ||
|
|
17f2f140fe | ||
|
|
788f3f5b37 | ||
|
|
d6dda61fa0 | ||
|
|
6ef887e76d | ||
|
|
49a502cefa | ||
|
|
599eb3d23a | ||
|
|
90d605ab14 | ||
|
|
fa22d26c2c | ||
|
|
8beb4375d0 | ||
|
|
421c347226 | ||
|
|
bf4708e13e | ||
|
|
272b0135da | ||
|
|
334bce475f | ||
|
|
5d4466fdfc | ||
|
|
fa94effc26 | ||
|
|
8690d09b8f | ||
|
|
ff9bf7b960 |
17
meta-beagle/COPYING.MIT
Normal file
17
meta-beagle/COPYING.MIT
Normal file
@@ -0,0 +1,17 @@
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
31
meta-beagle/README
Normal file
31
meta-beagle/README
Normal file
@@ -0,0 +1,31 @@
|
||||
OpenEmbedded/Yocto layer that extends meta-ti-bsp with BeagleBoard.org platforms.
|
||||
|
||||
It is hosted on http://git.yoctoproject.org/cgit/cgit.cgi/meta-ti/ with the
|
||||
source repository at git://git.yoctoproject.org/meta-ti
|
||||
|
||||
|
||||
This layer depends on:
|
||||
|
||||
URI: git://git.openembedded.org/openembedded-core
|
||||
layers: meta
|
||||
branch: master
|
||||
|
||||
URI: git://git.yoctoproject.org/meta-arm
|
||||
layers: meta-arm
|
||||
branch: master
|
||||
|
||||
URI: git://git.yoctoproject.org/meta-ti
|
||||
branch: master
|
||||
revision: HEAD
|
||||
layers: meta-ti-bsp
|
||||
|
||||
|
||||
Send pull requests, patches, comments or questions to:
|
||||
meta-ti@lists.yoctoproject.org
|
||||
|
||||
Please note - meta-ti mailing list requires subscription for posting:
|
||||
https://lists.yoctoproject.org/g/meta-ti
|
||||
|
||||
Maintainers:
|
||||
Denys Dmytriyenko <denys@konsulko.com>
|
||||
Ryan Eatmon <reatmon@ti.com>
|
||||
20
meta-beagle/SECURITY
Normal file
20
meta-beagle/SECURITY
Normal file
@@ -0,0 +1,20 @@
|
||||
How to Report a Potential Vulnerability?
|
||||
========================================
|
||||
|
||||
If you would like to report a public issue (for example, one with a released
|
||||
CVE number), please report it to the mailing list:
|
||||
|
||||
https://lists.yoctoproject.org/g/meta-ti
|
||||
|
||||
If you are dealing with a not-yet released or urgent issue, please send a
|
||||
message to one of the maintainers listed in the README. Include as many
|
||||
details as possible:
|
||||
- the layer or software module affected
|
||||
- the recipe and its version
|
||||
- any example code, if available
|
||||
|
||||
Branches maintained with security fixes
|
||||
---------------------------------------
|
||||
|
||||
See https://wiki.yoctoproject.org/wiki/Releases for the list of current
|
||||
releases. We only accept patches for the LTS releases and the master branch.
|
||||
17
meta-beagle/conf/layer.conf
Normal file
17
meta-beagle/conf/layer.conf
Normal file
@@ -0,0 +1,17 @@
|
||||
# We have a conf and classes directory, append to BBPATH
|
||||
BBPATH .= ":${LAYERDIR}"
|
||||
|
||||
# We have a recipes directory, add to BBFILES
|
||||
BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend"
|
||||
|
||||
BBFILE_COLLECTIONS += "meta-beagle"
|
||||
BBFILE_PATTERN_meta-beagle := "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_meta-beagle = "6"
|
||||
|
||||
LAYERSERIES_COMPAT_meta-beagle = "scarthgap"
|
||||
|
||||
LAYERDEPENDS_meta-beagle = " \
|
||||
meta-ti-bsp \
|
||||
"
|
||||
|
||||
HOSTTOOLS_NONFATAL += "lz4c"
|
||||
@@ -2,13 +2,12 @@
|
||||
#@NAME: BeagleBoard X15
|
||||
#@DESCRIPTION: Machine configuration for the BeagleBoard X15
|
||||
|
||||
TI_PREFERRED_BSP ?= "bb_org"
|
||||
|
||||
require conf/machine/include/am57xx.inc
|
||||
require conf/machine/include/beagle-bsp.inc
|
||||
|
||||
DT_VENDOR_PREFIX = "ti/omap/"
|
||||
DT_VENDOR_PREFIX:bsp-ti-6_1 = ""
|
||||
DT_VENDOR_PREFIX:bsp-bb_org = ""
|
||||
DT_VENDOR_PREFIX:bsp-bb_org-6_1 = ""
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
${DT_VENDOR_PREFIX}am57xx-beagle-x15 \
|
||||
@@ -2,9 +2,8 @@
|
||||
#@NAME: BeagleBone AI-64 (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core)
|
||||
|
||||
TI_PREFERRED_BSP ?= "bb_org"
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
require conf/machine/include/beagle-bsp.inc
|
||||
|
||||
SYSFW_SOC = "j721e"
|
||||
SYSFW_CONFIG = "evm"
|
||||
@@ -16,8 +15,10 @@ UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
|
||||
UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
|
||||
UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
|
||||
|
||||
UBOOT_MACHINE = "j721e_evm_r5_defconfig"
|
||||
UBOOT_MACHINE:bsp-ti-6_6 = "j721e_beagleboneai64_r5_defconfig"
|
||||
UBOOT_MACHINE = "j721e_beagleboneai64_r5_defconfig"
|
||||
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-bb_org = "j721e_beagleboneai64_r5.config"
|
||||
UBOOT_MACHINE:bsp-ti-6_1 = "j721e_evm_r5_defconfig"
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-ti-6_1 = "j721e_beagleboneai64_r5.config"
|
||||
|
||||
UBOOT_MACHINE:bsp-bb_org-6_1 = "j721e_evm_r5_defconfig"
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-bb_org-6_1 = "j721e_beagleboneai64_r5.config"
|
||||
@@ -2,21 +2,23 @@
|
||||
#@NAME: BeagleBone AI-64 (A72)
|
||||
#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 board (A72 core)
|
||||
|
||||
TI_PREFERRED_BSP ?= "bb_org"
|
||||
|
||||
require conf/machine/include/j721e.inc
|
||||
require conf/machine/include/beagle-bsp.inc
|
||||
|
||||
IMAGE_SR1_1_HS_FS_FILES:bsp-bb_org = ""
|
||||
IMAGE_SR2_HS_SE_FILES:bsp-bb_org = ""
|
||||
IMAGE_SR1_1_HS_FS_FILES = ""
|
||||
IMAGE_SR1_1_HS_SE_FILES = ""
|
||||
IMAGE_SR2_HS_FS_FILES = ""
|
||||
IMAGE_SR2_HS_SE_FILES = ""
|
||||
|
||||
UBOOT_MACHINE = "j721e_evm_a72_config"
|
||||
UBOOT_MACHINE:bsp-ti-6_6 = "j721e_beagleboneai64_a72_defconfig"
|
||||
UBOOT_MACHINE = "j721e_beagleboneai64_a72_defconfig"
|
||||
|
||||
UBOOT_MACHINE:bsp-ti-6_1 = "j721e_evm_a72_config"
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-ti-6_1 = "j721e_beagleboneai64_a72.config"
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-bb_org = "j721e_beagleboneai64_a72.config"
|
||||
|
||||
SPL_BINARY:bsp-ti-6_6 = "tispl.bin_unsigned"
|
||||
SPL_BINARYNAME:bsp-ti-6_6 = "tispl.bin"
|
||||
UBOOT_MACHINE:bsp-bb_org-6_1 = "j721e_evm_a72_config"
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-bb_org-6_1 = "j721e_beagleboneai64_a72.config"
|
||||
|
||||
SPL_BINARY = "tispl.bin_unsigned"
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-j721e \
|
||||
@@ -30,7 +32,7 @@ ti/k3-j721e-evm-quad-port-eth-exp.dtbo \
|
||||
ti/k3-j721e-sk.dtb \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE:append:bsp-bb_org = " \
|
||||
KERNEL_DEVICETREE:append:bsp-bb_org-6_1 = " \
|
||||
ti/k3-j721e-beagleboneai64-dsi-rpi-7inch-panel.dtbo \
|
||||
ti/k3-j721e-common-proc-board-infotainment.dtbo \
|
||||
ti/k3-j721e-evm-csi2-ov5640.dtbo \
|
||||
@@ -2,13 +2,12 @@
|
||||
#@NAME: BeagleBone machine
|
||||
#@DESCRIPTION: Machine configuration for the http://beagleboard.org/bone board
|
||||
|
||||
TI_PREFERRED_BSP ?= "bb_org"
|
||||
|
||||
require conf/machine/include/ti33x.inc
|
||||
require conf/machine/include/beagle-bsp.inc
|
||||
|
||||
DT_VENDOR_PREFIX = "ti/omap/"
|
||||
DT_VENDOR_PREFIX:bsp-ti-6_1 = ""
|
||||
DT_VENDOR_PREFIX:bsp-bb_org = ""
|
||||
DT_VENDOR_PREFIX:bsp-bb_org-6_1 = ""
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
${DT_VENDOR_PREFIX}am335x-bone \
|
||||
11
meta-beagle/conf/machine/beagleplay-k3r5.conf
Normal file
11
meta-beagle/conf/machine/beagleplay-k3r5.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: BeaglePlay (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core)
|
||||
|
||||
require conf/machine/beagleplay-ti-k3r5.conf
|
||||
|
||||
require conf/machine/include/beagle-bsp.inc
|
||||
|
||||
UBOOT_MACHINE:bsp-bb_org-6_1 = "am62x_evm_r5_defconfig"
|
||||
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-bb_org-6_1 = "am625_beagleplay_r5.config"
|
||||
@@ -2,43 +2,15 @@
|
||||
#@NAME: BeaglePlay (A53)
|
||||
#@DESCRIPTION: Machine configuration for the BeaglePlay board (A53 core)
|
||||
|
||||
require conf/machine/include/k3.inc
|
||||
SOC_FAMILY:append = ":am62xx"
|
||||
require conf/machine/beagleplay-ti.conf
|
||||
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
require conf/machine/include/beagle-bsp.inc
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS2"
|
||||
UBOOT_MACHINE:bsp-bb_org-6_1 = "am62x_evm_a53_defconfig"
|
||||
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-bb_org-6_1 = "am625_beagleplay_a53.config"
|
||||
|
||||
TFA_BOARD = "lite"
|
||||
TFA_K3_SYSTEM_SUSPEND = "1"
|
||||
|
||||
OPTEEMACHINE = "k3-am62x"
|
||||
|
||||
UBOOT_MACHINE = "am62x_evm_a53_defconfig"
|
||||
UBOOT_MACHINE:bsp-ti-6_6 = "am62x_beagleplay_a53_defconfig"
|
||||
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-ti-6_1 = "am625_beagleplay_a53.config"
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-bb_org = "am625_beagleplay_a53.config"
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-mainline = "beagleplay_a53.config"
|
||||
|
||||
SPL_BINARY:bsp-ti-6_6 = "tispl.bin_unsigned"
|
||||
SPL_BINARYNAME:bsp-ti-6_6 = "tispl.bin"
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-am625 \
|
||||
ti/k3-am62x-sk \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am625-beagleplay.dtb \
|
||||
ti/k3-am625-sk.dtb \
|
||||
ti/k3-am62x-sk-hdmi-audio.dtbo \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE:append:bsp-bb_org = " \
|
||||
KERNEL_DEVICETREE:append:bsp-bb_org-6_1 = " \
|
||||
ti/k3-am625-beagleplay-csi2-ov5640.dtbo \
|
||||
ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtbo \
|
||||
ti/k3-am625-beagleplay-lincolntech-lcd185-panel.dtbo \
|
||||
@@ -75,4 +47,29 @@ ti/k3-am62x-sk-lpm-wkup-sources.dtbo \
|
||||
ti/k3-am62x-sk-mcan.dtbo \
|
||||
"
|
||||
|
||||
MACHINE_GUI_CLASS = "bigscreen"
|
||||
KERNEL_DEVICETREE:append:bsp-bb_org-6_6 = " \
|
||||
ti/k3-am625-beagleplay-csi2-ov5640.dtbo \
|
||||
ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtbo \
|
||||
ti/k3-am625-beagleplay.dtb \
|
||||
ti/k3-am625-beagleplay-lincolntech-lcd185-panel.dtbo \
|
||||
ti/k3-am625-minimal.dtb \
|
||||
ti/k3-am625-sk.dtb \
|
||||
ti/k3-am625-sk-ecap-capture.dtbo \
|
||||
ti/k3-am625-sk-lincolntech-lcd185-panel.dtbo \
|
||||
ti/k3-am625-sk-m2-cc3301.dtbo \
|
||||
ti/k3-am625-sk-mcspi-loopback.dtbo \
|
||||
ti/k3-am625-sk-microtips-mf101hie-panel.dtbo \
|
||||
ti/k3-am625-sk-rpi-hdr-ehrpwm.dtbo \
|
||||
ti/k3-am62x-sk-csi2-imx219.dtbo \
|
||||
ti/k3-am62x-sk-csi2-ov5640.dtbo \
|
||||
ti/k3-am62x-sk-csi2-tevi-ov5640.dtbo \
|
||||
ti/k3-am62x-sk-csi2-v3link-fusion.dtbo \
|
||||
ti/k3-am62x-sk-dmtimer-pwm.dtbo \
|
||||
ti/k3-am62x-sk-eqep.dtbo \
|
||||
ti/k3-am62x-sk-fastboot-disable-hdmi.dtbo \
|
||||
ti/k3-am62x-sk-hdmi-audio.dtbo \
|
||||
ti/k3-am62x-sk-lpm-wkup-sources.dtbo \
|
||||
ti/k3-am62x-sk-mcan.dtbo \
|
||||
ti/k3-am62x-sk-microtips-mf103hie-lcd2.dtbo \
|
||||
ti/k3-am62x-sk-pwm.dtbo \
|
||||
"
|
||||
16
meta-beagle/conf/machine/beagley-ai-k3r5.conf
Normal file
16
meta-beagle/conf/machine/beagley-ai-k3r5.conf
Normal file
@@ -0,0 +1,16 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: BeagleY AI (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the BeagleY AI (R5F core)
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
|
||||
TI_PREFERRED_BSP ?= "bb_org-6_1"
|
||||
require conf/machine/include/beagle-bsp.inc
|
||||
|
||||
SYSFW_SOC = "j722s"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "hs-fs"
|
||||
|
||||
UBOOT_MACHINE = "j722s_evm_r5_defconfig"
|
||||
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-bb_org-6_1 = "am67a_beagley_ai_r5.config"
|
||||
25
meta-beagle/conf/machine/beagley-ai.conf
Normal file
25
meta-beagle/conf/machine/beagley-ai.conf
Normal file
@@ -0,0 +1,25 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: BeagleY AI (A53)
|
||||
#@DESCRIPTION: Machine configuration for the BeagleY AI board (A53 core)
|
||||
|
||||
require conf/machine/include/j722s.inc
|
||||
|
||||
TI_PREFERRED_BSP ?= "bb_org-6_1"
|
||||
require conf/machine/include/beagle-bsp.inc
|
||||
|
||||
UBOOT_MACHINE = "j722s_evm_a53_config"
|
||||
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-bb_org-6_1 = "am67a_beagley_ai_a53.config"
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-j722s \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = ""
|
||||
|
||||
KERNEL_DEVICETREE:append:bsp-bb_org-6_1 = " \
|
||||
ti/k3-j722s-evm.dtb \
|
||||
ti/k3-am67a-beagley-ai.dtb \
|
||||
"
|
||||
|
||||
MACHINE_GUI_CLASS = "bigscreen"
|
||||
49
meta-beagle/conf/machine/include/beagle-bsp.inc
Normal file
49
meta-beagle/conf/machine/include/beagle-bsp.inc
Normal file
@@ -0,0 +1,49 @@
|
||||
# Use meta-ti-bsp "multi-BSP" facility to create a custom "bb_org" BSP profile
|
||||
# with default preferences for Beagle platforms
|
||||
|
||||
# Default is bb_org-6_6, but can override with any of the existing options
|
||||
TI_PREFERRED_BSP ?= "bb_org-6_6"
|
||||
|
||||
# ==========
|
||||
# bb_org-6_1
|
||||
# BeagleBoard.org kernel 6.1, u-boot 2023.04
|
||||
# based on TI staging trees with extra Beagle-specific features
|
||||
# but may not be up-to-date with TI version
|
||||
# ==========
|
||||
BSP_KERNEL_PROVIDER:bsp-bb_org-6_1 = "linux-bb.org"
|
||||
BSP_KERNEL_VERSION:bsp-bb_org-6_1 = "6.1.%"
|
||||
BSP_BOOTLOADER_PROVIDER:bsp-bb_org-6_1 = "u-boot-bb.org"
|
||||
BSP_BOOTLOADER_VERSION:bsp-bb_org-6_1 = "2023.%"
|
||||
|
||||
BSP_SGX_DRIVER_PROVIDER:bsp-bb_org-6_1 = "ti-sgx-ddk-km"
|
||||
BSP_SGX_DRIVER_VERSION:bsp-bb_org-6_1 = "1.17%"
|
||||
BSP_SGX_UMLIBS_VERSION:bsp-bb_org-6_1 = "1.17%"
|
||||
BSP_ROGUE_DRIVER_PROVIDER:bsp-bb_org-6_1 = "ti-img-rogue-driver"
|
||||
BSP_ROGUE_DRIVER_VERSION:bsp-bb_org-6_1 = "23%"
|
||||
BSP_ROGUE_UMLIBS_VERSION:bsp-bb_org-6_1 = "23%"
|
||||
BSP_MESA_PVR_VERSION:bsp-bb_org-6_1 = "22%"
|
||||
|
||||
# GC320 support requires out-of-tree drivers not yet available in bb.org 6.1
|
||||
MACHINE_FEATURES:remove:bsp-bb_org-6_1 = "gc320"
|
||||
|
||||
# ==========
|
||||
# bb_org-6_6
|
||||
# BeagleBoard.org kernel 6.6, Upstream u-boot 2024.07
|
||||
# based on TI staging trees with extra Beagle-specific features
|
||||
# but may not be up-to-date with TI version
|
||||
# ==========
|
||||
BSP_KERNEL_PROVIDER:bsp-bb_org-6_6 = "linux-bb.org"
|
||||
BSP_KERNEL_VERSION:bsp-bb_org-6_6 = "6.6.%"
|
||||
BSP_BOOTLOADER_PROVIDER:bsp-bb_org-6_6 = "u-boot-bb.org"
|
||||
BSP_BOOTLOADER_VERSION:bsp-bb_org-6_6 = "2024.%"
|
||||
|
||||
BSP_SGX_DRIVER_PROVIDER:bsp-bb_org-6_6 = "ti-sgx-ddk-km"
|
||||
BSP_SGX_DRIVER_VERSION:bsp-bb_org-6_6 = "1.17%"
|
||||
BSP_SGX_UMLIBS_VERSION:bsp-bb_org-6_6 = "1.17%"
|
||||
BSP_ROGUE_DRIVER_PROVIDER:bsp-bb_org-6_6 = "ti-img-rogue-driver"
|
||||
BSP_ROGUE_DRIVER_VERSION:bsp-bb_org-6_6 = "24%"
|
||||
BSP_ROGUE_UMLIBS_VERSION:bsp-bb_org-6_6 = "24%"
|
||||
BSP_MESA_PVR_VERSION:bsp-bb_org-6_6 = "23%"
|
||||
|
||||
# GC320 support requires out-of-tree drivers not yet available in bb.org 6.6
|
||||
MACHINE_FEATURES:remove:bsp-bb_org-6_6 = "gc320"
|
||||
@@ -1,4 +1,4 @@
|
||||
require u-boot-ti.inc
|
||||
require recipes-bsp/u-boot/u-boot-ti.inc
|
||||
|
||||
SUMMARY = "BeagleBoard.org U-Boot"
|
||||
|
||||
@@ -15,3 +15,8 @@ BRANCH:beagleplay = "v2023.04-ti-09.01.00.008-BeaglePlay"
|
||||
BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.01.00.008-BeaglePlay"
|
||||
SRCREV:beagleplay = "43791d945f4e5c25bcc19b9c778e8f9d194dc16e"
|
||||
SRCREV:beagleplay-k3r5 = "43791d945f4e5c25bcc19b9c778e8f9d194dc16e"
|
||||
|
||||
BRANCH:beagley-ai = "v2023.04-ti-09.02.00.009-BeagleY-AI-Production"
|
||||
BRANCH:beagley-ai-k3r5 = "v2023.04-ti-09.02.00.009-BeagleY-AI-Production"
|
||||
SRCREV:beagley-ai = "93735daa6fe024304934d5a5e93ab05a06abf1a8"
|
||||
SRCREV:beagley-ai-k3r5 = "93735daa6fe024304934d5a5e93ab05a06abf1a8"
|
||||
12
meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2024.10.bb
Normal file
12
meta-beagle/recipes-bsp/u-boot/u-boot-bb.org_2024.10.bb
Normal file
@@ -0,0 +1,12 @@
|
||||
require recipes-bsp/u-boot/u-boot-ti.inc
|
||||
|
||||
SUMMARY = "BeagleBoard.org U-Boot"
|
||||
|
||||
COMPATIBLE_MACHINE = "beagle.*"
|
||||
|
||||
PV = "2024.10"
|
||||
|
||||
UBOOT_GIT_URI = "git://github.com/beagleboard/u-boot.git"
|
||||
UBOOT_GIT_PROTOCOL = "https"
|
||||
BRANCH = "v2024.10-Beagle"
|
||||
SRCREV = "bf0e9d0b7274d2b561bd24c858affec2038250f9"
|
||||
@@ -0,0 +1 @@
|
||||
use-kernel-config=bb.org_defconfig
|
||||
@@ -0,0 +1 @@
|
||||
CONFIG_FORTIFY_SOURCE=n
|
||||
@@ -1,3 +1,6 @@
|
||||
# Look in the generic major.minor directory for files
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.1:"
|
||||
|
||||
SECTION = "kernel"
|
||||
SUMMARY = "BeagleBoard.org Linux kernel"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
@@ -52,17 +55,14 @@ PB-MIKROBUS-1.dtbo \
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# 6.1.80 version for 32-bit
|
||||
SRCREV:armv7a = "4ca9ea30768d58c8d4d56d03dd1eaf8c8feb7ef9"
|
||||
PV:armv7a = "6.1.80+git"
|
||||
BRANCH:armv7a = "v6.1.80-ti-r34"
|
||||
# 6.1.83 version for 32-bit
|
||||
SRCREV:armv7a = "be9b910b08dfd674e47a2643f35080b005ac3792"
|
||||
PV:armv7a = "6.1.83+git"
|
||||
BRANCH:armv7a = "v6.1.83-ti-r35"
|
||||
|
||||
# 6.1.80 version for 64-bit
|
||||
SRCREV:aarch64 = "977c75e082620f15c06c72bcced30f787c14b390"
|
||||
PV:aarch64 = "6.1.80+git"
|
||||
BRANCH:aarch64 = "v6.1.80-ti-arm64-r49"
|
||||
# 6.1.83 version for 64-bit
|
||||
SRCREV:aarch64 = "135558243d5a98ed39812b797d2ba6295ef3b86a"
|
||||
PV:aarch64 = "6.1.83+git"
|
||||
BRANCH:aarch64 = "v6.1.83-ti-arm64-r64"
|
||||
|
||||
SRC_URI = " \
|
||||
git://github.com/beagleboard/linux.git;protocol=https;branch=${BRANCH} \
|
||||
file://defconfig \
|
||||
"
|
||||
KERNEL_GIT_URI = "git://github.com/beagleboard/linux.git"
|
||||
71
meta-beagle/recipes-kernel/linux/linux-bb.org_6.6.bb
Normal file
71
meta-beagle/recipes-kernel/linux/linux-bb.org_6.6.bb
Normal file
@@ -0,0 +1,71 @@
|
||||
# Look in the generic major.minor directory for files
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.6:"
|
||||
|
||||
SECTION = "kernel"
|
||||
SUMMARY = "BeagleBoard.org Linux kernel"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
|
||||
|
||||
COMPATIBLE_MACHINE = "beagle.*"
|
||||
|
||||
inherit kernel
|
||||
|
||||
require recipes-kernel/linux/setup-defconfig.inc
|
||||
require recipes-kernel/linux/ti-kernel.inc
|
||||
|
||||
DEPENDS += "gmp-native libmpc-native"
|
||||
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}"
|
||||
|
||||
# Extra DT overlays/capes
|
||||
KERNEL_DEVICETREE:append:armv7a = " \
|
||||
${DT_VENDOR_PREFIX}AM335X-PRU-UIO-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-ADC-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-BBBW-WL1835-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-BBGG-WL1835-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-BBGW-WL1835-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-BONE-4D5R-01-00A1.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-BONE-eMMC1-01-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-BONE-LCD4-01-00A1.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-BONE-NH7C-01-A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-CAPE-DISP-CT4-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-HDMI-TDA998x-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-I2C1-MCP7940X-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-I2C1-RTC-DS3231.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-I2C1-RTC-PCF8563.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-I2C2-BME680.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-I2C2-MPU6050.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-LCD-ADAFRUIT-24-SPI1-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-NHDMI-TDA998x-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BBORG_COMMS-00A2.dtbo \
|
||||
${DT_VENDOR_PREFIX}BBORG_FAN-A000.dtbo \
|
||||
${DT_VENDOR_PREFIX}BBORG_RELAY-00A2.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-SPIDEV0-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-SPIDEV1-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-UART1-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-UART2-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-UART4-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BB-W1-P9.12-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}BONE-ADC.dtbo \
|
||||
${DT_VENDOR_PREFIX}M-BB-BBG-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}M-BB-BBGG-00A0.dtbo \
|
||||
${DT_VENDOR_PREFIX}PB-MIKROBUS-0.dtbo \
|
||||
${DT_VENDOR_PREFIX}PB-MIKROBUS-1.dtbo \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# 6.6.32 version for 32-bit
|
||||
SRCREV:armv7a = "525684d28fadc2bdae5424f28b219377bd5d4639"
|
||||
PV:armv7a = "6.6.32+git"
|
||||
BRANCH:armv7a = "v6.6.32-ti-arm32-r7"
|
||||
|
||||
# 6.6.58 version for 64-bit
|
||||
SRCREV:aarch64 = "9beffa9162f6a0f5de7e25bbb66026a579376428"
|
||||
PV:aarch64 = "6.6.58+git"
|
||||
BRANCH:aarch64 = "v6.6.58-ti-arm64-r16"
|
||||
|
||||
KERNEL_GIT_URI = "git://github.com/beagleboard/linux.git"
|
||||
|
||||
SRC_URI += "file://no-fortify.cfg"
|
||||
KERNEL_CONFIG_FRAGMENTS += "${WORKDIR}/no-fortify.cfg"
|
||||
20
meta-ti-bsp/SECURITY
Normal file
20
meta-ti-bsp/SECURITY
Normal file
@@ -0,0 +1,20 @@
|
||||
How to Report a Potential Vulnerability?
|
||||
========================================
|
||||
|
||||
If you would like to report a public issue (for example, one with a released
|
||||
CVE number), please report it to the mailing list:
|
||||
|
||||
https://lists.yoctoproject.org/g/meta-ti
|
||||
|
||||
If you are dealing with a not-yet released or urgent issue, please send a
|
||||
message to one of the maintainers listed in the README. Include as many
|
||||
details as possible:
|
||||
- the layer or software module affected
|
||||
- the recipe and its version
|
||||
- any example code, if available
|
||||
|
||||
Branches maintained with security fixes
|
||||
---------------------------------------
|
||||
|
||||
See https://wiki.yoctoproject.org/wiki/Releases for the list of current
|
||||
releases. We only accept patches for the LTS releases and the master branch.
|
||||
@@ -18,10 +18,6 @@ LAYERDEPENDS_meta-ti-bsp = " \
|
||||
meta-arm \
|
||||
"
|
||||
|
||||
BBFILES_DYNAMIC += " \
|
||||
clang-layer:${LAYERDIR}/dynamic-layers/clang-layer/recipes*/*/*.bbappend \
|
||||
"
|
||||
|
||||
SIGGEN_EXCLUDERECIPES_ABISAFE += " \
|
||||
mesa-pvr \
|
||||
"
|
||||
|
||||
@@ -25,13 +25,22 @@ KERNEL_DEVICETREE_DTBMERGE = " \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/omap/am57xx-beagle-x15.dtb \
|
||||
ti/omap/am57xx-beagle-x15-revb1.dtb \
|
||||
ti/omap/am57xx-beagle-x15-revc.dtb \
|
||||
ti/omap/am5729-beagleboneai.dtb \
|
||||
ti/omap/am571x-idk-touchscreen.dtbo \
|
||||
ti/omap/am571x-idk.dtb \
|
||||
ti/omap/am5729-beagleboneai.dtb \
|
||||
ti/omap/am572x-idk-touchscreen.dtbo \
|
||||
ti/omap/am572x-idk.dtb \
|
||||
ti/omap/am574x-idk.dtb \
|
||||
ti/omap/am57xx-beagle-x15-revb1.dtb \
|
||||
ti/omap/am57xx-beagle-x15-revc.dtb \
|
||||
ti/omap/am57xx-beagle-x15.dtb \
|
||||
ti/omap/am57xx-cl-som-am57x.dtb \
|
||||
ti/omap/am57xx-evm-reva3.dtb \
|
||||
ti/omap/am57xx-evm.dtb \
|
||||
ti/omap/am57xx-evm.dtbo \
|
||||
ti/omap/am57xx-idk-lcd-osd101t2045.dtbo \
|
||||
ti/omap/am57xx-idk-lcd-osd101t2587.dtbo \
|
||||
ti/omap/am57xx-sbc-am57x.dtb \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "am57xx_evm_config"
|
||||
|
||||
@@ -12,7 +12,12 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am62a7-phyboard-lyra-rdk.dtb \
|
||||
ti/k3-am62a7-sk.dtb \
|
||||
ti/k3-am62x-sk-csi2-imx219.dtbo \
|
||||
ti/k3-am62x-sk-csi2-ov5640.dtbo \
|
||||
ti/k3-am62x-sk-csi2-tevi-ov5640.dtbo \
|
||||
ti/k3-am62x-sk-hdmi-audio.dtbo \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "am62ax_evm_a53_defconfig"
|
||||
|
||||
@@ -10,10 +10,15 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-am62x-sk-csi2 \
|
||||
ti/k3-am62x-sk-hdmi \
|
||||
ti/k3-am62x-sk-lpm \
|
||||
ti/k3-v3link \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am62p5-sk.dtb \
|
||||
ti/k3-am62x-sk-csi2-imx219.dtbo \
|
||||
ti/k3-am62x-sk-csi2-ov5640.dtbo \
|
||||
ti/k3-am62x-sk-csi2-tevi-ov5640.dtbo \
|
||||
ti/k3-am62x-sk-hdmi-audio.dtbo \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "am62px_evm_a53_defconfig"
|
||||
|
||||
@@ -11,7 +11,24 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am625-beagleplay-csi2-ov5640.dtbo \
|
||||
ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtbo \
|
||||
ti/k3-am625-beagleplay.dtb \
|
||||
ti/k3-am625-phyboard-lyra-1-4-ghz-opp.dtbo \
|
||||
ti/k3-am625-phyboard-lyra-rdk.dtb \
|
||||
ti/k3-am625-sk.dtb \
|
||||
ti/k3-am625-verdin-nonwifi-dahlia.dtb \
|
||||
ti/k3-am625-verdin-nonwifi-dev.dtb \
|
||||
ti/k3-am625-verdin-nonwifi-mallow.dtb \
|
||||
ti/k3-am625-verdin-nonwifi-yavia.dtb \
|
||||
ti/k3-am625-verdin-wifi-dahlia.dtb \
|
||||
ti/k3-am625-verdin-wifi-dev.dtb \
|
||||
ti/k3-am625-verdin-wifi-mallow.dtb \
|
||||
ti/k3-am625-verdin-wifi-yavia.dtb \
|
||||
ti/k3-am62x-sk-csi2-imx219.dtbo \
|
||||
ti/k3-am62x-sk-csi2-ov5640.dtbo \
|
||||
ti/k3-am62x-sk-csi2-tevi-ov5640.dtbo \
|
||||
ti/k3-am62x-sk-hdmi-audio.dtbo \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "am62x_evm_a53_defconfig"
|
||||
|
||||
@@ -8,13 +8,18 @@ require conf/machine/include/ti-extras.inc
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-am62-lp \
|
||||
ti/k3-am625-sk \
|
||||
ti/k3-am62x-sk-dmtimer-pwm \
|
||||
ti/k3-am62x-sk-hdmi \
|
||||
ti/k3-am62x-sk-lpm \
|
||||
ti/k3-am62x-sk-mcan \
|
||||
ti/k3-am62x-sk-pwm \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am62-lp-sk-nand.dtbo \
|
||||
ti/k3-am62-lp-sk.dtb \
|
||||
ti/k3-am625-sk.dtb \
|
||||
ti/k3-am62x-sk-hdmi-audio.dtbo \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"
|
||||
|
||||
@@ -17,6 +17,7 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am68-sk-base-board.dtb \
|
||||
ti/k3-j721e-sk-csi2-dual-imx219.dtbo \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "am68_sk_a72_defconfig"
|
||||
|
||||
@@ -18,6 +18,7 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am69-sk.dtb \
|
||||
ti/k3-j721e-sk-csi2-dual-imx219.dtbo \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "am69_sk_a72_defconfig"
|
||||
|
||||
@@ -8,9 +8,7 @@ SYSFW_SOC = "am62x"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "gp"
|
||||
|
||||
UBOOT_MACHINE = "am62x_evm_r5_defconfig"
|
||||
UBOOT_MACHINE:bsp-ti-6_6 = "am62x_beagleplay_r5_defconfig"
|
||||
UBOOT_MACHINE = "am62x_beagleplay_r5_defconfig"
|
||||
UBOOT_MACHINE:bsp-ti-6_1 = "am62x_evm_r5_defconfig"
|
||||
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-bb_org = "am625_beagleplay_r5.config"
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-ti-6_1 = "am625_beagleplay_r5.config"
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-mainline = "beagleplay_r5.config"
|
||||
46
meta-ti-bsp/conf/machine/beagleplay-ti.conf
Normal file
46
meta-ti-bsp/conf/machine/beagleplay-ti.conf
Normal file
@@ -0,0 +1,46 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: BeaglePlay (A53)
|
||||
#@DESCRIPTION: Machine configuration for the BeaglePlay board (A53 core)
|
||||
|
||||
require conf/machine/include/k3.inc
|
||||
require conf/machine/include/mc_k3r5.inc
|
||||
|
||||
SOC_FAMILY:append = ":am62xx"
|
||||
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS2"
|
||||
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
|
||||
|
||||
TFA_BOARD = "lite"
|
||||
TFA_K3_SYSTEM_SUSPEND = "1"
|
||||
|
||||
OPTEEMACHINE = "k3-am62x"
|
||||
|
||||
UBOOT_MACHINE = "am62x_beagleplay_a53_defconfig"
|
||||
UBOOT_MACHINE:bsp-ti-6_1 = "am62x_evm_a53_defconfig"
|
||||
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-ti-6_1 = "am625_beagleplay_a53.config"
|
||||
|
||||
SPL_BINARY = "tispl.bin_unsigned"
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-am625-beagle \
|
||||
ti/k3-am625-sk \
|
||||
ti/k3-am62x-sk \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am625-beagleplay-csi2-ov5640.dtbo \
|
||||
ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtbo \
|
||||
ti/k3-am625-beagleplay.dtb \
|
||||
ti/k3-am625-sk.dtb \
|
||||
ti/k3-am62x-sk-csi2-imx219.dtbo \
|
||||
ti/k3-am62x-sk-csi2-ov5640.dtbo \
|
||||
ti/k3-am62x-sk-csi2-tevi-ov5640.dtbo \
|
||||
ti/k3-am62x-sk-hdmi-audio.dtbo \
|
||||
"
|
||||
|
||||
MACHINE_GUI_CLASS = "bigscreen"
|
||||
@@ -1,4 +1,6 @@
|
||||
require conf/machine/include/k3.inc
|
||||
require conf/machine/include/mc_k3r5.inc
|
||||
|
||||
SOC_FAMILY:append = ":am62axx"
|
||||
|
||||
MACHINE_FEATURES += "screen touchscreen"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
require conf/machine/include/k3.inc
|
||||
require conf/machine/include/mc_k3r5.inc
|
||||
|
||||
SOC_FAMILY:append = ":am62pxx"
|
||||
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
require conf/machine/include/k3.inc
|
||||
require conf/machine/include/mc_k3r5.inc
|
||||
|
||||
SOC_FAMILY:append = ":am62xx"
|
||||
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
@@ -1,11 +1,23 @@
|
||||
require conf/machine/include/k3.inc
|
||||
require conf/machine/include/mc_k3r5.inc
|
||||
|
||||
SOC_FAMILY:append = ":am64xx"
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = "ti/k3-am642"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am642-evm-icssg1-dualemac-mii.dtbo \
|
||||
ti/k3-am642-evm-icssg1-dualemac.dtbo \
|
||||
ti/k3-am642-evm-nand.dtbo \
|
||||
ti/k3-am642-evm.dtb \
|
||||
ti/k3-am642-hummingboard-t-pcie.dtbo \
|
||||
ti/k3-am642-hummingboard-t-usb3.dtbo \
|
||||
ti/k3-am642-hummingboard-t.dtb \
|
||||
ti/k3-am642-phyboard-electra-gpio-fan.dtbo \
|
||||
ti/k3-am642-phyboard-electra-pcie-usb2.dtbo \
|
||||
ti/k3-am642-phyboard-electra-rdk.dtb \
|
||||
ti/k3-am642-sk.dtb \
|
||||
ti/k3-am642-tqma64xxl-mbax4xxl.dtb \
|
||||
"
|
||||
|
||||
# Default tiboot3.bin on AM64x is for SR2.0 HS-FS
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
require conf/machine/include/k3.inc
|
||||
require conf/machine/include/mc_k3r5.inc
|
||||
|
||||
SOC_FAMILY:append = ":am65xx"
|
||||
|
||||
MACHINE_FEATURES += "screen touchscreen gpu"
|
||||
@@ -9,7 +11,18 @@ PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}"
|
||||
KERNEL_DEVICETREE_PREFIX = "ti/k3-am654"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am654-base-board-rocktech-rk101-panel.dtbo \
|
||||
ti/k3-am654-base-board.dtb \
|
||||
ti/k3-am654-icssg2.dtbo \
|
||||
ti/k3-am654-idk.dtbo \
|
||||
ti/k3-am654-pcie-usb2.dtbo \
|
||||
ti/k3-am654-pcie-usb3.dtbo \
|
||||
ti/k3-am6548-iot2050-advanced-m2-bkey-ekey-pcie.dtbo \
|
||||
ti/k3-am6548-iot2050-advanced-m2-bkey-usb3.dtbo \
|
||||
ti/k3-am6548-iot2050-advanced-m2.dtb \
|
||||
ti/k3-am6548-iot2050-advanced-pg2.dtb \
|
||||
ti/k3-am6548-iot2050-advanced-sm.dtb \
|
||||
ti/k3-am6548-iot2050-advanced.dtb \
|
||||
"
|
||||
|
||||
IMAGE_BOOT_FILES += "sysfw.itb"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
require conf/machine/include/k3.inc
|
||||
require conf/machine/include/mc_k3r5.inc
|
||||
|
||||
SOC_FAMILY:append = ":j721s2"
|
||||
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
require conf/machine/include/k3.inc
|
||||
require conf/machine/include/mc_k3r5.inc
|
||||
|
||||
SOC_FAMILY:append = ":j784s4"
|
||||
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
require conf/machine/include/k3.inc
|
||||
require conf/machine/include/mc_k3r5.inc
|
||||
|
||||
SOC_FAMILY:append = ":j7200"
|
||||
|
||||
# Default tiboot3.bin on J7200 is for GP
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
require conf/machine/include/k3.inc
|
||||
require conf/machine/include/mc_k3r5.inc
|
||||
|
||||
SOC_FAMILY:append = ":j721e"
|
||||
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
require conf/machine/include/k3.inc
|
||||
require conf/machine/include/mc_k3r5.inc
|
||||
|
||||
SOC_FAMILY:append = ":j721s2"
|
||||
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
require conf/machine/include/k3.inc
|
||||
require conf/machine/include/mc_k3r5.inc
|
||||
|
||||
SOC_FAMILY:append = ":j722s"
|
||||
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
@@ -11,6 +13,7 @@ IMAGE_BOOT_FILES += "tiboot3-j722s-hs-fs-evm.bin"
|
||||
|
||||
# Since default tiboot3.bin on J722S is for HS-FS, add a version for HS-SE
|
||||
IMAGE_SR1_HS_SE_FILES = "tiboot3-j722s-hs-evm.bin"
|
||||
IMAGE_SR1_HS_SE_FILES:bsp-mainline = ""
|
||||
IMAGE_SR1_HS_SE_FILES:bsp-next = ""
|
||||
IMAGE_BOOT_FILES += "${IMAGE_SR1_HS_SE_FILES}"
|
||||
|
||||
|
||||
21
meta-ti-bsp/conf/machine/include/j742s2.inc
Normal file
21
meta-ti-bsp/conf/machine/include/j742s2.inc
Normal file
@@ -0,0 +1,21 @@
|
||||
require conf/machine/include/k3.inc
|
||||
require conf/machine/include/mc_k3r5.inc
|
||||
|
||||
SOC_FAMILY:append = ":j742s2"
|
||||
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
|
||||
|
||||
# Default tiboot3.bin on J742S2 is for HS-FS
|
||||
IMAGE_BOOT_FILES += "tiboot3-j742s2-hs-fs-evm.bin"
|
||||
|
||||
# Since default tiboot3.bin on J742S2 is for HS-FS, add a version for SR1.0 HS-SE
|
||||
IMAGE_BOOT_FILES += "tiboot3-j742s2-hs-evm.bin"
|
||||
|
||||
TFA_BOARD = "j784s4"
|
||||
|
||||
OPTEEMACHINE = "k3-j784s4"
|
||||
|
||||
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw"
|
||||
@@ -1,4 +1,6 @@
|
||||
require conf/machine/include/k3.inc
|
||||
require conf/machine/include/mc_k3r5.inc
|
||||
|
||||
SOC_FAMILY:append = ":j784s4"
|
||||
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
@@ -3,9 +3,8 @@
|
||||
require conf/machine/include/ti-soc.inc
|
||||
SOC_FAMILY:append = ":k3"
|
||||
|
||||
require conf/machine/include/arm/arch-arm64.inc
|
||||
|
||||
BBMULTICONFIG += "k3r5"
|
||||
DEFAULTTUNE ?= "aarch64"
|
||||
require conf/machine/include/arm/armv8a/tune-cortexa72-cortexa53.inc
|
||||
|
||||
require conf/machine/include/ti-bsp.inc
|
||||
|
||||
@@ -57,6 +56,5 @@ MACHINE_FEATURES += "efi"
|
||||
WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in", "sdimage-2part.wks", d)}"
|
||||
|
||||
do_image_wic[depends] += "virtual/bootloader:do_deploy"
|
||||
do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy"
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
|
||||
|
||||
3
meta-ti-bsp/conf/machine/include/mc_k3r5.inc
Normal file
3
meta-ti-bsp/conf/machine/include/mc_k3r5.inc
Normal file
@@ -0,0 +1,3 @@
|
||||
BBMULTICONFIG += "k3r5"
|
||||
|
||||
do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy"
|
||||
@@ -48,5 +48,6 @@ MACHINE_FEATURES = "apm usbgadget usbhost vfat ext2 screen alsa gpu mmip dsp gc3
|
||||
|
||||
IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap"
|
||||
WKS_FILE ?= "sdimage-2part.wks"
|
||||
IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}"
|
||||
IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES} ipc/dra7-ipu1-fw.xem4;dra7-ipu1-fw.xem4"
|
||||
do_image_wic[depends] += "virtual/bootloader:do_deploy"
|
||||
do_image_wic[depends] += "ti-ipc-rtos:do_deploy"
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
# preferences for kernel, bootloader and graphics components, as
|
||||
# well as a dedicated machine override.
|
||||
|
||||
# Supported options are: mainline, next, ti-6_6, ti-6_1, bb_org
|
||||
TI_PREFERRED_BSP ??= "ti-6_6"
|
||||
# Supported options are: mainline, next, ti-6_12, ti-6_6, ti-6_1
|
||||
TI_PREFERRED_BSP ??= "ti-6_12"
|
||||
|
||||
# Use bsp-* namespace for overrides
|
||||
MACHINEOVERRIDES =. "bsp-${TI_PREFERRED_BSP}:"
|
||||
@@ -22,42 +22,69 @@ BSP_BOOTLOADER_VERSION:bsp-mainline = "%"
|
||||
# in mainline, usually present in TI staging or derivative like BB.org
|
||||
MACHINE_FEATURES:remove:bsp-mainline = "gpu"
|
||||
|
||||
# GC320 support requires out-of-tree drivers not available in mainline
|
||||
MACHINE_FEATURES:remove:bsp-mainline = "gc320"
|
||||
|
||||
# ==========
|
||||
# next
|
||||
# upcoming upstream/mainline kernel, u-boot
|
||||
# ==========
|
||||
BSP_KERNEL_PROVIDER:bsp-next = "linux-ti-next"
|
||||
BSP_KERNEL_VERSION:bsp-next = "%"
|
||||
BSP_BOOTLOADER_PROVIDER:bsp-next = "u-boot-ti-mainline"
|
||||
BSP_BOOTLOADER_PROVIDER:bsp-next = "u-boot-ti-next"
|
||||
BSP_BOOTLOADER_VERSION:bsp-next = "%"
|
||||
|
||||
# GPU support requires out-of-tree SGX and Rogue drivers not available
|
||||
# in next, usually present in TI staging or derivative like BB.org
|
||||
MACHINE_FEATURES:remove:bsp-next = "gpu"
|
||||
|
||||
# GC320 support requires out-of-tree drivers not available in next
|
||||
MACHINE_FEATURES:remove:bsp-next = "gc320"
|
||||
|
||||
# ==========
|
||||
# ti-6_12
|
||||
# TI staging kernel 6.12, u-boot 2025.01
|
||||
# ==========
|
||||
BSP_KERNEL_PROVIDER:bsp-ti-6_12 = "linux-ti-staging"
|
||||
BSP_KERNEL_VERSION:bsp-ti-6_12 = "6.12%"
|
||||
BSP_BOOTLOADER_PROVIDER:bsp-ti-6_12 = "u-boot-ti-staging"
|
||||
BSP_BOOTLOADER_VERSION:bsp-ti-6_12 = "2025.01%"
|
||||
|
||||
# GPU support requires out-of-tree SGX and Rogue drivers not available
|
||||
# in 6.12 yet
|
||||
MACHINE_FEATURES:remove:bsp-ti-6_12 = "gpu"
|
||||
|
||||
# GC320 support requires out-of-tree drivers not yet available in 6.12
|
||||
MACHINE_FEATURES:remove:bsp-ti-6_12 = "gc320"
|
||||
|
||||
# ==========
|
||||
# ti-6_6
|
||||
# TI staging kernel 6.6, u-boot 2024.04
|
||||
# ==========
|
||||
BSP_KERNEL_PROVIDER:bsp-ti-6_6 = "linux-ti-staging"
|
||||
BSP_KERNEL_VERSION:bsp-ti-6_6 = "6.6%"
|
||||
BSP_KERNEL_VERSION:bsp-ti-6_6 = "6.6.%"
|
||||
BSP_BOOTLOADER_PROVIDER:bsp-ti-6_6 = "u-boot-ti-staging"
|
||||
BSP_BOOTLOADER_VERSION:bsp-ti-6_6 = "2024%"
|
||||
BSP_BOOTLOADER_VERSION:bsp-ti-6_6 = "2024.04%"
|
||||
|
||||
# Only Rogue is enabled so far, SGX falls back to SW rendering
|
||||
BSP_SGX_DRIVER_PROVIDER:bsp-ti-6_6 = "ti-sgx-ddk-km"
|
||||
BSP_SGX_DRIVER_VERSION:bsp-ti-6_6 = "1.17%"
|
||||
BSP_SGX_UMLIBS_VERSION:bsp-ti-6_6 = "1.17%"
|
||||
BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_6 = "ti-img-rogue-driver"
|
||||
BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_6 = "24%"
|
||||
BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_6 = "24%"
|
||||
BSP_MESA_PVR_VERSION:bsp-ti-6_6 = "23%"
|
||||
|
||||
# GC320 support requires out-of-tree drivers not yet available in 6.6
|
||||
MACHINE_FEATURES:remove:bsp-ti-6_6 = "gc320"
|
||||
|
||||
# ==========
|
||||
# ti-6_1
|
||||
# TI staging kernel 6.1, u-boot 2023.04
|
||||
# ==========
|
||||
BSP_KERNEL_PROVIDER:bsp-ti-6_1 = "linux-ti-staging"
|
||||
BSP_KERNEL_VERSION:bsp-ti-6_1 = "6.1%"
|
||||
BSP_KERNEL_VERSION:bsp-ti-6_1 = "6.1.%"
|
||||
BSP_BOOTLOADER_PROVIDER:bsp-ti-6_1 = "u-boot-ti-staging"
|
||||
BSP_BOOTLOADER_VERSION:bsp-ti-6_1 = "2023%"
|
||||
BSP_BOOTLOADER_VERSION:bsp-ti-6_1 = "2023.04%"
|
||||
|
||||
BSP_SGX_DRIVER_PROVIDER:bsp-ti-6_1 = "ti-sgx-ddk-km"
|
||||
BSP_SGX_DRIVER_VERSION:bsp-ti-6_1 = "1.17%"
|
||||
@@ -67,24 +94,8 @@ BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_1 = "23%"
|
||||
BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_1 = "23%"
|
||||
BSP_MESA_PVR_VERSION:bsp-ti-6_1 = "22%"
|
||||
|
||||
# ==========
|
||||
# bb_org
|
||||
# BeagleBoard.org kernel 6.1, u-boot 2023.04
|
||||
# based on TI staging trees with extra Beagle-specific features
|
||||
# but may not be up-to-date with TI version
|
||||
# ==========
|
||||
BSP_KERNEL_PROVIDER:bsp-bb_org = "linux-bb.org"
|
||||
BSP_KERNEL_VERSION:bsp-bb_org = "%"
|
||||
BSP_BOOTLOADER_PROVIDER:bsp-bb_org = "u-boot-bb.org"
|
||||
BSP_BOOTLOADER_VERSION:bsp-bb_org = "%"
|
||||
|
||||
BSP_SGX_DRIVER_PROVIDER:bsp-bb_org = "ti-sgx-ddk-km"
|
||||
BSP_SGX_DRIVER_VERSION:bsp-bb_org = "1.17%"
|
||||
BSP_SGX_UMLIBS_VERSION:bsp-bb_org = "1.17%"
|
||||
BSP_ROGUE_DRIVER_PROVIDER:bsp-bb_org = "ti-img-rogue-driver"
|
||||
BSP_ROGUE_DRIVER_VERSION:bsp-bb_org = "23%"
|
||||
BSP_ROGUE_UMLIBS_VERSION:bsp-bb_org = "23%"
|
||||
BSP_MESA_PVR_VERSION:bsp-bb_org = "22%"
|
||||
# GC320 support requires out-of-tree drivers not yet available in 6.1
|
||||
MACHINE_FEATURES:remove:bsp-ti-6_1 = "gc320"
|
||||
|
||||
# ==========
|
||||
# sane fallback defaults
|
||||
@@ -109,6 +120,7 @@ BSP_MESA_PVR_VERSION ?= ""
|
||||
# ==========
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "${BSP_KERNEL_PROVIDER}"
|
||||
PREFERRED_VERSION_${BSP_KERNEL_PROVIDER} ?= "${BSP_KERNEL_VERSION}"
|
||||
PREFERRED_VERSION_${BSP_KERNEL_PROVIDER}-rt ?= "${BSP_KERNEL_VERSION}"
|
||||
PREFERRED_PROVIDER_virtual/bootloader ?= "${BSP_BOOTLOADER_PROVIDER}"
|
||||
PREFERRED_PROVIDER_u-boot ?= "${BSP_BOOTLOADER_PROVIDER}"
|
||||
PREFERRED_VERSION_${BSP_BOOTLOADER_PROVIDER} ?= "${BSP_BOOTLOADER_VERSION}"
|
||||
|
||||
@@ -19,17 +19,43 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/omap/am335x-baltos-ir2110.dtb \
|
||||
ti/omap/am335x-baltos-ir3220.dtb \
|
||||
ti/omap/am335x-baltos-ir5221.dtb \
|
||||
ti/omap/am335x-base0033.dtb \
|
||||
ti/omap/am335x-bone.dtb \
|
||||
ti/omap/am335x-boneblack-wireless.dtb \
|
||||
ti/omap/am335x-boneblack.dtb \
|
||||
ti/omap/am335x-boneblue.dtb \
|
||||
ti/omap/am335x-bonegreen-wireless.dtb \
|
||||
ti/omap/am335x-bonegreen.dtb \
|
||||
ti/omap/am335x-chiliboard.dtb \
|
||||
ti/omap/am335x-cm-t335.dtb \
|
||||
ti/omap/am335x-evm.dtb \
|
||||
ti/omap/am335x-evmsk.dtb \
|
||||
ti/omap/am335x-guardian.dtb \
|
||||
ti/omap/am335x-icev2.dtb \
|
||||
ti/omap/am335x-lxm.dtb \
|
||||
ti/omap/am335x-moxa-uc-2101.dtb \
|
||||
ti/omap/am335x-moxa-uc-8100-me-t.dtb \
|
||||
ti/omap/am335x-myirtech-myd.dtb \
|
||||
ti/omap/am335x-nano.dtb \
|
||||
ti/omap/am335x-netcan-plus-1xx.dtb \
|
||||
ti/omap/am335x-netcom-plus-2xx.dtb \
|
||||
ti/omap/am335x-netcom-plus-8xx.dtb \
|
||||
ti/omap/am335x-osd3358-sm-red.dtb \
|
||||
ti/omap/am335x-pdu001.dtb \
|
||||
ti/omap/am335x-pepper.dtb \
|
||||
ti/omap/am335x-phycore-rdk.dtb \
|
||||
ti/omap/am335x-pocketbeagle.dtb \
|
||||
ti/omap/am335x-bone.dtb \
|
||||
ti/omap/am335x-boneblue.dtb \
|
||||
ti/omap/am335x-bonegreen.dtb \
|
||||
ti/omap/am335x-bonegreen-wireless.dtb \
|
||||
ti/omap/am335x-boneblack.dtb \
|
||||
ti/omap/am335x-boneblack-wireless.dtb \
|
||||
ti/omap/am335x-regor-rdk.dtb \
|
||||
ti/omap/am335x-sancloud-bbe-extended-wifi.dtb \
|
||||
ti/omap/am335x-sancloud-bbe-lite.dtb \
|
||||
ti/omap/am335x-sancloud-bbe.dtb \
|
||||
ti/omap/am335x-sbc-t335.dtb \
|
||||
ti/omap/am335x-shc.dtb \
|
||||
ti/omap/am335x-sl50.dtb \
|
||||
ti/omap/am335x-wega-rdk.dtb \
|
||||
"
|
||||
|
||||
UBOOT_ARCH = "arm"
|
||||
|
||||
@@ -21,9 +21,11 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/omap/am437x-cm-t43.dtb \
|
||||
ti/omap/am437x-gp-evm.dtb \
|
||||
ti/omap/am437x-sk-evm.dtb \
|
||||
ti/omap/am437x-idk-evm.dtb \
|
||||
ti/omap/am437x-sbc-t43.dtb \
|
||||
ti/omap/am437x-sk-evm.dtb \
|
||||
ti/omap/am43x-epos-evm.dtb \
|
||||
"
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ KERNEL_DEVICETREE_PREFIX = "ti/k3-j7200"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-j7200-common-proc-board.dtb \
|
||||
ti/k3-j7200-evm-quad-port-eth-exp.dtbo \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "j7200_evm_a72_config"
|
||||
|
||||
@@ -11,7 +11,13 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-j721e-beagleboneai64.dtb \
|
||||
ti/k3-j721e-common-proc-board-infotainment.dtbo \
|
||||
ti/k3-j721e-common-proc-board.dtb \
|
||||
ti/k3-j721e-evm-gesi-exp-board.dtbo \
|
||||
ti/k3-j721e-evm-pcie0-ep.dtbo \
|
||||
ti/k3-j721e-evm-quad-port-eth-exp.dtbo \
|
||||
ti/k3-j721e-sk-csi2-dual-imx219.dtbo \
|
||||
ti/k3-j721e-sk.dtb \
|
||||
"
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-j721e-sk-csi2-dual-imx219.dtbo \
|
||||
ti/k3-j721e-sk.dtb \
|
||||
"
|
||||
|
||||
|
||||
@@ -16,7 +16,10 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am68-sk-base-board.dtb \
|
||||
ti/k3-j721s2-common-proc-board.dtb \
|
||||
ti/k3-j721s2-evm-gesi-exp-board.dtbo \
|
||||
ti/k3-j721s2-evm-pcie1-ep.dtbo \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
|
||||
|
||||
@@ -10,6 +10,8 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-v3link \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = ""
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-j722s-evm.dtb \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "j722s_evm_a53_defconfig"
|
||||
|
||||
11
meta-ti-bsp/conf/machine/j742s2-evm-k3r5.conf
Normal file
11
meta-ti-bsp/conf/machine/j742s2-evm-k3r5.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: J742S2 EVM (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI J742S2 EVM (R5F core)
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
|
||||
SYSFW_SOC = "j742s2"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "hs-fs"
|
||||
|
||||
UBOOT_MACHINE = "j742s2_evm_r5_defconfig"
|
||||
22
meta-ti-bsp/conf/machine/j742s2-evm.conf
Normal file
22
meta-ti-bsp/conf/machine/j742s2-evm.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: J742S2 EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI J742S2 EVM
|
||||
|
||||
require conf/machine/include/j742s2.inc
|
||||
|
||||
TFA_K3_USART = "0x8"
|
||||
OPTEE_K3_USART = "0x8"
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-j742s2 \
|
||||
ti/k3-j784s4 \
|
||||
ti/k3-fpdlink \
|
||||
ti/k3-j7200-evm-mcspi-loopback \
|
||||
ti/k3-j721s2-evm-csi2-ov5640 \
|
||||
ti/k3-j721s2-evm-fusion \
|
||||
ti/k3-v3link \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = ""
|
||||
|
||||
UBOOT_MACHINE = "j742s2_evm_a72_defconfig"
|
||||
@@ -18,6 +18,10 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am69-sk.dtb \
|
||||
ti/k3-j784s4-evm-pcie0-pcie1-ep.dtbo \
|
||||
ti/k3-j784s4-evm-quad-port-eth-exp1.dtbo \
|
||||
ti/k3-j784s4-evm-usxgmii-exp1-exp2.dtbo \
|
||||
ti/k3-j784s4-evm.dtb \
|
||||
"
|
||||
|
||||
|
||||
@@ -21,6 +21,6 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
da850-evm.dtb \
|
||||
da850-lcdk.dtb \
|
||||
ti/davinci/da850-evm.dtb \
|
||||
ti/davinci/da850-lcdk.dtb \
|
||||
"
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
# This is a copy of meta-clang/recipes-graphics/mesa/mesa_%.bbappend required
|
||||
# for llvmpipe when using pvr-mesa since we aren't caught by that glob.
|
||||
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
LDFLAGS:append:toolchain-clang = " -latomic -lm"
|
||||
DEPENDS:append:toolchain-clang = " libatomic-ops"
|
||||
|
||||
EXTRA_OEMASON:append:toolchain-clang:x86 = " -Dasm=false"
|
||||
EXTRA_OEMASON:append:toolchain-clang:x86-64 = " -Dasm=false"
|
||||
|
||||
export YOCTO_ALTERNATE_EXE_PATH = "${STAGING_LIBDIR}/llvm-config"
|
||||
|
||||
PACKAGECONFIG[gallium-llvm] = "-Dllvm=true -Dshared-llvm=true -Ddraw-use-llvm=true,-Dllvm=false,clang clang-native elfutils"
|
||||
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENCE.cadence;md5=009f46816f6956cfb75ede13d3e1cee0"
|
||||
PV = "${CADENCE_MHDP_FW_VERSION}"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
COMPATIBLE_MACHINE = "j721e|j721s2|j784s4"
|
||||
COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|j742s2"
|
||||
|
||||
TARGET = "mhdp8546.bin"
|
||||
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
HOMEPAGE = "http://processors.wiki.ti.com/index.php/Category:CMEM"
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://include/ti/cmem.h;beginline=1;endline=30;md5=26be509e4bb413905bda8309e338e2b1"
|
||||
|
||||
BRANCH = "master"
|
||||
# This corresponds to version 4.20.00.01
|
||||
SRCREV = "86269258a48e0a9008dd9d5ebfae9da7ce843393"
|
||||
|
||||
PV = "4.20.00.01+git"
|
||||
|
||||
SRC_URI = "git://git.ti.com/git/ipc/ludev.git;protocol=https;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
COMPATIBLE_HOST ?= "null"
|
||||
COMPATIBLE_HOST:ti-soc = "(.*)"
|
||||
@@ -1,11 +0,0 @@
|
||||
DESCRIPTION = "The cmem component supports contiguous memory allocation from userspace"
|
||||
|
||||
include cmem.inc
|
||||
|
||||
PR = "r0"
|
||||
|
||||
PACKAGES =+ "${PN}-test"
|
||||
|
||||
FILES:${PN}-test = "${bindir}/*"
|
||||
|
||||
inherit autotools
|
||||
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://LICENCE.cnm;md5=93b67e6bac7f8fec22b96b8ad0a1a9d0"
|
||||
PV = "${CNM_WAVE521_FW_VERSION}"
|
||||
PR = "${INC_PR}.1"
|
||||
|
||||
COMPATIBLE_MACHINE = "j721s2|j784s4|j722s|am62axx|am62pxx"
|
||||
COMPATIBLE_MACHINE = "j721s2|j784s4|j722s|j742s2|am62axx|am62pxx"
|
||||
|
||||
TARGET_WAVE521C = "wave521c_k3_codec_fw.bin"
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-driver.git;protocol=https;
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRCREV = "174eb331a61e89184342fa57a935226f4e952bc9"
|
||||
SRCREV = "c838bc06a163abad46dcc193c8fb9a4fb9e2e356"
|
||||
|
||||
TARGET_PRODUCT:j721e = "j721e_linux"
|
||||
TARGET_PRODUCT:j721s2 = "j721s2_linux"
|
||||
|
||||
@@ -9,7 +9,7 @@ PROVIDES = "virtual/gpudriver"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|am62xx|am62pxx|j722s"
|
||||
COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|j742s2|am62xx|am62pxx|j722s"
|
||||
|
||||
DEPENDS = "virtual/kernel"
|
||||
|
||||
@@ -19,11 +19,12 @@ SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-driver.git;protocol=https;
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRCREV = "81e189096ef2f2479ccfb50d8b2fb24097188de3"
|
||||
SRCREV = "707bb373902babf9ced5fd2f99139209ca0f605a"
|
||||
|
||||
TARGET_PRODUCT:j721e = "j721e_linux"
|
||||
TARGET_PRODUCT:j721s2 = "j721s2_linux"
|
||||
TARGET_PRODUCT:j784s4 = "j784s4_linux"
|
||||
TARGET_PRODUCT:j742s2 = "j784s4_linux"
|
||||
TARGET_PRODUCT:am62xx = "am62_linux"
|
||||
TARGET_PRODUCT:am62pxx = "am62p_linux"
|
||||
TARGET_PRODUCT:j722s = "j722s_linux"
|
||||
|
||||
@@ -19,7 +19,7 @@ SRC_URI = "git://git.ti.com/git/graphics/omap5-sgx-ddk-linux.git;protocol=https;
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRCREV = "2cb2c9609b7740cb2c348e669a96f26e1cc858da"
|
||||
SRCREV = "3005cf8145a6720daa47e4e273f9e421ff77cb58"
|
||||
|
||||
TARGET_PRODUCT:omap-a15 = "ti572x_linux"
|
||||
TARGET_PRODUCT:ti33x = "ti335x_linux"
|
||||
@@ -31,6 +31,14 @@ PVR_WS = "lws-generic"
|
||||
EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}" BUILD=${PVR_BUILD} \
|
||||
WINDOW_SYSTEM=${PVR_WS} PVR_BUILD_DIR=${TARGET_PRODUCT}'
|
||||
|
||||
# There are useful flags here that are interpreted by the final kbuild pass
|
||||
# These variables are not necessary when compiling outside of Yocto
|
||||
export KERNEL_CC
|
||||
export KERNEL_LD
|
||||
export KERNEL_AR
|
||||
export KERNEL_OBJCOPY
|
||||
export KERNEL_STRIP
|
||||
|
||||
do_install() {
|
||||
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
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ PLAT_SFX:j7200 = "j7200"
|
||||
PLAT_SFX:j721s2 = "j721s2"
|
||||
PLAT_SFX:j784s4 = "j784s4"
|
||||
PLAT_SFX:j722s = "j722s"
|
||||
PLAT_SFX:j742s2 = "j742s2"
|
||||
PLAT_SFX:am65xx = "am65xx"
|
||||
PLAT_SFX:am64xx = "am64xx"
|
||||
PLAT_SFX:am62xx = "am62xx"
|
||||
@@ -44,6 +45,7 @@ DM_FW_LIST:j7200 = "${DM_FIRMWARE}"
|
||||
DM_FW_LIST:j721s2 = "${DM_FIRMWARE}"
|
||||
DM_FW_LIST:j784s4 = "${DM_FIRMWARE}"
|
||||
DM_FW_LIST:j722s = "${DM_FIRMWARE}"
|
||||
DM_FW_LIST:j742s2 = "${DM_FIRMWARE}"
|
||||
DM_FW_LIST:am65xx = ""
|
||||
DM_FW_LIST:am64xx = ""
|
||||
DM_FW_LIST:am62xx = "${DM_FIRMWARE}"
|
||||
@@ -86,6 +88,7 @@ ALTERNATIVE:${PN}:j7200 = "j7200-mcu-r5f0_0-fw"
|
||||
ALTERNATIVE:${PN}:j721s2 = "j721s2-mcu-r5f0_0-fw"
|
||||
ALTERNATIVE:${PN}:j784s4 = "j784s4-mcu-r5f0_0-fw"
|
||||
ALTERNATIVE:${PN}:j722s = "j722s-wkup-r5f0_0-fw"
|
||||
ALTERNATIVE:${PN}:j742s2 = "j742s2-mcu-r5f0_0-fw"
|
||||
|
||||
# Set up link names for the firmwares
|
||||
ALTERNATIVE_LINK_NAME[am62-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/am62-main-r5f0_0-fw"
|
||||
@@ -96,6 +99,7 @@ ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j
|
||||
ALTERNATIVE_LINK_NAME[j721s2-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j721s2-mcu-r5f0_0-fw"
|
||||
ALTERNATIVE_LINK_NAME[j784s4-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j784s4-mcu-r5f0_0-fw"
|
||||
ALTERNATIVE_LINK_NAME[j722s-wkup-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j722s-wkup-r5f0_0-fw"
|
||||
ALTERNATIVE_LINK_NAME[j742s2-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/j742s2-mcu-r5f0_0-fw"
|
||||
|
||||
# Create the firmware alternatives
|
||||
ALTERNATIVE_TARGET[am62-main-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}"
|
||||
@@ -106,6 +110,7 @@ ALTERNATIVE_TARGET[j7200-mcu-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}"
|
||||
ALTERNATIVE_TARGET[j721s2-mcu-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}"
|
||||
ALTERNATIVE_TARGET[j784s4-mcu-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}"
|
||||
ALTERNATIVE_TARGET[j722s-wkup-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}"
|
||||
ALTERNATIVE_TARGET[j742s2-mcu-r5f0_0-fw] = "${INSTALL_DM_FW_DIR}/${DM_FIRMWARE}"
|
||||
|
||||
ALTERNATIVE_PRIORITY = "10"
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ PLAT_SFX:j7200 = "j7200"
|
||||
PLAT_SFX:j721s2 = "j721s2"
|
||||
PLAT_SFX:j784s4 = "j784s4"
|
||||
PLAT_SFX:j722s = "j722s"
|
||||
PLAT_SFX:j742s2 = "j742s2"
|
||||
PLAT_SFX:am65xx = "am65xx"
|
||||
PLAT_SFX:am64xx = "am64xx"
|
||||
PLAT_SFX:am62xx = "am62xx"
|
||||
@@ -43,6 +44,7 @@ ETH_FW_LIST:j7200 = "${ETH_FW}"
|
||||
ETH_FW_LIST:j721s2 = ""
|
||||
ETH_FW_LIST:j784s4 = "${ETH_FW}"
|
||||
ETH_FW_LIST:j722s = ""
|
||||
ETH_FW_LIST:j742s2 = ""
|
||||
ETH_FW_LIST:am65xx = ""
|
||||
ETH_FW_LIST:am64xx = ""
|
||||
ETH_FW_LIST:am62xx = ""
|
||||
|
||||
@@ -9,15 +9,15 @@ INC_PR = "r4"
|
||||
# Firmware versions
|
||||
CORESDK_RTOS_VERSION = "08.02.00.04"
|
||||
PRUETH_FW_AM65X_VERSION = "08.00.00.20"
|
||||
PRUETH_FW_AM65X_SR2_VERSION = "02.02.14.00"
|
||||
PRUETH_FW_AM65X_SR2_VERSION = "02.02.15.00"
|
||||
GOODIX_FW_VERSION = "1.0.0.0"
|
||||
CADENCE_MHDP_FW_VERSION = "2.1.0"
|
||||
IMG_DEC_FW_VERSION = "1.0"
|
||||
CNM_WAVE521_FW_VERSION = "1.0.4"
|
||||
TI_DM_FW_VERSION = "10.00.05"
|
||||
TI_SYSFW_VERSION = "10.00.04"
|
||||
CNM_WAVE521_FW_VERSION = "1.0.7"
|
||||
TI_DM_FW_VERSION = "10.01.03"
|
||||
TI_SYSFW_VERSION = "10.01.08"
|
||||
|
||||
TI_LINUX_FW_SRCREV ?= "af745923679b12f9872ed43e510e74335149de1c"
|
||||
TI_LINUX_FW_SRCREV ?= "7fbc75f80161a400a4b9c618b6191d72ab408def"
|
||||
SRCREV = "${TI_LINUX_FW_SRCREV}"
|
||||
|
||||
BRANCH ?= "ti-linux-firmware"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
PV:k3 = "2.10+git"
|
||||
SRCREV_tfa:k3 = "00f1ec6b8740ccd403e641131e294aabacf2a48b"
|
||||
PV:k3 = "2.11+git"
|
||||
SRCREV_tfa:k3 = "58b25570c9ef91753b14c2103f45f4be9dddb696"
|
||||
LIC_FILES_CHKSUM:k3 = "file://docs/license.rst;md5=83b7626b8c7a37263c6a58af8d19bee1"
|
||||
SRC_URI:k3 = "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;protocol=https;name=tfa;branch=master"
|
||||
COMPATIBLE_MACHINE:k3 = "k3"
|
||||
TFA_BUILD_TARGET:k3 = "all"
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
|
||||
COMPATIBLE_MACHINE = "am62xx|am62pxx"
|
||||
|
||||
BRANCH = "ti-u-boot-2023.04"
|
||||
BRANCH:tie-jailhouse = "ti-u-boot-2023.04-jailhouse"
|
||||
BRANCH = "ti-u-boot-2024.04"
|
||||
BRANCH:tie-jailhouse = "ti-u-boot-2024.04-jailhouse"
|
||||
|
||||
SRCREV = "b0d868ee086eb5c96a3d32f72a7cb9670abf5b90"
|
||||
SRCREV:tie-jailhouse = "765cab112d16fcf68a3266738073663dae67a55d"
|
||||
SRCREV = "b3c10f333acccef49ebaf4abc575616ea7326d50"
|
||||
SRCREV:tie-jailhouse = "b3c10f333acccef49ebaf4abc575616ea7326d50"
|
||||
|
||||
UBOOT_GIT_URI = "git://git.ti.com/git/processor-sdk/u-boot.git"
|
||||
|
||||
@@ -1,16 +1,9 @@
|
||||
require u-boot-ti.inc
|
||||
|
||||
PR = "r0"
|
||||
SUMMARY = "Mainline U-Boot for TI devices"
|
||||
|
||||
PV = "2024.01"
|
||||
PV = "2024.10"
|
||||
|
||||
# For the un-initiated:
|
||||
# The actual URL you'd use with a git clone for example would be:
|
||||
# https://source.denx.de/u-boot/u-boot.git/
|
||||
# However, in the context of OE, we have to explicitly split things up:
|
||||
# a) we want it to use git fetcher - hence git:// prefix in GIT_URI (if we
|
||||
# used https here, we'd endup attempting wget instead of git)
|
||||
# b) and we want git fetcher to use https protocol, hence GIT_PROTOCOL as https
|
||||
UBOOT_GIT_URI = "git://source.denx.de/u-boot/u-boot.git"
|
||||
UBOOT_GIT_PROTOCOL = "https"
|
||||
SRCREV = "866ca972d6c3cabeaf6dbac431e8e08bb30b3c8e"
|
||||
|
||||
SRCREV = "f919c3a889f0ec7d63a48b5d0ed064386b0980bd"
|
||||
|
||||
5
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-next_git.bb
Normal file
5
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-next_git.bb
Normal file
@@ -0,0 +1,5 @@
|
||||
require u-boot-ti-mainline_git.bb
|
||||
|
||||
SUMMARY = "U-Boot master-next for TI devices"
|
||||
|
||||
BRANCH = "master-next"
|
||||
@@ -6,4 +6,4 @@ PR = "r0"
|
||||
|
||||
BRANCH = "ti-u-boot-2023.04"
|
||||
|
||||
SRCREV = "83660642085462346fbeb410f83bc99448ec7042"
|
||||
SRCREV = "0893e693e08f9fc864a6191051dccc818accf933"
|
||||
|
||||
@@ -6,4 +6,4 @@ PR = "r0"
|
||||
|
||||
BRANCH = "ti-u-boot-2024.04"
|
||||
|
||||
SRCREV = "c2e4dd919f1ab482496f1ca3afce3624979036c9"
|
||||
SRCREV = "29d0c23d67ee7b88e46fe1753cd020e2b04c2ef6"
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
require u-boot-ti.inc
|
||||
|
||||
include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''}
|
||||
|
||||
PR = "r0"
|
||||
|
||||
BRANCH = "ti-u-boot-2025.01"
|
||||
|
||||
SRCREV = "4e9c90ad8b12cc5b4fdd1308bc3ac3e4fc869aab"
|
||||
@@ -21,11 +21,15 @@ LIC_FILES_CHKSUM = "file://Licenses/README;md5=2ca5f2c35c8cc335f0a19756634782f1"
|
||||
|
||||
BRANCH ?= "master"
|
||||
UBOOT_GIT_URI ?= "git://git.ti.com/git/ti-u-boot/ti-u-boot.git"
|
||||
UBOOT_GIT_PROTOCOL = "https"
|
||||
SRC_URI = "${UBOOT_GIT_URI};protocol=${UBOOT_GIT_PROTOCOL};branch=${BRANCH}"
|
||||
UBOOT_GIT_PROTOCOL ?= "https"
|
||||
UBOOT_GIT_BRANCH ?= "branch=${BRANCH}"
|
||||
SRC_URI = "${UBOOT_GIT_URI};protocol=${UBOOT_GIT_PROTOCOL};${UBOOT_GIT_BRANCH}"
|
||||
|
||||
PV:append = "+git"
|
||||
|
||||
# u-boot builds a tool mkeficapsule and it needs this
|
||||
DEPENDS += "gnutls-native"
|
||||
|
||||
# u-boot needs devtree compiler to parse dts files
|
||||
DEPENDS += "dtc-native bc-native flex-native bison-native python3-setuptools-native"
|
||||
|
||||
@@ -44,6 +48,7 @@ PLAT_SFX:j7200 = "j7200"
|
||||
PLAT_SFX:j721s2 = "j721s2"
|
||||
PLAT_SFX:j784s4 = "j784s4"
|
||||
PLAT_SFX:j722s = "j722s"
|
||||
PLAT_SFX:j742s2 = "j742s2"
|
||||
PLAT_SFX:am65xx = "am65xx"
|
||||
PLAT_SFX:am64xx = "am64xx"
|
||||
PLAT_SFX:am62xx = "am62xx"
|
||||
@@ -60,6 +65,7 @@ PACKAGECONFIG:append:j7200 = " dm"
|
||||
PACKAGECONFIG:append:j721s2 = " dm"
|
||||
PACKAGECONFIG:append:j784s4 = " dm"
|
||||
PACKAGECONFIG:append:j722s = " dm"
|
||||
PACKAGECONFIG:append:j742s2 = " dm"
|
||||
PACKAGECONFIG:append:am62xx = " dm"
|
||||
PACKAGECONFIG:append:am62axx = " dm"
|
||||
PACKAGECONFIG:append:am62pxx = " dm"
|
||||
@@ -113,104 +119,115 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND"
|
||||
UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
|
||||
UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
|
||||
|
||||
do_compile:append:k3r5 () {
|
||||
if [ -n "${UBOOT_CONFIG}" ];
|
||||
then
|
||||
for config in ${UBOOT_MACHINE}; do
|
||||
i=$(expr $i + 1);
|
||||
for type in ${UBOOT_CONFIG}; do
|
||||
j=$(expr $j + 1);
|
||||
if [ $j -eq $i ];
|
||||
then
|
||||
if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
|
||||
ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
|
||||
fi
|
||||
fi
|
||||
done
|
||||
unset j
|
||||
done
|
||||
unset i
|
||||
else
|
||||
if ! [ -f ${B}/${UBOOT_BINARY} ]; then
|
||||
ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
|
||||
fi
|
||||
fi
|
||||
uboot_compile:append () {
|
||||
if ! [ -f ${B}/${UBOOT_BINARY} ]; then
|
||||
ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
|
||||
fi
|
||||
}
|
||||
|
||||
do_install:append () {
|
||||
if [ -n "${UBOOT_CONFIG}" ]
|
||||
then
|
||||
for config in ${UBOOT_MACHINE}; do
|
||||
i=$(expr $i + 1);
|
||||
for type in ${UBOOT_CONFIG}; do
|
||||
j=$(expr $j + 1);
|
||||
if [ $j -eq $i ]
|
||||
then
|
||||
if [ "x${SPL_UART_BINARY}" != "x" ]; then
|
||||
install ${B}/${config}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE}-${type}
|
||||
ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY}-${type}
|
||||
ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${SPL_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${config}/${SPL_HS_MLO_BINARY} ${D}/boot/${SPL_HS_MLO_IMAGE}-${type}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${D}/boot/${SPL_HS_MLO_BINARY}-${type}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${D}/boot/${SPL_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE}-${type}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE}-${type}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ${D}/boot/${UBOOT_HS_ISSW_IMAGE}-${type}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${D}/boot/${UBOOT_HS_ISSW_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${D}/boot/${UBOOT_HS_ISSW_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE}-${type}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY}
|
||||
fi
|
||||
fi
|
||||
done
|
||||
unset j
|
||||
done
|
||||
unset i
|
||||
else
|
||||
if [ "x${SPL_UART_BINARY}" != "x" ]; then
|
||||
install ${B}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE}
|
||||
ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${SPL_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${SPL_HS_MLO_BINARY} ${D}/boot/${SPL_HS_MLO_IMAGE}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE} ${D}/boot/${SPL_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE} ${D}/boot/${UBOOT_HS_XLD_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE} ${D}/boot/${UBOOT_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_ISSW_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_ISSW_BINARY} ${D}/boot/${UBOOT_HS_ISSW_IMAGE}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE} ${D}/boot/${UBOOT_HS_ISSW_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE} ${D}/boot/${UBOOT_HS_2ND_BINARY}
|
||||
fi
|
||||
fi
|
||||
uboot_compile_config_copy_binary:k3r5 () {
|
||||
config=$1
|
||||
type=$2
|
||||
binary=$3
|
||||
|
||||
if ! [ -L ${B}/${config}/${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX} ] && ! [ -f ${B}/${config}/${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX} ]; then
|
||||
ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX}
|
||||
fi
|
||||
|
||||
if ! [ -L ${B}/${config}/${binary} ] && ! [ -f ${B}/${config}/${binary} ]; then
|
||||
ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${binary}
|
||||
fi
|
||||
}
|
||||
|
||||
uboot_install_config:append () {
|
||||
if [ "x${SPL_UART_BINARY}" != "x" ]; then
|
||||
install ${B}/${config}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE}-${type}
|
||||
ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY}-${type}
|
||||
ln -sf ${SPL_UART_IMAGE}-${type} ${D}/boot/${SPL_UART_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${SPL_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${config}/${SPL_HS_MLO_BINARY} ${D}/boot/${SPL_HS_MLO_IMAGE}-${type}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${D}/boot/${SPL_HS_MLO_BINARY}-${type}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${D}/boot/${SPL_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE}-${type}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${D}/boot/${UBOOT_HS_XLD_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE}-${type}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${D}/boot/${UBOOT_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ${D}/boot/${UBOOT_HS_ISSW_IMAGE}-${type}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${D}/boot/${UBOOT_HS_ISSW_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${D}/boot/${UBOOT_HS_ISSW_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE}-${type}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${D}/boot/${UBOOT_HS_2ND_BINARY}
|
||||
fi
|
||||
}
|
||||
|
||||
uboot_install:append () {
|
||||
if [ "x${SPL_UART_BINARY}" != "x" ]; then
|
||||
install ${B}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE}
|
||||
ln -sf ${SPL_UART_IMAGE} ${D}/boot/${SPL_UART_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${SPL_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${SPL_HS_MLO_BINARY} ${D}/boot/${SPL_HS_MLO_IMAGE}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE} ${D}/boot/${SPL_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_XLD_BINARY} ${D}/boot/${UBOOT_HS_XLD_IMAGE}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE} ${D}/boot/${UBOOT_HS_XLD_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_MLO_BINARY} ${D}/boot/${UBOOT_HS_MLO_IMAGE}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE} ${D}/boot/${UBOOT_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_ISSW_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_ISSW_BINARY} ${D}/boot/${UBOOT_HS_ISSW_IMAGE}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE} ${D}/boot/${UBOOT_HS_ISSW_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_2ND_BINARY} ${D}/boot/${UBOOT_HS_2ND_IMAGE}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE} ${D}/boot/${UBOOT_HS_2ND_BINARY}
|
||||
fi
|
||||
}
|
||||
|
||||
do_deploy:append:k3r5 () {
|
||||
for f in ${B}/tiboot3-*.bin; do
|
||||
rm -f ${DEPLOYDIR}/u-boot-initial-env*
|
||||
rm -f ${DEPLOYDIR}/${PN}-initial-env*
|
||||
rm -f ${DEPLOYDIR}/u-boot-initial-env-${MACHINE}*
|
||||
rm -f ${DEPLOYDIR}/${PN}-initial-env-${MACHINE}*
|
||||
rm -f ${DEPLOYDIR}/u-boot-initial-env-${MACHINE}-${PV}-${PR}*
|
||||
rm -f ${DEPLOYDIR}/${PN}-initial-env-${MACHINE}-${PV}-${PR}*
|
||||
}
|
||||
|
||||
uboot_deploy_config:append:k3r5 () {
|
||||
for f in ${B}/${config}/tiboot3-*.bin; do
|
||||
if [ -f "$f" ]; then
|
||||
f_base=$(basename $f)
|
||||
install -m 644 $f ${DEPLOYDIR}/${f_base}-${type}
|
||||
ln -sf ${f_base}-${type} ${DEPLOYDIR}/${f_base}
|
||||
fi
|
||||
done
|
||||
|
||||
for f in ${B}/${config}/sysfw*.itb; do
|
||||
if [ -f "$f" ]; then
|
||||
f_base=$(basename $f)
|
||||
install -m 644 $f ${DEPLOYDIR}/${f_base}-${type}
|
||||
ln -sf ${f_base}-${type} ${DEPLOYDIR}/${f_base}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
uboot_deploy:append:k3r5 () {
|
||||
for f in ${B}/tiboot3-*.bin; do
|
||||
if [ -f "$f" ]; then
|
||||
install -m 644 $f ${DEPLOYDIR}/
|
||||
fi
|
||||
@@ -221,117 +238,98 @@ do_deploy:append:k3r5 () {
|
||||
install -m 644 $f ${DEPLOYDIR}/
|
||||
fi
|
||||
done
|
||||
|
||||
rm ${DEPLOYDIR}/u-boot-initial-env || true
|
||||
rm ${DEPLOYDIR}/${PN}-initial-env || true
|
||||
rm ${DEPLOYDIR}/u-boot-initial-env-${MACHINE} || true
|
||||
rm ${DEPLOYDIR}/${PN}-initial-env-${MACHINE} || true
|
||||
rm ${DEPLOYDIR}/u-boot-initial-env-${MACHINE}-${PV}-${PR} || true
|
||||
rm ${DEPLOYDIR}/${PN}-initial-env-${MACHINE}-${PV}-${PR} || true
|
||||
}
|
||||
|
||||
do_deploy:append () {
|
||||
if [ -n "${UBOOT_CONFIG}" ]
|
||||
then
|
||||
for config in ${UBOOT_MACHINE}; do
|
||||
i=$(expr $i + 1);
|
||||
for type in ${UBOOT_CONFIG}; do
|
||||
j=$(expr $j + 1);
|
||||
if [ $j -eq $i ]
|
||||
then
|
||||
cd ${DEPLOYDIR}
|
||||
if [ "x${SPL_UART_BINARY}" != "x" ]; then
|
||||
install ${B}/${config}/spl/${SPL_UART_BINARY} ${SPL_UART_IMAGE}-${type}
|
||||
rm -f ${SPL_UART_BINARY} ${SPL_UART_SYMLINK}
|
||||
ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_BINARY}-${type}
|
||||
ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_BINARY}
|
||||
ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_SYMLINK}-${type}
|
||||
ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_SYMLINK}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${SPL_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${config}/${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_IMAGE}-${type}
|
||||
rm -f ${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_SYMLINK}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_SYMLINK}-${type}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_SYMLINK}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_BINARY}-${type}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_IMAGE}-${type}
|
||||
rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_SYMLINK}-${type}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_IMAGE}-${type}
|
||||
rm -f ${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_SYMLINK}-${type}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_IMAGE}-${type}
|
||||
rm -f ${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_SYMLINK}-${type}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_IMAGE}-${type}
|
||||
rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK}-${type}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY}
|
||||
fi
|
||||
fi
|
||||
done
|
||||
unset j
|
||||
done
|
||||
unset i
|
||||
else
|
||||
cd ${DEPLOYDIR}
|
||||
if [ "x${SPL_UART_BINARY}" != "x" ]; then
|
||||
install ${B}/spl/${SPL_UART_BINARY} ${SPL_UART_IMAGE}
|
||||
rm -f ${SPL_UART_BINARY} ${SPL_UART_SYMLINK}
|
||||
ln -sf ${SPL_UART_IMAGE} ${SPL_UART_BINARY}
|
||||
ln -sf ${SPL_UART_IMAGE} ${SPL_UART_SYMLINK}
|
||||
fi
|
||||
if [ -f ${B}/${SPL_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_IMAGE}
|
||||
rm -f ${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_SYMLINK}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE} ${SPL_HS_MLO_SYMLINK}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE} ${SPL_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_IMAGE}
|
||||
rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_IMAGE}
|
||||
rm -f ${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_ISSW_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_IMAGE}
|
||||
rm -f ${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE} ${UBOOT_HS_ISSW_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE} ${UBOOT_HS_ISSW_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_IMAGE}
|
||||
rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_BINARY}
|
||||
fi
|
||||
fi
|
||||
uboot_deploy_config:append () {
|
||||
cd ${DEPLOYDIR}
|
||||
if [ "x${SPL_UART_BINARY}" != "x" ]; then
|
||||
install ${B}/${config}/spl/${SPL_UART_BINARY} ${SPL_UART_IMAGE}-${type}
|
||||
rm -f ${SPL_UART_BINARY} ${SPL_UART_SYMLINK}
|
||||
ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_BINARY}-${type}
|
||||
ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_BINARY}
|
||||
ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_SYMLINK}-${type}
|
||||
ln -sf ${SPL_UART_IMAGE}-${type} ${SPL_UART_SYMLINK}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${SPL_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${config}/${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_IMAGE}-${type}
|
||||
rm -f ${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_SYMLINK}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_SYMLINK}-${type}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_SYMLINK}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_BINARY}-${type}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE}-${type} ${SPL_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_XLD_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_IMAGE}-${type}
|
||||
rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_SYMLINK}-${type}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE}-${type} ${UBOOT_HS_XLD_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_IMAGE}-${type}
|
||||
rm -f ${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_SYMLINK}-${type}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE}-${type} ${UBOOT_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_IMAGE}-${type}
|
||||
rm -f ${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_SYMLINK}-${type}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE}-${type} ${UBOOT_HS_ISSW_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${config}/${UBOOT_HS_2ND_BINARY} ]; then
|
||||
install ${B}/${config}/${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_IMAGE}-${type}
|
||||
rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK}-${type}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY}-${type}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE}-${type} ${UBOOT_HS_2ND_BINARY}
|
||||
fi
|
||||
}
|
||||
|
||||
uboot_deploy:append () {
|
||||
cd ${DEPLOYDIR}
|
||||
if [ "x${SPL_UART_BINARY}" != "x" ]; then
|
||||
install ${B}/spl/${SPL_UART_BINARY} ${SPL_UART_IMAGE}
|
||||
rm -f ${SPL_UART_BINARY} ${SPL_UART_SYMLINK}
|
||||
ln -sf ${SPL_UART_IMAGE} ${SPL_UART_BINARY}
|
||||
ln -sf ${SPL_UART_IMAGE} ${SPL_UART_SYMLINK}
|
||||
fi
|
||||
if [ -f ${B}/${SPL_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_IMAGE}
|
||||
rm -f ${SPL_HS_MLO_BINARY} ${SPL_HS_MLO_SYMLINK}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE} ${SPL_HS_MLO_SYMLINK}
|
||||
ln -sf ${SPL_HS_MLO_IMAGE} ${SPL_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_XLD_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_IMAGE}
|
||||
rm -f ${UBOOT_HS_XLD_BINARY} ${UBOOT_HS_XLD_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_XLD_IMAGE} ${UBOOT_HS_XLD_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_MLO_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_IMAGE}
|
||||
rm -f ${UBOOT_HS_MLO_BINARY} ${UBOOT_HS_MLO_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_MLO_IMAGE} ${UBOOT_HS_MLO_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_ISSW_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_IMAGE}
|
||||
rm -f ${UBOOT_HS_ISSW_BINARY} ${UBOOT_HS_ISSW_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE} ${UBOOT_HS_ISSW_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_ISSW_IMAGE} ${UBOOT_HS_ISSW_BINARY}
|
||||
fi
|
||||
if [ -f ${B}/${UBOOT_HS_2ND_BINARY} ]; then
|
||||
install ${B}/${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_IMAGE}
|
||||
rm -f ${UBOOT_HS_2ND_BINARY} ${UBOOT_HS_2ND_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_SYMLINK}
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_BINARY}
|
||||
fi
|
||||
}
|
||||
|
||||
do_install:append:am62xx() {
|
||||
|
||||
@@ -10,7 +10,7 @@ PV = "0.3+git"
|
||||
COMPATIBLE_MACHINE = "k3"
|
||||
|
||||
BRANCH ?= "master"
|
||||
SRCREV = "85a7433202aafafbccea8a7b2491f4df8b1ecd80"
|
||||
SRCREV = "30a1d5b2d08c0da39d4e62b3ebee591a9882fa21"
|
||||
|
||||
SRC_URI = "git://git.ti.com/git/k3conf/k3conf.git;protocol=https;branch=${BRANCH}"
|
||||
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
From bb2db56ffec6e527d88751f75117ae690227cd6c Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Kai=20Wasserb=C3=A4ch?= <kai@dev.carbon-project.org>
|
||||
Date: Sat, 11 Feb 2023 18:38:01 +0100
|
||||
Subject: [PATCH] fix: gallivm: fix LLVM #include of Host.h, moved to
|
||||
TargetParser
|
||||
|
||||
Upstream moved Host.h from Support to TargetParser in LLVM 17.
|
||||
|
||||
This shouldn't lead to a FTBFS, since there is a forwarding include left
|
||||
behind. Sadly the added deprecation warning #pragma is invalid and thus
|
||||
causes a build failure right away. But since we would have to follow the
|
||||
move anyway in the future, just do it right away.
|
||||
|
||||
Reference: https://github.com/llvm/llvm-project/commit/d768bf994f508d7eaf9541a568be3d71096febf5
|
||||
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
|
||||
Closes: #8275
|
||||
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21263>
|
||||
|
||||
Upstream-Status: Backport [https://gitlab.freedesktop.org/mesa/mesa/-/commit/bb2db56ffec6e527d88751f75117ae690227cd6c]
|
||||
|
||||
---
|
||||
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 7 ++++++-
|
||||
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 4 +++-
|
||||
2 files changed, 9 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
|
||||
index 54bc5d5ada36c..f78f04f042be8 100644
|
||||
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
|
||||
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
|
||||
@@ -35,9 +35,14 @@
|
||||
#include <llvm-c/Disassembler.h>
|
||||
#include <llvm/Support/raw_ostream.h>
|
||||
#include <llvm/Support/Format.h>
|
||||
-#include <llvm/Support/Host.h>
|
||||
#include <llvm/IR/Module.h>
|
||||
|
||||
+#if LLVM_VERSION_MAJOR >= 17
|
||||
+#include <llvm/TargetParser/Host.h>
|
||||
+#else
|
||||
+#include <llvm/Support/Host.h>
|
||||
+#endif
|
||||
+
|
||||
#include "util/u_math.h"
|
||||
#include "util/u_debug.h"
|
||||
|
||||
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
|
||||
index 334c13530394b..5e7a30a6cc2e3 100644
|
||||
--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
|
||||
+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
|
||||
@@ -60,7 +60,11 @@
|
||||
#include <llvm/Analysis/TargetLibraryInfo.h>
|
||||
#include <llvm/ExecutionEngine/SectionMemoryManager.h>
|
||||
#include <llvm/Support/CommandLine.h>
|
||||
+#if LLVM_VERSION_MAJOR >= 17
|
||||
+#include <llvm/TargetParser/Host.h>
|
||||
+#else
|
||||
#include <llvm/Support/Host.h>
|
||||
+#endif
|
||||
#include <llvm/Support/PrettyStackTrace.h>
|
||||
#include <llvm/ExecutionEngine/ObjectCache.h>
|
||||
#include <llvm/Support/TargetSelect.h>
|
||||
|
||||
--
|
||||
GitLab
|
||||
@@ -0,0 +1,52 @@
|
||||
From 6c5033bb01a3a1341d4db5007586a5f2e2727b0a Mon Sep 17 00:00:00 2001
|
||||
From: Ryan Eatmon <reatmon@ti.com>
|
||||
Date: Mon, 4 Nov 2024 13:37:29 -0600
|
||||
Subject: [PATCH] gallium: Fix build with llvm 18 and 19
|
||||
|
||||
- CodeGenOpt::Level changed to CodeGenOoptLevel. [1]
|
||||
- llvm::sys::getHostCPUFeatures() now returns the features instead of
|
||||
modifying the passed in argument. [2]
|
||||
|
||||
Upstream-Status: Backport [1][https://gitlab.freedesktop.org/mesa/mesa/-/commit/f79617fe804ea6524651ff1bc3a91098d3199179]
|
||||
Upstream-Status: Backport [2][https://gitlab.freedesktop.org/mesa/mesa/-/commit/fa9cd89a85b904615ebc11da609445b5b751e68d]
|
||||
|
||||
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
|
||||
---
|
||||
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 14 ++++++++++++--
|
||||
1 file changed, 12 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
|
||||
index 5e7a30a6cc2..dbc777e3096 100644
|
||||
--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
|
||||
+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
|
||||
@@ -368,7 +368,11 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
|
||||
builder.setEngineKind(EngineKind::JIT)
|
||||
.setErrorStr(&Error)
|
||||
.setTargetOptions(options)
|
||||
+#if LLVM_VERSION_MAJOR >= 18
|
||||
+ .setOptLevel((CodeGenOptLevel)OptLevel);
|
||||
+#else
|
||||
.setOptLevel((CodeGenOpt::Level)OptLevel);
|
||||
+#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
/*
|
||||
@@ -392,8 +396,14 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
|
||||
* which allows us to enable/disable code generation based
|
||||
* on the results of cpuid on these architectures.
|
||||
*/
|
||||
- llvm::StringMap<bool> features;
|
||||
- llvm::sys::getHostCPUFeatures(features);
|
||||
+ #if LLVM_VERSION_MAJOR >= 19
|
||||
+ /* llvm-19+ returns StringMap from getHostCPUFeatures.
|
||||
+ */
|
||||
+ auto features = llvm::sys::getHostCPUFeatures();
|
||||
+ #else
|
||||
+ llvm::StringMap<bool> features;
|
||||
+ llvm::sys::getHostCPUFeatures(features);
|
||||
+ #endif
|
||||
|
||||
for (StringMapIterator<bool> f = features.begin();
|
||||
f != features.end();
|
||||
--
|
||||
2.17.1
|
||||
@@ -0,0 +1,52 @@
|
||||
From 6c5033bb01a3a1341d4db5007586a5f2e2727b0a Mon Sep 17 00:00:00 2001
|
||||
From: Ryan Eatmon <reatmon@ti.com>
|
||||
Date: Mon, 4 Nov 2024 13:37:29 -0600
|
||||
Subject: [PATCH] gallium: Fix build with llvm 18 and 19
|
||||
|
||||
- CodeGenOpt::Level changed to CodeGenOoptLevel. [1]
|
||||
- llvm::sys::getHostCPUFeatures() now returns the features instead of
|
||||
modifying the passed in argument. [2]
|
||||
|
||||
Upstream-Status: Backport [1][https://gitlab.freedesktop.org/mesa/mesa/-/commit/f79617fe804ea6524651ff1bc3a91098d3199179]
|
||||
Upstream-Status: Backport [2][https://gitlab.freedesktop.org/mesa/mesa/-/commit/fa9cd89a85b904615ebc11da609445b5b751e68d]
|
||||
|
||||
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
|
||||
---
|
||||
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 14 ++++++++++++--
|
||||
1 file changed, 12 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
|
||||
index 5e7a30a6cc2..dbc777e3096 100644
|
||||
--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
|
||||
+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
|
||||
@@ -366,7 +366,11 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
|
||||
builder.setEngineKind(EngineKind::JIT)
|
||||
.setErrorStr(&Error)
|
||||
.setTargetOptions(options)
|
||||
+#if LLVM_VERSION_MAJOR >= 18
|
||||
+ .setOptLevel((CodeGenOptLevel)OptLevel);
|
||||
+#else
|
||||
.setOptLevel((CodeGenOpt::Level)OptLevel);
|
||||
+#endif
|
||||
|
||||
#if DETECT_OS_WINDOWS
|
||||
/*
|
||||
@@ -394,8 +398,14 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
|
||||
* which allows us to enable/disable code generation based
|
||||
* on the results of cpuid on these architectures.
|
||||
*/
|
||||
- llvm::StringMap<bool> features;
|
||||
- llvm::sys::getHostCPUFeatures(features);
|
||||
+ #if LLVM_VERSION_MAJOR >= 19
|
||||
+ /* llvm-19+ returns StringMap from getHostCPUFeatures.
|
||||
+ */
|
||||
+ auto features = llvm::sys::getHostCPUFeatures();
|
||||
+ #else
|
||||
+ llvm::StringMap<bool> features;
|
||||
+ llvm::sys::getHostCPUFeatures(features);
|
||||
+ #endif
|
||||
|
||||
for (StringMapIterator<bool> f = features.begin();
|
||||
f != features.end();
|
||||
--
|
||||
2.17.1
|
||||
@@ -19,6 +19,8 @@ SRC_URI = " \
|
||||
file://0001-freedreno-pm4-Use-unsigned-instead-of-uint-to-fix-mu.patch \
|
||||
file://0001-gallium-Fix-build-with-llvm-17.patch \
|
||||
file://0001-fix-gallivm-limit-usage-of-LLVMContextSetOpaquePoint.patch \
|
||||
file://0001-fix-gallivm-fix-LLVM-include-of-Host-h-moved-to-TargetParser.patch \
|
||||
file://0001-gallium-Fix-build-with-llvm-18-and-19.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
@@ -28,7 +30,8 @@ PACKAGECONFIG:append = " \
|
||||
${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-sgx-ddk-km', 'sgx', '', d)} \
|
||||
"
|
||||
|
||||
SRCREV = "1be98ba80452ebe38546a7fca26b5a70f2629083"
|
||||
SRCREV = "c9f0919367589b38f5682183846de9d60eec082d"
|
||||
PV = "22.3.5"
|
||||
|
||||
PVR_DISPLAY_CONTROLLER_ALIAS ??= "tidss"
|
||||
PACKAGECONFIG[pvr] = "-Dgallium-pvr-alias=${PVR_DISPLAY_CONTROLLER_ALIAS},"
|
||||
|
||||
@@ -16,6 +16,7 @@ SRC_URI = " \
|
||||
file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \
|
||||
file://0001-gallium-Fix-build-with-llvm-17.patch \
|
||||
file://0001-meson-Disable-cmake-dependency-detector-for-llvm.patch \
|
||||
file://0001-gallium-Fix-build-with-llvm-18-and-19.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
@@ -25,7 +26,8 @@ PACKAGECONFIG:append = " \
|
||||
${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-sgx-ddk-km', 'sgx', '', d)} \
|
||||
"
|
||||
|
||||
SRCREV = "b12290126ba6a154f0e8b0a8c8b2b0d64f98e427"
|
||||
SRCREV = "0e75e7ded360ea6aee4140393b30960e152f3994"
|
||||
PV = "23.2.1"
|
||||
|
||||
PVR_DISPLAY_CONTROLLER_ALIAS ??= "tidss"
|
||||
PACKAGECONFIG[pvr] = "-Dgallium-pvr-alias=${PVR_DISPLAY_CONTROLLER_ALIAS},"
|
||||
|
||||
@@ -109,7 +109,7 @@ python __anonymous() {
|
||||
mlprefix = d.getVar("MLPREFIX")
|
||||
pkgs = " " + " ".join(mlprefix + x + suffix for x in p[1:])
|
||||
d.setVar("DEBIAN_NOAUTONAME:" + fullp, "1")
|
||||
d.setVar("INSANE_SKIP:" + fullp, "dev-so")
|
||||
d.setVar("INSANE_SKIP:" + fullp, "dev-so ldflags")
|
||||
d.appendVar("RRECOMMENDS:" + fullp, " ${MLPREFIX}ti-img-rogue-umlibs" + suffix)
|
||||
}
|
||||
|
||||
@@ -129,10 +129,12 @@ RDEPENDS:libopencl-rogue += "opencl-icd-loader"
|
||||
RRECOMMENDS:libopencl-rogue += "libopencl-rogue-tools"
|
||||
FILES:libopencl-rogue-tools += "${bindir}/ocl*"
|
||||
DEBIAN_NOAUTONAME:libopencl-rogue-tools = "1"
|
||||
INSANE_SKIP:libopencl-rogue-tools = "ldflags"
|
||||
|
||||
# optional tools and tests
|
||||
FILES:${PN}-tools = "${bindir}/"
|
||||
RDEPENDS:${PN}-tools = "python3-core ${PN}"
|
||||
INSANE_SKIP:${PN}-tools = "ldflags"
|
||||
|
||||
# required firmware
|
||||
FILES:${PN}-firmware = "${base_libdir}/firmware/*"
|
||||
@@ -142,4 +144,4 @@ RRECOMMENDS:${PN} += " \
|
||||
${PN}-tools \
|
||||
"
|
||||
|
||||
INSANE_SKIP:${PN} += "already-stripped dev-so"
|
||||
INSANE_SKIP:${PN} += "already-stripped dev-so ldflags"
|
||||
|
||||
@@ -8,18 +8,19 @@ inherit bin_package
|
||||
INHIBIT_DEFAULT_DEPS = ""
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|am62xx|am62pxx|j722s"
|
||||
COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|j742s2|am62xx|am62pxx|j722s"
|
||||
|
||||
PR = "r3"
|
||||
|
||||
BRANCH = "linuxws/scarthgap/k6.6/${PV}"
|
||||
SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-umlibs.git;protocol=https;branch=${BRANCH}"
|
||||
SRCREV = "707e042ee632f61c1f931402d8fc491358598373"
|
||||
SRCREV = "ba93a3e38c683ccb03a7cf8f2e7dffe2f9cbcf1c"
|
||||
S = "${WORKDIR}/git/targetfs/${TARGET_PRODUCT}/${PVR_WS}/${PVR_BUILD}"
|
||||
|
||||
TARGET_PRODUCT:j721e = "j721e_linux"
|
||||
TARGET_PRODUCT:j721s2 = "j721s2_linux"
|
||||
TARGET_PRODUCT:j784s4 = "j784s4_linux"
|
||||
TARGET_PRODUCT:j742s2 = "j784s4_linux"
|
||||
TARGET_PRODUCT:am62xx = "am62_linux"
|
||||
TARGET_PRODUCT:am62pxx = "am62p_linux"
|
||||
TARGET_PRODUCT:j722s = "j722s_linux"
|
||||
@@ -129,6 +130,7 @@ RDEPENDS:libopencl-rogue += "opencl-icd-loader"
|
||||
RRECOMMENDS:libopencl-rogue += "libopencl-rogue-tools"
|
||||
FILES:libopencl-rogue-tools += "${bindir}/ocl*"
|
||||
DEBIAN_NOAUTONAME:libopencl-rogue-tools = "1"
|
||||
INSANE_SKIP:libopencl-rogue-tools = "ldflags"
|
||||
|
||||
# optional tools and tests
|
||||
FILES:${PN}-tools = "${bindir}/"
|
||||
|
||||
@@ -13,7 +13,7 @@ BRANCH = "${PV}/mesa/glibc-2.35"
|
||||
SRC_URI = " \
|
||||
git://git.ti.com/git/graphics/omap5-sgx-ddk-um-linux.git;protocol=https;branch=${BRANCH} \
|
||||
"
|
||||
SRCREV = "70364424dd496833fad5b243c9e6cc8b077f04ac"
|
||||
SRCREV = "84a396a4fb379f10931421e489ac8a199d6a9f2c"
|
||||
|
||||
INITSCRIPT_NAME = "rc.pvr"
|
||||
INITSCRIPT_PARAMS = "defaults 8"
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
From 2c78d22a78584f2a17eb33b5b5fd6fa602c2af8d Mon Sep 17 00:00:00 2001
|
||||
From: Ryan Eatmon <reatmon@ti.com>
|
||||
Date: Wed, 17 Jul 2024 16:19:20 -0500
|
||||
Subject: [PATCH] drivers: gpu: drm: msm: registers: improve reproducibility
|
||||
|
||||
The files generated by gen_header.py capture the source path to the
|
||||
input files and the date. While that can be informative, it varies
|
||||
based on where and when the kernel was built as the full path is
|
||||
captured.
|
||||
|
||||
Since all of the files that this tool is run on is under the drivers
|
||||
directory, this modifies the application to strip all of the path before
|
||||
drivers. Additionally it prints <stripped> instead of the date.
|
||||
|
||||
Both changes solve the reproducibility issue.
|
||||
|
||||
Upstream-Status: Inappropriate
|
||||
|
||||
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
|
||||
---
|
||||
drivers/gpu/drm/msm/registers/gen_header.py | 8 +++++---
|
||||
1 file changed, 5 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/drivers/gpu/drm/msm/registers/gen_header.py b/drivers/gpu/drm/msm/registers/gen_header.py
|
||||
index 3926485bb197..a409404627c7 100644
|
||||
--- a/drivers/gpu/drm/msm/registers/gen_header.py
|
||||
+++ b/drivers/gpu/drm/msm/registers/gen_header.py
|
||||
@@ -11,6 +11,7 @@ import collections
|
||||
import argparse
|
||||
import time
|
||||
import datetime
|
||||
+import re
|
||||
|
||||
class Error(Exception):
|
||||
def __init__(self, message):
|
||||
@@ -877,13 +878,14 @@ The rules-ng-ng source files this header was generated from are:
|
||||
""")
|
||||
maxlen = 0
|
||||
for filepath in p.xml_files:
|
||||
- maxlen = max(maxlen, len(filepath))
|
||||
+ new_filepath = re.sub("^.+drivers","drivers",filepath)
|
||||
+ maxlen = max(maxlen, len(new_filepath))
|
||||
for filepath in p.xml_files:
|
||||
- pad = " " * (maxlen - len(filepath))
|
||||
+ pad = " " * (maxlen - len(new_filepath))
|
||||
filesize = str(os.path.getsize(filepath))
|
||||
filesize = " " * (7 - len(filesize)) + filesize
|
||||
filetime = time.ctime(os.path.getmtime(filepath))
|
||||
- print("- " + filepath + pad + " (" + filesize + " bytes, from " + filetime + ")")
|
||||
+ print("- " + new_filepath + pad + " (" + filesize + " bytes, from <stripped>)")
|
||||
if p.copyright_year:
|
||||
current_year = str(datetime.date.today().year)
|
||||
print()
|
||||
--
|
||||
2.17.1
|
||||
@@ -1,46 +0,0 @@
|
||||
From 3cd29a3d7c25cca9989e7d8966141f725fa99c68 Mon Sep 17 00:00:00 2001
|
||||
From: Palmer Dabbelt <palmer@rivosinc.com>
|
||||
Date: Fri, 13 Jan 2023 09:30:33 -0800
|
||||
Subject: [PATCH] gcc-plugins: Fix build for upcoming GCC release
|
||||
|
||||
The upcoming GCC release has refactored the gimple plugin interface a
|
||||
bit and unless gimple-iterator.h is included before gimple-fold.h I end
|
||||
up with a bunch of missing declarations when building the stack
|
||||
protector plugin.
|
||||
|
||||
Upstream-Status: Backport [https://lore.kernel.org/all/20230113173033.4380-1-palmer@rivosinc.com/]
|
||||
Reported-by: Palmer Dabbelt <palmer@rivosinc.com>
|
||||
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
|
||||
Link: https://lore.kernel.org/all/20230113173033.4380-1-palmer@rivosinc.com/
|
||||
Cc: linux-hardening@vger.kernel.org
|
||||
Signed-off-by: Kees Cook <keescook@chromium.org>
|
||||
---
|
||||
scripts/gcc-plugins/gcc-common.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/scripts/gcc-plugins/gcc-common.h
|
||||
+++ b/scripts/gcc-plugins/gcc-common.h
|
||||
@@ -108,7 +108,9 @@
|
||||
#include "varasm.h"
|
||||
#include "stor-layout.h"
|
||||
#include "internal-fn.h"
|
||||
+#include "gimple.h"
|
||||
#include "gimple-expr.h"
|
||||
+#include "gimple-iterator.h"
|
||||
#include "gimple-fold.h"
|
||||
#include "context.h"
|
||||
#include "tree-ssa-alias.h"
|
||||
@@ -124,13 +126,10 @@
|
||||
#include "gimplify.h"
|
||||
#endif
|
||||
|
||||
-#include "gimple.h"
|
||||
-
|
||||
#if BUILDING_GCC_VERSION >= 4009
|
||||
#include "tree-ssa-operands.h"
|
||||
#include "tree-phinodes.h"
|
||||
#include "tree-cfg.h"
|
||||
-#include "gimple-iterator.h"
|
||||
#include "gimple-ssa.h"
|
||||
#include "ssa-iterators.h"
|
||||
#endif
|
||||
@@ -0,0 +1,31 @@
|
||||
From a51ebf08cec81d84ac258da1c0ead139d6ddc94f Mon Sep 17 00:00:00 2001
|
||||
From: Ryan Eatmon <reatmon@ti.com>
|
||||
Date: Tue, 2 Jul 2024 11:07:14 -0500
|
||||
Subject: [master][PATCH] perf python: Fix compile for 32bit platforms
|
||||
|
||||
The definition for perf_sample is missing on 32bit compiles:
|
||||
|
||||
tools/perf/util/python.c:75:28: error: field 'sample' has incomplete type
|
||||
75 | struct perf_sample sample;
|
||||
|
||||
Adding #include "sample.h" fixes it.
|
||||
|
||||
Upstream-Status: Inappropriate
|
||||
|
||||
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
|
||||
---
|
||||
tools/perf/util/python.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c
|
||||
index 3be882b2e845..de64ca3cf2d1 100644
|
||||
--- a/tools/perf/util/python.c
|
||||
+++ b/tools/perf/util/python.c
|
||||
@@ -1,3 +1,5 @@
|
||||
+#include "sample.h"
|
||||
+
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include <Python.h>
|
||||
#include <structmember.h>
|
||||
--
|
||||
2.17.1
|
||||
@@ -0,0 +1,60 @@
|
||||
From 4907fa9ff1dbdd72ce9fa7855091fb604a35a62d Mon Sep 17 00:00:00 2001
|
||||
From: Ryan Eatmon <reatmon@ti.com>
|
||||
Date: Wed, 17 Jul 2024 14:55:10 -0500
|
||||
Subject: [PATCH] vt/conmakehash: improve reproducibility for v6.10
|
||||
|
||||
The file generated by conmakehash capture the application
|
||||
path used to generate the file. While that can be informative,
|
||||
it varies based on where the kernel was built, as the full
|
||||
path is captured.
|
||||
|
||||
We tweak the application to use a second input as the "capture
|
||||
name", and then modify the Makefile to pass the basename of
|
||||
the source, making it reproducible.
|
||||
|
||||
This could be improved by using some sort of path mapping,
|
||||
or the application manipualing argv[1] itself, but for now
|
||||
this solves the reprodicibility issue.
|
||||
|
||||
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
|
||||
|
||||
Upstream-Status: Inappropriate
|
||||
|
||||
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
|
||||
|
||||
This is a minior rework of Bruce's original patch for the v6.10 kernel.
|
||||
|
||||
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
|
||||
---
|
||||
drivers/tty/vt/Makefile | 2 +-
|
||||
drivers/tty/vt/conmakehash.c | 2 ++
|
||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/drivers/tty/vt/Makefile b/drivers/tty/vt/Makefile
|
||||
index 2c8ce8b592ed..8532077ed3bb 100644
|
||||
--- a/drivers/tty/vt/Makefile
|
||||
+++ b/drivers/tty/vt/Makefile
|
||||
@@ -15,7 +15,7 @@ clean-files := consolemap_deftbl.c defkeymap.c
|
||||
hostprogs += conmakehash
|
||||
|
||||
quiet_cmd_conmk = CONMK $@
|
||||
- cmd_conmk = $(obj)/conmakehash $< > $@
|
||||
+ cmd_conmk = $(obj)/conmakehash $< $(shell basename $<) > $@
|
||||
|
||||
$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) $(obj)/conmakehash
|
||||
$(call cmd,conmk)
|
||||
diff --git a/drivers/tty/vt/conmakehash.c b/drivers/tty/vt/conmakehash.c
|
||||
index dc2177fec715..9cd4096a8ffa 100644
|
||||
--- a/drivers/tty/vt/conmakehash.c
|
||||
+++ b/drivers/tty/vt/conmakehash.c
|
||||
@@ -112,6 +112,8 @@ int main(int argc, char *argv[])
|
||||
else
|
||||
rel_tblname = tblname;
|
||||
|
||||
+ rel_tblname = argv[2];
|
||||
+
|
||||
/* For now we assume the default font is always 256 characters. */
|
||||
fontlen = 256;
|
||||
|
||||
--
|
||||
2.17.1
|
||||
@@ -0,0 +1,56 @@
|
||||
From 0f586f4ee8adacac79b64d1f3d47799a5eb7fbea Mon Sep 17 00:00:00 2001
|
||||
From: Bruce Ashfield <bruce.ashfield@gmail.com>
|
||||
Date: Sun, 10 Jul 2022 21:37:07 -0400
|
||||
Subject: [PATCH] vt/conmakehash: improve reproducibility
|
||||
|
||||
The file generated by conmakehash capture the application
|
||||
path used to generate the file. While that can be informative,
|
||||
it varies based on where the kernel was built, as the full
|
||||
path is captured.
|
||||
|
||||
We tweak the application to use a second input as the "capture
|
||||
name", and then modify the Makefile to pass the basename of
|
||||
the source, making it reproducible.
|
||||
|
||||
This could be improved by using some sort of path mapping,
|
||||
or the application manipualing argv[1] itself, but for now
|
||||
this solves the reprodicibility issue.
|
||||
|
||||
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
|
||||
|
||||
Upstream-Status: Inappropriate
|
||||
|
||||
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
|
||||
---
|
||||
drivers/tty/vt/Makefile | 2 +-
|
||||
drivers/tty/vt/conmakehash.c | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/drivers/tty/vt/Makefile b/drivers/tty/vt/Makefile
|
||||
index fe30ce512819..cb51c21b58f9 100644
|
||||
--- a/drivers/tty/vt/Makefile
|
||||
+++ b/drivers/tty/vt/Makefile
|
||||
@@ -15,7 +15,7 @@ clean-files := consolemap_deftbl.c defkeymap.c
|
||||
hostprogs += conmakehash
|
||||
|
||||
quiet_cmd_conmk = CONMK $@
|
||||
- cmd_conmk = $(obj)/conmakehash $< > $@
|
||||
+ cmd_conmk = $(obj)/conmakehash $< $(shell basename $<) > $@
|
||||
|
||||
$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) $(obj)/conmakehash
|
||||
$(call cmd,conmk)
|
||||
diff --git a/drivers/tty/vt/conmakehash.c b/drivers/tty/vt/conmakehash.c
|
||||
index cddd789fe46e..d62510b280e9 100644
|
||||
--- a/drivers/tty/vt/conmakehash.c
|
||||
+++ b/drivers/tty/vt/conmakehash.c
|
||||
@@ -253,7 +253,7 @@ int main(int argc, char *argv[])
|
||||
#include <linux/types.h>\n\
|
||||
\n\
|
||||
u8 dfont_unicount[%d] = \n\
|
||||
-{\n\t", argv[1], fontlen);
|
||||
+{\n\t", argv[2], fontlen);
|
||||
|
||||
for ( i = 0 ; i < fontlen ; i++ )
|
||||
{
|
||||
--
|
||||
2.25.1
|
||||
@@ -1,111 +0,0 @@
|
||||
|
||||
Adaption of a patch [A] applied to meta-arm for the kernel. But since TI has it's own
|
||||
kernel we have to "adjust" the patch to match our files.
|
||||
|
||||
[A] https://patchwork.yoctoproject.org/project/arm/patch/20220824025819.4888-1-jon.mason@arm.com/#5104
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
|
||||
|
||||
|
||||
|
||||
From 1b2013986271de39360cf79e62ed9b7d2cc59f9b Mon Sep 17 00:00:00 2001
|
||||
From: Andres Freund <andres@anarazel.de>
|
||||
Date: Wed, 22 Jun 2022 11:19:18 -0700
|
||||
Subject: [PATCH] init_disassemble_info() signature changes causes compile
|
||||
failures
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Hi,
|
||||
|
||||
binutils changed the signature of init_disassemble_info(), which now causes
|
||||
perf and bpftool to fail to compile (e.g. on debian unstable).
|
||||
|
||||
Relevant binutils commit: https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=60a3da00bd5407f07d64dff82a4dae98230dfaac
|
||||
|
||||
util/annotate.c: In function ?symbol__disassemble_bpf?:
|
||||
util/annotate.c:1765:9: error: too few arguments to function ?init_disassemble_info?
|
||||
1765 | init_disassemble_info(&info, s,
|
||||
| ^~~~~~~~~~~~~~~~~~~~~
|
||||
In file included from util/annotate.c:1718:
|
||||
/usr/include/dis-asm.h:472:13: note: declared here
|
||||
472 | extern void init_disassemble_info (struct disassemble_info *dinfo, void *stream,
|
||||
| ^~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
with equivalent failures in
|
||||
|
||||
tools/bpf/bpf_jit_disasm.c
|
||||
tools/bpf/bpftool/jit_disasm.c
|
||||
|
||||
The fix is easy enough, add a wrapper around fprintf() that conforms to the
|
||||
new signature.
|
||||
|
||||
However I assume the necessary feature test and wrapper should only be added
|
||||
once? I don't know the kernel stuff well enough to choose the right structure
|
||||
here.
|
||||
|
||||
Attached is my local fix for perf. Obviously would need work to be a real
|
||||
solution.
|
||||
|
||||
Greetings,
|
||||
|
||||
Andres Freund
|
||||
---
|
||||
|
||||
binutils 2.39 changed the signature of init_disassemble_info(),
|
||||
which now causes perf and bpftool to fail to compile.
|
||||
|
||||
Relevant binutils commit: [1]
|
||||
|
||||
There is a proper fix in development upstream[2].
|
||||
This is a work-around for older kernels.
|
||||
|
||||
[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=60a3da00bd5407f07d64dff82a4dae98230dfaac
|
||||
[2] https://patchwork.kernel.org/project/netdevbpf/cover/20220801013834.156015-1-andres@anarazel.de/
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Anton Antonov <Anton.Antonov@arm.com>
|
||||
|
||||
|
||||
tools/perf/util/annotate.c | 15 ++++++++++++++-
|
||||
1 file changed, 14 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c
|
||||
index 308189454788..6573d2b07548 100644
|
||||
--- a/tools/perf/util/annotate.c
|
||||
+++ b/tools/perf/util/annotate.c
|
||||
@@ -1685,6 +1685,18 @@
|
||||
#include <bfd.h>
|
||||
#include <dis-asm.h>
|
||||
|
||||
+static int fprintf_styled(void *, enum disassembler_style, const char* fmt, ...)
|
||||
+{
|
||||
+ va_list args;
|
||||
+ int r;
|
||||
+
|
||||
+ va_start(args, fmt);
|
||||
+ r = vprintf(fmt, args);
|
||||
+ va_end(args);
|
||||
+
|
||||
+ return r;
|
||||
+}
|
||||
+
|
||||
static int symbol__disassemble_bpf(struct symbol *sym,
|
||||
struct annotate_args *args)
|
||||
{
|
||||
@@ -1727,7 +1739,8 @@ static int symbol__disassemble_bpf(struct symbol *sym,
|
||||
goto out;
|
||||
}
|
||||
init_disassemble_info(&info, s,
|
||||
- (fprintf_ftype) fprintf);
|
||||
+ (fprintf_ftype) fprintf,
|
||||
+ fprintf_styled);
|
||||
|
||||
info.arch = bfd_get_arch(bfdf);
|
||||
info.mach = bfd_get_mach(bfdf);
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
From 5f2779dfa7b8cc7dfd4a1b6586d86e0d193266f3 Mon Sep 17 00:00:00 2001
|
||||
From: Arnd Bergmann <arnd@arndb.de>
|
||||
Date: Wed, 18 Jan 2023 09:07:01 +0100
|
||||
Subject: [PATCH] blk-iocost: avoid 64-bit division in ioc_timer_fn
|
||||
|
||||
The behavior of 'enum' types has changed in gcc-13, so now the
|
||||
UNBUSY_THR_PCT constant is interpreted as a 64-bit number because
|
||||
it is defined as part of the same enum definition as some other
|
||||
constants that do not fit within a 32-bit integer. This in turn
|
||||
leads to some inefficient code on 32-bit architectures as well
|
||||
as a link error:
|
||||
|
||||
arm-linux-gnueabi/bin/arm-linux-gnueabi-ld: block/blk-iocost.o: in function `ioc_timer_fn':
|
||||
blk-iocost.c:(.text+0x68e8): undefined reference to `__aeabi_uldivmod'
|
||||
arm-linux-gnueabi-ld: blk-iocost.c:(.text+0x6908): undefined reference to `__aeabi_uldivmod'
|
||||
|
||||
Split the enum definition to keep the 64-bit timing constants in
|
||||
a separate enum type from those constants that can clearly fit
|
||||
within a smaller type.
|
||||
|
||||
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
|
||||
Acked-by: Tejun Heo <tj@kernel.org>
|
||||
Link: https://lore.kernel.org/r/20230118080706.3303186-1-arnd@kernel.org
|
||||
Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
||||
---
|
||||
block/blk-iocost.c | 8 +++++---
|
||||
1 file changed, 5 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/block/blk-iocost.c b/block/blk-iocost.c
|
||||
index 6955605629e4..b691b6bb498f 100644
|
||||
--- a/block/blk-iocost.c
|
||||
+++ b/block/blk-iocost.c
|
||||
@@ -258,6 +258,11 @@ enum {
|
||||
VRATE_MIN = VTIME_PER_USEC * VRATE_MIN_PPM / MILLION,
|
||||
VRATE_CLAMP_ADJ_PCT = 4,
|
||||
|
||||
+ /* switch iff the conditions are met for longer than this */
|
||||
+ AUTOP_CYCLE_NSEC = 10LLU * NSEC_PER_SEC,
|
||||
+};
|
||||
+
|
||||
+enum {
|
||||
/* if IOs end up waiting for requests, issue less */
|
||||
RQ_WAIT_BUSY_PCT = 5,
|
||||
|
||||
@@ -296,9 +301,6 @@ enum {
|
||||
/* don't let cmds which take a very long time pin lagging for too long */
|
||||
MAX_LAGGING_PERIODS = 10,
|
||||
|
||||
- /* switch iff the conditions are met for longer than this */
|
||||
- AUTOP_CYCLE_NSEC = 10LLU * NSEC_PER_SEC,
|
||||
-
|
||||
/*
|
||||
* Count IO size in 4k pages. The 12bit shift helps keeping
|
||||
* size-proportional components of cost calculation in closer
|
||||
--
|
||||
2.40.1
|
||||
@@ -1,54 +0,0 @@
|
||||
From ff1cc97b1f4c10db224f276d9615b22835b8c424 Mon Sep 17 00:00:00 2001
|
||||
From: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
|
||||
Date: Tue, 13 Dec 2022 13:08:26 +0100
|
||||
Subject: [PATCH] block/blk-iocost (gcc13): keep large values in a new enum
|
||||
|
||||
Since gcc13, each member of an enum has the same type as the enum [1]. And
|
||||
that is inherited from its members. Provided:
|
||||
VTIME_PER_SEC_SHIFT = 37,
|
||||
VTIME_PER_SEC = 1LLU << VTIME_PER_SEC_SHIFT,
|
||||
...
|
||||
AUTOP_CYCLE_NSEC = 10LLU * NSEC_PER_SEC,
|
||||
the named type is unsigned long.
|
||||
|
||||
This generates warnings with gcc-13:
|
||||
block/blk-iocost.c: In function 'ioc_weight_prfill':
|
||||
block/blk-iocost.c:3037:37: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int'
|
||||
|
||||
block/blk-iocost.c: In function 'ioc_weight_show':
|
||||
block/blk-iocost.c:3047:34: error: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int'
|
||||
|
||||
So split the anonymous enum with large values to a separate enum, so
|
||||
that they don't affect other members.
|
||||
|
||||
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36113
|
||||
|
||||
Cc: Martin Liska <mliska@suse.cz>
|
||||
Cc: Tejun Heo <tj@kernel.org>
|
||||
Cc: Josef Bacik <josef@toxicpanda.com>
|
||||
Cc: Jens Axboe <axboe@kernel.dk>
|
||||
Cc: cgroups@vger.kernel.org
|
||||
Cc: linux-block@vger.kernel.org
|
||||
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
|
||||
Link: https://lore.kernel.org/r/20221213120826.17446-1-jirislaby@kernel.org
|
||||
Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
||||
---
|
||||
block/blk-iocost.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/block/blk-iocost.c b/block/blk-iocost.c
|
||||
index d1bdc12deaa7..549ddc9e0c6f 100644
|
||||
--- a/block/blk-iocost.c
|
||||
+++ b/block/blk-iocost.c
|
||||
@@ -232,7 +232,9 @@ enum {
|
||||
|
||||
/* 1/64k is granular enough and can easily be handled w/ u32 */
|
||||
WEIGHT_ONE = 1 << 16,
|
||||
+};
|
||||
|
||||
+enum {
|
||||
/*
|
||||
* As vtime is used to calculate the cost of each IO, it needs to
|
||||
* be fairly high precision. For example, it should be able to
|
||||
--
|
||||
2.40.1
|
||||
@@ -13,11 +13,19 @@ KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# 6.6 Mainline version
|
||||
SRCREV = "ffc253263a1375a65fa6c9f62a893e9767fbebfa"
|
||||
PV = "6.6"
|
||||
# 6.12 Mainline version
|
||||
SRCREV = "adc218676eef25575469234709c2d87185ca223a"
|
||||
PV = "6.12"
|
||||
|
||||
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=https;branch=master"
|
||||
KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git"
|
||||
BRANCH = "master"
|
||||
|
||||
KERNEL_DEFCONFIG = ""
|
||||
|
||||
KERNEL_REPRODUCIBILITY_PATCHES = " \
|
||||
file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \
|
||||
file://0001-perf-python-Fix-compile-for-32bit-platforms.patch \
|
||||
"
|
||||
|
||||
DEFCONFIG_NAME = "multi_v7_defconfig"
|
||||
DEFCONFIG_NAME:omapl138 = "davinci_all_defconfig"
|
||||
|
||||
@@ -8,4 +8,6 @@ include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('
|
||||
SRCREV = "6465e260f48790807eef06b583b38ca9789b6072"
|
||||
PV = "6.6.0-rc3+git"
|
||||
|
||||
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git;protocol=https;branch=master"
|
||||
KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git"
|
||||
|
||||
KERNEL_REPRODUCIBILITY_PATCHES = ""
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user