mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-04-22 12:39:02 +00:00
There are some unobvious issues with adding PVR support to Mesa via a bbappend: 1. We need to mark mesa package as machine-specific, due to differences in builds between SGX, Rogue and software-rendering 2. We also need to then mark mesa package as providing safe ABIs (EGL/GLES/GBM) in order for all generic dependent packages to not be treated as machine-specific, allowing their re-use across different machines of the same architecture But doing the above alters the upstream mesa package and changes its signatures even when not building for TI platforms, which is a Yocto Project compliance violation. In order to resolve this issue, convert Mesa bbappend, that adds PVR support, into its own standalone alternative provider, called mesa-pvr and allow selecting it with PREFERRED_PROVIDER settings. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
71 lines
2.0 KiB
PHP
71 lines
2.0 KiB
PHP
require conf/machine/include/ti-soc.inc
|
|
SOC_FAMILY:append = ":ti33x"
|
|
|
|
DEFAULTTUNE ?= "armv7athf-neon"
|
|
require conf/machine/include/arm/armv7a/tune-cortexa8.inc
|
|
|
|
# Increase this everytime you change something in the kernel
|
|
MACHINE_KERNEL_PR = "r22"
|
|
|
|
# Default providers, may need to override for specific machines
|
|
PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
|
|
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
|
|
PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
|
|
|
|
# Graphics providers and variables
|
|
require conf/machine/include/mesa-pvr.inc
|
|
PREFERRED_PROVIDER_virtual/gpudriver ?= ""
|
|
PVR_DISPLAY_CONTROLLER_ALIAS ?= "tilcdc"
|
|
|
|
KERNEL_IMAGETYPE = "zImage"
|
|
|
|
KERNEL_DEVICETREE_PREFIX = "am335x"
|
|
|
|
KERNEL_DEVICETREE = " \
|
|
am335x-evm.dtb \
|
|
am335x-evmsk.dtb \
|
|
am335x-icev2.dtb \
|
|
am335x-pocketbeagle.dtb \
|
|
am335x-bone.dtb \
|
|
am335x-boneblue.dtb \
|
|
am335x-bonegreen.dtb \
|
|
am335x-bonegreen-wireless.dtb \
|
|
am335x-boneblack.dtb \
|
|
am335x-boneblack-wireless.dtb \
|
|
am335x-sancloud-bbe.dtb \
|
|
"
|
|
|
|
KERNEL_DEVICETREE += "${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'am335x-icev2-pru-excl-uio.dtb', '', d)}"
|
|
|
|
UBOOT_ARCH = "arm"
|
|
UBOOT_MACHINE = "am335x_evm_config"
|
|
|
|
UBOOT_ENTRYPOINT = "0x80008000"
|
|
UBOOT_LOADADDRESS = "0x80008000"
|
|
|
|
# Generate an extlinux.conf file
|
|
UBOOT_EXTLINUX = "1"
|
|
UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}"
|
|
UBOOT_EXTLINUX_BOOT_FILES = " \
|
|
extlinux.conf;extlinux/extlinux.conf \
|
|
${KERNEL_IMAGETYPE} \
|
|
${KERNEL_DEVICETREE} \
|
|
"
|
|
|
|
SPL_BINARY = "MLO"
|
|
UBOOT_SUFFIX = "img"
|
|
|
|
# Use the expected value of the ubifs filesystem's volume name in the kernel
|
|
# and u-boot.
|
|
UBI_VOLNAME = "rootfs"
|
|
|
|
EXTRA_IMAGEDEPENDS += "virtual/bootloader"
|
|
|
|
# List common SoC features, may need to add touchscreen for specific machines
|
|
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 alsa ethernet gpu"
|
|
|
|
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}"
|
|
do_image_wic[depends] += "virtual/bootloader:do_deploy"
|