diff options
| author | Denys Dmytriyenko <denys@konsulko.com> | 2024-06-14 17:57:18 -0400 |
|---|---|---|
| committer | Ryan Eatmon <reatmon@ti.com> | 2024-06-15 08:05:34 -0500 |
| commit | fdfa6e2f13f5d58223b82819cbf87081d7b11750 (patch) | |
| tree | b383d776538b664fbb55aba2291d8fe32240a224 /meta-ti-bsp/conf/machine/include/ti-bsp.inc | |
| parent | 16a40af52202e0a44b3009b9674bd2b5c899e709 (diff) | |
| download | meta-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.inc | 109 |
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 | ||
| 7 | TI_PREFERRED_BSP ??= "ti-6_6" | ||
| 8 | |||
| 9 | # Use bsp-* namespace for overrides | ||
| 10 | MACHINEOVERRIDES =. "bsp-${TI_PREFERRED_BSP}:" | ||
| 11 | |||
| 12 | # ========== | ||
| 13 | # mainline | ||
| 14 | # latest upstream/mainline kernel, u-boot | ||
| 15 | # ========== | ||
| 16 | BSP_KERNEL_PROVIDER:bsp-mainline = "linux-ti-mainline" | ||
| 17 | BSP_KERNEL_VERSION:bsp-mainline = "%" | ||
| 18 | BSP_BOOTLOADER_PROVIDER:bsp-mainline = "u-boot-ti-mainline" | ||
| 19 | BSP_BOOTLOADER_VERSION:bsp-mainline = "%" | ||
| 20 | |||
| 21 | # GPU support requires out-of-tree SGX and Rogue drivers not available | ||
| 22 | # in mainline, usually present in TI staging or derivative like BB.org | ||
| 23 | MACHINE_FEATURES:remove:bsp-mainline = "gpu" | ||
| 24 | |||
| 25 | # ========== | ||
| 26 | # ti-6_6 | ||
| 27 | # TI staging kernel 6.6, u-boot 2024.04 | ||
| 28 | # ========== | ||
| 29 | BSP_KERNEL_PROVIDER:bsp-ti-6_6 = "linux-ti-staging" | ||
| 30 | BSP_KERNEL_VERSION:bsp-ti-6_6 = "6.6%" | ||
| 31 | BSP_BOOTLOADER_PROVIDER:bsp-ti-6_6 = "u-boot-ti-staging" | ||
| 32 | BSP_BOOTLOADER_VERSION:bsp-ti-6_6 = "2024%" | ||
| 33 | |||
| 34 | # Only Rogue is enabled so far, SGX falls back to SW rendering | ||
| 35 | BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_6 = "ti-img-rogue-driver" | ||
| 36 | BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_6 = "24%" | ||
| 37 | BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_6 = "24%" | ||
| 38 | BSP_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 | # ========== | ||
| 44 | BSP_KERNEL_PROVIDER:bsp-ti-6_1 = "linux-ti-staging" | ||
| 45 | BSP_KERNEL_VERSION:bsp-ti-6_1 = "6.1%" | ||
| 46 | BSP_BOOTLOADER_PROVIDER:bsp-ti-6_1 = "u-boot-ti-staging" | ||
| 47 | BSP_BOOTLOADER_VERSION:bsp-ti-6_1 = "2023%" | ||
| 48 | |||
| 49 | BSP_SGX_DRIVER_PROVIDER:bsp-ti-6_1 = "ti-sgx-ddk-km" | ||
| 50 | BSP_SGX_DRIVER_VERSION:bsp-ti-6_1 = "1.17%" | ||
| 51 | BSP_SGX_UMLIBS_VERSION:bsp-ti-6_1 = "1.17%" | ||
| 52 | BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_1 = "ti-img-rogue-driver" | ||
| 53 | BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_1 = "23%" | ||
| 54 | BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_1 = "23%" | ||
| 55 | BSP_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 | # ========== | ||
| 63 | BSP_KERNEL_PROVIDER:bsp-bb_org = "linux-bb.org" | ||
| 64 | BSP_KERNEL_VERSION:bsp-bb_org = "%" | ||
| 65 | BSP_BOOTLOADER_PROVIDER:bsp-bb_org = "u-boot-bb.org" | ||
| 66 | BSP_BOOTLOADER_VERSION:bsp-bb_org = "%" | ||
| 67 | |||
| 68 | BSP_SGX_DRIVER_PROVIDER:bsp-bb_org = "ti-sgx-ddk-km" | ||
| 69 | BSP_SGX_DRIVER_VERSION:bsp-bb_org = "1.17%" | ||
| 70 | BSP_SGX_UMLIBS_VERSION:bsp-bb_org = "1.17%" | ||
| 71 | BSP_ROGUE_DRIVER_PROVIDER:bsp-bb_org = "ti-img-rogue-driver" | ||
| 72 | BSP_ROGUE_DRIVER_VERSION:bsp-bb_org = "23%" | ||
| 73 | BSP_ROGUE_UMLIBS_VERSION:bsp-bb_org = "23%" | ||
| 74 | BSP_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 | # ========== | ||
| 81 | BSP_KERNEL_PROVIDER ?= "linux-ti-staging" | ||
| 82 | BSP_KERNEL_VERSION ?= "%" | ||
| 83 | BSP_BOOTLOADER_PROVIDER ?= "u-boot-ti-staging" | ||
| 84 | BSP_BOOTLOADER_VERSION ?= "%" | ||
| 85 | |||
| 86 | BSP_SGX_DRIVER_PROVIDER ?= "" | ||
| 87 | BSP_SGX_DRIVER_VERSION ?= "" | ||
| 88 | BSP_ROGUE_DRIVER_PROVIDER ?= "" | ||
| 89 | BSP_ROGUE_DRIVER_VERSION ?= "" | ||
| 90 | BSP_SGX_UMLIBS_VERSION ?= "" | ||
| 91 | BSP_ROGUE_UMLIBS_VERSION ?= "" | ||
| 92 | BSP_MESA_PVR_VERSION ?= "" | ||
| 93 | |||
| 94 | # ========== | ||
| 95 | # global preferences | ||
| 96 | # ========== | ||
| 97 | PREFERRED_PROVIDER_virtual/kernel ?= "${BSP_KERNEL_PROVIDER}" | ||
| 98 | PREFERRED_VERSION_${BSP_KERNEL_PROVIDER} ?= "${BSP_KERNEL_VERSION}" | ||
| 99 | PREFERRED_PROVIDER_virtual/bootloader ?= "${BSP_BOOTLOADER_PROVIDER}" | ||
| 100 | PREFERRED_PROVIDER_u-boot ?= "${BSP_BOOTLOADER_PROVIDER}" | ||
| 101 | PREFERRED_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 | ||
| 105 | PREFERRED_VERSION_ti-sgx-ddk-km ?= "${BSP_SGX_DRIVER_VERSION}" | ||
| 106 | PREFERRED_VERSION_ti-sgx-ddk-um ?= "${BSP_SGX_UMLIBS_VERSION}" | ||
| 107 | PREFERRED_VERSION_ti-img-rogue-driver ?= "${BSP_ROGUE_DRIVER_VERSION}" | ||
| 108 | PREFERRED_VERSION_ti-img-rogue-umlibs ?= "${BSP_ROGUE_UMLIBS_VERSION}" | ||
| 109 | PREFERRED_VERSION_mesa-pvr ?= "${BSP_MESA_PVR_VERSION}" | ||
