summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/conf/machine/include/ti-bsp.inc
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@konsulko.com>2024-06-14 17:57:18 -0400
committerRyan Eatmon <reatmon@ti.com>2024-06-15 08:05:34 -0500
commitfdfa6e2f13f5d58223b82819cbf87081d7b11750 (patch)
treeb383d776538b664fbb55aba2291d8fe32240a224 /meta-ti-bsp/conf/machine/include/ti-bsp.inc
parent16a40af52202e0a44b3009b9674bd2b5c899e709 (diff)
downloadmeta-ti-fdfa6e2f13f5d58223b82819cbf87081d7b11750.tar.gz
conf/machine, ti-bsp: add support for multiple BSP providers
This adds a facility to define multiple supported BSPs with their own preferences for individual components, as well as lets machine configs specify conditional configurations for different BSPs. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-bsp/conf/machine/include/ti-bsp.inc')
-rw-r--r--meta-ti-bsp/conf/machine/include/ti-bsp.inc109
1 files changed, 109 insertions, 0 deletions
diff --git a/meta-ti-bsp/conf/machine/include/ti-bsp.inc b/meta-ti-bsp/conf/machine/include/ti-bsp.inc
new file mode 100644
index 00000000..953737a0
--- /dev/null
+++ b/meta-ti-bsp/conf/machine/include/ti-bsp.inc
@@ -0,0 +1,109 @@
1# Support multiple BSP providers
2# The main input is TI_PREFERRED_BSP, which translates into default
3# preferences for kernel, bootloader and graphics components, as
4# well as a dedicated machine override.
5
6# Supported options are: mainline, ti-6_6, ti-6_1, bb_org
7TI_PREFERRED_BSP ??= "ti-6_6"
8
9# Use bsp-* namespace for overrides
10MACHINEOVERRIDES =. "bsp-${TI_PREFERRED_BSP}:"
11
12# ==========
13# mainline
14# latest upstream/mainline kernel, u-boot
15# ==========
16BSP_KERNEL_PROVIDER:bsp-mainline = "linux-ti-mainline"
17BSP_KERNEL_VERSION:bsp-mainline = "%"
18BSP_BOOTLOADER_PROVIDER:bsp-mainline = "u-boot-ti-mainline"
19BSP_BOOTLOADER_VERSION:bsp-mainline = "%"
20
21# GPU support requires out-of-tree SGX and Rogue drivers not available
22# in mainline, usually present in TI staging or derivative like BB.org
23MACHINE_FEATURES:remove:bsp-mainline = "gpu"
24
25# ==========
26# ti-6_6
27# TI staging kernel 6.6, u-boot 2024.04
28# ==========
29BSP_KERNEL_PROVIDER:bsp-ti-6_6 = "linux-ti-staging"
30BSP_KERNEL_VERSION:bsp-ti-6_6 = "6.6%"
31BSP_BOOTLOADER_PROVIDER:bsp-ti-6_6 = "u-boot-ti-staging"
32BSP_BOOTLOADER_VERSION:bsp-ti-6_6 = "2024%"
33
34# Only Rogue is enabled so far, SGX falls back to SW rendering
35BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_6 = "ti-img-rogue-driver"
36BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_6 = "24%"
37BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_6 = "24%"
38BSP_MESA_PVR_VERSION:bsp-ti-6_6 = "23%"
39
40# ==========
41# ti-6_1
42# TI staging kernel 6.1, u-boot 2023.04
43# ==========
44BSP_KERNEL_PROVIDER:bsp-ti-6_1 = "linux-ti-staging"
45BSP_KERNEL_VERSION:bsp-ti-6_1 = "6.1%"
46BSP_BOOTLOADER_PROVIDER:bsp-ti-6_1 = "u-boot-ti-staging"
47BSP_BOOTLOADER_VERSION:bsp-ti-6_1 = "2023%"
48
49BSP_SGX_DRIVER_PROVIDER:bsp-ti-6_1 = "ti-sgx-ddk-km"
50BSP_SGX_DRIVER_VERSION:bsp-ti-6_1 = "1.17%"
51BSP_SGX_UMLIBS_VERSION:bsp-ti-6_1 = "1.17%"
52BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_1 = "ti-img-rogue-driver"
53BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_1 = "23%"
54BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_1 = "23%"
55BSP_MESA_PVR_VERSION:bsp-ti-6_1 = "22%"
56
57# ==========
58# bb_org
59# BeagleBoard.org kernel 6.1, u-boot 2023.04
60# based on TI staging trees with extra Beagle-specific features
61# but may not be up-to-date with TI version
62# ==========
63BSP_KERNEL_PROVIDER:bsp-bb_org = "linux-bb.org"
64BSP_KERNEL_VERSION:bsp-bb_org = "%"
65BSP_BOOTLOADER_PROVIDER:bsp-bb_org = "u-boot-bb.org"
66BSP_BOOTLOADER_VERSION:bsp-bb_org = "%"
67
68BSP_SGX_DRIVER_PROVIDER:bsp-bb_org = "ti-sgx-ddk-km"
69BSP_SGX_DRIVER_VERSION:bsp-bb_org = "1.17%"
70BSP_SGX_UMLIBS_VERSION:bsp-bb_org = "1.17%"
71BSP_ROGUE_DRIVER_PROVIDER:bsp-bb_org = "ti-img-rogue-driver"
72BSP_ROGUE_DRIVER_VERSION:bsp-bb_org = "23%"
73BSP_ROGUE_UMLIBS_VERSION:bsp-bb_org = "23%"
74BSP_MESA_PVR_VERSION:bsp-bb_org = "22%"
75
76# ==========
77# sane fallback defaults
78# if specific values are not defined or bsp is set incorrectly
79# use default preference TI staging and SW-rendering graphics
80# ==========
81BSP_KERNEL_PROVIDER ?= "linux-ti-staging"
82BSP_KERNEL_VERSION ?= "%"
83BSP_BOOTLOADER_PROVIDER ?= "u-boot-ti-staging"
84BSP_BOOTLOADER_VERSION ?= "%"
85
86BSP_SGX_DRIVER_PROVIDER ?= ""
87BSP_SGX_DRIVER_VERSION ?= ""
88BSP_ROGUE_DRIVER_PROVIDER ?= ""
89BSP_ROGUE_DRIVER_VERSION ?= ""
90BSP_SGX_UMLIBS_VERSION ?= ""
91BSP_ROGUE_UMLIBS_VERSION ?= ""
92BSP_MESA_PVR_VERSION ?= ""
93
94# ==========
95# global preferences
96# ==========
97PREFERRED_PROVIDER_virtual/kernel ?= "${BSP_KERNEL_PROVIDER}"
98PREFERRED_VERSION_${BSP_KERNEL_PROVIDER} ?= "${BSP_KERNEL_VERSION}"
99PREFERRED_PROVIDER_virtual/bootloader ?= "${BSP_BOOTLOADER_PROVIDER}"
100PREFERRED_PROVIDER_u-boot ?= "${BSP_BOOTLOADER_PROVIDER}"
101PREFERRED_VERSION_${BSP_BOOTLOADER_PROVIDER} ?= "${BSP_BOOTLOADER_VERSION}"
102
103# GPU provider gets set in machine configs, as some machines are headless
104# Select default preferred versions here
105PREFERRED_VERSION_ti-sgx-ddk-km ?= "${BSP_SGX_DRIVER_VERSION}"
106PREFERRED_VERSION_ti-sgx-ddk-um ?= "${BSP_SGX_UMLIBS_VERSION}"
107PREFERRED_VERSION_ti-img-rogue-driver ?= "${BSP_ROGUE_DRIVER_VERSION}"
108PREFERRED_VERSION_ti-img-rogue-umlibs ?= "${BSP_ROGUE_UMLIBS_VERSION}"
109PREFERRED_VERSION_mesa-pvr ?= "${BSP_MESA_PVR_VERSION}"