mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-01-12 01:20:20 +00:00
Compare commits
84 Commits
cicd.maste
...
10.00.06
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8beb4375d0 | ||
|
|
421c347226 | ||
|
|
bf4708e13e | ||
|
|
272b0135da | ||
|
|
334bce475f | ||
|
|
5d4466fdfc | ||
|
|
fa94effc26 | ||
|
|
8690d09b8f | ||
|
|
ff9bf7b960 | ||
|
|
af2c741c8c | ||
|
|
830d81bb7f | ||
|
|
c536e36e28 | ||
|
|
dec55a3712 | ||
|
|
37db17985f | ||
|
|
e902a647ec | ||
|
|
d0967bd01f | ||
|
|
1637b2830c | ||
|
|
9c03a91c81 | ||
|
|
6f750ff4a9 | ||
|
|
a5f833be1b | ||
|
|
bde92b899e | ||
|
|
7910ea6519 | ||
|
|
62c25daa36 | ||
|
|
67b6af4720 | ||
|
|
f73d964327 | ||
|
|
f7b6116a3a | ||
|
|
546ad62c65 | ||
|
|
18ba93db40 | ||
|
|
ac9e27871a | ||
|
|
58395d75d3 | ||
|
|
f8ae46b1f9 | ||
|
|
1d070daf6e | ||
|
|
be422dac3b | ||
|
|
3f09f2b995 | ||
|
|
cceeec50a5 | ||
|
|
09bc1e353e | ||
|
|
7394a1b438 | ||
|
|
e85ae1d830 | ||
|
|
7647f7c800 | ||
|
|
45f15a5024 | ||
|
|
a68200bc01 | ||
|
|
e8f03ea3c7 | ||
|
|
911524e35b | ||
|
|
9214aec743 | ||
|
|
835fe057a7 | ||
|
|
cb025b80e7 | ||
|
|
a973fb3de5 | ||
|
|
2aa0011134 | ||
|
|
a5383bc772 | ||
|
|
d41d49cfdc | ||
|
|
3326989e20 | ||
|
|
177d62c372 | ||
|
|
7f5bdf201b | ||
|
|
545afaca7a | ||
|
|
bbd25eba74 | ||
|
|
6f47646da3 | ||
|
|
650b690639 | ||
|
|
dfd32e7e77 | ||
|
|
d89907ec23 | ||
|
|
dd114ef1c5 | ||
|
|
78a11543bc | ||
|
|
f8e4272d7e | ||
|
|
2666cedb6c | ||
|
|
6ce53c14dd | ||
|
|
6a3c9f0a65 | ||
|
|
b8cb7c787f | ||
|
|
9c0d895c02 | ||
|
|
a8aa5fb499 | ||
|
|
2724e080cd | ||
|
|
dee641c00d | ||
|
|
20f1200b4b | ||
|
|
9845f66ae1 | ||
|
|
7b205e6d92 | ||
|
|
f4b8a42914 | ||
|
|
546da0ea24 | ||
|
|
28e7472393 | ||
|
|
56d5881492 | ||
|
|
14f79c1b2a | ||
|
|
5e701bce01 | ||
|
|
5c049dcb30 | ||
|
|
a23a678b29 | ||
|
|
60a0d58621 | ||
|
|
070800c321 | ||
|
|
0be56b799d |
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
*.pyc
|
||||
*.pyo
|
||||
*.swp
|
||||
*.orig
|
||||
*.rej
|
||||
*~
|
||||
@@ -8,11 +8,11 @@ This layer depends on:
|
||||
|
||||
URI: git://git.openembedded.org/openembedded-core
|
||||
layers: meta
|
||||
branch: master
|
||||
branch: scarthgap
|
||||
|
||||
URI: git://git.yoctoproject.org/meta-arm
|
||||
layers: meta-arm
|
||||
branch: master
|
||||
branch: scarthgap
|
||||
|
||||
|
||||
The base BSP part of meta-ti should work with different OpenEmbedded/Yocto
|
||||
|
||||
@@ -9,7 +9,7 @@ BBFILE_COLLECTIONS += "meta-ti-bsp"
|
||||
BBFILE_PATTERN_meta-ti-bsp := "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_meta-ti-bsp = "6"
|
||||
|
||||
LAYERSERIES_COMPAT_meta-ti-bsp = "kirkstone langdale mickledore nanbield scarthgap"
|
||||
LAYERSERIES_COMPAT_meta-ti-bsp = "scarthgap"
|
||||
|
||||
LICENSE_PATH += "${LAYERDIR}/licenses"
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS3"
|
||||
# UBI: logical eraseblock size: 126976 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 1988 LEBs
|
||||
MKUBIFS_ARGS ?= "-F -m 2048 -e 126976 -c 12000"
|
||||
MKUBIFS_ARGS ?= "-F -m 2048 -e 126976 -c 13000"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 7 -O 2048
|
||||
# from dmesg:
|
||||
|
||||
@@ -21,7 +21,7 @@ SERIAL_CONSOLES = "115200;ttyS0"
|
||||
# UBI: logical eraseblock size: 253952 bytes
|
||||
# from ubiattach stdout:
|
||||
# UBI device number 0, total 994 LEBs
|
||||
MKUBIFS_ARGS = "-F -m 4096 -e 253952 -c 6000"
|
||||
MKUBIFS_ARGS = "-F -m 4096 -e 253952 -c 8000"
|
||||
|
||||
# do ubiattach /dev/ubi_ctrl -m 11 -O 4096
|
||||
# from dmesg:
|
||||
|
||||
@@ -25,13 +25,13 @@ KERNEL_DEVICETREE_DTBMERGE = " \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
am57xx-beagle-x15.dtb \
|
||||
am57xx-beagle-x15-revb1.dtb \
|
||||
am57xx-beagle-x15-revc.dtb \
|
||||
am5729-beagleboneai.dtb \
|
||||
am571x-idk.dtb \
|
||||
am572x-idk.dtb \
|
||||
am574x-idk.dtb \
|
||||
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.dtb \
|
||||
ti/omap/am572x-idk.dtb \
|
||||
ti/omap/am574x-idk.dtb \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "am57xx_evm_config"
|
||||
|
||||
@@ -9,6 +9,7 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-am62p5 \
|
||||
ti/k3-am62x-sk-csi2 \
|
||||
ti/k3-am62x-sk-hdmi \
|
||||
ti/k3-am62x-sk-lpm \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
@@ -21,5 +22,7 @@ UBOOT_MACHINE = "am62px_evm_a53_defconfig"
|
||||
# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
|
||||
# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
|
||||
# For AM62P tisdk-display-cluster image, splash screen is handled by SBL.
|
||||
# Hence, disable the A53 based splash screen using the am62px_evm_prune_splashscreen.config fragment present in ti-u-boot tree
|
||||
UBOOT_CONFIG_FRAGMENTS = "${@oe.utils.conditional('DISPLAY_CLUSTER_ENABLE', '1', 'am62px_evm_prune_splashscreen.config', '', d)}"
|
||||
# Hence, disable the A53 based splash screen using the am62x_evm_prune_splashscreen.config fragment present in ti-u-boot tree
|
||||
UBOOT_CONFIG_FRAGMENTS = "${@oe.utils.conditional('DISPLAY_CLUSTER_ENABLE', '1', 'am62x_evm_prune_splashscreen.config', '', d)}"
|
||||
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-ti-6_1 = "${@oe.utils.conditional('DISPLAY_CLUSTER_ENABLE', '1', 'am62px_evm_prune_splashscreen.config', '', d)}"
|
||||
|
||||
@@ -8,9 +8,8 @@ SYSFW_SOC = "am62x"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "hs-fs"
|
||||
|
||||
UBOOT_MACHINE = "am62x_evm_r5_defconfig"
|
||||
UBOOT_MACHINE = "am62xsip_evm_r5_defconfig"
|
||||
|
||||
# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build
|
||||
# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
|
||||
# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
|
||||
UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"
|
||||
UBOOT_MACHINE:bsp-ti-6_1 = "am62x_evm_r5_defconfig"
|
||||
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-ti-6_1 = "am62xsip_sk_r5.config"
|
||||
|
||||
@@ -13,4 +13,6 @@ KERNEL_DEVICETREE = " \
|
||||
ti/k3-am625-sk.dtb \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "am62x_evm_a53_defconfig"
|
||||
UBOOT_MACHINE = "am62xsip_evm_a53_defconfig"
|
||||
|
||||
UBOOT_MACHINE:bsp-ti-6_1 = "am62x_evm_a53_defconfig"
|
||||
|
||||
11
meta-ti-bsp/conf/machine/am68-sk-k3r5.conf
Normal file
11
meta-ti-bsp/conf/machine/am68-sk-k3r5.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM68 SK (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI AM68 SK (R5F core)
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
|
||||
SYSFW_SOC = "j721s2"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "hs-fs"
|
||||
|
||||
UBOOT_MACHINE = "am68_sk_r5_defconfig"
|
||||
22
meta-ti-bsp/conf/machine/am68-sk.conf
Normal file
22
meta-ti-bsp/conf/machine/am68-sk.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM68 SK
|
||||
#@DESCRIPTION: Machine configuration for the TI AM68 SK
|
||||
|
||||
require conf/machine/include/am68.inc
|
||||
|
||||
TFA_K3_USART = "0x8"
|
||||
OPTEE_K3_USART = "0x8"
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-am68-sk \
|
||||
ti/k3-fpdlink \
|
||||
ti/k3-v3link \
|
||||
ti/k3-j721e-sk-csi2-dual-imx219 \
|
||||
ti/k3-j721e-sk-fpdlink-fusion \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am68-sk-base-board.dtb \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "am68_sk_a72_defconfig"
|
||||
11
meta-ti-bsp/conf/machine/am69-sk-k3r5.conf
Normal file
11
meta-ti-bsp/conf/machine/am69-sk-k3r5.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM69 SK (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI AM69 SK (R5F core)
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
|
||||
SYSFW_SOC = "j784s4"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "hs-fs"
|
||||
|
||||
UBOOT_MACHINE = "am69_sk_r5_defconfig"
|
||||
23
meta-ti-bsp/conf/machine/am69-sk.conf
Normal file
23
meta-ti-bsp/conf/machine/am69-sk.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM69 SK
|
||||
#@DESCRIPTION: Machine configuration for the TI AM69 SK
|
||||
|
||||
require conf/machine/include/am69.inc
|
||||
|
||||
TFA_K3_USART = "0x8"
|
||||
OPTEE_K3_USART = "0x8"
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-am69-sk \
|
||||
ti/k3-fpdlink \
|
||||
ti/k3-v3link \
|
||||
ti/k3-am68-sk-v3link-fusion \
|
||||
ti/k3-j721e-sk-csi2-dual-imx219 \
|
||||
ti/k3-j721e-sk-fpdlink-fusion \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am69-sk.dtb \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "am69_sk_a72_defconfig"
|
||||
@@ -2,17 +2,25 @@
|
||||
#@NAME: BeagleBoard X15
|
||||
#@DESCRIPTION: Machine configuration for the BeagleBoard X15
|
||||
|
||||
require conf/machine/include/beagle.inc
|
||||
TI_PREFERRED_BSP ?= "bb_org"
|
||||
|
||||
require conf/machine/include/am57xx.inc
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = "am57xx-beagle-x15"
|
||||
DT_VENDOR_PREFIX = "ti/omap/"
|
||||
DT_VENDOR_PREFIX:bsp-ti-6_1 = ""
|
||||
DT_VENDOR_PREFIX:bsp-bb_org = ""
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
${DT_VENDOR_PREFIX}am57xx-beagle-x15 \
|
||||
${DT_VENDOR_PREFIX}am57xx-idk-lcd \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
am57xx-beagle-x15.dtb \
|
||||
am57xx-beagle-x15-revb1.dtb \
|
||||
am57xx-beagle-x15-revc.dtb \
|
||||
am57xx-idk-lcd-osd101t2045.dtbo \
|
||||
am57xx-idk-lcd-osd101t2587.dtbo \
|
||||
${DT_VENDOR_PREFIX}am57xx-beagle-x15.dtb \
|
||||
${DT_VENDOR_PREFIX}am57xx-beagle-x15-revb1.dtb \
|
||||
${DT_VENDOR_PREFIX}am57xx-beagle-x15-revc.dtb \
|
||||
${DT_VENDOR_PREFIX}am57xx-idk-lcd-osd101t2045.dtbo \
|
||||
${DT_VENDOR_PREFIX}am57xx-idk-lcd-osd101t2587.dtbo \
|
||||
"
|
||||
|
||||
MACHINE_GUI_CLASS = "bigscreen"
|
||||
|
||||
@@ -2,6 +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
|
||||
|
||||
SYSFW_SOC = "j721e"
|
||||
@@ -15,9 +17,7 @@ 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_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build
|
||||
# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
|
||||
# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
|
||||
UBOOT_CONFIG_FRAGMENTS = "j721e_beagleboneai64_r5.config"
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-bb_org = "j721e_beagleboneai64_r5.config"
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-ti-6_1 = "j721e_beagleboneai64_r5.config"
|
||||
|
||||
@@ -2,28 +2,41 @@
|
||||
#@NAME: BeagleBone AI-64 (A72)
|
||||
#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 board (A72 core)
|
||||
|
||||
require conf/machine/include/beagle.inc
|
||||
TI_PREFERRED_BSP ?= "bb_org"
|
||||
|
||||
require conf/machine/include/j721e.inc
|
||||
|
||||
IMAGE_SR1_1_HS_FS_FILES:bsp-bb_org = ""
|
||||
IMAGE_SR2_HS_SE_FILES:bsp-bb_org = ""
|
||||
|
||||
UBOOT_MACHINE = "j721e_evm_a72_config"
|
||||
UBOOT_MACHINE:bsp-ti-6_6 = "j721e_beagleboneai64_a72_defconfig"
|
||||
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-ti-6_1 = "j721e_beagleboneai64_a72.config"
|
||||
UBOOT_CONFIG_FRAGMENTS:bsp-bb_org = "j721e_beagleboneai64_a72.config"
|
||||
|
||||
# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build
|
||||
# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
|
||||
# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
|
||||
UBOOT_CONFIG_FRAGMENTS = "j721e_beagleboneai64_a72.config"
|
||||
SPL_BINARY:bsp-ti-6_6 = "tispl.bin_unsigned"
|
||||
SPL_BINARYNAME:bsp-ti-6_6 = "tispl.bin"
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-j721e \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-j721e-beagleboneai64.dtb \
|
||||
ti/k3-j721e-common-proc-board.dtb \
|
||||
ti/k3-j721e-evm-gesi-exp-board.dtbo \
|
||||
ti/k3-j721e-evm-quad-port-eth-exp.dtbo \
|
||||
ti/k3-j721e-sk.dtb \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE:append:bsp-bb_org = " \
|
||||
ti/k3-j721e-beagleboneai64-dsi-rpi-7inch-panel.dtbo \
|
||||
ti/k3-j721e-common-proc-board-infotainment.dtbo \
|
||||
ti/k3-j721e-evm-csi2-ov5640.dtbo \
|
||||
ti/k3-j721e-evm-fusion.dtbo \
|
||||
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-evm-virt-mac-client.dtbo \
|
||||
ti/k3-j721e-sk.dtb \
|
||||
ti/k3-j721e-sk-csi2-ov5640.dtbo \
|
||||
ti/k3-j721e-sk-csi2-rpi-imx219.dtbo \
|
||||
ti/k3-j721e-sk-fusion.dtbo \
|
||||
|
||||
@@ -2,63 +2,31 @@
|
||||
#@NAME: BeagleBone machine
|
||||
#@DESCRIPTION: Machine configuration for the http://beagleboard.org/bone board
|
||||
|
||||
require conf/machine/include/beagle.inc
|
||||
TI_PREFERRED_BSP ?= "bb_org"
|
||||
|
||||
require conf/machine/include/ti33x.inc
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = "am335x-bone"
|
||||
DT_VENDOR_PREFIX = "ti/omap/"
|
||||
DT_VENDOR_PREFIX:bsp-ti-6_1 = ""
|
||||
DT_VENDOR_PREFIX:bsp-bb_org = ""
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
am335x-bone.dtb \
|
||||
am335x-boneblack.dtb \
|
||||
am335x-boneblack-pps.dtb \
|
||||
am335x-boneblack-uboot.dtb \
|
||||
am335x-boneblack-uboot-univ.dtb \
|
||||
am335x-boneblack-wireless.dtb \
|
||||
am335x-boneblue.dtb \
|
||||
am335x-bonegreen.dtb \
|
||||
am335x-bonegreen-gateway.dtb \
|
||||
am335x-bonegreen-wireless.dtb \
|
||||
am335x-bonegreen-wireless-uboot-univ.dtb \
|
||||
am335x-pocketbeagle.dtb \
|
||||
am335x-sancloud-bbe.dtb \
|
||||
am335x-sancloud-bbe-extended-wifi.dtb \
|
||||
am335x-sancloud-bbe-lite.dtb \
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
${DT_VENDOR_PREFIX}am335x-bone \
|
||||
${DT_VENDOR_PREFIX}am335x-pocketbeagle \
|
||||
${DT_VENDOR_PREFIX}am335x-sancloud-bbe \
|
||||
"
|
||||
|
||||
# Extra DT overlays/capes
|
||||
KERNEL_DEVICETREE += " \
|
||||
AM335X-PRU-UIO-00A0.dtbo \
|
||||
BB-ADC-00A0.dtbo \
|
||||
BB-BBBW-WL1835-00A0.dtbo \
|
||||
BB-BBGG-WL1835-00A0.dtbo \
|
||||
BB-BBGW-WL1835-00A0.dtbo \
|
||||
BB-BONE-4D5R-01-00A1.dtbo \
|
||||
BB-BONE-eMMC1-01-00A0.dtbo \
|
||||
BB-BONE-LCD4-01-00A1.dtbo \
|
||||
BB-BONE-NH7C-01-A0.dtbo \
|
||||
BB-CAPE-DISP-CT4-00A0.dtbo \
|
||||
BB-HDMI-TDA998x-00A0.dtbo \
|
||||
BB-I2C1-MCP7940X-00A0.dtbo \
|
||||
BB-I2C1-RTC-DS3231.dtbo \
|
||||
BB-I2C1-RTC-PCF8563.dtbo \
|
||||
BB-I2C2-BME680.dtbo \
|
||||
BB-I2C2-MPU6050.dtbo \
|
||||
BB-LCD-ADAFRUIT-24-SPI1-00A0.dtbo \
|
||||
BB-NHDMI-TDA998x-00A0.dtbo \
|
||||
BBORG_COMMS-00A2.dtbo \
|
||||
BBORG_FAN-A000.dtbo \
|
||||
BBORG_RELAY-00A2.dtbo \
|
||||
BB-SPIDEV0-00A0.dtbo \
|
||||
BB-SPIDEV1-00A0.dtbo \
|
||||
BB-UART1-00A0.dtbo \
|
||||
BB-UART2-00A0.dtbo \
|
||||
BB-UART4-00A0.dtbo \
|
||||
BB-W1-P9.12-00A0.dtbo \
|
||||
BONE-ADC.dtbo \
|
||||
M-BB-BBG-00A0.dtbo \
|
||||
M-BB-BBGG-00A0.dtbo \
|
||||
PB-MIKROBUS-0.dtbo \
|
||||
PB-MIKROBUS-1.dtbo \
|
||||
KERNEL_DEVICETREE = " \
|
||||
${DT_VENDOR_PREFIX}am335x-bone.dtb \
|
||||
${DT_VENDOR_PREFIX}am335x-boneblack.dtb \
|
||||
${DT_VENDOR_PREFIX}am335x-boneblack-wireless.dtb \
|
||||
${DT_VENDOR_PREFIX}am335x-boneblue.dtb \
|
||||
${DT_VENDOR_PREFIX}am335x-bonegreen.dtb \
|
||||
${DT_VENDOR_PREFIX}am335x-bonegreen-wireless.dtb \
|
||||
${DT_VENDOR_PREFIX}am335x-pocketbeagle.dtb \
|
||||
${DT_VENDOR_PREFIX}am335x-sancloud-bbe.dtb \
|
||||
${DT_VENDOR_PREFIX}am335x-sancloud-bbe-extended-wifi.dtb \
|
||||
${DT_VENDOR_PREFIX}am335x-sancloud-bbe-lite.dtb \
|
||||
"
|
||||
|
||||
MACHINE_GUI_CLASS = "bigscreen"
|
||||
|
||||
@@ -4,16 +4,13 @@
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-bb.org"
|
||||
|
||||
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_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build
|
||||
# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
|
||||
# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
|
||||
UBOOT_CONFIG_FRAGMENTS = "am625_beagleplay_r5.config"
|
||||
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"
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#@NAME: BeaglePlay (A53)
|
||||
#@DESCRIPTION: Machine configuration for the BeaglePlay board (A53 core)
|
||||
|
||||
require conf/machine//include/beagle.inc
|
||||
require conf/machine/include/k3.inc
|
||||
SOC_FAMILY:append = ":am62xx"
|
||||
|
||||
@@ -11,7 +10,7 @@ MACHINE_FEATURES += "screen gpu"
|
||||
SERIAL_CONSOLES = "115200;ttyS2"
|
||||
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver"
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
|
||||
|
||||
TFA_BOARD = "lite"
|
||||
TFA_K3_SYSTEM_SUSPEND = "1"
|
||||
@@ -19,21 +18,45 @@ 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 holds the list of u-boot config fragments which has to be build
|
||||
# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
|
||||
# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
|
||||
UBOOT_CONFIG_FRAGMENTS = "am625_beagleplay_a53.config"
|
||||
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"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-bb.org"
|
||||
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 = " \
|
||||
ti/k3-am625-beagleplay-csi2-ov5640.dtbo \
|
||||
ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtbo \
|
||||
ti/k3-am625-beagleplay-lincolntech-lcd185-panel.dtbo \
|
||||
ti/k3-am625-sk.dtb \
|
||||
ti/k3-am625-beaglemod.dtb \
|
||||
ti/k3-am625-beaglemod-audio.dtbo \
|
||||
ti/k3-am625-beaglemod-can0.dtbo \
|
||||
ti/k3-am625-beaglemod-can1.dtbo \
|
||||
ti/k3-am625-beaglemod-csi0-ov5640.dtbo \
|
||||
ti/k3-am625-beaglemod-eeprom.dtbo \
|
||||
ti/k3-am625-beaglemod-eth.dtbo \
|
||||
ti/k3-am625-beaglemod-hdmi.dtbo \
|
||||
ti/k3-am625-beaglemod-io-expand.dtbo \
|
||||
ti/k3-am625-beaglemod-lt-lcd185.dtbo \
|
||||
ti/k3-am625-beaglemod-ospi-flash.dtbo \
|
||||
ti/k3-am625-beaglemod-rs485-1.dtbo \
|
||||
ti/k3-am625-beaglemod-rs485-2.dtbo \
|
||||
ti/k3-am625-beaglemod-rtc.dtbo \
|
||||
ti/k3-am625-beaglemod-wl1835.dtbo \
|
||||
ti/k3-am625-sk-dmtimer-pwm.dtbo \
|
||||
ti/k3-am625-sk-ecap-capture.dtbo \
|
||||
ti/k3-am625-sk-lincolntech-lcd185-panel.dtbo \
|
||||
@@ -47,7 +70,7 @@ 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-eqep.dtbo \
|
||||
ti/k3-am62x-sk-hdmi-audio.dtbo \
|
||||
ti/k3-am62x-sk-hdmi-disable-fastboot.dtbo \
|
||||
ti/k3-am62x-sk-lpm-wkup-sources.dtbo \
|
||||
ti/k3-am62x-sk-mcan.dtbo \
|
||||
"
|
||||
|
||||
@@ -16,11 +16,11 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
dra7-evm.dtb \
|
||||
dra71-evm.dtb \
|
||||
dra72-evm.dtb \
|
||||
dra72-evm-revc.dtb \
|
||||
dra76-evm.dtb \
|
||||
ti/omap/dra7-evm.dtb \
|
||||
ti/omap/dra71-evm.dtb \
|
||||
ti/omap/dra72-evm.dtb \
|
||||
ti/omap/dra72-evm-revc.dtb \
|
||||
ti/omap/dra76-evm.dtb \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "dra7xx_evm_config"
|
||||
|
||||
@@ -4,7 +4,7 @@ SOC_FAMILY:append = ":am62pxx"
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver"
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
|
||||
|
||||
# Default tiboot3.bin on AM62Px is for HS-FS
|
||||
IMAGE_BOOT_FILES += "tiboot3-am62px-hs-fs-evm.bin"
|
||||
|
||||
@@ -4,7 +4,7 @@ SOC_FAMILY:append = ":am62xx"
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver"
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
|
||||
|
||||
# Default tiboot3.bin on AM62x is for HS-FS
|
||||
IMAGE_BOOT_FILES += "tiboot3-am62x-hs-fs-evm.bin"
|
||||
|
||||
@@ -4,7 +4,7 @@ SOC_FAMILY:append = ":am65xx"
|
||||
MACHINE_FEATURES += "screen touchscreen gpu"
|
||||
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-sgx-ddk-km"
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}"
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = "ti/k3-am654"
|
||||
|
||||
|
||||
19
meta-ti-bsp/conf/machine/include/am68.inc
Normal file
19
meta-ti-bsp/conf/machine/include/am68.inc
Normal file
@@ -0,0 +1,19 @@
|
||||
require conf/machine/include/k3.inc
|
||||
SOC_FAMILY:append = ":j721s2"
|
||||
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
|
||||
|
||||
# Default tiboot3.bin on AM68 is for SR1.0 HS-FS
|
||||
IMAGE_BOOT_FILES += "tiboot3-j721s2-hs-fs-evm.bin"
|
||||
|
||||
# Since default tiboot3.bin on AM68 is for HS-FS, add a version for SR1.0 HS-SE
|
||||
IMAGE_BOOT_FILES += "tiboot3-j721s2-hs-evm.bin"
|
||||
|
||||
TFA_BOARD = "generic"
|
||||
|
||||
OPTEEMACHINE = "k3-j784s4"
|
||||
|
||||
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw"
|
||||
19
meta-ti-bsp/conf/machine/include/am69.inc
Normal file
19
meta-ti-bsp/conf/machine/include/am69.inc
Normal file
@@ -0,0 +1,19 @@
|
||||
require conf/machine/include/k3.inc
|
||||
SOC_FAMILY:append = ":j784s4"
|
||||
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
|
||||
|
||||
# Default tiboot3.bin on AM69 is for SR1.0 HS-FS
|
||||
IMAGE_BOOT_FILES += "tiboot3-j784s4-hs-fs-evm.bin"
|
||||
|
||||
# Since default tiboot3.bin on AM69 is for HS-FS, add a version for SR1.0 HS-SE
|
||||
IMAGE_BOOT_FILES += "tiboot3-j784s4-hs-evm.bin"
|
||||
|
||||
TFA_BOARD = "j784s4"
|
||||
|
||||
OPTEEMACHINE = "k3-j784s4"
|
||||
|
||||
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "cadence-mhdp-fw cnm-wave-fw ti-eth-fw"
|
||||
@@ -1,3 +0,0 @@
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-bb.org"
|
||||
|
||||
@@ -4,6 +4,16 @@ SOC_FAMILY:append = ":j7200"
|
||||
# Default tiboot3.bin on J7200 is for GP
|
||||
IMAGE_BOOT_FILES += "tiboot3-j7200-gp-evm.bin"
|
||||
|
||||
# Since default tiboot3.bin on J7200 is for GP, add a version for SR1.0 HS-FS
|
||||
IMAGE_SR1_HS_FS_FILES = "tiboot3-j7200-hs-fs-evm.bin"
|
||||
IMAGE_SR1_HS_FS_FILES:bsp-mainline = ""
|
||||
IMAGE_BOOT_FILES += "${IMAGE_SR1_HS_FS_FILES}"
|
||||
|
||||
# Since default tiboot3.bin on J7200 is for GP, add a version for SR1.0 HS-SE
|
||||
IMAGE_SR1_HS_SE_FILES = "tiboot3-j7200-hs-evm.bin"
|
||||
IMAGE_SR1_HS_SE_FILES:bsp-mainline = ""
|
||||
IMAGE_BOOT_FILES += "${IMAGE_SR1_HS_SE_FILES}"
|
||||
|
||||
# Since default tiboot3.bin on J7200 is for GP, add a version for SR2.0 HS-FS
|
||||
IMAGE_BOOT_FILES += "tiboot3-j7200_sr2-hs-fs-evm.bin"
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ SOC_FAMILY:append = ":j721e"
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver"
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
|
||||
|
||||
IMAGE_BOOT_FILES += "sysfw.itb"
|
||||
|
||||
@@ -12,13 +12,23 @@ IMAGE_BOOT_FILES += "sysfw.itb"
|
||||
IMAGE_BOOT_FILES += "tiboot3-j721e-gp-evm.bin"
|
||||
IMAGE_BOOT_FILES += "sysfw-j721e-gp-evm.itb"
|
||||
|
||||
# Since default on J721e is for GP, add a version for HS-FS
|
||||
IMAGE_BOOT_FILES += "tiboot3-j721e_sr2-hs-fs-evm.bin"
|
||||
IMAGE_BOOT_FILES += "sysfw-j721e_sr2-hs-fs-evm.itb"
|
||||
# Since default on J721e is for GP, add a version for SR1.1 HS-FS
|
||||
IMAGE_SR1_1_HS_FS_FILES = "tiboot3-j721e_sr1_1-hs-fs-evm.bin sysfw-j721e_sr1_1-hs-fs-evm.itb"
|
||||
IMAGE_SR1_1_HS_FS_FILES:bsp-mainline = ""
|
||||
IMAGE_BOOT_FILES += "${IMAGE_SR1_1_HS_FS_FILES}"
|
||||
|
||||
# Since default on J721e is for GP, add a version for HS-SE
|
||||
IMAGE_BOOT_FILES += "tiboot3-j721e_sr1_1-hs-evm.bin"
|
||||
IMAGE_BOOT_FILES += "sysfw-j721e_sr1_1-hs-evm.itb"
|
||||
# Since default on J721e is for GP, add a version for SR1.1 HS-SE
|
||||
IMAGE_SR1_1_HS_SE_FILES = "tiboot3-j721e_sr1_1-hs-evm.bin sysfw-j721e_sr1_1-hs-evm.itb"
|
||||
IMAGE_BOOT_FILES += "${IMAGE_SR1_1_HS_SE_FILES}"
|
||||
|
||||
# Since default on J721e is for GP, add a version for SR2.0 HS-FS
|
||||
IMAGE_SR2_HS_FS_FILES = "tiboot3-j721e_sr2-hs-fs-evm.bin sysfw-j721e_sr2-hs-fs-evm.itb"
|
||||
IMAGE_BOOT_FILES += "${IMAGE_SR2_HS_FS_FILES}"
|
||||
|
||||
# Since default on J721e is for GP, add a version for SR2.0 HS-SE
|
||||
IMAGE_SR2_HS_SE_FILES = "tiboot3-j721e_sr2-hs-evm.bin sysfw-j721e_sr2-hs-evm.itb"
|
||||
IMAGE_SR2_HS_SE_FILES:bsp-mainline = ""
|
||||
IMAGE_BOOT_FILES += "${IMAGE_SR2_HS_SE_FILES}"
|
||||
|
||||
TFA_BOARD = "generic"
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ SOC_FAMILY:append = ":j721s2"
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver"
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
|
||||
|
||||
# Default tiboot3.bin on J721S2 is for GP
|
||||
IMAGE_BOOT_FILES += "tiboot3-j721s2-gp-evm.bin"
|
||||
@@ -12,6 +12,9 @@ IMAGE_BOOT_FILES += "tiboot3-j721s2-gp-evm.bin"
|
||||
# Since default tiboot3.bin on J721S2 is for GP, add a version for SR1.0 HS-FS
|
||||
IMAGE_BOOT_FILES += "tiboot3-j721s2-hs-fs-evm.bin"
|
||||
|
||||
# Since default tiboot3.bin on J721S2 is for GP, add a version for SR1.0 HS-SE
|
||||
IMAGE_BOOT_FILES += "tiboot3-j721s2-hs-evm.bin"
|
||||
|
||||
TFA_BOARD = "generic"
|
||||
|
||||
OPTEEMACHINE = "k3-j784s4"
|
||||
|
||||
@@ -4,11 +4,16 @@ SOC_FAMILY:append = ":j722s"
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver"
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
|
||||
|
||||
# Default tiboot3.bin on J722S is for HS-FS
|
||||
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-next = ""
|
||||
IMAGE_BOOT_FILES += "${IMAGE_SR1_HS_SE_FILES}"
|
||||
|
||||
TFA_BOARD = "lite"
|
||||
TFA_K3_SYSTEM_SUSPEND = "1"
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ SOC_FAMILY:append = ":j784s4"
|
||||
MACHINE_FEATURES += "screen gpu"
|
||||
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-img-rogue-driver"
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}"
|
||||
|
||||
# Default tiboot3.bin on J784S4 is for GP
|
||||
IMAGE_BOOT_FILES += "tiboot3-j784s4-gp-evm.bin"
|
||||
@@ -12,6 +12,9 @@ IMAGE_BOOT_FILES += "tiboot3-j784s4-gp-evm.bin"
|
||||
# Since default tiboot3.bin on J784S4 is for GP, add a version for SR1.0 HS-FS
|
||||
IMAGE_BOOT_FILES += "tiboot3-j784s4-hs-fs-evm.bin"
|
||||
|
||||
# Since default tiboot3.bin on J784S4 is for GP, add a version for SR1.0 HS-SE
|
||||
IMAGE_BOOT_FILES += "tiboot3-j784s4-hs-evm.bin"
|
||||
|
||||
TFA_BOARD = "j784s4"
|
||||
|
||||
OPTEEMACHINE = "k3-j784s4"
|
||||
|
||||
@@ -7,12 +7,7 @@ require conf/machine/include/arm/arch-arm64.inc
|
||||
|
||||
BBMULTICONFIG += "k3r5"
|
||||
|
||||
# Increase this everytime you change something in the kernel
|
||||
MACHINE_KERNEL_PR = "r0"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
|
||||
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
|
||||
PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
|
||||
require conf/machine/include/ti-bsp.inc
|
||||
|
||||
KERNEL_IMAGETYPE = "Image"
|
||||
KERNEL_IMAGETYPES = "Image fitImage"
|
||||
|
||||
@@ -11,9 +11,9 @@ require conf/machine/include/arm/armv7a/tune-cortexa8.inc
|
||||
# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst
|
||||
# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst
|
||||
# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst
|
||||
|
||||
require conf/machine/include/ti-bsp.inc
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
|
||||
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
|
||||
PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
|
||||
|
||||
SPL_SUFFIX = "bin"
|
||||
SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
|
||||
|
||||
@@ -4,16 +4,11 @@ SOC_FAMILY:append = ":omap-a15"
|
||||
DEFAULTTUNE ?= "armv7athf-neon"
|
||||
require conf/machine/include/arm/armv7a/tune-cortexa15.inc
|
||||
|
||||
# Increase this everytime you change something in the kernel
|
||||
MACHINE_KERNEL_PR = "r7"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
|
||||
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
|
||||
PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
|
||||
require conf/machine/include/ti-bsp.inc
|
||||
|
||||
# Graphics providers and variables
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-sgx-ddk-km"
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}"
|
||||
PVR_DISPLAY_CONTROLLER_ALIAS ?= "omapdrm"
|
||||
|
||||
KERNEL_IMAGETYPE = "zImage"
|
||||
@@ -24,7 +19,7 @@ UBOOT_ARCH = "arm"
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
DEVICETREE_FILE = "${@(d.getVar('KERNEL_DEVICETREE') or "").replace("ti/","")}"
|
||||
DEVICETREE_FILE = "${@(d.getVar('KERNEL_DEVICETREE') or "").replace("ti/omap/","").replace("ti/","")}"
|
||||
|
||||
# Generate an extlinux.conf file
|
||||
UBOOT_EXTLINUX = "1"
|
||||
|
||||
@@ -5,9 +5,7 @@ require conf/machine/include/arm/armv5/tune-arm926ejs.inc
|
||||
|
||||
KERNEL_IMAGETYPE = "zImage"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
|
||||
require conf/machine/include/ti-bsp.inc
|
||||
|
||||
EXTRA_IMAGEDEPENDS += "virtual/bootloader"
|
||||
|
||||
|
||||
122
meta-ti-bsp/conf/machine/include/ti-bsp.inc
Normal file
122
meta-ti-bsp/conf/machine/include/ti-bsp.inc
Normal file
@@ -0,0 +1,122 @@
|
||||
# Support multiple BSP providers
|
||||
# The main input is TI_PREFERRED_BSP, which translates into default
|
||||
# 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"
|
||||
|
||||
# Use bsp-* namespace for overrides
|
||||
MACHINEOVERRIDES =. "bsp-${TI_PREFERRED_BSP}:"
|
||||
|
||||
# ==========
|
||||
# mainline
|
||||
# latest upstream/mainline kernel, u-boot
|
||||
# ==========
|
||||
BSP_KERNEL_PROVIDER:bsp-mainline = "linux-ti-mainline"
|
||||
BSP_KERNEL_VERSION:bsp-mainline = "%"
|
||||
BSP_BOOTLOADER_PROVIDER:bsp-mainline = "u-boot-ti-mainline"
|
||||
BSP_BOOTLOADER_VERSION:bsp-mainline = "%"
|
||||
|
||||
# GPU support requires out-of-tree SGX and Rogue drivers not available
|
||||
# in mainline, usually present in TI staging or derivative like BB.org
|
||||
MACHINE_FEATURES:remove:bsp-mainline = "gpu"
|
||||
|
||||
# ==========
|
||||
# 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_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"
|
||||
|
||||
# ==========
|
||||
# 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_BOOTLOADER_PROVIDER:bsp-ti-6_6 = "u-boot-ti-staging"
|
||||
BSP_BOOTLOADER_VERSION:bsp-ti-6_6 = "2024%"
|
||||
|
||||
# Only Rogue is enabled so far, SGX falls back to SW rendering
|
||||
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%"
|
||||
|
||||
# ==========
|
||||
# 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_BOOTLOADER_PROVIDER:bsp-ti-6_1 = "u-boot-ti-staging"
|
||||
BSP_BOOTLOADER_VERSION:bsp-ti-6_1 = "2023%"
|
||||
|
||||
BSP_SGX_DRIVER_PROVIDER:bsp-ti-6_1 = "ti-sgx-ddk-km"
|
||||
BSP_SGX_DRIVER_VERSION:bsp-ti-6_1 = "1.17%"
|
||||
BSP_SGX_UMLIBS_VERSION:bsp-ti-6_1 = "1.17%"
|
||||
BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_1 = "ti-img-rogue-driver"
|
||||
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%"
|
||||
|
||||
# ==========
|
||||
# sane fallback defaults
|
||||
# if specific values are not defined or bsp is set incorrectly
|
||||
# use default preference TI staging and SW-rendering graphics
|
||||
# ==========
|
||||
BSP_KERNEL_PROVIDER ?= "linux-ti-staging"
|
||||
BSP_KERNEL_VERSION ?= "%"
|
||||
BSP_BOOTLOADER_PROVIDER ?= "u-boot-ti-staging"
|
||||
BSP_BOOTLOADER_VERSION ?= "%"
|
||||
|
||||
BSP_SGX_DRIVER_PROVIDER ?= ""
|
||||
BSP_SGX_DRIVER_VERSION ?= ""
|
||||
BSP_ROGUE_DRIVER_PROVIDER ?= ""
|
||||
BSP_ROGUE_DRIVER_VERSION ?= ""
|
||||
BSP_SGX_UMLIBS_VERSION ?= ""
|
||||
BSP_ROGUE_UMLIBS_VERSION ?= ""
|
||||
BSP_MESA_PVR_VERSION ?= ""
|
||||
|
||||
# ==========
|
||||
# global preferences
|
||||
# ==========
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "${BSP_KERNEL_PROVIDER}"
|
||||
PREFERRED_VERSION_${BSP_KERNEL_PROVIDER} ?= "${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}"
|
||||
|
||||
# GPU provider gets set in machine configs, as some machines are headless
|
||||
# Select default preferred versions here
|
||||
PREFERRED_VERSION_ti-sgx-ddk-km ?= "${BSP_SGX_DRIVER_VERSION}"
|
||||
PREFERRED_VERSION_ti-sgx-ddk-um ?= "${BSP_SGX_UMLIBS_VERSION}"
|
||||
PREFERRED_VERSION_ti-img-rogue-driver ?= "${BSP_ROGUE_DRIVER_VERSION}"
|
||||
PREFERRED_VERSION_ti-img-rogue-umlibs ?= "${BSP_ROGUE_UMLIBS_VERSION}"
|
||||
PREFERRED_VERSION_mesa-pvr ?= "${BSP_MESA_PVR_VERSION}"
|
||||
@@ -1,9 +1,8 @@
|
||||
# This is a generic TI SOC family. It is a superset of all other SOCs
|
||||
# and platforms defined in meta-ti to allow BSP-level overrides.
|
||||
SOC_FAMILY = "ti-soc"
|
||||
require conf/machine/include/soc-family.inc
|
||||
|
||||
# TI platforms all use devicetrees with overlays
|
||||
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree"
|
||||
KERNEL_DTB_OVERLAY_SUPPORT ?= "1"
|
||||
|
||||
require conf/machine/include/soc-family.inc
|
||||
|
||||
@@ -4,17 +4,11 @@ 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"
|
||||
require conf/machine/include/ti-bsp.inc
|
||||
|
||||
# Graphics providers and variables
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-sgx-ddk-km"
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}"
|
||||
PVR_DISPLAY_CONTROLLER_ALIAS ?= "tilcdc"
|
||||
|
||||
KERNEL_IMAGETYPE = "zImage"
|
||||
@@ -25,17 +19,17 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
"
|
||||
|
||||
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 \
|
||||
ti/omap/am335x-evm.dtb \
|
||||
ti/omap/am335x-evmsk.dtb \
|
||||
ti/omap/am335x-icev2.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-sancloud-bbe.dtb \
|
||||
"
|
||||
|
||||
UBOOT_ARCH = "arm"
|
||||
@@ -44,6 +38,8 @@ UBOOT_MACHINE = "am335x_evm_config"
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
DEVICETREE_FILE = "${@(d.getVar('KERNEL_DEVICETREE') or "").replace("ti/omap/","")}"
|
||||
|
||||
# Generate an extlinux.conf file
|
||||
UBOOT_EXTLINUX = "1"
|
||||
UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}"
|
||||
@@ -51,7 +47,7 @@ UBOOT_EXTLINUX_KERNEL_ARGS = "rootwait rw earlycon"
|
||||
UBOOT_EXTLINUX_BOOT_FILES = " \
|
||||
extlinux.conf;extlinux/extlinux.conf \
|
||||
${KERNEL_IMAGETYPE} \
|
||||
${KERNEL_DEVICETREE} \
|
||||
${DEVICETREE_FILE} \
|
||||
"
|
||||
|
||||
SPL_BINARY = "MLO"
|
||||
|
||||
@@ -4,17 +4,11 @@ SOC_FAMILY:append = ":ti43x"
|
||||
DEFAULTTUNE ?= "armv7athf-neon"
|
||||
require conf/machine/include/arm/armv7a/tune-cortexa9.inc
|
||||
|
||||
# Increase this everytime you change something in the kernel
|
||||
MACHINE_KERNEL_PR = "r3"
|
||||
|
||||
# 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"
|
||||
require conf/machine/include/ti-bsp.inc
|
||||
|
||||
# Graphics providers and variables
|
||||
require conf/machine/include/mesa-pvr.inc
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "ti-sgx-ddk-km"
|
||||
PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}"
|
||||
PVR_DISPLAY_CONTROLLER_ALIAS ?= "omapdrm"
|
||||
|
||||
KERNEL_IMAGETYPE = "zImage"
|
||||
@@ -27,10 +21,10 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
am437x-gp-evm.dtb \
|
||||
am437x-sk-evm.dtb \
|
||||
am437x-idk-evm.dtb \
|
||||
am43x-epos-evm.dtb \
|
||||
ti/omap/am437x-gp-evm.dtb \
|
||||
ti/omap/am437x-sk-evm.dtb \
|
||||
ti/omap/am437x-idk-evm.dtb \
|
||||
ti/omap/am43x-epos-evm.dtb \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE += "${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'am437x-idk-pru-excl-uio.dtb', '', d)}"
|
||||
@@ -41,13 +35,15 @@ UBOOT_MACHINE = "am43xx_evm_config"
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
DEVICETREE_FILE = "${@(d.getVar('KERNEL_DEVICETREE') or "").replace("ti/omap/","")}"
|
||||
|
||||
# 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} \
|
||||
${DEVICETREE_FILE} \
|
||||
"
|
||||
|
||||
SPL_BINARY = "MLO"
|
||||
|
||||
11
meta-ti-bsp/conf/machine/j721e-sk-k3r5.conf
Normal file
11
meta-ti-bsp/conf/machine/j721e-sk-k3r5.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: J721e SK (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI J721e SK (R5F core)
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
|
||||
SYSFW_SOC = "j721e"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "gp"
|
||||
|
||||
UBOOT_MACHINE = "j721e_sk_r5_defconfig"
|
||||
16
meta-ti-bsp/conf/machine/j721e-sk.conf
Normal file
16
meta-ti-bsp/conf/machine/j721e-sk.conf
Normal file
@@ -0,0 +1,16 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: J721e SK
|
||||
#@DESCRIPTION: Machine configuration for the TI J721e SK
|
||||
|
||||
require conf/machine/include/j721e.inc
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-j721e-sk \
|
||||
ti/k3-fpdlink \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-j721e-sk.dtb \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "j721e_sk_a72_config"
|
||||
@@ -12,6 +12,7 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-fpdlink \
|
||||
ti/k3-j7200-evm-mcspi-loopback \
|
||||
ti/k3-am68-sk \
|
||||
ti/k3-v3link \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
|
||||
@@ -4,7 +4,11 @@
|
||||
|
||||
require conf/machine/include/j722s.inc
|
||||
|
||||
KERNEL_DEVICETREE_PREFIX = "ti/k3-j722s"
|
||||
KERNEL_DEVICETREE_PREFIX = " \
|
||||
ti/k3-j722s \
|
||||
ti/k3-fpdlink \
|
||||
ti/k3-v3link \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = ""
|
||||
|
||||
|
||||
@@ -11,7 +11,10 @@ KERNEL_DEVICETREE_PREFIX = " \
|
||||
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-am69-sk \
|
||||
ti/k3-v3link \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
|
||||
@@ -12,7 +12,7 @@ PR = "${INC_PR}.1"
|
||||
|
||||
COMPATIBLE_MACHINE = "j721s2|j784s4|j722s|am62axx|am62pxx"
|
||||
|
||||
TARGET_WAVE521C = "wave521c_codec_fw.bin"
|
||||
TARGET_WAVE521C = "wave521c_k3_codec_fw.bin"
|
||||
|
||||
SOURCE_WAVE521C = "wave521c_k3_codec_fw.bin"
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@ inherit module features_check
|
||||
|
||||
REQUIRED_MACHINE_FEATURES = "gc320"
|
||||
|
||||
MACHINE_KERNEL_PR:append = "i"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
# Need to branch out with ${PV} var
|
||||
BRANCH = "ti-${PV}-k5.10"
|
||||
|
||||
|
||||
@@ -7,22 +7,19 @@ inherit module
|
||||
|
||||
PROVIDES = "virtual/gpudriver"
|
||||
|
||||
MACHINE_KERNEL_PR:append = "b"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|am62xx|am62pxx|j722s"
|
||||
|
||||
DEPENDS = "virtual/kernel"
|
||||
|
||||
BRANCH = "linuxws/scarthgap/k6.6/${PV}"
|
||||
BRANCH = "linuxws/kirkstone/k6.1/${PV}"
|
||||
|
||||
SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-driver.git;protocol=https;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRCREV = "2f409b4dd2540e896b54bff02219d4fc51129b81"
|
||||
SRCREV = "174eb331a61e89184342fa57a935226f4e952bc9"
|
||||
|
||||
TARGET_PRODUCT:j721e = "j721e_linux"
|
||||
TARGET_PRODUCT:j721s2 = "j721s2_linux"
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
DESCRIPTION = "Kernel drivers for the PowerVR Rogue GPU found in the TI SoCs"
|
||||
HOMEPAGE = "http://git.ti.com/graphics/ti-img-rogue-driver"
|
||||
LICENSE = "MIT | GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://README;beginline=14;endline=19;md5=0403c7dea01a2b8232261e805325fac2"
|
||||
|
||||
inherit module
|
||||
|
||||
PROVIDES = "virtual/gpudriver"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|am62xx|am62pxx|j722s"
|
||||
|
||||
DEPENDS = "virtual/kernel"
|
||||
|
||||
BRANCH = "linuxws/scarthgap/k6.6/${PV}"
|
||||
|
||||
SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-driver.git;protocol=https;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRCREV = "81e189096ef2f2479ccfb50d8b2fb24097188de3"
|
||||
|
||||
TARGET_PRODUCT:j721e = "j721e_linux"
|
||||
TARGET_PRODUCT:j721s2 = "j721s2_linux"
|
||||
TARGET_PRODUCT:j784s4 = "j784s4_linux"
|
||||
TARGET_PRODUCT:am62xx = "am62_linux"
|
||||
TARGET_PRODUCT:am62pxx = "am62p_linux"
|
||||
TARGET_PRODUCT:j722s = "j722s_linux"
|
||||
PVR_BUILD = "release"
|
||||
PVR_WS = "lws-generic"
|
||||
|
||||
EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}" BUILD=${PVR_BUILD} PVR_BUILD_DIR=${TARGET_PRODUCT} WINDOW_SYSTEM=${PVR_WS}'
|
||||
|
||||
do_install() {
|
||||
make -C ${STAGING_KERNEL_DIR} M=${B}/binary_${TARGET_PRODUCT}_${PVR_WS}_${PVR_BUILD}/target_aarch64/kbuild INSTALL_MOD_PATH=${D}${root_prefix} PREFIX=${STAGING_DIR_HOST} modules_install
|
||||
}
|
||||
|
||||
RRECOMMENDS:${PN} += "ti-img-rogue-umlibs"
|
||||
@@ -9,9 +9,6 @@ PROVIDES = "virtual/gpudriver"
|
||||
|
||||
COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|am65xx"
|
||||
|
||||
MACHINE_KERNEL_PR:append = "x"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
DEPENDS = "virtual/kernel"
|
||||
|
||||
@@ -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.12.08"
|
||||
PRUETH_FW_AM65X_SR2_VERSION = "02.02.14.01"
|
||||
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.3"
|
||||
TI_DM_FW_VERSION = "09.02.04"
|
||||
TI_SYSFW_VERSION = "09.02.07"
|
||||
CNM_WAVE521_FW_VERSION = "1.0.4"
|
||||
TI_DM_FW_VERSION = "10.00.05"
|
||||
TI_SYSFW_VERSION = "10.00.06"
|
||||
|
||||
TI_LINUX_FW_SRCREV ?= "edbfc3e540c9f426feb51db6a466a9015ada4dd0"
|
||||
TI_LINUX_FW_SRCREV ?= "3fb564f38fd2e2fb3ad3a54ac8fd079248f6e8f5"
|
||||
SRCREV = "${TI_LINUX_FW_SRCREV}"
|
||||
|
||||
BRANCH ?= "ti-linux-firmware"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -6,4 +6,4 @@ PR = "r0"
|
||||
|
||||
BRANCH = "ti-u-boot-2023.04"
|
||||
|
||||
SRCREV = "d2612223375a25f81068d7a7abd86c08cd129a2c"
|
||||
SRCREV = "83660642085462346fbeb410f83bc99448ec7042"
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
require u-boot-ti.inc
|
||||
|
||||
DEFAULT_PREFERENCE = "-1"
|
||||
|
||||
include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''}
|
||||
|
||||
PR = "r0"
|
||||
|
||||
BRANCH = "ti-u-boot-2024.04"
|
||||
|
||||
SRCREV = "f3c979dd0053c082d2df170446923e7ce5edbc2d"
|
||||
SRCREV = "67e6428fc439d3456634fac9660e3c1108b7fce0"
|
||||
|
||||
@@ -221,6 +221,13 @@ 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 () {
|
||||
@@ -325,13 +332,6 @@ do_deploy:append () {
|
||||
ln -sf ${UBOOT_HS_2ND_IMAGE} ${UBOOT_HS_2ND_BINARY}
|
||||
fi
|
||||
fi
|
||||
|
||||
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_install:append:am62xx() {
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
SUMMARY = "Precompiled Zephyr OpenAMP example firmware for TI K3 devices"
|
||||
|
||||
# Name of this demo's firmware
|
||||
FW_NAME = "zephyr_openamp_rsc_table.elf"
|
||||
|
||||
# List of cores for which this demo has a build
|
||||
FW_CORES = ""
|
||||
FW_CORES:am62xx = "mcu-m4f0_0"
|
||||
|
||||
# Note: Everything below is common to all our Zephyr firmwares and can be
|
||||
# factored out to a common include file once we have more than one demo
|
||||
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
|
||||
|
||||
COMPATIBLE_MACHINE = "k3"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRC_URI = "git://github.com/glneo/zephyr-firmware.git;protocol=https;branch=main"
|
||||
SRCREV = "146d4f9b3930722d73685d600958f0b10ea97de2"
|
||||
PV = "3.6.0"
|
||||
#PR = "r1"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
FW_PLAT = ""
|
||||
FW_PLAT:am62xx = "am62"
|
||||
|
||||
FW_INSTALL_DIR = "${nonarch_base_libdir}/firmware/zephyr/${FW_PLAT}"
|
||||
|
||||
do_install() {
|
||||
for FW_CORE in ${FW_CORES}
|
||||
do
|
||||
install -d ${D}${FW_INSTALL_DIR}/${FW_CORE}
|
||||
install -m 0644 ${S}/${FW_PLAT}/${FW_CORE}/${FW_NAME} ${D}${FW_INSTALL_DIR}/${FW_CORE}
|
||||
done
|
||||
}
|
||||
|
||||
# Make sure that lib/firmware, and all its contents are part of the package
|
||||
FILES:${PN} = "${nonarch_base_libdir}/firmware"
|
||||
|
||||
# This is used to prevent the build system from stripping the firmwares
|
||||
INHIBIT_PACKAGE_STRIP = "1"
|
||||
INHIBIT_SYSROOT_STRIP = "1"
|
||||
|
||||
# This is used to prevent the build system from splitting out the firmware debug info into a separate file
|
||||
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
||||
|
||||
# This is a prebuilt with no external dependencies
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
|
||||
# Disable arch checking as firmware is likely to be a different arch from the Yocto build
|
||||
INSANE_SKIP:${PN} += "arch"
|
||||
|
||||
# Zephyr-Firmware has no configure, compile, nor clean steps
|
||||
do_configure[noexec] = "1"
|
||||
do_compile[noexec] = "1"
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
inherit update-alternatives
|
||||
|
||||
python fw_generate_alternatives() {
|
||||
for fw_core_name in d.getVar('FW_CORES').split():
|
||||
fw_plat = d.getVar('FW_PLAT')
|
||||
fw_pkg_name = d.getVar('PN')
|
||||
fw_core_name_full = (fw_plat + "-" + fw_core_name + "-fw")
|
||||
|
||||
# Create the firmware alternatives
|
||||
d.appendVar('ALTERNATIVE:%s' % fw_pkg_name, (fw_core_name_full + " "))
|
||||
|
||||
# Set up firmware alternatives link names
|
||||
fw_alt_link = ("${nonarch_base_libdir}/firmware/" + fw_core_name_full)
|
||||
d.setVarFlag('ALTERNATIVE_LINK_NAME', fw_core_name_full, fw_alt_link)
|
||||
|
||||
# Set up firmware alternatives link targets
|
||||
fw_alt_target_rename = "${FW_INSTALL_DIR}/" + fw_core_name + "/${FW_NAME}"
|
||||
d.setVarFlag('ALTERNATIVE_TARGET_%s' % fw_pkg_name, fw_core_name_full, fw_alt_target_rename)
|
||||
}
|
||||
|
||||
do_package[prefuncs] += "fw_generate_alternatives"
|
||||
|
||||
ALTERNATIVE_PRIORITY = "20"
|
||||
@@ -0,0 +1,40 @@
|
||||
From 6d07f6aa7f92f40d78a2db645f16f0f3e7d3c2e8 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 23 Jun 2023 01:20:38 -0700
|
||||
Subject: [PATCH] gallium: Fix build with llvm 17
|
||||
|
||||
These headers are not available for C files in llvm 17+
|
||||
and they seem to be not needed to compile after all with llvm 17
|
||||
so add conditions to exclude them for llvm >= 17
|
||||
|
||||
Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23827]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
---
|
||||
src/gallium/auxiliary/gallivm/lp_bld_init.c | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c
|
||||
index cd2108f..b1a4d03 100644
|
||||
--- a/src/gallium/auxiliary/gallivm/lp_bld_init.c
|
||||
+++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c
|
||||
@@ -46,15 +46,19 @@
|
||||
#if GALLIVM_USE_NEW_PASS == 1
|
||||
#include <llvm-c/Transforms/PassBuilder.h>
|
||||
#elif GALLIVM_HAVE_CORO == 1
|
||||
+#if LLVM_VERSION_MAJOR < 17
|
||||
#include <llvm-c/Transforms/Scalar.h>
|
||||
-#if LLVM_VERSION_MAJOR >= 7
|
||||
+#endif
|
||||
+#if LLVM_VERSION_MAJOR >= 7 && LLVM_VERSION_MAJOR < 17
|
||||
#include <llvm-c/Transforms/Utils.h>
|
||||
#endif
|
||||
#if LLVM_VERSION_MAJOR <= 8 && (DETECT_ARCH_AARCH64 || DETECT_ARCH_ARM || DETECT_ARCH_S390 || DETECT_ARCH_MIPS64)
|
||||
#include <llvm-c/Transforms/IPO.h>
|
||||
#endif
|
||||
+#if LLVM_VERSION_MAJOR < 17
|
||||
#include <llvm-c/Transforms/Coroutines.h>
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
unsigned gallivm_perf = 0;
|
||||
@@ -0,0 +1,42 @@
|
||||
From 00d41cd5aa3f4b494dc276c9b4ccdc096310c91f Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 28 Sep 2023 15:34:22 -0700
|
||||
Subject: [PATCH] meson: use llvm-config instead of cmake to fix linking errors with meson 1.2.1
|
||||
|
||||
meson dependency auto dependency detection uses cmake and then
|
||||
config-tool to process dependencies, in mesa the logic to detect llvm is
|
||||
using auto detection which means if it finds cmake then it will try to
|
||||
use cmake method. Cmake method works ok except a case when llvm-dev
|
||||
package is installed on the build host then it generates its own
|
||||
native.meson file and ignores OE supplied meson.native file which has
|
||||
correct llvm-config tool specified which is pointing to llvm-config from
|
||||
native sysroot. The generated meson.native file points to one found in
|
||||
/usr/bin and there onwards detector finds native install of llvm and
|
||||
configures that into building native mesa package.
|
||||
|
||||
Since cmake detector does not always work, disable it by default and use
|
||||
config-tool which works in all cases. This is suggested in below issues
|
||||
too
|
||||
|
||||
A similar issue is open in meson upstream [1] and mesa [2]
|
||||
|
||||
[1] https://github.com/mesonbuild/meson/issues/10483
|
||||
[2] https://gitlab.freedesktop.org/mesa/mesa/-/issues/6738
|
||||
|
||||
Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25438]
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
meson.build | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -1659,6 +1659,7 @@ with_llvm = false
|
||||
if _llvm.allowed()
|
||||
dep_llvm = dependency(
|
||||
'llvm',
|
||||
+ method : host_machine.system() == 'windows' ? 'auto' : 'config-tool',
|
||||
version : _llvm_version,
|
||||
modules : llvm_modules,
|
||||
optional_modules : llvm_optional_modules,
|
||||
@@ -0,0 +1,25 @@
|
||||
From 3ef37c63f03ad6f2af407de350486fdd25e9132a Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 13 Jan 2020 15:23:47 -0800
|
||||
Subject: [PATCH] meson misdetects 64bit atomics on mips/clang
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
---
|
||||
src/util/u_atomic.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/util/u_atomic.c b/src/util/u_atomic.c
|
||||
index 5a5eab4..e499516 100644
|
||||
--- a/src/util/u_atomic.c
|
||||
+++ b/src/util/u_atomic.c
|
||||
@@ -21,7 +21,7 @@
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
-#if defined(MISSING_64BIT_ATOMICS) && defined(HAVE_PTHREAD)
|
||||
+#if !defined(__clang__) && defined(MISSING_64BIT_ATOMICS) && defined(HAVE_PTHREAD)
|
||||
|
||||
#include <stdint.h>
|
||||
#include <pthread.h>
|
||||
@@ -0,0 +1,43 @@
|
||||
From b251af67df5a6840d2e9cc06edae2c387f8778f1 Mon Sep 17 00:00:00 2001
|
||||
From: Alistair Francis <alistair@alistair23.me>
|
||||
Date: Thu, 14 Nov 2019 13:04:49 -0800
|
||||
Subject: [PATCH] meson.build: check for all linux host_os combinations
|
||||
|
||||
Make sure that we are also looking for our host_os combinations like
|
||||
linux-musl etc. when assuming support for DRM/KMS.
|
||||
|
||||
Also delete a duplicate line.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
|
||||
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
|
||||
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
||||
Signed-off-by: Alistair Francis <alistair@alistair23.me>
|
||||
|
||||
---
|
||||
meson.build | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/meson.build b/meson.build
|
||||
index 22385d8..15f48a6 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -121,7 +121,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
|
||||
# Only build shared_glapi if at least one OpenGL API is enabled
|
||||
with_shared_glapi = with_shared_glapi and with_any_opengl
|
||||
|
||||
-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux', 'sunos', 'android'].contains(host_machine.system())
|
||||
+system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 'dragonfly', 'linux', 'sunos', 'android'].contains(host_machine.system()) or host_machine.system().startswith('linux')
|
||||
|
||||
gallium_drivers = get_option('gallium-drivers')
|
||||
if gallium_drivers.contains('auto')
|
||||
@@ -909,7 +909,7 @@ if cc.has_function('fmemopen')
|
||||
endif
|
||||
|
||||
# TODO: this is very incomplete
|
||||
-if ['linux', 'cygwin', 'gnu', 'freebsd', 'gnu/kfreebsd', 'haiku', 'android'].contains(host_machine.system())
|
||||
+if ['linux', 'cygwin', 'gnu', 'freebsd', 'gnu/kfreebsd', 'haiku'].contains(host_machine.system()) or host_machine.system().startswith('linux')
|
||||
pre_args += '-D_GNU_SOURCE'
|
||||
elif host_machine.system() == 'sunos'
|
||||
pre_args += '-D__EXTENSIONS__'
|
||||
56
meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_23.2.1.bb
Normal file
56
meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_23.2.1.bb
Normal file
@@ -0,0 +1,56 @@
|
||||
# PowerVR Graphics require several patches that have not made their way
|
||||
# upstream yet. This allows us to build the shims we need without completely
|
||||
# clobbering mesa.
|
||||
|
||||
require recipes-graphics/mesa/mesa.inc
|
||||
|
||||
SUMMARY += " (with PowerVR support for TI platforms)"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://docs/license.rst;md5=63779ec98d78d823a9dc533a0735ef10"
|
||||
|
||||
BRANCH = "powervr/${PV}"
|
||||
|
||||
SRC_URI = " \
|
||||
git://gitlab.freedesktop.org/StaticRocket/mesa.git;protocol=https;branch=${BRANCH} \
|
||||
file://0001-meson.build-check-for-all-linux-host_os-combinations.patch \
|
||||
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 \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
PACKAGECONFIG:append = " \
|
||||
${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-img-rogue-driver', 'pvr', '', d)} \
|
||||
${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-sgx-ddk-km', 'sgx', '', d)} \
|
||||
"
|
||||
|
||||
SRCREV = "b12290126ba6a154f0e8b0a8c8b2b0d64f98e427"
|
||||
|
||||
PVR_DISPLAY_CONTROLLER_ALIAS ??= "tidss"
|
||||
PACKAGECONFIG[pvr] = "-Dgallium-pvr-alias=${PVR_DISPLAY_CONTROLLER_ALIAS},"
|
||||
PACKAGECONFIG[sgx] = "-Dgallium-sgx-alias=${PVR_DISPLAY_CONTROLLER_ALIAS},"
|
||||
|
||||
PACKAGECONFIG:remove = "video-codecs"
|
||||
PACKAGECONFIG[video-codecs] = ""
|
||||
PACKAGECONFIG:remove = "elf-tls"
|
||||
PACKAGECONFIG[elf-tls] = ""
|
||||
PACKAGECONFIG:remove = "xvmc"
|
||||
PACKAGECONFIG[xvmc] = ""
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'pvr', ',pvr', '', d)}"
|
||||
GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'sgx', ',sgx', '', d)}"
|
||||
|
||||
VULKAN_DRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'pvr', ',pvr', '', d)}"
|
||||
|
||||
do_install:append () {
|
||||
# remove pvr custom pkgconfig
|
||||
rm -rf ${D}${datadir}/pkgconfig
|
||||
}
|
||||
|
||||
FILES:${PN}-dev += "${datadir}/mesa/wayland-drm.xml"
|
||||
FILES:mesa-vulkan-drivers += "${libdir}/libpvr_mesa_wsi.so"
|
||||
|
||||
RRECOMMENDS:mesa-megadriver:append:class-target = " ${@d.getVar('PREFERRED_PROVIDER_virtual/gpudriver')}"
|
||||
@@ -12,7 +12,7 @@ COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|am62xx|am62pxx|j722s"
|
||||
|
||||
PR = "r3"
|
||||
|
||||
BRANCH = "linuxws/scarthgap/k6.6/${PV}"
|
||||
BRANCH = "linuxws/kirkstone/k6.1/${PV}"
|
||||
SRC_URI = "git://git.ti.com/git/graphics/ti-img-rogue-umlibs.git;protocol=https;branch=${BRANCH}"
|
||||
SRCREV = "0b9e64254269be2fa95c4f3e1dd925d6e4d58199"
|
||||
S = "${WORKDIR}/git/targetfs/${TARGET_PRODUCT}/${PVR_WS}/${PVR_BUILD}"
|
||||
@@ -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"
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
DESCRIPTION = "Userspace libraries for PowerVR Rogue GPU on TI SoCs"
|
||||
HOMEPAGE = "http://git.ti.com/graphics/ti-img-rogue-umlibs"
|
||||
LICENSE = "TI-TFL"
|
||||
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=7232b98c1c58f99e3baa03de5207e76f"
|
||||
|
||||
inherit bin_package
|
||||
|
||||
INHIBIT_DEFAULT_DEPS = ""
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
COMPATIBLE_MACHINE = "j721e|j721s2|j784s4|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"
|
||||
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:am62xx = "am62_linux"
|
||||
TARGET_PRODUCT:am62pxx = "am62p_linux"
|
||||
TARGET_PRODUCT:j722s = "j722s_linux"
|
||||
PVR_BUILD = "release"
|
||||
PVR_WS = "lws-generic"
|
||||
|
||||
RDEPENDS:${PN} = " \
|
||||
libdrm \
|
||||
ti-img-rogue-driver \
|
||||
${PN}-firmware \
|
||||
"
|
||||
|
||||
PACKAGECONFIG ?= " \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'vulkan wayland', 'vulkan', '', d)} \
|
||||
${@bb.utils.filter('DISTRO_FEATURES', 'opengl opencl', d)} \
|
||||
"
|
||||
|
||||
PACKAGECONFIG[opengl] = ",,,,${GLES_PACKAGES}"
|
||||
PACKAGECONFIG[vulkan] = ",,,,${VULKAN_PACKAGES}"
|
||||
PACKAGECONFIG[opencl] = ",,,,${OPENCL_PACKAGES}"
|
||||
|
||||
def get_file_list(package_list_var, d):
|
||||
file_list = []
|
||||
package_list = d.getVar(package_list_var)
|
||||
prefix = f"{d.getVar('S')}/"
|
||||
if package_list:
|
||||
for package in package_list.split():
|
||||
package_file_string = d.getVar(f"FILES:{package}")
|
||||
if package_file_string:
|
||||
for package_file in package_file_string.split():
|
||||
file_list.append(f"{prefix}{package_file}")
|
||||
return " ".join(file_list)
|
||||
|
||||
do_install:prepend() {
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'opengl', 'false', 'true', d)}; then
|
||||
for file in ${@get_file_list('GLES_PACKAGES', d)}; do
|
||||
rm -rf ${file}
|
||||
done
|
||||
fi
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'vulkan', 'false', 'true', d)}; then
|
||||
for file in ${@get_file_list('VULKAN_PACKAGES', d)}; do
|
||||
rm -rf ${file}
|
||||
done
|
||||
fi
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'false', 'true', d)}; then
|
||||
for file in ${@get_file_list('OPENCL_PACKAGES', d)}; do
|
||||
rm -rf ${file}
|
||||
done
|
||||
fi
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'true', 'false', d)}; then
|
||||
if [ -e ${S}/lib/firmware ]; then
|
||||
mv ${S}/lib/firmware ${S}${nonarch_base_libdir}
|
||||
fi
|
||||
fi
|
||||
|
||||
# clean up any empty directories
|
||||
find "${S}" -empty -type d -delete
|
||||
}
|
||||
|
||||
GLES_PACKAGES = "libgles1-rogue libgles2-rogue libgles3-rogue"
|
||||
VULKAN_PACKAGES = "libvk-rogue"
|
||||
OPENCL_PACKAGES = "libopencl-rogue libopencl-rogue-tools"
|
||||
|
||||
PACKAGES = " \
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'opengl', d.getVar('GLES_PACKAGES'), '', d)} \
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'vulkan', d.getVar('VULKAN_PACKAGES'), '', d)} \
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'opencl', d.getVar('OPENCL_PACKAGES'), '', d)} \
|
||||
${PN}-tools \
|
||||
${PN}-firmware \
|
||||
${PN} \
|
||||
"
|
||||
|
||||
# Inject variables so that packages don't get Debian-renamed (which would
|
||||
# remove the -rogue suffix), but don't RPROVIDEs/RCONFLICTs on the generic
|
||||
# libgl name to prevent colliding with swrast libs
|
||||
python __anonymous() {
|
||||
suffix = ""
|
||||
if "-native" in d.getVar("PN"):
|
||||
suffix = "-native"
|
||||
for p in (("vulkan", "libvk",),
|
||||
("gles", "libgles1", "libglesv1-cm1"),
|
||||
("gles", "libgles2", "libglesv2-2"),
|
||||
("gles", "libgles3",),
|
||||
("opencl", "libopencl",)):
|
||||
mlprefix = d.getVar("MLPREFIX")
|
||||
fullp = mlprefix + p[1] + "-rogue" + suffix
|
||||
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 ldflags")
|
||||
d.appendVar("RRECOMMENDS:" + fullp, " ${MLPREFIX}ti-img-rogue-umlibs" + suffix)
|
||||
}
|
||||
|
||||
# gles specific shared objects
|
||||
FILES:libgles1-rogue = "${libdir}/libGLESv1*.so*"
|
||||
FILES:libgles2-rogue = "${libdir}/libGLESv2*.so*"
|
||||
RDEPENDS:libgles1-rogue += "mesa-megadriver"
|
||||
RDEPENDS:libgles2-rogue += "mesa-megadriver"
|
||||
|
||||
# vulkan specific shared objects and configs
|
||||
FILES:libvk-rogue = "${libdir}/libVK_IMG.so* ${datadir}/vulkan"
|
||||
RDEPENDS:libvk-rogue += "vulkan-loader wayland libdrm"
|
||||
|
||||
# opencl specific shared objects and configs
|
||||
FILES:libopencl-rogue = "${libdir}/libPVROCL.so* ${sysconfdir}/OpenCL"
|
||||
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 libdrm ${PN}"
|
||||
INSANE_SKIP:${PN}-tools = "ldflags"
|
||||
|
||||
# required firmware
|
||||
FILES:${PN}-firmware = "${base_libdir}/firmware/*"
|
||||
INSANE_SKIP:${PN}-firmware += "arch"
|
||||
|
||||
RRECOMMENDS:${PN} += " \
|
||||
${PN}-tools \
|
||||
"
|
||||
|
||||
INSANE_SKIP:${PN} += "already-stripped dev-so ldflags"
|
||||
@@ -10,24 +10,57 @@ inherit kernel
|
||||
require recipes-kernel/linux/setup-defconfig.inc
|
||||
require recipes-kernel/linux/ti-kernel.inc
|
||||
|
||||
# BB.org hasn't switched to "vendored" DTB layout by default yet
|
||||
KERNEL_DTBVENDORED = "0"
|
||||
|
||||
DEPENDS += "gmp-native libmpc-native"
|
||||
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}"
|
||||
|
||||
# Extra DT overlays/capes
|
||||
KERNEL_DEVICETREE:append:armv7a = " \
|
||||
AM335X-PRU-UIO-00A0.dtbo \
|
||||
BB-ADC-00A0.dtbo \
|
||||
BB-BBBW-WL1835-00A0.dtbo \
|
||||
BB-BBGG-WL1835-00A0.dtbo \
|
||||
BB-BBGW-WL1835-00A0.dtbo \
|
||||
BB-BONE-4D5R-01-00A1.dtbo \
|
||||
BB-BONE-eMMC1-01-00A0.dtbo \
|
||||
BB-BONE-LCD4-01-00A1.dtbo \
|
||||
BB-BONE-NH7C-01-A0.dtbo \
|
||||
BB-CAPE-DISP-CT4-00A0.dtbo \
|
||||
BB-HDMI-TDA998x-00A0.dtbo \
|
||||
BB-I2C1-MCP7940X-00A0.dtbo \
|
||||
BB-I2C1-RTC-DS3231.dtbo \
|
||||
BB-I2C1-RTC-PCF8563.dtbo \
|
||||
BB-I2C2-BME680.dtbo \
|
||||
BB-I2C2-MPU6050.dtbo \
|
||||
BB-LCD-ADAFRUIT-24-SPI1-00A0.dtbo \
|
||||
BB-NHDMI-TDA998x-00A0.dtbo \
|
||||
BBORG_COMMS-00A2.dtbo \
|
||||
BBORG_FAN-A000.dtbo \
|
||||
BBORG_RELAY-00A2.dtbo \
|
||||
BB-SPIDEV0-00A0.dtbo \
|
||||
BB-SPIDEV1-00A0.dtbo \
|
||||
BB-UART1-00A0.dtbo \
|
||||
BB-UART2-00A0.dtbo \
|
||||
BB-UART4-00A0.dtbo \
|
||||
BB-W1-P9.12-00A0.dtbo \
|
||||
BONE-ADC.dtbo \
|
||||
M-BB-BBG-00A0.dtbo \
|
||||
M-BB-BBGG-00A0.dtbo \
|
||||
PB-MIKROBUS-0.dtbo \
|
||||
PB-MIKROBUS-1.dtbo \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# 6.1.69 version for 32-bit
|
||||
SRCREV:armv7a = "a1f26a19581970f76220c68c438981796ce5b767"
|
||||
PV:armv7a = "6.1.69+git"
|
||||
BRANCH:armv7a = "v6.1.69-ti-r22"
|
||||
# 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.69 version for 64-bit
|
||||
SRCREV:aarch64 = "bc76b5d278271f66a6faeb2d09cb09fc6c57dd3c"
|
||||
PV:aarch64 = "6.1.69+git"
|
||||
BRANCH:aarch64 = "v6.1.69-ti-arm64-r24"
|
||||
# 6.1.80 version for 64-bit
|
||||
SRCREV:aarch64 = "977c75e082620f15c06c72bcced30f787c14b390"
|
||||
PV:aarch64 = "6.1.80+git"
|
||||
BRANCH:aarch64 = "v6.1.80-ti-arm64-r49"
|
||||
|
||||
SRC_URI = " \
|
||||
git://github.com/beagleboard/linux.git;protocol=https;branch=${BRANCH} \
|
||||
|
||||
@@ -9,34 +9,17 @@ require recipes-kernel/linux/ti-kernel.inc
|
||||
|
||||
DEPENDS += "gmp-native libmpc-native"
|
||||
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \
|
||||
${EXTRA_DTC_ARGS}"
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# 6.6 Mainline version
|
||||
SRCREV = "ffc253263a1375a65fa6c9f62a893e9767fbebfa"
|
||||
PV = "6.6+git"
|
||||
PV = "6.6"
|
||||
|
||||
# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
|
||||
MACHINE_KERNEL_PR:append = "b"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git"
|
||||
KERNEL_GIT_PROTOCOL = "https"
|
||||
KERNEL_GIT_BRANCH = "master"
|
||||
SRC_URI += " \
|
||||
${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${KERNEL_GIT_BRANCH} \
|
||||
"
|
||||
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=https;branch=master"
|
||||
|
||||
DEFCONFIG_NAME = "multi_v7_defconfig"
|
||||
DEFCONFIG_NAME:omapl138 = "davinci_all_defconfig"
|
||||
DEFCONFIG_NAME:k3 = "defconfig"
|
||||
KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${DEFCONFIG_NAME}"
|
||||
|
||||
do_shared_workdir:prepend() {
|
||||
cd ${B}
|
||||
echo >> Module.symvers
|
||||
}
|
||||
|
||||
FILES:${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb"
|
||||
|
||||
@@ -1,26 +1,11 @@
|
||||
SECTION = "kernel"
|
||||
require linux-ti-mainline_git.bb
|
||||
|
||||
SUMMARY = "Linux-next kernel for TI devices"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
|
||||
|
||||
inherit kernel
|
||||
|
||||
require recipes-kernel/linux/ti-kernel.inc
|
||||
include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''}
|
||||
|
||||
DEPENDS += "gmp-native libmpc-native"
|
||||
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# 6.6.0-rc3+ version
|
||||
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"
|
||||
|
||||
DEFCONFIG_NAME = "multi_v7_defconfig"
|
||||
DEFCONFIG_NAME:omapl138 = "davinci_all_defconfig"
|
||||
DEFCONFIG_NAME:k3 = "defconfig"
|
||||
KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${DEFCONFIG_NAME}"
|
||||
|
||||
@@ -8,8 +8,8 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.1:"
|
||||
|
||||
BRANCH = "ti-rt-linux-6.1.y"
|
||||
|
||||
SRCREV = "871d5629a0ee4ae82d0caf8d57d4f711d54e1465"
|
||||
SRCREV = "96b0ebd82722d16e9ab646cd3a73080e6f790747"
|
||||
|
||||
include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if d.getVar('TI_EXTRAS') else ''}
|
||||
|
||||
PV = "6.1.80+git${SRCPV}"
|
||||
PV = "6.1.83+git"
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
require linux-ti-staging_6.6.bb
|
||||
|
||||
DEFAULT_PREFERENCE = "-1"
|
||||
|
||||
KERNEL_LOCALVERSION:append = "-rt"
|
||||
|
||||
# Look in the generic major.minor directory for files
|
||||
@@ -10,8 +8,8 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.6:"
|
||||
|
||||
BRANCH = "ti-rt-linux-6.6.y"
|
||||
|
||||
SRCREV = "280ec6b126cf337d787b398b5717f55599ecb91f"
|
||||
SRCREV = "e7925886029c9eadf1182fa31af4f70ad45b4b35"
|
||||
|
||||
include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if d.getVar('TI_EXTRAS') else ''}
|
||||
|
||||
PV = "6.6.20+git${SRCPV}"
|
||||
PV = "6.6.32+git"
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
require linux-ti-staging_6.6.bb
|
||||
|
||||
DEFAULT_PREFERENCE = "-1"
|
||||
|
||||
# Look in the generic major.minor directory for files
|
||||
# This will have priority over generic non-rt path
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.6:"
|
||||
|
||||
@@ -23,12 +23,8 @@ S = "${WORKDIR}/git"
|
||||
|
||||
BRANCH ?= "ti-linux-6.1.y"
|
||||
|
||||
SRCREV ?= "1c154b1fe4c462d8b383515bb388e289816e4b01"
|
||||
PV = "6.1.80+git${SRCPV}"
|
||||
|
||||
# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
|
||||
MACHINE_KERNEL_PR:append = "b"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
SRCREV ?= "c1c2f1971fbf6ddad93a8c94314fe8221e7aa6be"
|
||||
PV = "6.1.83+git"
|
||||
|
||||
KERNEL_GIT_URI ?= "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git"
|
||||
KERNEL_GIT_PROTOCOL = "https"
|
||||
|
||||
@@ -6,8 +6,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
|
||||
inherit ti-secdev
|
||||
inherit kernel
|
||||
|
||||
DEFAULT_PREFERENCE = "-1"
|
||||
|
||||
require recipes-kernel/linux/setup-defconfig.inc
|
||||
require recipes-kernel/linux/ti-kernel.inc
|
||||
include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''}
|
||||
@@ -25,12 +23,8 @@ S = "${WORKDIR}/git"
|
||||
|
||||
BRANCH ?= "ti-linux-6.6.y"
|
||||
|
||||
SRCREV ?= "83b86d0fb4afa43229844c77df29890de5d7b8d1"
|
||||
PV = "6.6.20+git${SRCPV}"
|
||||
|
||||
# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
|
||||
MACHINE_KERNEL_PR:append = "b"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
SRCREV ?= "8636139a4976bc9076db79c08dfbf82230fdcfe0"
|
||||
PV = "6.6.32+git"
|
||||
|
||||
KERNEL_GIT_URI ?= "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git"
|
||||
KERNEL_GIT_PROTOCOL = "https"
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
COMPATIBLE_MACHINE = "am62xx|am62pxx"
|
||||
|
||||
BRANCH = "ti-rt-linux-6.1.y"
|
||||
BRANCH:tie-jailhouse = "ti-rt-linux-6.1.y-jailhouse"
|
||||
BRANCH = "ti-rt-linux-6.6.y"
|
||||
BRANCH:tie-jailhouse = "ti-rt-linux-6.6.y-jailhouse"
|
||||
|
||||
SRCREV = "685e77152461bd6b791500f717bec62d17c1b36d"
|
||||
SRCREV:tie-jailhouse = "a74088b40b4d27478a2af5c20cdc0b4ec8ed9470"
|
||||
SRCREV = "fb89cd4d622ce6cc1b7b254ae21298570d437a08"
|
||||
SRCREV:tie-jailhouse = "ea592a872ebdb974f26f6f839596e0a79e9d408b"
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
COMPATIBLE_MACHINE = "am62xx|am62pxx"
|
||||
|
||||
BRANCH = "ti-linux-6.1.y"
|
||||
BRANCH:tie-jailhouse = "ti-linux-6.1.y-jailhouse"
|
||||
BRANCH = "ti-linux-6.6.y"
|
||||
BRANCH:tie-jailhouse = "ti-linux-6.6.y-jailhouse"
|
||||
|
||||
SRCREV = "ec058c3ddc5377c629e988a95ef84826b14a3307"
|
||||
SRCREV:tie-jailhouse = "d035e0cc72399f1c087a63c4210d29e79a7a66e4"
|
||||
SRCREV = "e298dab666632b6f62ed61eac35813331341c3aa"
|
||||
SRCREV:tie-jailhouse = "b45ba5ae4b724d4a09c0c7125ffb49e9d58c04f7"
|
||||
|
||||
KERNEL_GIT_URI = "git://git.ti.com/git/processor-sdk/linux.git"
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
PV = "4.1.0+git"
|
||||
SRCREV = "f7e4ced15d1fefd073bbfc484fe0e1f74afe96c2"
|
||||
PV = "4.2.0+git"
|
||||
SRCREV = "3eac340a781c00ccd61b151b0e9c22a8c6e9f9f0"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
PV = "4.0.0+git"
|
||||
PV = "4.2.0+git"
|
||||
SRCREV = "378dc0db2d5dd279f58a3b6cb3f78ffd6b165035"
|
||||
|
||||
@@ -1,249 +0,0 @@
|
||||
|
||||
This is a fixup of the patch in meta-arm. The file:
|
||||
core/arch/arm/mm/pgt_cache.c
|
||||
was moved to:
|
||||
core/mm/pgt_cache.c
|
||||
|
||||
Ryan Eatmon <reatmon@ti.com>
|
||||
|
||||
|
||||
From 6f588813a170a671ebf1d6b51cebc7bc761295dc Mon Sep 17 00:00:00 2001
|
||||
From: Emekcan Aras <emekcan.aras@arm.com>
|
||||
Date: Wed, 21 Dec 2022 10:55:58 +0000
|
||||
Subject: [PATCH] core: Define section attributes for clang
|
||||
|
||||
Clang's attribute section is not same as gcc, here we need to add flags
|
||||
to sections so they can be eventually collected by linker into final
|
||||
output segments. Only way to do so with clang is to use
|
||||
|
||||
pragma clang section ...
|
||||
|
||||
The behavious is described here [1], this allows us to define names bss
|
||||
sections. This was not an issue until clang-15 where LLD linker starts
|
||||
to detect the section flags before merging them and throws the following
|
||||
errors
|
||||
|
||||
| ld.lld: error: section type mismatch for .nozi.kdata_page
|
||||
| >>> /mnt/b/yoe/master/build/tmp/work/qemuarm64-yoe-linux/optee-os-tadevkit/3.17.0-r0/build/core/arch/arm/kernel/thread.o:(.nozi.kdata_page): SHT_PROGBITS
|
||||
| >>> output section .nozi: SHT_NOBITS
|
||||
|
|
||||
| ld.lld: error: section type mismatch for .nozi.mmu.l2
|
||||
| >>> /mnt/b/yoe/master/build/tmp/work/qemuarm64-yoe-linux/optee-os-tadevkit/3.17.0-r0/build/core/arch/arm/mm/core_mmu_lpae.o:(.nozi.mmu.l2): SHT_PROGBITS
|
||||
| >>> output section .nozi: SHT_NOBITS
|
||||
|
||||
These sections should be carrying SHT_NOBITS but so far it was not
|
||||
possible to do so, this patch tries to use clangs pragma to get this
|
||||
going and match the functionality with gcc.
|
||||
|
||||
[1] https://intel.github.io/llvm-docs/clang/LanguageExtensions.html#specifying-section-names-for-global-objects-pragma-clang-section
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
core/arch/arm/kernel/thread.c | 19 +++++++++++++++--
|
||||
core/arch/arm/mm/core_mmu_lpae.c | 35 +++++++++++++++++++++++++++----
|
||||
core/arch/arm/mm/core_mmu_v7.c | 36 +++++++++++++++++++++++++++++---
|
||||
core/arch/arm/mm/pgt_cache.c | 12 ++++++++++-
|
||||
core/kernel/thread.c | 13 +++++++++++-
|
||||
5 files changed, 104 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/core/arch/arm/kernel/thread.c b/core/arch/arm/kernel/thread.c
|
||||
index 4487ef026df9..f3624389611b 100644
|
||||
--- a/core/arch/arm/kernel/thread.c
|
||||
+++ b/core/arch/arm/kernel/thread.c
|
||||
@@ -44,15 +44,30 @@ static size_t thread_user_kcode_size __nex_bss;
|
||||
#if defined(CFG_CORE_UNMAP_CORE_AT_EL0) && \
|
||||
defined(CFG_CORE_WORKAROUND_SPECTRE_BP_SEC) && defined(ARM64)
|
||||
long thread_user_kdata_sp_offset __nex_bss;
|
||||
+#ifdef __clang__
|
||||
+#ifndef CFG_VIRTUALIZATION
|
||||
+#pragma clang section bss=".nozi.kdata_page"
|
||||
+#else
|
||||
+#pragma clang section bss=".nex_nozi.kdata_page"
|
||||
+#endif
|
||||
+#endif
|
||||
static uint8_t thread_user_kdata_page[
|
||||
ROUNDUP(sizeof(struct thread_core_local) * CFG_TEE_CORE_NB_CORE,
|
||||
SMALL_PAGE_SIZE)]
|
||||
__aligned(SMALL_PAGE_SIZE)
|
||||
+#ifndef __clang__
|
||||
#ifndef CFG_NS_VIRTUALIZATION
|
||||
- __section(".nozi.kdata_page");
|
||||
+ __section(".nozi.kdata_page")
|
||||
#else
|
||||
- __section(".nex_nozi.kdata_page");
|
||||
+ __section(".nex_nozi.kdata_page")
|
||||
#endif
|
||||
+#endif
|
||||
+ ;
|
||||
+#endif
|
||||
+
|
||||
+/* reset BSS section to default ( .bss ) */
|
||||
+#ifdef __clang__
|
||||
+#pragma clang section bss=""
|
||||
#endif
|
||||
|
||||
#ifdef ARM32
|
||||
diff --git a/core/arch/arm/mm/core_mmu_lpae.c b/core/arch/arm/mm/core_mmu_lpae.c
|
||||
index 7e79f780ad28..ec4db9dc98c5 100644
|
||||
--- a/core/arch/arm/mm/core_mmu_lpae.c
|
||||
+++ b/core/arch/arm/mm/core_mmu_lpae.c
|
||||
@@ -233,19 +233,46 @@ typedef uint16_t l1_idx_t;
|
||||
typedef uint64_t base_xlat_tbls_t[CFG_TEE_CORE_NB_CORE][NUM_BASE_LEVEL_ENTRIES];
|
||||
typedef uint64_t xlat_tbl_t[XLAT_TABLE_ENTRIES];
|
||||
|
||||
+#ifdef __clang__
|
||||
+#pragma clang section bss=".nozi.mmu.base_table"
|
||||
+#endif
|
||||
static base_xlat_tbls_t base_xlation_table[NUM_BASE_TABLES]
|
||||
__aligned(NUM_BASE_LEVEL_ENTRIES * XLAT_ENTRY_SIZE)
|
||||
- __section(".nozi.mmu.base_table");
|
||||
+#ifndef __clang__
|
||||
+ __section(".nozi.mmu.base_table")
|
||||
+#endif
|
||||
+;
|
||||
+#ifdef __clang__
|
||||
+#pragma clang section bss=""
|
||||
+#endif
|
||||
|
||||
+#ifdef __clang__
|
||||
+#pragma clang section bss=".nozi.mmu.l2"
|
||||
+#endif
|
||||
static xlat_tbl_t xlat_tables[MAX_XLAT_TABLES]
|
||||
- __aligned(XLAT_TABLE_SIZE) __section(".nozi.mmu.l2");
|
||||
+ __aligned(XLAT_TABLE_SIZE)
|
||||
+#ifndef __clang__
|
||||
+ __section(".nozi.mmu.l2")
|
||||
+#endif
|
||||
+;
|
||||
+#ifdef __clang__
|
||||
+#pragma clang section bss=""
|
||||
+#endif
|
||||
|
||||
#define XLAT_TABLES_SIZE (sizeof(xlat_tbl_t) * MAX_XLAT_TABLES)
|
||||
|
||||
+#ifdef __clang__
|
||||
+#pragma clang section bss=".nozi.mmu.l2"
|
||||
+#endif
|
||||
/* MMU L2 table for TAs, one for each thread */
|
||||
static xlat_tbl_t xlat_tables_ul1[CFG_NUM_THREADS]
|
||||
- __aligned(XLAT_TABLE_SIZE) __section(".nozi.mmu.l2");
|
||||
-
|
||||
+#ifndef __clang__
|
||||
+ __aligned(XLAT_TABLE_SIZE) __section(".nozi.mmu.l2")
|
||||
+#endif
|
||||
+;
|
||||
+#ifdef __clang__
|
||||
+#pragma clang section bss=""
|
||||
+#endif
|
||||
/*
|
||||
* TAs page table entry inside a level 1 page table.
|
||||
*
|
||||
diff --git a/core/arch/arm/mm/core_mmu_v7.c b/core/arch/arm/mm/core_mmu_v7.c
|
||||
index 61e703da89c8..1960c08ca688 100644
|
||||
--- a/core/arch/arm/mm/core_mmu_v7.c
|
||||
+++ b/core/arch/arm/mm/core_mmu_v7.c
|
||||
@@ -204,16 +204,46 @@ typedef uint32_t l1_xlat_tbl_t[NUM_L1_ENTRIES];
|
||||
typedef uint32_t l2_xlat_tbl_t[NUM_L2_ENTRIES];
|
||||
typedef uint32_t ul1_xlat_tbl_t[NUM_UL1_ENTRIES];
|
||||
|
||||
+#ifdef __clang__
|
||||
+#pragma clang section bss=".nozi.mmu.l1"
|
||||
+#endif
|
||||
static l1_xlat_tbl_t main_mmu_l1_ttb
|
||||
- __aligned(L1_ALIGNMENT) __section(".nozi.mmu.l1");
|
||||
+ __aligned(L1_ALIGNMENT)
|
||||
+#ifndef __clang__
|
||||
+ __section(".nozi.mmu.l1")
|
||||
+#endif
|
||||
+;
|
||||
+#ifdef __clang__
|
||||
+#pragma clang section bss=""
|
||||
+#endif
|
||||
|
||||
/* L2 MMU tables */
|
||||
+#ifdef __clang__
|
||||
+#pragma clang section bss=".nozi.mmu.l2"
|
||||
+#endif
|
||||
static l2_xlat_tbl_t main_mmu_l2_ttb[MAX_XLAT_TABLES]
|
||||
- __aligned(L2_ALIGNMENT) __section(".nozi.mmu.l2");
|
||||
+ __aligned(L2_ALIGNMENT)
|
||||
+#ifndef __clang__
|
||||
+ __section(".nozi.mmu.l2")
|
||||
+#endif
|
||||
+;
|
||||
+#ifdef __clang__
|
||||
+#pragma clang section bss=""
|
||||
+#endif
|
||||
|
||||
/* MMU L1 table for TAs, one for each thread */
|
||||
+#ifdef __clang__
|
||||
+#pragma clang section bss=".nozi.mmu.ul1"
|
||||
+#endif
|
||||
static ul1_xlat_tbl_t main_mmu_ul1_ttb[CFG_NUM_THREADS]
|
||||
- __aligned(UL1_ALIGNMENT) __section(".nozi.mmu.ul1");
|
||||
+ __aligned(UL1_ALIGNMENT)
|
||||
+#ifndef __clang__
|
||||
+ __section(".nozi.mmu.ul1")
|
||||
+#endif
|
||||
+;
|
||||
+#ifdef __clang__
|
||||
+#pragma clang section bss=""
|
||||
+#endif
|
||||
|
||||
struct mmu_partition {
|
||||
l1_xlat_tbl_t *l1_table;
|
||||
diff --git a/core/mm/pgt_cache.c b/core/mm/pgt_cache.c
|
||||
index 79553c6d2183..b9efdf42780b 100644
|
||||
--- a/core/mm/pgt_cache.c
|
||||
+++ b/core/mm/pgt_cache.c
|
||||
@@ -410,8 +410,18 @@ void pgt_init(void)
|
||||
* has a large alignment, while .bss has a small alignment. The current
|
||||
* link script is optimized for small alignment in .bss
|
||||
*/
|
||||
+#ifdef __clang__
|
||||
+#pragma clang section bss=".nozi.mmu.l2"
|
||||
+#endif
|
||||
static uint8_t pgt_tables[PGT_CACHE_SIZE][PGT_SIZE]
|
||||
- __aligned(PGT_SIZE) __section(".nozi.pgt_cache");
|
||||
+ __aligned(PGT_SIZE)
|
||||
+#ifndef __clang__
|
||||
+ __section(".nozi.pgt_cache")
|
||||
+#endif
|
||||
+ ;
|
||||
+#ifdef __clang__
|
||||
+#pragma clang section bss=""
|
||||
+#endif
|
||||
size_t n;
|
||||
|
||||
for (n = 0; n < ARRAY_SIZE(pgt_tables); n++) {
|
||||
diff --git a/core/kernel/thread.c b/core/kernel/thread.c
|
||||
index 2a1f22dce635..5516b677141a 100644
|
||||
--- a/core/kernel/thread.c
|
||||
+++ b/core/kernel/thread.c
|
||||
@@ -39,13 +39,24 @@ static uint32_t end_canary_value = 0xababab00;
|
||||
name[stack_num][sizeof(name[stack_num]) / sizeof(uint32_t) - 1]
|
||||
#endif
|
||||
|
||||
+#define DO_PRAGMA(x) _Pragma (#x)
|
||||
+
|
||||
+#ifdef __clang__
|
||||
+#define DECLARE_STACK(name, num_stacks, stack_size, linkage) \
|
||||
+DO_PRAGMA (clang section bss=".nozi_stack." #name) \
|
||||
+linkage uint32_t name[num_stacks] \
|
||||
+ [ROUNDUP(stack_size + STACK_CANARY_SIZE + STACK_CHECK_EXTRA, \
|
||||
+ STACK_ALIGNMENT) / sizeof(uint32_t)] \
|
||||
+ __attribute__((aligned(STACK_ALIGNMENT))); \
|
||||
+DO_PRAGMA(clang section bss="")
|
||||
+#else
|
||||
#define DECLARE_STACK(name, num_stacks, stack_size, linkage) \
|
||||
linkage uint32_t name[num_stacks] \
|
||||
[ROUNDUP(stack_size + STACK_CANARY_SIZE + STACK_CHECK_EXTRA, \
|
||||
STACK_ALIGNMENT) / sizeof(uint32_t)] \
|
||||
__attribute__((section(".nozi_stack." # name), \
|
||||
aligned(STACK_ALIGNMENT)))
|
||||
-
|
||||
+#endif
|
||||
#define GET_STACK(stack) ((vaddr_t)(stack) + STACK_SIZE(stack))
|
||||
|
||||
DECLARE_STACK(stack_tmp, CFG_TEE_CORE_NB_CORE, STACK_TMP_SIZE,
|
||||
@@ -1,7 +1,2 @@
|
||||
PV = "4.1.0+git"
|
||||
SRCREV = "012cdca49db398693903e05c42a254a3a0c0d8f2"
|
||||
|
||||
# Fixes for pointing to 4.0.0 before upstream meta-arm
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-4.0.0:"
|
||||
SRC_URI:remove = "file://0002-core-Define-section-attributes-for-clang.patch"
|
||||
SRC_URI:append = " file://0002ti-core-Define-section-attributes-for-clang.patch"
|
||||
PV = "4.2.0+git"
|
||||
SRCREV = "12d7c4ee4642d2d761e39fbcf21a06fb77141dea"
|
||||
|
||||
@@ -1,6 +1,2 @@
|
||||
PV = "4.1.0+git"
|
||||
SRCREV = "2e1e7a9c9d659585566a75fc8802f4758c42bcb2"
|
||||
|
||||
# Fixes for pointing to 4.0.0 before upstream meta-arm
|
||||
SRC_URI:remove = "file://0001-xtest-regression_1000-remove-unneeded-stat.h-include.patch"
|
||||
|
||||
PV = "4.2.0+git"
|
||||
SRCREV = "526d5bac1b65f907f67c05cd07beca72fbab88dd"
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
empty
|
||||
@@ -127,7 +127,6 @@ ALTERNATIVE:${PN}:am64xx = "\
|
||||
|
||||
ALTERNATIVE:${PN}:am62xx = "\
|
||||
am62-mcu-m4f0_0-fw am62-mcu-m4f0_0-fw-sec \
|
||||
am62-main-r5f0_0-fw am62-main-r5f0_0-fw-sec \
|
||||
"
|
||||
|
||||
ALTERNATIVE:${PN}:am62pxx = "\
|
||||
@@ -207,8 +206,6 @@ ALTERNATIVE_LINK_NAME[am64-mcu-m4f0_0-fw-sec] = "${nonarch_base_libdir}/firmware
|
||||
|
||||
ALTERNATIVE_LINK_NAME[am62-mcu-m4f0_0-fw] = "${nonarch_base_libdir}/firmware/am62-mcu-m4f0_0-fw"
|
||||
ALTERNATIVE_LINK_NAME[am62-mcu-m4f0_0-fw-sec] = "${nonarch_base_libdir}/firmware/am62-mcu-m4f0_0-fw-sec"
|
||||
ALTERNATIVE_LINK_NAME[am62-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/am62-main-r5f0_0-fw"
|
||||
ALTERNATIVE_LINK_NAME[am62-main-r5f0_0-fw-sec] = "${nonarch_base_libdir}/firmware/am62-main-r5f0_0-fw-sec"
|
||||
|
||||
ALTERNATIVE_LINK_NAME[am62p-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/am62p-mcu-r5f0_0-fw"
|
||||
ALTERNATIVE_LINK_NAME[am62p-mcu-r5f0_0-fw-sec] = "${nonarch_base_libdir}/firmware/am62p-mcu-r5f0_0-fw-sec"
|
||||
@@ -309,8 +306,6 @@ ALTERNATIVE_TARGET[am64-mcu-m4f0_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_3_0_FW
|
||||
|
||||
ALTERNATIVE_TARGET[am62-mcu-m4f0_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}"
|
||||
ALTERNATIVE_TARGET[am62-mcu-m4f0_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}.signed"
|
||||
ALTERNATIVE_TARGET[am62-main-r5f0_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}"
|
||||
ALTERNATIVE_TARGET[am62-main-r5f0_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}.signed"
|
||||
|
||||
ALTERNATIVE_TARGET[am62p-mcu-r5f0_0-fw] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}"
|
||||
ALTERNATIVE_TARGET[am62p-mcu-r5f0_0-fw-sec] = "${INSTALL_IPC_FW_DIR}/${MCU_2_0_FW}.signed"
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
|
||||
|
||||
COMPATIBLE_MACHINE = "j721e|j7200|am65xx|am64xx"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
|
||||
inherit nopackages deploy
|
||||
|
||||
PLAT_SFX = ""
|
||||
PLAT_SFX:j721e = "/j721e"
|
||||
PLAT_SFX:j7200 = "/j7200"
|
||||
PLAT_SFX:am65xx = "/am65xx"
|
||||
PLAT_SFX:am64xx = "/am64x"
|
||||
|
||||
# Use weak assignment to set defaults to TI_RTOS_METADATA_* variables
|
||||
TI_RTOS_METADATA_URI ?= "git://git.ti.com/git/processor-sdk/coresdk_rtos_releases.git"
|
||||
TI_RTOS_METADATA_PROTOCOL ?= "https"
|
||||
TI_RTOS_METADATA_SRCREV ?= "2ecbf45af64bc47806623cc5bf7ab493489acaf9"
|
||||
TI_RTOS_METADATA_BRANCH ?= "master"
|
||||
TI_RTOS_METADATA_DIR ?= "${PLAT_SFX}"
|
||||
TI_RTOS_METADATA_FILE ?= "${S}${TI_RTOS_METADATA_DIR}/metadata.inc"
|
||||
TI_RTOS_METADATA_FILE:am64xx ?= "${S}${TI_RTOS_METADATA_DIR}/mcusdk_metadata.inc"
|
||||
|
||||
PV = "1.0.0+git"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRC_URI = "${TI_RTOS_METADATA_URI};branch=${TI_RTOS_METADATA_BRANCH};protocol=${TI_RTOS_METADATA_PROTOCOL}"
|
||||
SRCREV = "${TI_RTOS_METADATA_SRCREV}"
|
||||
|
||||
do_configure[noexec] = "1"
|
||||
do_compile[noexec] = "1"
|
||||
do_install[noexec] = "1"
|
||||
|
||||
do_deploy () {
|
||||
:
|
||||
}
|
||||
|
||||
do_deploy:k3 () {
|
||||
install -d ${DEPLOYDIR}
|
||||
install -m 0644 ${TI_RTOS_METADATA_FILE} ${DEPLOYDIR}/
|
||||
}
|
||||
|
||||
addtask deploy before do_build after do_compile
|
||||
@@ -2,6 +2,7 @@
|
||||
# long-description: Creates a partitioned SD card image for TI platforms that
|
||||
# supports EFI. Boot files are located in the first vfat partition with extra
|
||||
# reserved space. We cannot use a GPT here.
|
||||
|
||||
bootloader --timeout=3 --append="rootfstype=ext4"
|
||||
part /boot --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER}" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M
|
||||
part --source bootimg-efi --sourceparams="loader=${EFI_PROVIDER}" --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M
|
||||
part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
# long-description: Creates a partitioned SD card image for TI platforms.
|
||||
# Boot files are located in the first vfat partition with extra reserved space.
|
||||
|
||||
part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 1024 --fixed-size 128 --use-uuid
|
||||
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 1024 --use-uuid
|
||||
part --source bootimg-partition --fstype=vfat --label boot --active --align 1024 --use-uuid --fixed-size 128M
|
||||
part / --source rootfs --fstype=ext4 --label root --align 1024 --use-uuid
|
||||
|
||||
@@ -8,14 +8,14 @@ This layer depends on:
|
||||
|
||||
URI: git://git.openembedded.org/openembedded-core
|
||||
layers: meta
|
||||
branch: master
|
||||
branch: scarthgap
|
||||
|
||||
URI: git://git.yoctoproject.org/meta-arm
|
||||
layers: meta-arm
|
||||
branch: master
|
||||
branch: scarthgap
|
||||
|
||||
URI: git://git.yoctoproject.org/meta-ti
|
||||
branch: master
|
||||
branch: scarthgap
|
||||
revision: HEAD
|
||||
layers: meta-ti-bsp
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ BBFILE_COLLECTIONS += "meta-ti-extras"
|
||||
BBFILE_PATTERN_meta-ti-extras := "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_meta-ti-extras = "6"
|
||||
|
||||
LAYERSERIES_COMPAT_meta-ti-extras = "kirkstone langdale mickledore nanbield scarthgap"
|
||||
LAYERSERIES_COMPAT_meta-ti-extras = "scarthgap"
|
||||
|
||||
LICENSE_PATH += "${LAYERDIR}/licenses"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ DESCRIPTION = "Firmware files for Bluetooth"
|
||||
LICENSE = "TI-TSPA"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=f39eac9f4573be5b012e8313831e72a9"
|
||||
|
||||
PV = "8.7.1+git${SRCPV}"
|
||||
PV = "8.7.1+git"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
|
||||
22
meta-ti-extras/recipes-bsp/cc33xx-fw/cc33xx-fw_git.bb
Normal file
22
meta-ti-extras/recipes-bsp/cc33xx-fw/cc33xx-fw_git.bb
Normal file
@@ -0,0 +1,22 @@
|
||||
SUMMARY = "Firmware files for use with TI cc33xx"
|
||||
LICENSE = "TI-TSPA"
|
||||
LIC_FILES_CHKSUM = "file://LICENCE;md5=df68504cbd0a4da1643ebcfd5783dbc9"
|
||||
|
||||
SRCREV = "988ded3a7d4d0e46de62e9ebfcb685c502bd9edf"
|
||||
SRC_URI = "git://git.ti.com/git/cc33xx-wlan/cc33xx-fw.git;protocol=https;branch=master"
|
||||
|
||||
PV = "1.7.0.120"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_compile[no_exec] = "1"
|
||||
|
||||
EXTRA_OEMAKE = "DEST_DIR=${D} BASE_LIB_DIR=${nonarch_base_libdir}"
|
||||
|
||||
do_install() {
|
||||
oe_runmake install
|
||||
}
|
||||
|
||||
FILES:${PN} = "${nonarch_base_libdir}/firmware/ti-connectivity/*"
|
||||
@@ -2,10 +2,7 @@ DESCRIPTION = "Debug Sub-System (DebugSS) driver for Keystone and DRA7xx devices
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=9d4316fe434ba450dca4da25348ca5a3"
|
||||
|
||||
# This package builds a kernel module, use kernel PR as base and append a local
|
||||
MACHINE_KERNEL_PR:append = "d"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
PV:append = "+git${SRCPV}"
|
||||
PV:append = "+git"
|
||||
|
||||
S = "${WORKDIR}/git/debugss_module/debugss-mod"
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
SUMMARY = "The calibrator utility for TI wireless solution based on cc33xx driver"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d5fc448a36efe573623542dcb989afc4"
|
||||
|
||||
SRCREV = "89d7e55b40972cbfc84f0734c35a7a6b4f7f5b31"
|
||||
SRC_URI = "git://git.ti.com/git/cc33xx-wlan/cc33xx-utils.git;branch=master;protocol=https"
|
||||
|
||||
PV = "1.0.0.50"
|
||||
|
||||
DEPENDS = "libnl"
|
||||
|
||||
S = "${WORKDIR}/git/cc33calibrator"
|
||||
|
||||
export CROSS_COMPILE = "${TARGET_PREFIX}"
|
||||
|
||||
EXTRA_OEMAKE = "CFLAGS="${CFLAGS} -I${STAGING_INCDIR}/libnl3/ -DCONFIG_LIBNL32 " \
|
||||
LDFLAGS="${LDFLAGS} -L${STAGING_LIBDIR}" \
|
||||
CC="${CC}" \
|
||||
NLVER=3"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 cc33calibrator ${D}${bindir}/
|
||||
}
|
||||
29
meta-ti-extras/recipes-connectivity/cc33conf/cc33conf_git.bb
Normal file
29
meta-ti-extras/recipes-connectivity/cc33conf/cc33conf_git.bb
Normal file
@@ -0,0 +1,29 @@
|
||||
SUMMARY = "Configuration utility for TI CC33xx wireless devices"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d5fc448a36efe573623542dcb989afc4"
|
||||
|
||||
SRCREV = "a2f84140b8d67cfc94472cf92676a409d1e47d86"
|
||||
SRC_URI = "git://git.ti.com/git/cc33xx-wlan/cc33xx-utils.git;branch=master;protocol=https"
|
||||
|
||||
PV = "1.7.0.120"
|
||||
|
||||
S = "${WORKDIR}/git/cc33conf"
|
||||
|
||||
EXTRA_OEMAKE = "CC="${CC}""
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${sbindir}
|
||||
install -d ${D}${sbindir}/cc33conf/
|
||||
|
||||
install -m 0755 cc33xxconf ${D}${sbindir}/cc33conf/
|
||||
install -m 0755 dictionary.txt ${D}${sbindir}/cc33conf/
|
||||
install -m 0755 default.conf ${D}${sbindir}/cc33conf/
|
||||
install -m 0755 README ${D}${sbindir}/cc33conf/
|
||||
install -m 0755 cc33xx-conf.conf ${D}${sbindir}/cc33conf/
|
||||
install -m 0755 cc33xx-conf.ini ${D}${sbindir}/cc33conf/
|
||||
install -m 0755 conf.h ${D}${sbindir}/cc33conf/
|
||||
}
|
||||
|
||||
FILES:${PN} += " \
|
||||
${sbindir}/cc33conf \
|
||||
"
|
||||
@@ -0,0 +1,20 @@
|
||||
SUMMARY = "Scripts and configuration files for TI cc33xx wireless drivers"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=904443cf7fae5c09c3d5f83f8557c265"
|
||||
|
||||
SRCREV = "4371c93ea01b339f6f73f77d6d6bfcc185def8c0"
|
||||
SRC_URI = "git://git.ti.com/git/cc33xx-wlan/cc33xx-target-scripts.git;protocol=https;branch=master"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
FILES:${PN} += "${datadir}/cc33xx/"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${datadir}/cc33xx/
|
||||
|
||||
scripts=`find ./* -type f -name "*.*"`
|
||||
for s in $scripts
|
||||
do
|
||||
install -m 0755 $s ${D}${datadir}/cc33xx/
|
||||
done
|
||||
}
|
||||
@@ -2,8 +2,8 @@ DESCRIPTION = "Scripts and configuration files for TI wireless drivers"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=21;md5=b8d6a0865f50159bf5c0d175d1f4a705"
|
||||
|
||||
# Tag: R8.7_SP3 (8.7.3)
|
||||
SRCREV = "a07b6e711d2a70608101d3d6cdc5749c4d8a96d5"
|
||||
# Tag: R8.8.1
|
||||
SRCREV = "8bcee075061527d61f26d6d506aebdfd496037d9"
|
||||
BRANCH = "sitara-scripts"
|
||||
SRC_URI = "git://git.ti.com/git/wilink8-wlan/wl18xx-target-scripts.git;protocol=https;branch=${BRANCH} \
|
||||
file://0001-print_stat.sh-replace-system-bin-sh-with-bin-sh.patch \
|
||||
@@ -2,10 +2,7 @@ DESCRIPTION = "Interface for GDB to commincate witha TI C66X DSP"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=75859989545e37968a99b631ef42722e"
|
||||
|
||||
# This package builds a kernel module, use kernel PR as base and append a local
|
||||
MACHINE_KERNEL_PR:append = "b"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
PV:append = "+git${SRCPV}"
|
||||
PV:append = "+git"
|
||||
|
||||
SRC_URI:append = "\
|
||||
file://0001-Support-Linux-kernels-v5.15.patch;patchdir=../.. \
|
||||
|
||||
@@ -51,11 +51,11 @@ do_install() {
|
||||
install -d ${D}/boot
|
||||
if [ -n "${JH_RAMFS_IMAGE}" ]
|
||||
then
|
||||
if [ -f ${DEPLOY_DIR_IMAGE}/${JH_RAMFS_IMAGE}-${MACHINE}.cpio ]
|
||||
if [ -f ${DEPLOY_DIR_IMAGE}/${JH_RAMFS_IMAGE}*-${MACHINE}.rootfs.cpio ]
|
||||
then
|
||||
install -m 0644 ${DEPLOY_DIR_IMAGE}/${JH_RAMFS_IMAGE}-${MACHINE}.cpio ${D}/boot
|
||||
install -m 0644 ${DEPLOY_DIR_IMAGE}/${JH_RAMFS_IMAGE}*-${MACHINE}.rootfs.cpio ${D}/boot
|
||||
else
|
||||
bberror "Could not find JH_RAMFS_IMAGE (${JH_RAMFS_IMAGE}-${MACHINE}.cpio)!"
|
||||
bberror "Could not find JH_RAMFS_IMAGE (${JH_RAMFS_IMAGE}*-${MACHINE}.rootfs.cpio)!"
|
||||
bberror "Please make sure that \"cpio\" is in IMAGE_FSTYPES."
|
||||
fi
|
||||
fi
|
||||
@@ -68,7 +68,7 @@ do_install() {
|
||||
./jailhouse-cell-linux -w ${D}${JH_DATADIR}/${JH_INMATE_DTB} \
|
||||
-a ${JH_ARCH} -c "${JH_CMDLINE}" \
|
||||
-d ../configs/${JH_ARCH}/dts/${JH_INMATE_DTB} \
|
||||
-i ${D}/boot/${JH_RAMFS_IMAGE}-${MACHINE}.cpio \
|
||||
-i ${D}/boot/${JH_RAMFS_IMAGE}*-${MACHINE}.rootfs.cpio \
|
||||
${D}${CELL_DIR}/${JH_LINUX_DEMO_CELL} \
|
||||
${DEPLOY_DIR_IMAGE}/Image \
|
||||
| tr -cd '\11\12\15\40-\176' \
|
||||
@@ -96,7 +96,8 @@ RDEPENDS:pyjailhouse = "python3-core python3-ctypes python3-fcntl python3-shell"
|
||||
|
||||
RRECOMMENDS:${PN} = "${PN}-tools"
|
||||
|
||||
INSANE_SKIP:${PN} = "ldflags"
|
||||
INSANE_SKIP:${PN} = "ldflags usrmerge"
|
||||
INSANE_SKIP:${PN}-dbg = "usrmerge buildpaths"
|
||||
|
||||
KERNEL_MODULE_AUTOLOAD += "jailhouse"
|
||||
|
||||
@@ -117,10 +118,7 @@ python __anonymous () {
|
||||
}
|
||||
|
||||
FILES:${PN} = " \
|
||||
/boot/* \
|
||||
/usr/libexec \
|
||||
/usr/sbin/* \
|
||||
/usr/libexec/* \
|
||||
/usr/share/* \
|
||||
/lib/firmware/* \
|
||||
/boot \
|
||||
/usr \
|
||||
/lib \
|
||||
"
|
||||
|
||||
@@ -13,8 +13,8 @@ LIC_FILES_CHKSUM = " \
|
||||
|
||||
COMPATIBLE_MACHINE = "am62xx|am62pxx"
|
||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||
PV = "0.12+git${SRCPV}"
|
||||
SRCREV = "0b29ad90f6f54105b98d6bbf35cc47fb244f7799"
|
||||
PV = "0.12+git"
|
||||
SRCREV = "9b494ddf4bd8845a2c1063352d08a274ef61777b"
|
||||
BRANCH = "master"
|
||||
SRC_URI = " \
|
||||
git://git.ti.com/git/jailhouse/ti-jailhouse.git;protocol=https;branch=${BRANCH} \
|
||||
|
||||
Reference in New Issue
Block a user