mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-01-12 01:20:20 +00:00
Compare commits
196 Commits
07.02.00.0
...
08.01.00.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9779e93f1 | ||
|
|
29967d89a6 | ||
|
|
64c1d9d96e | ||
|
|
288c8ce60c | ||
|
|
1eb6e71fe0 | ||
|
|
f438a091c3 | ||
|
|
9e1ba1f2e4 | ||
|
|
194d0bdc71 | ||
|
|
3f15773534 | ||
|
|
926e364877 | ||
|
|
33d5f0bb7d | ||
|
|
4cde8b6cae | ||
|
|
e20113d667 | ||
|
|
c28a6115d9 | ||
|
|
7ba78e1b89 | ||
|
|
ea40937c4b | ||
|
|
2b6083bbed | ||
|
|
cae609388f | ||
|
|
4c6598f599 | ||
|
|
d209ac535f | ||
|
|
1d8f8d6fcb | ||
|
|
c16501a174 | ||
|
|
a6831f4582 | ||
|
|
1d1cddb591 | ||
|
|
f636442280 | ||
|
|
99bf928c6e | ||
|
|
b9242a8e69 | ||
|
|
76598338a4 | ||
|
|
cf61a92e05 | ||
|
|
a919b76182 | ||
|
|
2618717573 | ||
|
|
4cfb3bc461 | ||
|
|
79ffa04131 | ||
|
|
224394b19a | ||
|
|
64c3bae663 | ||
|
|
86a47d35a9 | ||
|
|
fafa3ed7d2 | ||
|
|
dbbec0dd00 | ||
|
|
309e15ae51 | ||
|
|
5c24508214 | ||
|
|
eb051b4a33 | ||
|
|
1fe4515cee | ||
|
|
bc74a9cfc3 | ||
|
|
6cea06c3e2 | ||
|
|
537ef85437 | ||
|
|
be7b2c5824 | ||
|
|
e75a2df826 | ||
|
|
b2c515a5ab | ||
|
|
c3ce6cd08d | ||
|
|
d0b09833b4 | ||
|
|
211f440f5b | ||
|
|
15f3d4a3c3 | ||
|
|
96852ff4ff | ||
|
|
78b1f1de6b | ||
|
|
6c6646adf5 | ||
|
|
67c16e291c | ||
|
|
92068df915 | ||
|
|
4a9c7c18d4 | ||
|
|
13f9690aa6 | ||
|
|
344de9c04c | ||
|
|
63d042cc10 | ||
|
|
eff643e591 | ||
|
|
e287e588bb | ||
|
|
ee7389ab67 | ||
|
|
26acf04c06 | ||
|
|
64012ed5e0 | ||
|
|
c63eff371b | ||
|
|
46fcec17d5 | ||
|
|
5aaea8ee7f | ||
|
|
bad7dbba38 | ||
|
|
d5db414172 | ||
|
|
69f5800255 | ||
|
|
4a63e03c63 | ||
|
|
518092b90a | ||
|
|
24959c861c | ||
|
|
3d86b4f2bb | ||
|
|
05fd87a80e | ||
|
|
406f599822 | ||
|
|
b394c5feba | ||
|
|
7c4f40e09b | ||
|
|
ececc4f073 | ||
|
|
d8e96545f1 | ||
|
|
7876863adb | ||
|
|
2ab3edaf70 | ||
|
|
749fcd9b91 | ||
|
|
02a2433c47 | ||
|
|
f4dfe17248 | ||
|
|
cb349db54f | ||
|
|
3f7375b6d1 | ||
|
|
65a60dc349 | ||
|
|
45f43b3a29 | ||
|
|
e13d00e73e | ||
|
|
cd4e782d01 | ||
|
|
2de2c5ec01 | ||
|
|
6983b50ecf | ||
|
|
fbcd6401ae | ||
|
|
48dabba548 | ||
|
|
99cf543ee3 | ||
|
|
0a7997966f | ||
|
|
33ad83a1de | ||
|
|
b180f68878 | ||
|
|
f0abcc93b2 | ||
|
|
b0693ec74e | ||
|
|
87e80d7ad5 | ||
|
|
492dc9ebe7 | ||
|
|
78e0514091 | ||
|
|
618058733b | ||
|
|
8ec0047a59 | ||
|
|
b5f7ee1ad0 | ||
|
|
cb71afd6f0 | ||
|
|
4327c89816 | ||
|
|
4c3481159e | ||
|
|
e6a02d3eca | ||
|
|
64c450cc36 | ||
|
|
f775554c61 | ||
|
|
370b80eb00 | ||
|
|
856bc72e8a | ||
|
|
3bd1551585 | ||
|
|
b089096575 | ||
|
|
f9ab185896 | ||
|
|
6a45f077c7 | ||
|
|
8bdfe1413c | ||
|
|
43bf0f36a3 | ||
|
|
ba0ddc5ae9 | ||
|
|
ad28c58781 | ||
|
|
0d04083f54 | ||
|
|
9ea50db095 | ||
|
|
fb0a0ddd25 | ||
|
|
8b206b32ec | ||
|
|
61457cc75d | ||
|
|
0a604e6ab7 | ||
|
|
48d5570ce6 | ||
|
|
7793303e6c | ||
|
|
1669778190 | ||
|
|
4a39ee8c9a | ||
|
|
4442defeb9 | ||
|
|
916b2256db | ||
|
|
55f2b9a1fa | ||
|
|
235ff03755 | ||
|
|
0aa7a43f7f | ||
|
|
02a53f48b9 | ||
|
|
1da075847d | ||
|
|
5e3770dbfb | ||
|
|
03450999c5 | ||
|
|
44d9a6a344 | ||
|
|
6d4a13deb0 | ||
|
|
fbbeea5344 | ||
|
|
4393653953 | ||
|
|
ff6e95ff42 | ||
|
|
be0c8f09c4 | ||
|
|
f36bf3544c | ||
|
|
d1fec62587 | ||
|
|
31ff7a4768 | ||
|
|
eb52e3d60f | ||
|
|
b3e1efd370 | ||
|
|
75e510d8bd | ||
|
|
7f98b27724 | ||
|
|
51a6085326 | ||
|
|
8b1aa75cfe | ||
|
|
5809a83e37 | ||
|
|
dd2f003ad3 | ||
|
|
ff736a05b3 | ||
|
|
0376ebcd43 | ||
|
|
5776fe04ad | ||
|
|
25a1adc13a | ||
|
|
06f86d1f88 | ||
|
|
00eb3341d4 | ||
|
|
1bd2073310 | ||
|
|
57f24176dd | ||
|
|
6cb197cbdd | ||
|
|
fd22326861 | ||
|
|
40ee321451 | ||
|
|
6c7764e500 | ||
|
|
0e26563f5f | ||
|
|
9421b0df61 | ||
|
|
513d02a22a | ||
|
|
acbff6ec61 | ||
|
|
687c4b9397 | ||
|
|
cc672ee2e8 | ||
|
|
06bddc4509 | ||
|
|
c26165ef90 | ||
|
|
77cdfa9f65 | ||
|
|
312f83615c | ||
|
|
0b4a372eca | ||
|
|
7401e9c10c | ||
|
|
94bd05eda5 | ||
|
|
c4ba4d5cea | ||
|
|
a882433f3e | ||
|
|
9ae470af88 | ||
|
|
649ebb21dd | ||
|
|
f71fe2438f | ||
|
|
67ad5a9bb3 | ||
|
|
b1a69deb89 | ||
|
|
6496a0edeb | ||
|
|
ad5390700f | ||
|
|
a0ee3effd6 |
4
README
4
README
@@ -29,5 +29,5 @@ Please note - meta-ti mailing list requires subscription for posting:
|
||||
https://lists.yoctoproject.org/g/meta-ti
|
||||
|
||||
Maintainers:
|
||||
Dan Murphy <dmurphy@ti.com>
|
||||
Denys Dmytriyenko <denys@ti.com>
|
||||
Praneeth Bajjuri <praneeth@ti.com>
|
||||
Denys Dmytriyenko <denys@konsulko.com>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# We have a conf and classes directory, append to BBPATH
|
||||
BBPATH .= ":${LAYERDIR}"
|
||||
METATIBASE := '${@os.path.normpath("${LAYERDIR}/")}'
|
||||
|
||||
# We have a recipes directory, add to BBFILES
|
||||
BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend"
|
||||
@@ -8,7 +9,7 @@ BBFILE_COLLECTIONS += "meta-ti"
|
||||
BBFILE_PATTERN_meta-ti := "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_meta-ti = "6"
|
||||
|
||||
LAYERSERIES_COMPAT_meta-ti = "sumo thud warrior zeus dunfell"
|
||||
LAYERSERIES_COMPAT_meta-ti = "dunfell"
|
||||
|
||||
LICENSE_PATH += "${LAYERDIR}/licenses"
|
||||
|
||||
|
||||
@@ -14,17 +14,17 @@ KERNEL_DEVICETREE = " \
|
||||
am57xx-beagle-x15-revc.dtb \
|
||||
am5729-beagleboneai.dtb \
|
||||
am57xx-evm.dtb \
|
||||
am57xx-evm-cam-ov10635.dtb \
|
||||
ti/am57xx-evm-common.dtbo \
|
||||
am57xx-evm-reva3.dtb \
|
||||
am57xx-evm-reva3-cam-ov10635.dtb \
|
||||
ti/am57xx-evm-reva3.dtbo \
|
||||
am571x-idk.dtb \
|
||||
am571x-idk-lcd-osd101t2045.dtb \
|
||||
am571x-idk-lcd-osd101t2587.dtb \
|
||||
ti/am571x-idk-touchscreen.dtbo \
|
||||
am572x-idk.dtb \
|
||||
am572x-idk-lcd-osd101t2045.dtb \
|
||||
am572x-idk-lcd-osd101t2587.dtb \
|
||||
am574x-idk.dtb \
|
||||
am574x-idk-lcd-osd101t2587.dtb \
|
||||
ti/am57xx-idk-osd-lcd-common.dtbo \
|
||||
ti/am572x-idk-touchscreen.dtbo \
|
||||
ti/lcd-osd101t2587.dtbo \
|
||||
ti/lcd-osd101t2045.dtbo \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE += "${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'am574x-idk-pru-excl-uio.dtb am572x-idk-pru-excl-uio.dtb am571x-idk-pru-excl-uio.dtb', '', d)}"
|
||||
|
||||
@@ -9,6 +9,3 @@ SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "gp"
|
||||
|
||||
UBOOT_MACHINE = "am64x_evm_r5_defconfig"
|
||||
UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
|
||||
UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
|
||||
UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
|
||||
|
||||
@@ -4,12 +4,4 @@
|
||||
|
||||
require conf/machine/include/am64xx.inc
|
||||
|
||||
IMAGE_BOOT_FILES = "tispl.bin u-boot.img"
|
||||
|
||||
UBOOT_MACHINE = "am64x_evm_a53_defconfig"
|
||||
|
||||
do_image_wic[depends] += "trusted-firmware-a:do_deploy"
|
||||
do_image_tar[depends] += "trusted-firmware-a:do_deploy"
|
||||
|
||||
do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
|
||||
do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
|
||||
|
||||
14
conf/machine/am64xx-hs-evm-k3r5.conf
Normal file
14
conf/machine/am64xx-hs-evm-k3r5.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM64xx HS EVM (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI AM64xx HS EVM (R5F core)
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
|
||||
SYSFW_SOC = "am64x"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "hs"
|
||||
SYSFW_SYMLINK = ""
|
||||
|
||||
UBOOT_MACHINE = "am64x_hs_evm_r5_defconfig"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
|
||||
22
conf/machine/am64xx-hs-evm.conf
Normal file
22
conf/machine/am64xx-hs-evm.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM64xx HS EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI AM64xx HS EVM
|
||||
|
||||
require conf/machine/include/am64xx.inc
|
||||
|
||||
UBOOT_MACHINE = "am64x_hs_evm_a53_defconfig"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x80080000"
|
||||
UBOOT_LOADADDRESS = "0x80080000"
|
||||
UBOOT_RD_LOADADDRESS = "0x84000000"
|
||||
UBOOT_RD_ENTRYPOINT = "0x84000000"
|
||||
UBOOT_DTB_LOADADDRESS = "0x83000000"
|
||||
UBOOT_DTBO_LOADADDRESS = "0x83080000"
|
||||
UBOOT_DTBO_OFFSET = "0x00010000"
|
||||
|
||||
SPL_BINARY = "tispl.bin_HS"
|
||||
SPL_BINARYNAME = "tispl.bin"
|
||||
UBOOT_BINARY = "u-boot.img_HS"
|
||||
IMAGE_BOOT_FILES = "${UBOOT_BINARY}"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
|
||||
@@ -10,19 +10,18 @@ SERIAL_CONSOLES = "115200;ttyS0"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
dra7-evm.dtb \
|
||||
dra7-evm-lcd-osd101t2045.dtb \
|
||||
dra7-evm-lcd-osd101t2587.dtb \
|
||||
ti/dra7x-evm-osd-lcd-common.dtbo \
|
||||
dra71-evm.dtb \
|
||||
dra71-evm-nand.dtb \
|
||||
dra71-evm-lcd-auo-g101evn01.0.dtb \
|
||||
ti/dra71-evm-lcd-auo-g101evn01.0.dtbo \
|
||||
dra72-evm.dtb \
|
||||
dra72-evm-lcd-osd101t2045.dtb \
|
||||
dra72-evm-lcd-osd101t2587.dtb \
|
||||
dra72-evm-revc.dtb \
|
||||
dra72-evm-revc-lcd-osd101t2045.dtb \
|
||||
dra72-evm-revc-lcd-osd101t2587.dtb \
|
||||
ti/dra72-evm-touchscreen.dtbo \
|
||||
ti/dra74-evm-touchscreen.dtbo \
|
||||
dra76-evm.dtb \
|
||||
dra76-evm-tfp410.dtb \
|
||||
ti/dra76-evm-tfp410.dtbo \
|
||||
ti/lcd-osd101t2045.dtbo \
|
||||
ti/lcd-osd101t2587.dtbo \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "dra7xx_evm_config"
|
||||
|
||||
@@ -8,8 +8,17 @@ SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am642-evm.dtb \
|
||||
ti/k3-am642-sk.dtb \
|
||||
ti/k3-am642-evm-icssg1-dualemac.dtbo \
|
||||
ti/k3-am642-evm-nand.dtbo \
|
||||
"
|
||||
|
||||
# AM64 supports multi-certificate images, use the same
|
||||
IMAGE_BOOT_FILES = "${IMAGE_BOOT_FILES_MULTI_CERT}"
|
||||
|
||||
do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
|
||||
do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
|
||||
|
||||
TFA_BOARD = "lite"
|
||||
OPTEEMACHINE = "k3-am65x"
|
||||
OPTEEOUTPUTMACHINE = "k3"
|
||||
|
||||
@@ -8,21 +8,22 @@ SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-am654-base-board.dtb \
|
||||
ti/k3-am654-base-board-sr1.dtb \
|
||||
ti/k3-am654-base-board-sr1.dtbo \
|
||||
ti/k3-am654-gp.dtbo \
|
||||
ti/k3-am654-idk.dtbo \
|
||||
ti/k3-am654-idk-sr1.dtbo \
|
||||
ti/k3-am654-evm-hdmi.dtbo \
|
||||
ti/k3-am654-evm-oldi-lcd1evm.dtbo \
|
||||
ti/k3-am654-evm-tc358876.dtbo \
|
||||
ti/k3-am654-sr1.dtbo \
|
||||
ti/k3-am654-pcie-usb2.dtbo \
|
||||
ti/k3-am654-pcie-usb3.dtbo \
|
||||
ti/k3-am654-base-board-jailhouse.dtbo \
|
||||
ti/k3-am654-evm-prupwm.dtbo \
|
||||
ti/k3-am654-evm-tc358876.dtbo \
|
||||
ti/k3-am654-evm-oldi-lcd1evm.dtbo \
|
||||
ti/k3-am654-evm-ov5640.dtbo \
|
||||
"
|
||||
|
||||
BBMULTICONFIG += "k3r5-sr2"
|
||||
|
||||
# Use default IMAGE_BOOT_FILES_LEGACY files
|
||||
# Since default sysfw.itb on AM65x is for SR2.0, add a version for SR1.0
|
||||
IMAGE_BOOT_FILES += "sysfw-am65x-evm.itb"
|
||||
do_image_wic[mcdepends] += "mc::k3r5-sr2:ti-sci-fw:do_deploy"
|
||||
do_image_tar[mcdepends] += "mc::k3r5-sr2:ti-sci-fw:do_deploy"
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
require conf/machine/include/k3.inc
|
||||
SOC_FAMILY_append = ":j7"
|
||||
|
||||
OPTEEMACHINE = "k3-j7"
|
||||
OPTEEMACHINE = "k3-j721e"
|
||||
OPTEEOUTPUTMACHINE = "k3"
|
||||
|
||||
# Use default IMAGE_BOOT_FILES_LEGACY files
|
||||
|
||||
# Set the list of device targets for ti-pdk class recipes
|
||||
TI_PDK_LIMIT_SOCS = "j721e j7200"
|
||||
TI_PDK_LIMIT_BOARDS = "j721e_evm j7200_evm"
|
||||
|
||||
@@ -38,9 +38,13 @@ UBI_VOLNAME = "rootfs"
|
||||
# List common SoC features, may need to add touchscreen for specific machines
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 alsa ethernet pci"
|
||||
|
||||
IMAGE_FSTYPES += "tar.xz wic.xz"
|
||||
IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap"
|
||||
|
||||
IMAGE_BOOT_FILES_LEGACY = "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin sysfw.itb"
|
||||
IMAGE_BOOT_FILES_MULTI_CERT = "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin"
|
||||
|
||||
IMAGE_BOOT_FILES ?= "${IMAGE_BOOT_FILES_LEGACY}"
|
||||
|
||||
IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} tiboot3.bin sysfw.itb"
|
||||
WKS_FILE ?= "sdimage-2part.wks"
|
||||
do_image_wic[depends] += "virtual/bootloader:do_deploy"
|
||||
do_image_wic[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy mc::k3r5:ti-sci-fw:do_deploy"
|
||||
|
||||
@@ -19,6 +19,17 @@ UBOOT_ARCH = "arm"
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
DEVICETREE_FILE = "${@d.getVar('KERNEL_DEVICETREE').replace("ti/","")}"
|
||||
|
||||
# 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} \
|
||||
${DEVICETREE_FILE} \
|
||||
"
|
||||
|
||||
SPL_BINARY = "MLO"
|
||||
UBOOT_SUFFIX = "img"
|
||||
|
||||
@@ -40,5 +51,5 @@ MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa etherne
|
||||
|
||||
IMAGE_FSTYPES += "tar.xz wic.xz"
|
||||
WKS_FILE ?= "sdimage-2part.wks"
|
||||
IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX}"
|
||||
IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}"
|
||||
do_image_wic[depends] += "u-boot:do_deploy"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# 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"
|
||||
KERNEL_DTB_OVERLAY_SUPPORT ?= "1"
|
||||
require conf/machine/include/soc-family.inc
|
||||
|
||||
@@ -29,7 +29,6 @@ KERNEL_IMAGETYPE = "zImage"
|
||||
KERNEL_DEVICETREE = " \
|
||||
am335x-evm.dtb am335x-evmsk.dtb \
|
||||
am335x-icev2.dtb \
|
||||
am335x-icev2-prueth.dtb \
|
||||
am335x-pocketbeagle.dtb am335x-bone.dtb am335x-boneblue.dtb \
|
||||
am335x-bonegreen.dtb am335x-bonegreen-wireless.dtb \
|
||||
am335x-boneblack.dtb am335x-boneblack-wireless.dtb \
|
||||
@@ -44,6 +43,15 @@ UBOOT_MACHINE = "am335x_evm_config"
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
# Generate an extlinux.conf file
|
||||
UBOOT_EXTLINUX = "1"
|
||||
UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}"
|
||||
UBOOT_EXTLINUX_BOOT_FILES = " \
|
||||
extlinux.conf;extlinux/extlinux.conf \
|
||||
${KERNEL_IMAGETYPE} \
|
||||
${KERNEL_DEVICETREE} \
|
||||
"
|
||||
|
||||
SPL_BINARY = "MLO"
|
||||
UBOOT_SUFFIX = "img"
|
||||
|
||||
@@ -51,7 +59,7 @@ UBOOT_SUFFIX = "img"
|
||||
# and u-boot.
|
||||
UBI_VOLNAME = "rootfs"
|
||||
|
||||
EXTRA_IMAGEDEPENDS += "u-boot"
|
||||
EXTRA_IMAGEDEPENDS += "virtual/bootloader"
|
||||
|
||||
# List common SoC features, may need to add touchscreen for specific machines
|
||||
MACHINE_FEATURES = "kernel26 apm usbgadget usbhost vfat ext2 screen alsa ethernet gpu"
|
||||
@@ -62,5 +70,5 @@ TI_PDK_LIMIT_BOARDS = "evmAM335x icev2AM335x iceAMIC110 bbbAM335x skAM335x"
|
||||
|
||||
IMAGE_FSTYPES += "tar.xz wic.xz"
|
||||
WKS_FILE ?= "sdimage-2part.wks"
|
||||
IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX}"
|
||||
do_image_wic[depends] += "u-boot:do_deploy"
|
||||
IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}"
|
||||
do_image_wic[depends] += "virtual/bootloader:do_deploy"
|
||||
|
||||
@@ -27,9 +27,9 @@ PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
|
||||
KERNEL_IMAGETYPE = "zImage"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
am437x-gp-evm.dtb am437x-gp-evm-hdmi.dtb \
|
||||
am437x-gp-evm.dtb \
|
||||
am437x-sk-evm.dtb am437x-idk-evm.dtb \
|
||||
am43x-epos-evm.dtb am43x-epos-evm-hdmi.dtb \
|
||||
am43x-epos-evm.dtb \
|
||||
"
|
||||
|
||||
KERNEL_DEVICETREE += "${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'am437x-idk-pru-excl-uio.dtb', '', d)}"
|
||||
@@ -40,6 +40,15 @@ UBOOT_MACHINE = "am43xx_evm_config"
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
|
||||
# Generate an extlinux.conf file
|
||||
UBOOT_EXTLINUX = "1"
|
||||
UBOOT_EXTLINUX_ROOT = "root=PARTUUID=${uuid}"
|
||||
UBOOT_EXTLINUX_BOOT_FILES = " \
|
||||
extlinux.conf;extlinux/extlinux.conf \
|
||||
${KERNEL_IMAGETYPE} \
|
||||
${KERNEL_DEVICETREE} \
|
||||
"
|
||||
|
||||
SPL_BINARY = "MLO"
|
||||
UBOOT_SUFFIX = "img"
|
||||
|
||||
@@ -58,5 +67,5 @@ TI_PDK_LIMIT_BOARDS = "evmAM437x idkAM437x skAM437x"
|
||||
|
||||
IMAGE_FSTYPES += "tar.xz wic.xz"
|
||||
WKS_FILE ?= "sdimage-2part.wks"
|
||||
IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX}"
|
||||
IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}"
|
||||
do_image_wic[depends] += "u-boot:do_deploy"
|
||||
|
||||
@@ -13,8 +13,7 @@ KERNEL_DEVICETREE = " \
|
||||
ti/k3-j721e-common-proc-board.dtb \
|
||||
ti/k3-j721e-proc-board-tps65917.dtb \
|
||||
ti/k3-j721e-common-proc-board-infotainment.dtbo \
|
||||
ti/k3-j721e-pcie-backplane.dtbo \
|
||||
ti/k3-j721e-common-proc-board-jailhouse.dtbo \
|
||||
ti/k3-j721e-sk.dtb \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "j721e_evm_a72_config"
|
||||
|
||||
11
conf/machine/j7-hs-evm-k3r5-sr1-1.conf
Normal file
11
conf/machine/j7-hs-evm-k3r5-sr1-1.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: J7 SR1.1 HS EVM (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI J7 SR1.1 HS EVM (R5F core)
|
||||
|
||||
# Booting SR1.1 requires different SYSFW, the rest is handled at runtime
|
||||
|
||||
require conf/machine/j7-hs-evm-k3r5.conf
|
||||
SOC_FAMILY_append = ":k3r5-sr1-1"
|
||||
|
||||
SYSFW_SOC = "j721e_sr1_1"
|
||||
SYSFW_SYMLINK = "sysfw.itb"
|
||||
@@ -19,4 +19,12 @@ SPL_BINARYNAME = "tispl.bin"
|
||||
UBOOT_BINARY = "u-boot.img_HS"
|
||||
IMAGE_BOOT_FILES = "${UBOOT_BINARY}"
|
||||
|
||||
BBMULTICONFIG += "k3r5-sr1-1"
|
||||
|
||||
# Use default IMAGE_BOOT_FILES_LEGACY files
|
||||
# Since default sysfw.itb on J7 is for SR1.1, add a version for SR1.0
|
||||
IMAGE_BOOT_FILES += "sysfw-j721e-evm.itb"
|
||||
do_image_wic[mcdepends] += "mc::k3r5-sr1-1:ti-sci-fw:do_deploy"
|
||||
do_image_tar[mcdepends] += "mc::k3r5-sr1-1:ti-sci-fw:do_deploy"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
|
||||
|
||||
@@ -9,6 +9,3 @@ SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "gp"
|
||||
|
||||
UBOOT_MACHINE = "j7200_evm_r5_defconfig"
|
||||
UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
|
||||
UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
|
||||
UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
|
||||
|
||||
@@ -9,15 +9,12 @@ SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
|
||||
|
||||
KERNEL_DEVICETREE = " \
|
||||
ti/k3-j7200-common-proc-board.dtb \
|
||||
ti/k3-j7200-common-proc-board-jailhouse.dtbo \
|
||||
"
|
||||
|
||||
UBOOT_MACHINE = "j7200_evm_a72_config"
|
||||
|
||||
IMAGE_BOOT_FILES = "tispl.bin u-boot.img"
|
||||
|
||||
do_image_wic[depends] += "trusted-firmware-a:do_deploy"
|
||||
do_image_tar[depends] += "trusted-firmware-a:do_deploy"
|
||||
# J7200 supports multi-certificate images, use the same
|
||||
IMAGE_BOOT_FILES = "${IMAGE_BOOT_FILES_MULTI_CERT}"
|
||||
|
||||
do_image_wic[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
|
||||
do_image_tar[mcdepends] = "mc::k3r5:ti-sci-fw:do_deploy"
|
||||
|
||||
13
conf/machine/j7200-hs-evm-k3r5.conf
Normal file
13
conf/machine/j7200-hs-evm-k3r5.conf
Normal file
@@ -0,0 +1,13 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: J7200 HS EVM (R5F)
|
||||
#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core)
|
||||
|
||||
require conf/machine/include/k3r5.inc
|
||||
|
||||
SYSFW_SOC = "j7200"
|
||||
SYSFW_CONFIG = "evm"
|
||||
SYSFW_SUFFIX = "hs"
|
||||
|
||||
UBOOT_MACHINE = "j7200_hs_evm_r5_defconfig"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
|
||||
22
conf/machine/j7200-hs-evm.conf
Normal file
22
conf/machine/j7200-hs-evm.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: J7200 HS EVM
|
||||
#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM
|
||||
|
||||
require conf/machine/j7-evm.conf
|
||||
|
||||
UBOOT_MACHINE = "j7200_hs_evm_a72_defconfig"
|
||||
|
||||
UBOOT_ENTRYPOINT = "0x80080000"
|
||||
UBOOT_LOADADDRESS = "0x80080000"
|
||||
UBOOT_RD_LOADADDRESS = "0x84000000"
|
||||
UBOOT_RD_ENTRYPOINT = "0x84000000"
|
||||
UBOOT_DTB_LOADADDRESS = "0x83000000"
|
||||
UBOOT_DTBO_LOADADDRESS = "0x83080000"
|
||||
UBOOT_DTBO_OFFSET = "0x00010000"
|
||||
|
||||
SPL_BINARY = "tispl.bin_HS"
|
||||
SPL_BINARYNAME = "tispl.bin"
|
||||
UBOOT_BINARY = "u-boot.img_HS"
|
||||
IMAGE_BOOT_FILES = "${UBOOT_BINARY}"
|
||||
|
||||
TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
|
||||
@@ -6,7 +6,7 @@ require conf/machine/include/k2g.inc
|
||||
|
||||
MACHINE_FEATURES += "alsa"
|
||||
|
||||
KERNEL_DEVICETREE = "keystone-k2g-evm.dtb keystone-k2g-evm-lcd.dtb keystone-k2g-ice.dtb \
|
||||
KERNEL_DEVICETREE = "keystone-k2g-evm.dtb keystone-k2g-ice.dtb \
|
||||
${@oe.utils.conditional('ENABLE_TI_UIO_DEVICES', '1', 'keystone-k2g-ice-pru-excl-uio.dtb', '', d)}"
|
||||
|
||||
UBOOT_MACHINE = "k2g_evm_config"
|
||||
|
||||
3
conf/multiconfig/k3r5-sr1-1.conf
Normal file
3
conf/multiconfig/k3r5-sr1-1.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
require k3r5.conf
|
||||
|
||||
MACHINE_append = "-sr1-1"
|
||||
63
licenses/TI-IMG
Normal file
63
licenses/TI-IMG
Normal file
@@ -0,0 +1,63 @@
|
||||
This license applies to the Imagination D5520 firmware image, pvdec_full_bin.fw.
|
||||
|
||||
Copyright (C) 2019 Texas Instruments Incorporated
|
||||
|
||||
All rights reserved not granted herein.
|
||||
|
||||
Limited License.
|
||||
|
||||
Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
|
||||
license under copyrights and patents it now or hereafter owns or controls to
|
||||
make, have made, use, import, offer to sell and sell ("Utilize") this software
|
||||
subject to the terms herein. With respect to the foregoing patent license, such
|
||||
license is granted solely to the extent that any such patent is necessary to
|
||||
Utilize the software alone. The patent license shall not apply to any
|
||||
combinations which include this software, other than combinations with devices
|
||||
manufactured by or for TI (“TI Devices”). No hardware patent is licensed
|
||||
hereunder.
|
||||
|
||||
Redistributions must preserve existing copyright notices and reproduce this
|
||||
license (including the above copyright notice and the disclaimer and
|
||||
(if applicable) source code license limitations below) in the documentation
|
||||
and/or other materials provided with the distribution
|
||||
|
||||
Redistribution and use in binary form, without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* No reverse engineering, decompilation, or disassembly of this
|
||||
software is permitted with respect to any software provided in binary
|
||||
form.
|
||||
|
||||
* any redistribution and use are licensed by TI for use only with TI
|
||||
Devices.
|
||||
|
||||
* Nothing shall obligate TI to provide you with source code for the
|
||||
software licensed and provided to you in object code.
|
||||
|
||||
If software source code is provided to you, modification and redistribution of
|
||||
the source code are permitted provided that the following conditions are met:
|
||||
|
||||
* any redistribution and use of the source code, including any
|
||||
resulting derivative works, are licensed by TI for use only with TI
|
||||
Devices.
|
||||
|
||||
* any redistribution and use of any object code compiled from the
|
||||
source code and any resulting derivative works, are licensed by TI
|
||||
for use only with TI Devices.
|
||||
|
||||
Neither the name of Texas Instruments Incorporated nor the names of its
|
||||
suppliers may be used to endorse or promote products derived from this
|
||||
software without specific prior written permission.
|
||||
|
||||
DISCLAIMER.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY TI AND TI’S LICENSORS "AS IS" AND ANY EXPRESS OR
|
||||
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
EVENT SHALL TI AND TI’S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -1,10 +1,12 @@
|
||||
SUMMARY = "Cadence MHDP DP bridge firmware"
|
||||
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
LICENSE = "BSD-3-Clause | Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENCE.cadence;md5=009f46816f6956cfb75ede13d3e1cee0"
|
||||
|
||||
PV = "1.2.17"
|
||||
PR = "r0"
|
||||
PV = "${CADENCE_MHDP_FW_VERSION}"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
@@ -12,11 +14,6 @@ COMPATIBLE_MACHINE = "j7"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRCREV = "7bad9a69a343e01056ece5ce6da4d4060c42f6bc"
|
||||
BRANCH ?= "ti-linux-firmware"
|
||||
|
||||
SRC_URI = "git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
TARGET = "mhdp8546.bin"
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@ LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://include/ti/cmem.h;beginline=1;endline=30;md5=26be509e4bb413905bda8309e338e2b1"
|
||||
|
||||
BRANCH = "master"
|
||||
# This corresponds to version 4.16.00.00
|
||||
SRCREV = "4f970f053b42e8d2a6f1a8cd4b14786196468fd3"
|
||||
# This corresponds to version 4.20.00.01
|
||||
SRCREV = "86269258a48e0a9008dd9d5ebfae9da7ce843393"
|
||||
|
||||
PV = "4.16.00.00+git${SRCPV}"
|
||||
PV = "4.20.00.01+git${SRCPV}"
|
||||
|
||||
SRC_URI = "git://git.ti.com/ipc/ludev.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ COMPATIBLE_MACHINE_append = "|c66x|k3"
|
||||
inherit ti-pdk
|
||||
|
||||
DEPENDS_remove = "${PN}"
|
||||
DEPENDS_remove = "ti-sysbios"
|
||||
|
||||
# Build with make instead of XDC
|
||||
TI_PDK_XDCMAKE = "0"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# This corresponds to version 1.4.0
|
||||
SRCREV = "25e823b04e62af224dce97b90359b7569ce3fbb5"
|
||||
SRCREV = "816485e68430bbec643eac9498bfa5303eb2c2e1"
|
||||
PV = "1.4.0"
|
||||
INC_PR = "r1"
|
||||
INC_PR = "r2"
|
||||
|
||||
SRC_URI = "git://git.ti.com/sdo-emu/dsptop.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
|
||||
@@ -7,13 +7,13 @@ inherit module features_check
|
||||
|
||||
REQUIRED_MACHINE_FEATURES = "gc320"
|
||||
|
||||
MACHINE_KERNEL_PR_append = "h"
|
||||
MACHINE_KERNEL_PR_append = "i"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
# Need to branch out with ${PV} var
|
||||
BRANCH = "ti-${PV}-k5.4"
|
||||
BRANCH = "ti-${PV}-k5.10"
|
||||
|
||||
SRCREV = "2a4fbe8353fa56011a613aeeaf69e274cd07a825"
|
||||
SRCREV = "e2a10f31e255a65ec30a6e10b890e77d7e9cb107"
|
||||
|
||||
SRC_URI = "git://git.ti.com/graphics/ti-gc320-driver.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
DESCRIPTION = "Goodix GT9271 config firmware"
|
||||
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENCE.Spectrum-GT9271;md5=2a6de6be7af1fe46370c684daf27c852"
|
||||
|
||||
PV = "1.0.0.0"
|
||||
PR = "r0"
|
||||
PV = "${GOODIX_FW_VERSION}"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
@@ -12,11 +14,6 @@ COMPATIBLE_MACHINE = "dra7xx"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRCREV = "f1a8d1d0131f83bd1a775cde7075eb67c070892c"
|
||||
BRANCH ?= "ti-linux-firmware"
|
||||
|
||||
SRC_URI = "git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
ORIGIN = "DRA71x-RevA-GT9271_SpecDig_Config.bin"
|
||||
TARGET = "goodix_9271_cfg.bin"
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
SUMMARY = "Kernel driver for IVSHMEM based UIO driver"
|
||||
DESCRIPTION = "Kernel module which registers a UIO (userspace io) device for inter VM shared memory"
|
||||
HOMEPAGE = "https://github.com/henning-schild-work/ivshmem-guest-code"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=0546a27aad86c83b75ad4ee6133e9d5e"
|
||||
|
||||
inherit module
|
||||
|
||||
RDEPENDS_${PN} = "jailhouse"
|
||||
|
||||
PROTOCOL = "git"
|
||||
BRANCH = "jailhouse"
|
||||
SRCREV = "f3ad79881bebb6c6068966ee3d265d8034c20492"
|
||||
SRC_URI = "git://github.com/henning-schild-work/ivshmem-guest-code.git;protocol=${PROTOCOL};branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OEMAKE += 'KDIR="${STAGING_KERNEL_DIR}"'
|
||||
|
||||
COMPATIBLE_MACHINE = "(ti-soc)"
|
||||
|
||||
do_compile_prepend() {
|
||||
cd ${S}/kernel_module/uio
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra
|
||||
install -m 644 ${S}/kernel_module/uio/uio_ivshmem.ko ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
SUMMARY = "UIO tests for IVSHMEM based UIO driver"
|
||||
DESCRIPTION = "Test programs which use UIO (userspace io) device for inter VM communication"
|
||||
HOMEPAGE = "https://github.com/henning-schild-work/ivshmem-guest-code"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/COPYING;md5=0546a27aad86c83b75ad4ee6133e9d5e"
|
||||
|
||||
inherit cmake
|
||||
|
||||
PROTOCOL = "git"
|
||||
BRANCH = "jailhouse"
|
||||
SRCREV = "f3ad79881bebb6c6068966ee3d265d8034c20492"
|
||||
SRC_URI = "git://github.com/henning-schild-work/ivshmem-guest-code.git;protocol=${PROTOCOL};branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git/uio/tests/Interrupts/VM"
|
||||
|
||||
COMPATIBLE_MACHINE = "(ti-soc)"
|
||||
OECMAKE_TARGET_COMPILE = "uio_send uio_read"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/${bindir}
|
||||
install -m 755 ${B}/uio_send ${D}/${bindir}/
|
||||
install -m 755 ${B}/uio_read ${D}/${bindir}/
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
DESCRIPTION = "NETCP PA firmware for Keystone"
|
||||
|
||||
LICENSE = "TI-TFL"
|
||||
LIC_FILES_CHKSUM = "file://LICENCE.ti-keystone;md5=3a86335d32864b0bef996bee26cc0f2c"
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
PV = "3.0.2.3"
|
||||
PR = "r1"
|
||||
PV = "${NETCP_PA_FW_VERSION}"
|
||||
PR = "${INC_PR}.1"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
@@ -12,11 +11,6 @@ COMPATIBLE_MACHINE = "k2hk|k2l|k2e"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRCREV = "953ab647b0b6af411965242ecd919b1cb0e570d6"
|
||||
BRANCH ?= "ti-linux-firmware"
|
||||
|
||||
SRC_URI = "git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
FWBASENAME = " \
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
DESCRIPTION = "NETCP SA firmware for Keystone"
|
||||
|
||||
LICENSE = "TI-TFL"
|
||||
LIC_FILES_CHKSUM = "file://LICENCE.ti-keystone;md5=3a86335d32864b0bef996bee26cc0f2c"
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
PV = "1.0.0"
|
||||
PR = "r0"
|
||||
PV = "${NETCP_SA_FW_VERSION}"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
@@ -12,11 +11,6 @@ COMPATIBLE_MACHINE = "keystone"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRCREV = "588f602a21c62f90b1f4318b881c80a1e711317a"
|
||||
BRANCH ?= "ti-linux-firmware"
|
||||
|
||||
SRC_URI = "git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
TARGET = "sa_mci.fw"
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
From 80d32fee3d768abbd77cce77ea9a7574651460a9 Mon Sep 17 00:00:00 2001
|
||||
From: Denys Dmytriyenko <denis@denix.org>
|
||||
Date: Wed, 7 Jul 2021 13:11:56 -0400
|
||||
Subject: [PATCH] compiler: support OpenEmbedded "nodistro" internal aarch64
|
||||
toolchain
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
|
||||
---
|
||||
build/linux/config/compiler.mk | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/build/linux/config/compiler.mk b/build/linux/config/compiler.mk
|
||||
index 53a0bef..d788579 100644
|
||||
--- a/build/linux/config/compiler.mk
|
||||
+++ b/build/linux/config/compiler.mk
|
||||
@@ -65,7 +65,7 @@ define calculate-compiler-preferred-target
|
||||
ifneq ($$(filter i386-% i486-% i586-% i686-%,$$($(1)_compiler_preferred_target)),)
|
||||
$(1)_compiler_preferred_target := i386-linux-gnu
|
||||
endif
|
||||
- ifneq ($$(filter aarch64-poky-linux,$$($(1)_compiler_preferred_target)),)
|
||||
+ ifneq ($$(filter aarch64-oe-linux aarch64-poky-linux,$$($(1)_compiler_preferred_target)),)
|
||||
$(1)_compiler_preferred_target := aarch64-linux-gnu
|
||||
endif
|
||||
ifneq ($$(filter armv7a-cros-linux-gnueabi armv7l-tizen-linux-gnueabi,$$($(1)_compiler_preferred_target)),)
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
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 | GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://README;beginline=15;endline=20;md5=0403c7dea01a2b8232261e805325fac2"
|
||||
LIC_FILES_CHKSUM = "file://README;beginline=14;endline=19;md5=0403c7dea01a2b8232261e805325fac2"
|
||||
|
||||
inherit module features_check
|
||||
|
||||
REQUIRED_MACHINE_FEATURES = "gpu"
|
||||
|
||||
MACHINE_KERNEL_PR_append = "g"
|
||||
MACHINE_KERNEL_PR_append = "b"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
@@ -17,13 +17,16 @@ DEPENDS = "virtual/kernel"
|
||||
|
||||
PROVIDES = "virtual/gpudriver"
|
||||
|
||||
BRANCH = "linuxws/zeus/k5.4/${PV}"
|
||||
BRANCH = "1.13-5776728/linux-k5.10"
|
||||
|
||||
SRC_URI = "git://git.ti.com/graphics/ti-img-rogue-driver.git;branch=${BRANCH}"
|
||||
SRC_URI = " \
|
||||
git://git.ti.com/graphics/ti-img-rogue-driver.git;branch=${BRANCH} \
|
||||
file://0001-compiler-support-OpenEmbedded-nodistro-internal-aarc.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRCREV = "f58bea1084c5004f129943a53b94ee1446e9c3a7"
|
||||
SRCREV = "35a25875ae8738f82c7cabc6b077ef992b0cca84"
|
||||
|
||||
PVR_SOC = "j721e_linux"
|
||||
PVR_BVNC = "22.104.208.318"
|
||||
@@ -33,5 +36,5 @@ PVR_WS = "wayland"
|
||||
EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}" RGX_BVNC=${PVR_BVNC} BUILD=${PVR_BUILD} PVR_BUILD_DIR=${PVR_SOC} WINDOW_SYSTEM=${PVR_WS}'
|
||||
|
||||
do_install() {
|
||||
make -C ${STAGING_KERNEL_DIR} M=${B}/binary_${PVR_SOC}_${PVR_WS}_${PVR_BUILD}/target_aarch64/kbuild INSTALL_MOD_PATH=${D} PREFIX=${STAGING_DIR_HOST} modules_install
|
||||
make -C ${STAGING_KERNEL_DIR} M=${B}/binary_${PVR_SOC}_${PVR_WS}_${PVR_BUILD}/target_aarch64/kbuild INSTALL_MOD_PATH=${D}${root_prefix} PREFIX=${STAGING_DIR_HOST} modules_install
|
||||
}
|
||||
@@ -17,7 +17,7 @@ index dead2f9..2ba3e5e 100644
|
||||
ifneq ($$(filter aarch64-%,$$($(1)_compiler_preferred_target)),)
|
||||
$(1)_compiler_preferred_target := aarch64-linux-gnu
|
||||
endif
|
||||
+ ifneq ($$(filter arm-%-gnueabihf arm-oe-linux-gnueabi,$$($(1)_compiler_preferred_target)),)
|
||||
+ ifneq ($$(filter arm-%-gnueabihf arm-oe-linux-gnueabi arm-poky-linux-gnueabi,$$($(1)_compiler_preferred_target)),)
|
||||
+ $(1)_compiler_preferred_target := arm-linux-gnueabihf
|
||||
+ endif
|
||||
ifneq ($$(filter arm-%-gnueabi armv7a-cros-linux-gnueabi armv7hl-redhat-linux-gnueabi,$$($(1)_compiler_preferred_target)),)
|
||||
|
||||
@@ -9,7 +9,7 @@ REQUIRED_MACHINE_FEATURES = "gpu"
|
||||
|
||||
COMPATIBLE_MACHINE = "pandaboard|beagleboard|ti33x|ti43x|omap-a15|k3"
|
||||
|
||||
MACHINE_KERNEL_PR_append = "v"
|
||||
MACHINE_KERNEL_PR_append = "x"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
@@ -18,7 +18,7 @@ DEPENDS = "virtual/kernel"
|
||||
|
||||
PROVIDES = "virtual/gpudriver"
|
||||
|
||||
BRANCH = "ti-img-sgx/${PV}/k5.4"
|
||||
BRANCH = "ti-img-sgx/${PV}/k5.10"
|
||||
|
||||
SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-linux.git;protocol=git;branch=${BRANCH} \
|
||||
file://0001-km-support-OpenEmbedded-hardfp-toolchain-w-o-gnueabi.patch \
|
||||
@@ -26,7 +26,7 @@ SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-linux.git;protocol=git;branch
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRCREV = "50c1ec2308b9f64488d252ac55d65b51a0dfe287"
|
||||
SRCREV = "62f31de3ceed156bff32abb3dd03693a02df117e"
|
||||
|
||||
TARGET_PRODUCT_omap-a15 = "jacinto6evm"
|
||||
TARGET_PRODUCT_ti33x = "ti335x"
|
||||
@@ -42,9 +42,9 @@ do_compile_prepend() {
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make -C ${STAGING_KERNEL_DIR} M=${B}/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild INSTALL_MOD_PATH=${D} PREFIX=${STAGING_DIR_HOST} modules_install
|
||||
make -C ${STAGING_KERNEL_DIR} M=${B}/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild INSTALL_MOD_PATH=${D}${root_prefix} PREFIX=${STAGING_DIR_HOST} modules_install
|
||||
}
|
||||
|
||||
do_install_k3() {
|
||||
make -C ${STAGING_KERNEL_DIR} M=${B}/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_aarch64/kbuild INSTALL_MOD_PATH=${D} PREFIX=${STAGING_DIR_HOST} modules_install
|
||||
make -C ${STAGING_KERNEL_DIR} M=${B}/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_aarch64/kbuild INSTALL_MOD_PATH=${D}${root_prefix} PREFIX=${STAGING_DIR_HOST} modules_install
|
||||
}
|
||||
|
||||
@@ -8,9 +8,9 @@ inherit update-alternatives
|
||||
|
||||
BRANCH = "master"
|
||||
SRC_URI = "git://git.ti.com/pru-software-support-package/pru-software-support-package.git;protocol=git;branch=${BRANCH}"
|
||||
SRCREV = "a9bff6f43001cf66dc1ed3ef7e9dfb688b67f7bb"
|
||||
SRCREV = "acd8479d7f3bdbb4536ceca3cd6803662babaa5a"
|
||||
|
||||
PV = "5.7.0"
|
||||
PV = "6.0.0"
|
||||
PR = "r0"
|
||||
|
||||
require recipes-ti/includes/ti-paths.inc
|
||||
@@ -41,6 +41,7 @@ PLATFORM_ti33x = "am335x"
|
||||
PLATFORM_ti43x = "am437x"
|
||||
PLATFORM_omap-a15 = "am572x"
|
||||
PLATFORM_k2g = "k2g"
|
||||
PLATFORM_am64xx = "am64x"
|
||||
PLATFORM_am65xx = "am65x"
|
||||
PLATFORM_j7 = "j721e"
|
||||
|
||||
@@ -112,6 +113,28 @@ do_install_append_k2g() {
|
||||
done
|
||||
}
|
||||
|
||||
do_install_append_am64xx(){
|
||||
for i in 0 1
|
||||
do
|
||||
install -m 644 ${S}/examples/${PLATFORM}/PRU_Halt/gen/PRU${i}/PRU_Halt_${i}.out \
|
||||
${D}${base_libdir}/firmware/pru
|
||||
install -m 644 ${S}/examples/${PLATFORM}/RTU_Halt/gen/RTU${i}/RTU_Halt_${i}.out \
|
||||
${D}${base_libdir}/firmware/pru
|
||||
install -m 644 ${S}/examples/${PLATFORM}/TX_PRU_Halt/gen/TX_PRU${i}/TX_PRU_Halt_${i}.out \
|
||||
${D}${base_libdir}/firmware/pru
|
||||
done
|
||||
for i in 0 1
|
||||
do
|
||||
for j in 0 1
|
||||
do
|
||||
install -m 0644 ${S}/examples/${PLATFORM}/PRU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/PRU_RPMsg_Echo_Interrupt${i}_${j}.out \
|
||||
${D}${base_libdir}/firmware/pru
|
||||
install -m 0644 ${S}/examples/${PLATFORM}/RTU_RPMsg_Echo_Interrupt${j}/gen/icssg${i}/RTU_RPMsg_Echo_Interrupt${i}_${j}.out \
|
||||
${D}${base_libdir}/firmware/pru
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
do_install_append_am65xx() {
|
||||
for i in 0 1
|
||||
do
|
||||
@@ -167,6 +190,7 @@ PRU_ICSS_ALTERNATIVES_ti33x = "am335x-pru0-fw am335x-pru1-fw"
|
||||
PRU_ICSS_ALTERNATIVES_ti43x = "am437x-pru0_0-fw am437x-pru0_1-fw am437x-pru1_0-fw am437x-pru1_1-fw"
|
||||
PRU_ICSS_ALTERNATIVES_omap-a15 = "am57xx-pru1_0-fw am57xx-pru1_1-fw am57xx-pru2_0-fw am57xx-pru2_1-fw"
|
||||
PRU_ICSS_ALTERNATIVES_k2g = "k2g-pru0_0-fw k2g-pru0_1-fw k2g-pru1_0-fw k2g-pru1_1-fw"
|
||||
PRU_ICSS_ALTERNATIVES_am64xx = "am64x-pru0_0-fw am64x-pru0_1-fw am64x-pru1_0-fw am64x-pru1_1-fw am64x-rtu0_0-fw am64x-rtu0_1-fw am64x-rtu1_0-fw am64x-rtu1_1-fw"
|
||||
PRU_ICSS_ALTERNATIVES_am65xx = "am65x-pru0_0-fw am65x-pru0_1-fw am65x-pru1_0-fw am65x-pru1_1-fw am65x-pru2_0-fw am65x-pru2_1-fw am65x-rtu0_0-fw am65x-rtu0_1-fw am65x-rtu1_0-fw am65x-rtu1_1-fw am65x-rtu2_0-fw am65x-rtu2_1-fw"
|
||||
PRU_ICSS_ALTERNATIVES_j7 = "j7-pru0_0-fw j7-pru0_1-fw j7-pru1_0-fw j7-pru1_1-fw j7-rtu0_0-fw j7-rtu0_1-fw j7-rtu1_0-fw j7-rtu1_1-fw"
|
||||
|
||||
@@ -189,6 +213,19 @@ ALTERNATIVE_LINK_NAME[k2g-pru0_1-fw] = "${base_libdir}/firmware/k2g-pru0_1-fw"
|
||||
ALTERNATIVE_LINK_NAME[k2g-pru1_0-fw] = "${base_libdir}/firmware/k2g-pru1_0-fw"
|
||||
ALTERNATIVE_LINK_NAME[k2g-pru1_1-fw] = "${base_libdir}/firmware/k2g-pru1_1-fw"
|
||||
|
||||
ALTERNATIVE_LINK_NAME[am64x-pru0_0-fw] = "${base_libdir}/firmware/am64x-pru0_0-fw"
|
||||
ALTERNATIVE_LINK_NAME[am64x-pru0_1-fw] = "${base_libdir}/firmware/am64x-pru0_1-fw"
|
||||
ALTERNATIVE_LINK_NAME[am64x-pru1_0-fw] = "${base_libdir}/firmware/am64x-pru1_0-fw"
|
||||
ALTERNATIVE_LINK_NAME[am64x-pru1_1-fw] = "${base_libdir}/firmware/am64x-pru1_1-fw"
|
||||
ALTERNATIVE_LINK_NAME[am64x-rtu0_0-fw] = "${base_libdir}/firmware/am64x-rtu0_0-fw"
|
||||
ALTERNATIVE_LINK_NAME[am64x-rtu0_1-fw] = "${base_libdir}/firmware/am64x-rtu0_1-fw"
|
||||
ALTERNATIVE_LINK_NAME[am64x-rtu1_0-fw] = "${base_libdir}/firmware/am64x-rtu1_0-fw"
|
||||
ALTERNATIVE_LINK_NAME[am64x-rtu1_1-fw] = "${base_libdir}/firmware/am64x-rtu1_1-fw"
|
||||
ALTERNATIVE_LINK_NAME[am64x-txpru0_0-fw] = "${base_libdir}/firmware/am64x-txpru0_0-fw"
|
||||
ALTERNATIVE_LINK_NAME[am64x-txpru0_1-fw] = "${base_libdir}/firmware/am64x-txpru0_1-fw"
|
||||
ALTERNATIVE_LINK_NAME[am64x-txpru1_0-fw] = "${base_libdir}/firmware/am64x-txpru1_0-fw"
|
||||
ALTERNATIVE_LINK_NAME[am64x-txpru1_1-fw] = "${base_libdir}/firmware/am64x-txpru1_1-fw"
|
||||
|
||||
ALTERNATIVE_LINK_NAME[am65x-pru0_0-fw] = "${base_libdir}/firmware/am65x-pru0_0-fw"
|
||||
ALTERNATIVE_LINK_NAME[am65x-pru0_1-fw] = "${base_libdir}/firmware/am65x-pru0_1-fw"
|
||||
ALTERNATIVE_LINK_NAME[am65x-pru1_0-fw] = "${base_libdir}/firmware/am65x-pru1_0-fw"
|
||||
@@ -225,6 +262,7 @@ ALTERNATIVE_LINK_NAME[j7-txpru1_1-fw] = "${base_libdir}/firmware/j7-txpru1_1-fw"
|
||||
ALTERNATIVE_pru-icss-halt = "${PRU_ICSS_ALTERNATIVES}"
|
||||
|
||||
# Only Halt firmware images are supported for the Tx_PRU cores
|
||||
ALTERNATIVE_pru-icss-halt_append_am64xx = " am64x-txpru0_0-fw am64x-txpru0_1-fw am64x-txpru1_0-fw am64x-txpru1_1-fw"
|
||||
ALTERNATIVE_pru-icss-halt_append_am65xx = " am65x-txpru0_0-fw am65x-txpru0_1-fw am65x-txpru1_0-fw am65x-txpru1_1-fw am65x-txpru2_0-fw am65x-txpru2_1-fw"
|
||||
ALTERNATIVE_pru-icss-halt_append_j7 = " j7-txpru0_0-fw j7-txpru0_1-fw j7-txpru1_0-fw j7-txpru1_1-fw"
|
||||
|
||||
@@ -246,6 +284,19 @@ ALTERNATIVE_TARGET_pru-icss-halt[k2g-pru0_1-fw] = "${base_libdir}/firmware/pru/P
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[k2g-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[k2g-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt.out"
|
||||
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[am64x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_Halt_0.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[am64x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_Halt_1.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru0_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru0_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru1_0-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_0.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[am64x-txpru1_1-fw] = "${base_libdir}/firmware/pru/TX_PRU_Halt_1.out"
|
||||
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_Halt_1.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-halt[am65x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_Halt_0.out"
|
||||
@@ -302,6 +353,15 @@ ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[k2g-pru0_1-fw] = "${base_libdir}/firmware
|
||||
ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[k2g-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[k2g-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out"
|
||||
|
||||
ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-pru1_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_1.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu0_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_0.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu0_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt0_1.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu1_0-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_0.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am64x-rtu1_1-fw] = "${base_libdir}/firmware/pru/RTU_RPMsg_Echo_Interrupt1_1.out"
|
||||
|
||||
ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru0_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_0.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru0_1-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt0_1.out"
|
||||
ALTERNATIVE_TARGET_pru-icss-rpmsg-echo[am65x-pru1_0-fw] = "${base_libdir}/firmware/pru/PRU_RPMsg_Echo_Interrupt1_0.out"
|
||||
|
||||
@@ -1,21 +1,16 @@
|
||||
SUMMARY = "PRU Ethernet firmware for AM65xx SR2.0"
|
||||
|
||||
LICENSE = "TI-TFL"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=b5aebf0668bdf95621259288c4a46d76"
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
PV = "02.02.08.02"
|
||||
PV = "${PRUETH_FW_AM65X_SR2_VERSION}"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
COMPATIBLE_MACHINE = "am65xx-evm"
|
||||
COMPATIBLE_MACHINE = "am65xx-evm|am64xx-evm"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRCREV = "31e626d84a3f8a5dc7175b79440972ce90a23de0"
|
||||
BRANCH ?= "ti-linux-firmware"
|
||||
|
||||
SRC_URI = "git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
TARGET = " \
|
||||
|
||||
@@ -1,43 +1,30 @@
|
||||
SUMMARY = "PRU Ethernet firmware for AM65x"
|
||||
SUMMARY = "PRU Ethernet firmware for AM65x SR1.0"
|
||||
|
||||
require recipes-ti/includes/ti-paths.inc
|
||||
require recipes-bsp/emac-lld/emac-lld.inc
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
LICENSE = "TI-TFL"
|
||||
LIC_FILES_CHKSUM = "file://icss_dualmac/src/makefile;beginline=6;endline=53;md5=3f9129d208f240940749757214bdc191"
|
||||
PV = "${PRUETH_FW_AM65X_VERSION}"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
PR = "r0"
|
||||
|
||||
TI_PDK_COMP = "ti.drv.emac.firmware"
|
||||
|
||||
B = "${S}/icss_dualmac"
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
COMPATIBLE_MACHINE = "am65xx"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
DEPENDS = "ti-cgt-pru-native"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OEMAKE += "CL_PRU_INSTALL_PATH="${TI_CGT_PRU_INSTALL_DIR}""
|
||||
|
||||
do_compile() {
|
||||
oe_runmake -C src
|
||||
}
|
||||
TARGET = " \
|
||||
am65x-pru0-prueth-fw.elf \
|
||||
am65x-pru1-prueth-fw.elf \
|
||||
am65x-rtu0-prueth-fw.elf \
|
||||
am65x-rtu1-prueth-fw.elf \
|
||||
"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${base_libdir}/firmware/ti-pruss
|
||||
|
||||
install -m 0644 bin/rxl2_txl2_rgmii0/rxl2_txl2.out \
|
||||
${D}${base_libdir}/firmware/ti-pruss/am65x-pru0-prueth-fw.elf
|
||||
|
||||
install -m 0644 bin/rtu_test0/rtu_v2.out \
|
||||
${D}${base_libdir}/firmware/ti-pruss/am65x-rtu0-prueth-fw.elf
|
||||
|
||||
install -m 0644 bin/rxl2_txl2_rgmii1/rxl2_txl2.out \
|
||||
${D}${base_libdir}/firmware/ti-pruss/am65x-pru1-prueth-fw.elf
|
||||
|
||||
install -m 0644 bin/rtu_test1/rtu_v2.out \
|
||||
${D}${base_libdir}/firmware/ti-pruss/am65x-rtu1-prueth-fw.elf
|
||||
install -d ${D}${base_libdir}/firmware/ti-pruss
|
||||
for f in ${TARGET}; do
|
||||
install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f
|
||||
done
|
||||
}
|
||||
|
||||
FILES_${PN} = "${base_libdir}/firmware"
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
SUMMARY = "PRU Ethernet firmware for AM57xx, AM437x and AM335x"
|
||||
|
||||
LICENSE = "TI-TFL"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=b5aebf0668bdf95621259288c4a46d76"
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
PR = "r0"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
@@ -11,11 +10,6 @@ COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRCREV = "0038ff0ecda8dae83c65d454c85776c6a4ef8e63"
|
||||
BRANCH ?= "ti-linux-firmware"
|
||||
|
||||
SRC_URI = "git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
TARGET = ""
|
||||
@@ -1,10 +1,9 @@
|
||||
SUMMARY = "PRU HSR firmware for AM335x/AM437x/AM57xx"
|
||||
|
||||
LICENSE = "TI-TFL"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=b5aebf0668bdf95621259288c4a46d76"
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
PE = "1"
|
||||
PR = "r0"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
@@ -12,11 +11,6 @@ COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRCREV = "0038ff0ecda8dae83c65d454c85776c6a4ef8e63"
|
||||
BRANCH ?= "ti-linux-firmware"
|
||||
|
||||
SRC_URI = "git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
TARGET = ""
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
SUMMARY = "PRU PRP firmware for AM335x/AM437x/AM57xx"
|
||||
|
||||
LICENSE = "TI-TFL"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=b5aebf0668bdf95621259288c4a46d76"
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
PE = "1"
|
||||
PR = "r0"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
@@ -12,11 +11,6 @@ COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRCREV = "0038ff0ecda8dae83c65d454c85776c6a4ef8e63"
|
||||
BRANCH ?= "ti-linux-firmware"
|
||||
|
||||
SRC_URI = "git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
TARGET = ""
|
||||
|
||||
34
recipes-bsp/prusw-fw/prusw-fw-am65x-sr2_git.bb
Normal file
34
recipes-bsp/prusw-fw/prusw-fw-am65x-sr2_git.bb
Normal file
@@ -0,0 +1,34 @@
|
||||
SUMMARY = "PRU Ethernet Switch firmware for AM65xx SR2.0"
|
||||
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
PV = "${PRUETH_FW_AM65X_SR2_VERSION}"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
COMPATIBLE_MACHINE = "am65xx-evm"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
TARGET = " \
|
||||
am65x-sr2-pru0-prusw-fw.elf \
|
||||
am65x-sr2-pru1-prusw-fw.elf \
|
||||
am65x-sr2-rtu0-prusw-fw.elf \
|
||||
am65x-sr2-rtu1-prusw-fw.elf \
|
||||
am65x-sr2-txpru0-prusw-fw.elf \
|
||||
am65x-sr2-txpru1-prusw-fw.elf \
|
||||
"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${base_libdir}/firmware/ti-pruss
|
||||
for f in ${TARGET}; do
|
||||
install -m 0644 ${S}/ti-pruss/$f ${D}${base_libdir}/firmware/ti-pruss/$f
|
||||
done
|
||||
}
|
||||
|
||||
FILES_${PN} = "${base_libdir}/firmware"
|
||||
|
||||
INSANE_SKIP_${PN} = "arch"
|
||||
@@ -1,9 +1,8 @@
|
||||
SUMMARY = "PRU Switch firmware for AM57xx, AM437x and AM335x"
|
||||
|
||||
LICENSE = "TI-TFL"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=b5aebf0668bdf95621259288c4a46d76"
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
PR = "r0"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
@@ -11,11 +10,6 @@ COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|am57xx-hs-evm"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRCREV = "0038ff0ecda8dae83c65d454c85776c6a4ef8e63"
|
||||
BRANCH ?= "ti-linux-firmware"
|
||||
|
||||
SRC_URI = "git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
TARGET = ""
|
||||
@@ -1,10 +1,12 @@
|
||||
DESCRIPTION = "QMSS PDSP firmware"
|
||||
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
LICENSE = "TI-TFL"
|
||||
LIC_FILES_CHKSUM = "file://LICENCE.ti-keystone;md5=3a86335d32864b0bef996bee26cc0f2c"
|
||||
|
||||
PV = "1.0.0.9"
|
||||
PR = "r1"
|
||||
PV = "${QMSS_PDSP_FW_VERSION}"
|
||||
PR = "${INC_PR}.1"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
@@ -12,11 +14,6 @@ COMPATIBLE_MACHINE = "keystone"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRCREV = "778668c4bb5fe59870e549a4a2820b9f7f90e89e"
|
||||
BRANCH ?= "ti-linux-firmware"
|
||||
|
||||
SRC_URI = "git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
ORIGIN = "ks2_qmss_pdsp_acc48_k2_le_1_0_0_9.bin"
|
||||
TARGET = "ks2_qmss_pdsp_acc48.bin"
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
DESCRIPTION = "SerDes firmware for Keystone PCIe and 1/10GigE"
|
||||
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
LICENSE = "TI-TFL"
|
||||
LIC_FILES_CHKSUM = "file://LICENCE.ti-keystone;md5=3a86335d32864b0bef996bee26cc0f2c"
|
||||
|
||||
PV = "3.3.0.2c"
|
||||
PV = "${SERDES_FW_VERSION}"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
@@ -11,11 +14,6 @@ COMPATIBLE_MACHINE = "keystone"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRCREV = "8d861bd8f8f792df60b6873989ff208766fbebae"
|
||||
BRANCH ?= "ti-linux-firmware"
|
||||
|
||||
SRC_URI = "git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
TARGET = "ks2_pcie_serdes.bin ks2_gbe_serdes.bin ks2_xgbe_serdes.bin"
|
||||
|
||||
|
||||
24
recipes-bsp/ti-img-encode-decode/vxd-dec-fw_git.bb
Normal file
24
recipes-bsp/ti-img-encode-decode/vxd-dec-fw_git.bb
Normal file
@@ -0,0 +1,24 @@
|
||||
SUMMARY = "Video Decoding Firmware"
|
||||
LICENSE = "TI-IMG"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.ti-img;md5=84ca7278930db001870686ad997d6bb1"
|
||||
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
PV = "${IMG_DEC_FW_VERSION}"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
COMPATIBLE_MACHINE = "j7"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
TARGET = "pvdec_full_bin.fw"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${base_libdir}/firmware/ti-img
|
||||
install -m 0644 ${S}/ti-img/${TARGET} ${D}${base_libdir}/firmware/ti-img/${TARGET}
|
||||
}
|
||||
|
||||
FILES_${PN} = "${base_libdir}/firmware"
|
||||
46
recipes-bsp/ti-linux-fw/ti-linux-fw.inc
Normal file
46
recipes-bsp/ti-linux-fw/ti-linux-fw.inc
Normal file
@@ -0,0 +1,46 @@
|
||||
SUMMARY = "TI SCI firmware (SYSFW)"
|
||||
|
||||
LICENSE = "TI-TFL"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=b5aebf0668bdf95621259288c4a46d76"
|
||||
|
||||
PV = "2021.09a"
|
||||
INC_PR = "r1"
|
||||
|
||||
# Firmware versions
|
||||
CORESDK_RTOS_VERSION = "08.01.00.02"
|
||||
SERDES_FW_VERSION = "3.3.0.2c"
|
||||
NETCP_SA_FW_VERSION = "1.0.0"
|
||||
NETCP_PA_FW_VERSION = "3.0.2.3"
|
||||
QMSS_PDSP_FW_VERSION = "1.0.0.9"
|
||||
PRUETH_FW_AM65X_VERSION = "08.00.00.20"
|
||||
PRUETH_FW_AM65X_SR2_VERSION = "02.02.09.07"
|
||||
GOODIX_FW_VERSION = "1.0.0.0"
|
||||
CADENCE_MHDP_FW_VERSION = "1.2.17"
|
||||
IMG_DEC_FW_VERSION = "1.0"
|
||||
|
||||
TI_LINUX_FW_SRCREV ?= "c96a734a059889e571dcf30c0638157c690a6e6e"
|
||||
SRCREV = "${TI_LINUX_FW_SRCREV}"
|
||||
|
||||
BRANCH ?= "ti-linux-firmware"
|
||||
|
||||
K3_IMAGE_GEN_SRCREV ?= "489c767a153ff26e9230746e04dd4b1ad0809901"
|
||||
SRCREV_imggen = "${K3_IMAGE_GEN_SRCREV}"
|
||||
SRCREV_FORMAT = "imggen"
|
||||
|
||||
SRC_URI = " \
|
||||
git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH} \
|
||||
git://git.ti.com/k3-image-gen/k3-image-gen.git;protocol=git;branch=master;destsuffix=imggen;name=imggen \
|
||||
"
|
||||
|
||||
# This is a protection in case the definition is not present in other distros.
|
||||
ARAGO_BRAND ?= ""
|
||||
|
||||
# Mainline u_boot 2021.07 and upstream kernel v5.13 tag cannot use new SPL address
|
||||
# in K3-Imagegen
|
||||
SRC_URI += "\
|
||||
${@oe.utils.conditional('ARAGO_BRAND', 'mainline', '\
|
||||
file://0001-Revert-soc-am64x-Makefile-Move-the-SPL-Load-address-.patch;patchdir=../imggen \
|
||||
', '', d)} \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
@@ -0,0 +1,36 @@
|
||||
From 83d29d5e346083254e71fbe483cb14f6657b9965 Mon Sep 17 00:00:00 2001
|
||||
From: Nishanth Menon <nm@ti.com>
|
||||
Date: Tue, 29 Jun 2021 12:03:29 -0500
|
||||
Subject: [PATCH] Revert "soc: am64x: Makefile: Move the SPL Load address to
|
||||
0x70000000"
|
||||
|
||||
This reverts commit e411dc16862b5bb2d8befb12496b03d7b01c87b2.
|
||||
|
||||
Mainline is NOT ready for the change yet as of u-boot 2021.07 + v5.13,
|
||||
So, this patch reverts the SPL address change.
|
||||
|
||||
This patch needs to be dropped once mainline u-boot and kernel have
|
||||
migrated over to newer releases.
|
||||
|
||||
Upstream-Status: Not applicable
|
||||
Signed-off-by: Nishanth Menon <nm@ti.com>
|
||||
---
|
||||
soc/am64x/Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/soc/am64x/Makefile b/soc/am64x/Makefile
|
||||
index 45425428f9c6..e8747376f153 100644
|
||||
--- a/soc/am64x/Makefile
|
||||
+++ b/soc/am64x/Makefile
|
||||
@@ -30,7 +30,7 @@
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
|
||||
-SBL_LOADADDDR ?= 0x70000000
|
||||
+SBL_LOADADDDR ?= 0x70020000
|
||||
COMBINED_SYSFW_BRDCFG_LOADADDR ?= 0x70000
|
||||
LOADADDR ?= 0x44000
|
||||
SCIFS = sci
|
||||
--
|
||||
2.32.0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Let's take a page from gcc-source as a common recipe for all gcc stages,
|
||||
# but also to provide a single package for MAINMACHINE of all multiconfigs
|
||||
|
||||
require recipes-bsp/ti-sci-fw/ti-sci-fw.inc
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
SUMMARY += "- sources"
|
||||
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
SUMMARY = "TI SCI firmware (SYSFW)"
|
||||
|
||||
LICENSE = "TI-TFL"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.ti;md5=b5aebf0668bdf95621259288c4a46d76"
|
||||
|
||||
PV = "2020.12a"
|
||||
|
||||
SRCREV = "b66ee9ae020c31d7138f0af38518823bb4f5791e"
|
||||
BRANCH ?= "ti-linux-firmware"
|
||||
SRCREV_imggen = "8412cbddc19c75a2ab2711ae169c3818dc65e4ba"
|
||||
SRCREV_FORMAT = "imggen"
|
||||
|
||||
SRC_URI = " \
|
||||
git://git.ti.com/processor-firmware/ti-linux-firmware.git;protocol=git;branch=${BRANCH} \
|
||||
git://git.ti.com/k3-image-gen/k3-image-gen.git;protocol=git;branch=master;destsuffix=imggen;name=imggen \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
@@ -1,11 +1,13 @@
|
||||
require recipes-bsp/ti-sci-fw/ti-sci-fw.inc
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
DEPENDS = "openssl-native u-boot-mkimage-native dtc-native"
|
||||
DEPENDS_append_j7200-evm-k3r5 = " virtual/bootloader"
|
||||
DEPENDS_append_j7200-hs-evm-k3r5 = " virtual/bootloader"
|
||||
DEPENDS_append_am64xx-evm-k3r5 = " virtual/bootloader"
|
||||
DEPENDS_append_am64xx-hs-evm-k3r5 = " virtual/bootloader"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
PR = "r1"
|
||||
PR = "${INC_PR}.1"
|
||||
|
||||
# Loaded by R5F core
|
||||
COMPATIBLE_MACHINE = "k3r5"
|
||||
@@ -23,12 +25,15 @@ SYSFW_PREFIX = "ti-sci-firmware"
|
||||
SYSFW_PREFIX_j7-evm-k3r5 = "ti-fs-firmware"
|
||||
SYSFW_PREFIX_j7200-evm-k3r5 = "ti-fs-firmware"
|
||||
SYSFW_PREFIX_j7-hs-evm-k3r5 = "ti-fs-firmware"
|
||||
SYSFW_PREFIX_j7-hs-evm-k3r5-sr1-1 = "ti-fs-firmware"
|
||||
SYSFW_PREFIX_j7200-hs-evm-k3r5 = "ti-fs-firmware"
|
||||
|
||||
SYSFW_SUFFIX ?= "unknown"
|
||||
|
||||
SYSFW_BASE = "${SYSFW_PREFIX}-${SYSFW_SOC}-${SYSFW_SUFFIX}"
|
||||
SYSFW_BASE_append = "${@['','*']['${SYSFW_SUFFIX}' == 'hs']}"
|
||||
|
||||
SYSFW_TISCI = "${S}/ti-sysfw/${SYSFW_BASE}*.bin"
|
||||
SYSFW_TISCI = "${S}/ti-sysfw/${SYSFW_BASE}.bin"
|
||||
|
||||
SYSFW_BINARY = "sysfw-${SYSFW_SOC}-${SYSFW_CONFIG}.itb"
|
||||
SYSFW_VBINARY = "sysfw-${PV}-${SYSFW_SOC}-${SYSFW_CONFIG}.itb"
|
||||
@@ -47,12 +52,14 @@ EXTRA_OEMAKE = "\
|
||||
SYSFW_PATH="${SYSFW_TISCI}" SOC=${SYSFW_SOC} CONFIG=${SYSFW_CONFIG} \
|
||||
"
|
||||
EXTRA_OEMAKE_HS = " \
|
||||
HS=1 SYSFW_HS_PATH="${S}/ti-sysfw/${SYSFW_BASE}-enc.bin" SYSFW_HS_INNER_CERT_PATH="${S}/ti-sysfw/${SYSFW_BASE}-cert.bin" \
|
||||
HS=1 SW_REV=1 SYSFW_HS_PATH="${S}/ti-sysfw/${SYSFW_BASE}-enc.bin" SYSFW_HS_INNER_CERT_PATH="${S}/ti-sysfw/${SYSFW_BASE}-cert.bin" \
|
||||
"
|
||||
EXTRA_OEMAKE_append = "${@['',' ${EXTRA_OEMAKE_HS}']['${SYSFW_SUFFIX}' == 'hs']}"
|
||||
|
||||
EXTRA_OEMAKE_append_j7200-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
|
||||
EXTRA_OEMAKE_append_j7200-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
|
||||
EXTRA_OEMAKE_append_am64xx-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
|
||||
EXTRA_OEMAKE_append_am64xx-hs-evm-k3r5 = " SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
|
||||
|
||||
do_compile() {
|
||||
cd ${WORKDIR}/imggen/
|
||||
@@ -97,6 +104,22 @@ do_deploy_j7200-evm-k3r5() {
|
||||
install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE}
|
||||
ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK}
|
||||
ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY}
|
||||
install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/
|
||||
}
|
||||
|
||||
do_install_j7200-hs-evm-k3r5() {
|
||||
install -d ${D}/boot
|
||||
install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE}
|
||||
ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_SYMLINK}
|
||||
ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY}
|
||||
}
|
||||
|
||||
do_deploy_j7200-hs-evm-k3r5() {
|
||||
install -d ${DEPLOYDIR}
|
||||
install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE}
|
||||
ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK}
|
||||
ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY}
|
||||
install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/
|
||||
}
|
||||
|
||||
do_install_am64xx-evm-k3r5() {
|
||||
@@ -111,6 +134,21 @@ do_deploy_am64xx-evm-k3r5() {
|
||||
install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE}
|
||||
ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK}
|
||||
ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY}
|
||||
install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/
|
||||
}
|
||||
|
||||
do_install_am64xx-hs-evm-k3r5() {
|
||||
install -d ${D}/boot
|
||||
install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE}
|
||||
ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_SYMLINK}
|
||||
ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY}
|
||||
}
|
||||
|
||||
do_deploy_am64xx-hs-evm-k3r5() {
|
||||
install -d ${DEPLOYDIR}
|
||||
install -m 644 ${WORKDIR}/imggen/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE}
|
||||
ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_SYMLINK}
|
||||
ln -sf ${UBOOT_IMAGE} ${DEPLOYDIR}/${UBOOT_BINARY}
|
||||
install -m 644 ${SYSFW_TISCI} ${DEPLOYDIR}/
|
||||
}
|
||||
addtask deploy before do_build after do_compile
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
PV_k3 = "2.4"
|
||||
PV_k3 = "2.5"
|
||||
LIC_FILES_CHKSUM_k3 = "file://license.rst;md5=1dd070c98a281d18d9eefd938729b031"
|
||||
BRANCH_k3 = "ti-atf"
|
||||
SRC_URI_k3 = "git://git.ti.com/atf/arm-trusted-firmware.git;branch=${BRANCH};name=tfa"
|
||||
SRCREV_tfa_k3 = "65dd16b4ea5032752af62e94ca64cff41733a123"
|
||||
SRCREV_tfa_k3 = "0693f356eb2a25adf8758d98058120bed082cc73"
|
||||
COMPATIBLE_MACHINE_k3 = "k3"
|
||||
TFA_BUILD_TARGET_k3 = "all"
|
||||
TFA_INSTALL_TARGET_k3 = "bl31"
|
||||
@@ -16,6 +16,14 @@ do_compile_append_am65xx-hs-evm() {
|
||||
)
|
||||
}
|
||||
|
||||
do_compile_append_am64xx-hs-evm() {
|
||||
export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
|
||||
( cd ${B}/${BUILD_DIR}/release/; \
|
||||
mv bl31.bin bl31.bin.unsigned; \
|
||||
${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \
|
||||
)
|
||||
}
|
||||
|
||||
do_compile_append_j7-hs-evm() {
|
||||
export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
|
||||
( cd ${B}/${BUILD_DIR}/release/; \
|
||||
@@ -23,3 +31,11 @@ do_compile_append_j7-hs-evm() {
|
||||
${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \
|
||||
)
|
||||
}
|
||||
|
||||
do_compile_append_j7200-hs-evm() {
|
||||
export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
|
||||
( cd ${B}/${BUILD_DIR}/release/; \
|
||||
mv bl31.bin bl31.bin.unsigned; \
|
||||
${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \
|
||||
)
|
||||
}
|
||||
|
||||
@@ -4,7 +4,15 @@ LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"
|
||||
|
||||
PR = "r0"
|
||||
|
||||
PV = "2020.10"
|
||||
UBOOT_GIT_URI = "git://gitlab.denx.de/u-boot/u-boot.git"
|
||||
UBOOT_GIT_PROTOCOL = "http"
|
||||
SRCREV = "050acee119b3757fee3bd128f55d720fdd9bb890"
|
||||
PV = "2021.10"
|
||||
|
||||
# For the un-initiated:
|
||||
# The actual URL you'd use with a git clone for example would be:
|
||||
# https://source.denx.de/u-boot/u-boot.git/
|
||||
# However, in the context of OE, we have to explicitly split things up:
|
||||
# a) we want it to use git fetcher - hence git:// prefix in GIT_URI (if we
|
||||
# used https here, we'd endup attempting wget instead of git)
|
||||
# b) and we want git fetcher to use https protocol, hence GIT_PROTOCOL as https
|
||||
UBOOT_GIT_URI = "git://source.denx.de/u-boot/u-boot.git"
|
||||
UBOOT_GIT_PROTOCOL = "https"
|
||||
SRCREV = "d80bb749fab53da72c4a0e09b8c2d2aaa3103c91"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
require u-boot-ti.inc
|
||||
|
||||
PR = "r30"
|
||||
PR = "r36"
|
||||
|
||||
BRANCH = "ti-u-boot-2020.01"
|
||||
|
||||
SRCREV = "84b608fd3489c8dd93d8eb20e7f005d967b88402"
|
||||
SRCREV = "2781231a33c3d779e32445f4fe55164c45d6d7c1"
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
require u-boot-ti.inc
|
||||
|
||||
PR = "r1"
|
||||
LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"
|
||||
|
||||
PR = "r15"
|
||||
|
||||
BRANCH = "ti-u-boot-2021.01"
|
||||
|
||||
SRCREV = "c4fddedc48f336eabc4ce3f74940e6aa372de18c"
|
||||
SRCREV = "d79399bcd770191618bfeb3840506a286a6498df"
|
||||
|
||||
@@ -65,7 +65,9 @@ SPL_UART_BINARY_keystone = ""
|
||||
SPL_UART_BINARY_k3r5 = ""
|
||||
SPL_UART_BINARY_lego-ev3 = ""
|
||||
SPL_UART_BINARY_j7200-evm-k3r5 = "u-boot-spl.bin"
|
||||
SPL_UART_BINARY_j7200-hs-evm-k3r5 = "u-boot-spl.bin"
|
||||
SPL_UART_BINARY_am64xx-evm-k3r5 = "u-boot-spl.bin"
|
||||
SPL_UART_BINARY_am64xx-hs-evm-k3r5 = "u-boot-spl.bin"
|
||||
|
||||
SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
|
||||
SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
|
||||
@@ -396,9 +398,19 @@ do_deploy_append_j7200-evm-k3r5 () {
|
||||
mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
|
||||
}
|
||||
|
||||
do_deploy_append_j7200-hs-evm-k3r5 () {
|
||||
mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
|
||||
mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
|
||||
}
|
||||
|
||||
do_deploy_append_am64xx-evm-k3r5 () {
|
||||
mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
|
||||
mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
|
||||
}
|
||||
|
||||
do_deploy_append_am64xx-hs-evm-k3r5 () {
|
||||
mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
|
||||
mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
|
||||
}
|
||||
|
||||
TOOLCHAIN = "gcc"
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
From b5c4036dac06817bffd0be21c5fa1b7f75f74e4b Mon Sep 17 00:00:00 2001
|
||||
From: Suman Anna <s-anna@ti.com>
|
||||
Date: Mon, 19 Apr 2021 13:15:51 -0500
|
||||
Subject: [PATCH] uio-module-drv: Replace ioremap_nocache with ioremap
|
||||
|
||||
The ioremap_nocache is the same as the regular ioremap and its
|
||||
definition has been dropped from the Linux kernel v5.6 onwards in
|
||||
commit 4bdc0d676a64 ("remove ioremap_nocache and devm_ioremap_nocache")
|
||||
[1]. The uio-module-drv module fails to build against these newer
|
||||
kernels, so fix it by simply replacing ioremap_nocache with ioremap.
|
||||
|
||||
[1]
|
||||
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4bdc0d676a643140bdf17dbf7eafedee3d496a3c
|
||||
|
||||
Signed-off-by: Suman Anna <s-anna@ti.com>
|
||||
---
|
||||
uio_module_drv.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/uio_module_drv.c b/uio_module_drv.c
|
||||
index 5a67dd199e21..7cc6005d1f05 100644
|
||||
--- a/uio_module_drv.c
|
||||
+++ b/uio_module_drv.c
|
||||
@@ -240,7 +240,7 @@ static ssize_t uio_module_drv_transfer(struct file *file, char __user *buf,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
- virt_addr_p = ioremap_nocache(phys_addr, count);
|
||||
+ virt_addr_p = ioremap(phys_addr, count);
|
||||
if (!virt_addr_p) {
|
||||
dev_err(uio_module_drv->dev, "Mapping of virtual memory failed\n");
|
||||
return(-ENOMEM);
|
||||
--
|
||||
2.30.1
|
||||
|
||||
@@ -2,6 +2,10 @@ DESCRIPTION = "User space IO (UIO) driver for on-chip modules"
|
||||
|
||||
include uio-module-drv.inc
|
||||
|
||||
FILESEXTRAPATHS_prepend:= "${THISDIR}/${PN}:"
|
||||
|
||||
SRC_URI += "file://0001-uio-module-drv-Replace-ioremap_nocache-with-ioremap.patch"
|
||||
|
||||
# This package builds a kernel module, use kernel PR as base and append a local
|
||||
MACHINE_KERNEL_PR_append = "d"
|
||||
PR = "${MACHINE_KERNEL_PR}"
|
||||
|
||||
@@ -7,8 +7,7 @@ SRC_URI = " \
|
||||
file://0001-Add-Makefile-to-install-firmware-files.patch \
|
||||
"
|
||||
|
||||
# Tag: R8.7-SP3 (8.7.3)
|
||||
SRCREV = "f659be25473e4bde8dc790bff703ecacde6e21da"
|
||||
SRCREV = "5ec05007f2662f460f881c5868311fd3ab7e6e71"
|
||||
BRANCH = "master"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
@@ -1,8 +1,8 @@
|
||||
# This corresponds to version 1.1.0
|
||||
SRCREV = "d1d32c32fa9e40b48fabf5893487ccbd5790499c"
|
||||
SRCREV = "dd0c82fb5763a6b32dc6d68e561efb66ab8283d7"
|
||||
|
||||
PV = "1.1.0"
|
||||
INC_PR = "r6"
|
||||
INC_PR = "r7"
|
||||
|
||||
SRC_URI = "git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=${BRANCH}"
|
||||
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
From 51eece2c291e121f9ae67c9b812617b885e76a64 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 18 Dec 2019 20:31:52 -0800
|
||||
Subject: [PATCH] cmake: Use GNUInstallDirs module to detect install paths
|
||||
|
||||
This helps it to calculate directories as per platform instead of
|
||||
hardcoding them, helps compile it for arches which use /lib64 and
|
||||
/usr/lib64 for libpaths
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/glneo/libion/pull/2]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
CMakeLists.txt | 10 ++++++----
|
||||
1 file changed, 6 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 6e5928c..5b7c0de 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -3,6 +3,8 @@ PROJECT(ion)
|
||||
set(PROJECT_DESCRIPTION "ION Userspace Memory Allocator Library")
|
||||
set(PROJECT_VERSION 1.0.0)
|
||||
|
||||
+INCLUDE(GNUInstallDirs)
|
||||
+
|
||||
add_library(ion
|
||||
SHARED
|
||||
src/libion.c
|
||||
@@ -23,12 +25,12 @@ target_include_directories(ion
|
||||
configure_file(libion.pc.in libion.pc @ONLY)
|
||||
|
||||
install(TARGETS ion
|
||||
- LIBRARY DESTINATION lib
|
||||
- PUBLIC_HEADER DESTINATION include/ion)
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ion)
|
||||
|
||||
install(DIRECTORY include/kernel-headers/4.19/
|
||||
- DESTINATION include
|
||||
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
FILES_MATCHING PATTERN "*.h")
|
||||
|
||||
install(FILES ${CMAKE_BINARY_DIR}/libion.pc
|
||||
- DESTINATION lib/pkgconfig)
|
||||
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||
--
|
||||
2.24.1
|
||||
|
||||
@@ -6,10 +6,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
|
||||
PV = "1.0.0"
|
||||
|
||||
BRANCH = "master"
|
||||
SRC_URI = "git://github.com/glneo/libion.git;protocol=git;branch=${BRANCH} \
|
||||
file://0001-cmake-Use-GNUInstallDirs-module-to-detect-install-pa.patch \
|
||||
"
|
||||
SRCREV = "813bd63e2f2118e17cb1c5d38505a1e572a2381c"
|
||||
SRC_URI = "git://github.com/glneo/libion.git;protocol=https;branch=${BRANCH}"
|
||||
SRCREV = "7e138fc31febbb67734792c1a911439bfd6d23eb"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
|
||||
@@ -10,13 +10,13 @@ REQUIRED_MACHINE_FEATURES = "gpu"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
COMPATIBLE_MACHINE = "j7"
|
||||
|
||||
PR = "r9"
|
||||
PR = "r3"
|
||||
|
||||
BRANCH = "linuxws/zeus/k5.4/${PV}"
|
||||
BRANCH = "linuxws/dunfell/k5.10/${PV}"
|
||||
|
||||
SRC_URI = "git://git.ti.com/graphics/ti-img-rogue-umlibs.git;branch=${BRANCH}"
|
||||
|
||||
SRCREV = "8d3d1891186ed3f397bb90f4f8c518c6c9970479"
|
||||
SRCREV = "5ef38353c38d921a65ea6df75c7b6ce710b66034"
|
||||
|
||||
PVR_SOC ?= "j721e_linux"
|
||||
PVR_BUILD ?= "release"
|
||||
@@ -10,12 +10,12 @@ REQUIRED_MACHINE_FEATURES = "gpu"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
COMPATIBLE_MACHINE = "pandaboard|beagleboard|ti33x|ti43x|omap-a15|k3"
|
||||
|
||||
PR = "r36"
|
||||
PR = "r37"
|
||||
|
||||
BRANCH = "ti-img-sgx/zeus/${PV}"
|
||||
BRANCH = "ti-img-sgx/dunfell/${PV}"
|
||||
|
||||
SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}"
|
||||
SRCREV = "7519eda203308c4356e68fd6af67a0900ed09cb4"
|
||||
SRCREV = "742cf38aba13e1ba1a910cf1f036a1a212c263b6"
|
||||
|
||||
TARGET_PRODUCT_omap-a15 = "jacinto6evm"
|
||||
TARGET_PRODUCT_ti33x = "ti335x"
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
# Set jailhouse architecture JH_ARCH variable
|
||||
#
|
||||
# return value must match one of architectures supported by jailhouse
|
||||
#
|
||||
valid_jh_archs = "x86 arm"
|
||||
|
||||
def map_jh_arch(a, d):
|
||||
import re
|
||||
|
||||
valid_jh_archs = d.getVar('valid_jh_archs', True).split()
|
||||
|
||||
if re.match('(i.86|athlon|x86.64)$', a): return 'x86'
|
||||
elif re.match('armeb$', a): return 'arm'
|
||||
elif re.match('aarch64$', a): return 'arm64'
|
||||
elif re.match('aarch64_be$', a): return 'arm64'
|
||||
elif a in valid_jh_archs: return a
|
||||
else:
|
||||
bb.error("cannot map '%s' to a jailhouse supported architecture" % a)
|
||||
|
||||
export JH_ARCH = "${@map_jh_arch(d.getVar('TARGET_ARCH', True), d)}"
|
||||
|
||||
COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
|
||||
@@ -1,56 +0,0 @@
|
||||
From 24e58c75592a2ba09f3062c8a4722c0e29a9b558 Mon Sep 17 00:00:00 2001
|
||||
From: Denys Dmytriyenko <denys@ti.com>
|
||||
Date: Wed, 1 Apr 2020 15:44:46 -0400
|
||||
Subject: [PATCH] tools: update shebang in helper scripts for python3
|
||||
|
||||
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
|
||||
---
|
||||
tools/jailhouse-cell-linux | 2 +-
|
||||
tools/jailhouse-cell-stats | 2 +-
|
||||
tools/jailhouse-config-create | 2 +-
|
||||
tools/jailhouse-hardware-check | 2 +-
|
||||
4 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/tools/jailhouse-cell-linux b/tools/jailhouse-cell-linux
|
||||
index 007a5c4..e106b9d 100755
|
||||
--- a/tools/jailhouse-cell-linux
|
||||
+++ b/tools/jailhouse-cell-linux
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
|
||||
# Jailhouse, a Linux-based partitioning hypervisor
|
||||
#
|
||||
diff --git a/tools/jailhouse-cell-stats b/tools/jailhouse-cell-stats
|
||||
index 2f7e966..4c5289f 100755
|
||||
--- a/tools/jailhouse-cell-stats
|
||||
+++ b/tools/jailhouse-cell-stats
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
|
||||
# Jailhouse, a Linux-based partitioning hypervisor
|
||||
#
|
||||
diff --git a/tools/jailhouse-config-create b/tools/jailhouse-config-create
|
||||
index 1e2df74..9382b05 100755
|
||||
--- a/tools/jailhouse-config-create
|
||||
+++ b/tools/jailhouse-config-create
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
#
|
||||
# Jailhouse, a Linux-based partitioning hypervisor
|
||||
#
|
||||
diff --git a/tools/jailhouse-hardware-check b/tools/jailhouse-hardware-check
|
||||
index 375816e..658ce6f 100755
|
||||
--- a/tools/jailhouse-hardware-check
|
||||
+++ b/tools/jailhouse-hardware-check
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
|
||||
# Jailhouse, a Linux-based partitioning hypervisor
|
||||
#
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -1,168 +0,0 @@
|
||||
SUMMARY = "Linux-based partitioning hypervisor"
|
||||
DESCRIPTION = "Jailhouse is a partitioning Hypervisor based on Linux. It is able to run bare-metal applications or (adapted) \
|
||||
operating systems besides Linux. For this purpose, it configures CPU and device virtualization features of the hardware \
|
||||
platform in a way that none of these domains, called 'cells' here, can interfere with each other in an unacceptable way."
|
||||
HOMEPAGE = "https://github.com/siemens/jailhouse"
|
||||
SECTION = "jailhouse"
|
||||
LICENSE = "GPL-2.0 & BSD-2-Clause"
|
||||
|
||||
LIC_FILES_CHKSUM = " \
|
||||
file://COPYING;md5=9fa7f895f96bde2d47fd5b7d95b6ba4d \
|
||||
"
|
||||
|
||||
PV = "0.12+git${SRCPV}"
|
||||
SRCREV = "0d059b6f2c3efeaa2466517300540498b34b7655"
|
||||
BRANCH = "ti-jailhouse-0.12"
|
||||
|
||||
SRC_URI = " \
|
||||
git://git.ti.com/jailhouse/ti-jailhouse.git;protocol=git;branch=${BRANCH} \
|
||||
file://0001-tools-update-shebang-in-helper-scripts-for-python3.patch \
|
||||
"
|
||||
|
||||
DEPENDS = "virtual/kernel dtc-native python3-mako-native python3-mako make-native"
|
||||
RDEPENDS_${PN} += "\
|
||||
python3-curses\
|
||||
python3-datetime\
|
||||
python3-mmap\
|
||||
"
|
||||
|
||||
require jailhouse-arch.inc
|
||||
inherit module python3native bash-completion deploy setuptools3
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
B = "${S}"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
COMPATIBLE_MACHINE = "(ti-soc)"
|
||||
|
||||
JH_DATADIR ?= "${datadir}/jailhouse"
|
||||
JH_EXEC_DIR ?= "${libexecdir}/jailhouse"
|
||||
CELL_DIR ?= "${JH_DATADIR}/cells"
|
||||
CELLCONF_DIR ?= "${JH_DATADIR}/configs"
|
||||
INMATES_DIR ?= "${JH_DATADIR}/inmates"
|
||||
|
||||
JH_CELL_FILES ?= "*.cell"
|
||||
JH_CELL_FILES_k3 ?= "k3-*.cell"
|
||||
|
||||
JH_INMATE_DTB ?= ""
|
||||
JH_INMATE_DTB_am65xx ?= "inmate-k3-am654-idk.dtb"
|
||||
JH_INMATE_DTB_j7 ?= "inmate-k3-j721e-evm.dtb"
|
||||
JH_INMATE_DTB_j7200-evm ?= "inmate-k3-j7200-evm.dtb"
|
||||
|
||||
JH_LINUX_DEMO_CELL ?= ""
|
||||
JH_LINUX_DEMO_CELL_am65xx ?= "k3-am654-idk-linux-demo.cell"
|
||||
JH_LINUX_DEMO_CELL_j7 ?= "k3-j721e-evm-linux-demo.cell"
|
||||
JH_LINUX_DEMO_CELL_j7200-evm ?= "k3-j7200-evm-linux-demo.cell"
|
||||
|
||||
JH_SYSCONFIG_CELL ?= ""
|
||||
JH_SYSCONFIG_CELL_am65xx ?= "k3-am654-idk.cell"
|
||||
JH_SYSCONFIG_CELL_j7 ?= "k3-j721e-evm.cell"
|
||||
JH_SYSCONFIG_CELL_j7200-evm ?= "k3-j7200-evm.cell"
|
||||
|
||||
INITRAMFS_IMAGE ?= ""
|
||||
JH_RAMFS_IMAGE ?= "${INITRAMFS_IMAGE}"
|
||||
|
||||
JH_CMDLINE ?= ""
|
||||
JH_CMDLINE_am65xx ?= "console=ttyS1,115200n8"
|
||||
JH_CMDLINE_j7 ?= "console=ttyS3,115200n8"
|
||||
JH_CMDLINE_j7200-evm ?= "console=ttyS3,115200n8"
|
||||
|
||||
do_configure() {
|
||||
if [ -d ${STAGING_DIR_HOST}/${CELLCONF_DIR} ];
|
||||
then
|
||||
cp ${STAGING_DIR_HOST}/${CELLCONF_DIR}/*.c ${S}/configs/
|
||||
fi
|
||||
}
|
||||
|
||||
USER_SPACE_CFLAGS = '${CFLAGS} -DLIBEXECDIR=\\\"${libexecdir}\\\" \
|
||||
-DJAILHOUSE_VERSION=\\\"$JAILHOUSE_VERSION\\\" \
|
||||
-Wall -Wextra -Wmissing-declarations -Wmissing-prototypes -Werror \
|
||||
-I../driver'
|
||||
|
||||
TOOLS_SRC_DIR = "${S}/tools"
|
||||
|
||||
EXTRA_OEMAKE = "ARCH=${JH_ARCH} CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}" KDIR=${STAGING_KERNEL_BUILDDIR}"
|
||||
|
||||
do_compile() {
|
||||
oe_runmake V=1
|
||||
}
|
||||
|
||||
do_install() {
|
||||
# Install pyjailhouse python modules needed by the tools
|
||||
distutils3_do_install
|
||||
|
||||
# We want to install the python tools, but we do not want to use pip...
|
||||
# At least with v0.10, we can work around this with
|
||||
# 'PIP=":" PYTHON_PIP_USEABLE=yes'
|
||||
oe_runmake PIP=: PYTHON=python3 PYTHON_PIP_USEABLE=yes DESTDIR=${D} install
|
||||
|
||||
install -d ${D}${CELL_DIR}
|
||||
install -m 0644 ${B}/configs/${JH_ARCH}/${JH_CELL_FILES} ${D}${CELL_DIR}/
|
||||
|
||||
install -d ${D}${INMATES_DIR}
|
||||
install -m 0644 ${B}/inmates/demos/${JH_ARCH}/*.bin ${D}${INMATES_DIR}
|
||||
|
||||
install -d ${D}/boot
|
||||
if [ -n "${JH_RAMFS_IMAGE}" ]
|
||||
then
|
||||
if [ -f ${DEPLOY_DIR_IMAGE}/${JH_RAMFS_IMAGE}-${MACHINE}.cpio ]
|
||||
then
|
||||
install -m 0644 ${DEPLOY_DIR_IMAGE}/${JH_RAMFS_IMAGE}-${MACHINE}.cpio ${D}/boot
|
||||
else
|
||||
bberror "Could not find JH_RAMFS_IMAGE (${JH_RAMFS_IMAGE}-${MACHINE}.cpio)!"
|
||||
bberror "Please make sure that \"cpio\" is in IMAGE_FSTYPES."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "${JH_INMATE_DTB}" -a -n "${JH_LINUX_DEMO_CELL}" ]; then
|
||||
cd ${TOOLS_SRC_DIR}
|
||||
|
||||
echo "#! /bin/sh" > ${D}${JH_DATADIR}/linux-demo.sh
|
||||
echo "jailhouse enable ${CELL_DIR}/${JH_SYSCONFIG_CELL}" >> ${D}${JH_DATADIR}/linux-demo.sh
|
||||
./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 \
|
||||
${D}${CELL_DIR}/${JH_LINUX_DEMO_CELL} \
|
||||
${DEPLOY_DIR_IMAGE}/Image \
|
||||
| tr -cd '\11\12\15\40-\176' \
|
||||
>> ${D}${JH_DATADIR}/linux-demo.sh
|
||||
|
||||
sed -i -e 's,^Modified device tree written.*,,g' ${D}${JH_DATADIR}/linux-demo.sh
|
||||
sed -i -e 's,\${D},,g' ${D}${JH_DATADIR}/linux-demo.sh
|
||||
sed -i -e 's, linux-loader.bin, ${JH_EXEC_DIR}/linux-loader.bin,g' ${D}${JH_DATADIR}/linux-demo.sh
|
||||
sed -i -e 's,\${DEPLOY_DIR_IMAGE},/boot,g' ${D}${JH_DATADIR}/linux-demo.sh
|
||||
sed -i -e '/^\s*$/d' ${D}${JH_DATADIR}/linux-demo.sh
|
||||
chmod +x ${D}${JH_DATADIR}/linux-demo.sh
|
||||
fi
|
||||
}
|
||||
|
||||
PACKAGE_BEFORE_PN = "kernel-module-jailhouse pyjailhouse ${PN}-tools"
|
||||
FILES_${PN} = "${base_libdir}/firmware ${libexecdir} ${sbindir} ${JH_DATADIR} /boot"
|
||||
FILES_pyjailhouse = "${PYTHON_SITEPACKAGES_DIR}"
|
||||
FILES_${PN}-tools = "${libexecdir}/${BPN}/${BPN}-*"
|
||||
|
||||
RDEPENDS_${PN}-tools = "pyjailhouse python3-mmap python3-math python3-datetime python3-curses python3-compression"
|
||||
RDEPENDS_pyjailhouse = "python3-core python3-ctypes python3-fcntl python3-shell"
|
||||
|
||||
RRECOMMENDS_${PN} = "${PN}-tools"
|
||||
|
||||
INSANE_SKIP_${PN} = "ldflags"
|
||||
|
||||
KERNEL_MODULE_AUTOLOAD += "jailhouse"
|
||||
|
||||
# Any extra cells/inmates from external recipes/packages
|
||||
CELLS = ""
|
||||
|
||||
python __anonymous () {
|
||||
d.appendVarFlag('do_install', 'depends', ' virtual/kernel:do_deploy')
|
||||
ramfs = d.getVar('JH_RAMFS_IMAGE', True)
|
||||
if ramfs:
|
||||
d.appendVarFlag('do_install', 'depends', ' ${JH_RAMFS_IMAGE}:do_image_complete')
|
||||
|
||||
# Setup DEPENDS and RDEPENDS to included cells
|
||||
cells = d.getVar('CELLS', True) or ""
|
||||
for cell in cells.split():
|
||||
d.appendVar('DEPENDS', ' ' + cell)
|
||||
d.appendVar('RDEPENDS_${PN}', ' ' + cell)
|
||||
}
|
||||
@@ -34,7 +34,11 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am57xx-hs-evm = " prueth-fw prusw-fw
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_ti43x = " prueth-fw pruhsr-fw pruprp-fw"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_ti33x = " prueth-fw pruhsr-fw pruprp-fw"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am65xx = " prueth-fw-am65x"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am65xx-evm = " prueth-fw-am65x-sr2"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am65xx-evm = " prueth-fw-am65x-sr2 prusw-fw-am65x-sr2"
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_am64xx-evm = " prueth-fw-am65x-sr2"
|
||||
|
||||
# Add run-time dependency for Cadence MHDP firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j7 = " cadence-mhdp-fw"
|
||||
|
||||
# Add run-time dependency for Video Decoding firmware to the rootfs
|
||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_j7 = " vxd-dec-fw"
|
||||
|
||||
@@ -8,30 +8,35 @@ inherit kernel
|
||||
DEFCONFIG_BUILDER = "${WORKDIR}/ti-upstream-tools/config/defconfig_builder.sh"
|
||||
require recipes-kernel/linux/setup-defconfig.inc
|
||||
require recipes-kernel/linux/kernel-rdepends.inc
|
||||
require recipes-kernel/linux/ti-kernel.inc
|
||||
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
||||
DEPENDS += "gmp-native"
|
||||
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \
|
||||
${EXTRA_DTC_ARGS}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
BRANCH = "master"
|
||||
TOOLS_BRANCH = "master"
|
||||
|
||||
# 5.9 Mainline version
|
||||
SRCREV = "bbf5c979011a099af5dc76498918ed7df445635b"
|
||||
PV = "5.9+git${SRCPV}"
|
||||
# 5.13 Mainline version
|
||||
SRCREV = "62fb9874f5da54fdb243003b386128037319b219"
|
||||
PV = "5.13+git${SRCPV}"
|
||||
|
||||
# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
|
||||
MACHINE_KERNEL_PR_append = "a"
|
||||
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 = "git"
|
||||
SRC_URI += " \
|
||||
${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH};name=linux \
|
||||
git://git.ti.com/ti-linux-kernel/ti-upstream-tools.git;protocol=${KERNEL_GIT_PROTOCOL};name=ti-upstream-tools;destsuffix=ti-upstream-tools \
|
||||
git://git.ti.com/ti-linux-kernel/ti-upstream-tools.git;branch=${TOOLS_BRANCH};protocol=${KERNEL_GIT_PROTOCOL};name=ti-upstream-tools;destsuffix=ti-upstream-tools \
|
||||
file://defconfig \
|
||||
"
|
||||
|
||||
SRCREV_ti-upstream-tools = "3f36f66594d7905f7b97bc7870931173fd2466bd"
|
||||
SRCREV_ti-upstream-tools = "c9b8150cb00a5beb7b7f3e42d0d817aa9392fabd"
|
||||
SRCREV_FORMAT = "linux"
|
||||
|
||||
KERNEL_DEVICETREE = ""
|
||||
|
||||
@@ -6,5 +6,5 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-5.10:"
|
||||
|
||||
BRANCH = "ti-rt-linux-5.10.y"
|
||||
|
||||
SRCREV = "5990047eb007737030748d449dc37275b317117b"
|
||||
PV = "5.10.4+git${SRCPV}"
|
||||
SRCREV = "0c67d996db8f3c9149598bc98657ae28fee22208"
|
||||
PV = "5.10.65+git${SRCPV}"
|
||||
|
||||
@@ -6,5 +6,5 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-5.4:"
|
||||
|
||||
BRANCH = "ti-rt-linux-5.4.y"
|
||||
|
||||
SRCREV = "e0c39cf61df45b3f69d7ad1afd919e104d39eba3"
|
||||
PV = "5.4.87+git${SRCPV}"
|
||||
SRCREV = "519667b0d81d74a6e55105dcd6072ae550352599"
|
||||
PV = "5.4.106+git${SRCPV}"
|
||||
|
||||
@@ -11,18 +11,20 @@ require recipes-kernel/linux/cmem.inc
|
||||
require recipes-kernel/linux/ti-uio.inc
|
||||
require recipes-kernel/linux/bundle-devicetree.inc
|
||||
require recipes-kernel/linux/kernel-rdepends.inc
|
||||
require recipes-kernel/linux/ti-kernel.inc
|
||||
|
||||
# Look in the generic major.minor directory for files
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-5.10:"
|
||||
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \
|
||||
${EXTRA_DTC_ARGS}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
BRANCH = "ti-linux-5.10.y"
|
||||
|
||||
SRCREV = "44fb363f878fa80d5b502291954bb83d9cae842b"
|
||||
PV = "5.10.7+git${SRCPV}"
|
||||
SRCREV = "dfe78b39dc37d37666f04c788abcf7d72cca3e91"
|
||||
PV = "5.10.65+git${SRCPV}"
|
||||
|
||||
# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
|
||||
MACHINE_KERNEL_PR_append = "a"
|
||||
|
||||
@@ -21,8 +21,8 @@ S = "${WORKDIR}/git"
|
||||
|
||||
BRANCH = "ti-linux-5.4.y"
|
||||
|
||||
SRCREV = "60de748aca87c99a32f726a6abf1b6472f297ae3"
|
||||
PV = "5.4.87+git${SRCPV}"
|
||||
SRCREV = "023faefa70274929bff92dc41167b007f7523792"
|
||||
PV = "5.4.106+git${SRCPV}"
|
||||
|
||||
# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
|
||||
MACHINE_KERNEL_PR_append = "a"
|
||||
|
||||
9
recipes-kernel/linux/ti-kernel.inc
Normal file
9
recipes-kernel/linux/ti-kernel.inc
Normal file
@@ -0,0 +1,9 @@
|
||||
# Add DTC FLAGS -@ when KERNEL_DTB_OVERLAY_SUPPORT is enabled
|
||||
|
||||
def get_extra_dtc_args(d):
|
||||
if d.getVar('KERNEL_DTB_OVERLAY_SUPPORT') == "1":
|
||||
return "DTC_FLAGS=-@"
|
||||
else:
|
||||
return ""
|
||||
|
||||
EXTRA_DTC_ARGS += "${@get_extra_dtc_args(d)}"
|
||||
1
recipes-kernel/perf/perf.bbappend
Normal file
1
recipes-kernel/perf/perf.bbappend
Normal file
@@ -0,0 +1 @@
|
||||
RDEPENDS_${PN}-tests_ti-soc += "bash"
|
||||
@@ -1,62 +0,0 @@
|
||||
Upstream-Status: Backport
|
||||
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||
|
||||
From 36e784f621bf5d5be9183beba35f39426277c110 Mon Sep 17 00:00:00 2001
|
||||
From: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
|
||||
Date: Tue, 13 Oct 2020 22:45:39 +0300
|
||||
Subject: [PATCH 1/3] libutils: provide empty __getauxval() implementation
|
||||
|
||||
Never version of libgcc are built with LSE implementation in mind. To
|
||||
determine if LSE is available on platform it calls __getauxval(), so in
|
||||
some cases we can get undefined reference to __getauxval() error.
|
||||
|
||||
Prominent case is libgcc_eh.a library, which is used by C++ TAs. Exception
|
||||
handler depends on atomic operations, so it tries to call
|
||||
init_have_lse_atomics() first. This function in turn calls __getauxval(),
|
||||
which causes linking error.
|
||||
|
||||
In the future we can make __getauxval() to return actual platform
|
||||
capabilities.
|
||||
|
||||
Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
|
||||
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
|
||||
Reviewed-by: Jerome Forissier <jerome@forissier.org>
|
||||
---
|
||||
lib/libutils/ext/arch/arm/auxval.c | 12 ++++++++++++
|
||||
lib/libutils/ext/arch/arm/sub.mk | 1 +
|
||||
2 files changed, 13 insertions(+)
|
||||
create mode 100644 lib/libutils/ext/arch/arm/auxval.c
|
||||
|
||||
diff --git a/lib/libutils/ext/arch/arm/auxval.c b/lib/libutils/ext/arch/arm/auxval.c
|
||||
new file mode 100644
|
||||
index 00000000..98bca850
|
||||
--- /dev/null
|
||||
+++ b/lib/libutils/ext/arch/arm/auxval.c
|
||||
@@ -0,0 +1,12 @@
|
||||
+// SPDX-License-Identifier: BSD-2-Clause
|
||||
+/*
|
||||
+ * Copyright (c) 2020, EPAM Systems
|
||||
+ */
|
||||
+
|
||||
+#include <compiler.h>
|
||||
+
|
||||
+unsigned long int __getauxval (unsigned long int type);
|
||||
+unsigned long int __getauxval (unsigned long int type __unused)
|
||||
+{
|
||||
+ return 0;
|
||||
+}
|
||||
diff --git a/lib/libutils/ext/arch/arm/sub.mk b/lib/libutils/ext/arch/arm/sub.mk
|
||||
index dc5eed67..2e779066 100644
|
||||
--- a/lib/libutils/ext/arch/arm/sub.mk
|
||||
+++ b/lib/libutils/ext/arch/arm/sub.mk
|
||||
@@ -3,6 +3,7 @@ srcs-$(CFG_ARM32_$(sm)) += aeabi_unwind.c
|
||||
endif
|
||||
srcs-$(CFG_ARM32_$(sm)) += atomic_a32.S
|
||||
srcs-$(CFG_ARM64_$(sm)) += atomic_a64.S
|
||||
+srcs-y += auxval.c
|
||||
ifneq ($(sm),ldelf) # TA, core
|
||||
srcs-$(CFG_ARM32_$(sm)) += mcount_a32.S
|
||||
srcs-$(CFG_ARM64_$(sm)) += mcount_a64.S
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
Upstream-Status: Backport
|
||||
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||
|
||||
From 73196b58ea6978ffa5e581738030f51c5789ef73 Mon Sep 17 00:00:00 2001
|
||||
From: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
|
||||
Date: Tue, 13 Oct 2020 22:54:13 +0300
|
||||
Subject: [PATCH 2/3] link.mk: implement support for libnames-after-libgcc
|
||||
variable
|
||||
|
||||
Newer versions of libgcc depend on external __getauxval() symbol, which is
|
||||
now provided by libutils. But libgcc is linked after libutils, so linker
|
||||
can't resolve that symbol. We can't include libgcc into linking group with
|
||||
libtutils, because libgcc provides symbols that conflict with libutil's
|
||||
ones, like __aeabi_idiv with friends for instance.
|
||||
|
||||
So, to resolve libgcc dependency on libutils we need to link with libutils
|
||||
second time. To make things more generic, we will introduce
|
||||
$(libnames-after-libgcc) variable for libraries that should be linked after
|
||||
libgcc.
|
||||
|
||||
Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
|
||||
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
|
||||
Reviewed-by: Jerome Forissier <jerome@forissier.org>
|
||||
---
|
||||
ta/arch/arm/link.mk | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ta/arch/arm/link.mk b/ta/arch/arm/link.mk
|
||||
index 445c285d..3025acb1 100644
|
||||
--- a/ta/arch/arm/link.mk
|
||||
+++ b/ta/arch/arm/link.mk
|
||||
@@ -55,8 +55,11 @@ link-ldflags += --eh-frame-hdr
|
||||
link-ldadd += $(libstdc++$(sm)) $(libgcc_eh$(sm))
|
||||
endif
|
||||
link-ldadd += --end-group
|
||||
-ldargs-$(user-ta-uuid).elf := $(link-ldflags) $(objs) $(link-ldadd) $(libgcc$(sm))
|
||||
|
||||
+link-ldadd-after-libgcc += $(addprefix -l,$(libnames-after-libgcc))
|
||||
+
|
||||
+ldargs-$(user-ta-uuid).elf := $(link-ldflags) $(objs) $(link-ldadd) \
|
||||
+ $(libgcc$(sm)) $(link-ldadd-after-libgcc)
|
||||
|
||||
link-script-cppflags-$(sm) := \
|
||||
$(filter-out $(CPPFLAGS_REMOVE) $(cppflags-remove), \
|
||||
@@ -76,6 +79,7 @@ $(link-script-pp$(sm)): $(link-script$(sm)) $(conf-file) $(link-script-pp-makefi
|
||||
$(link-script-cppflags-$(sm)) $$< -o $$@
|
||||
|
||||
$(link-out-dir$(sm))/$(user-ta-uuid).elf: $(objs) $(libdeps) \
|
||||
+ $(libdeps-after-libgcc) \
|
||||
$(link-script-pp$(sm)) \
|
||||
$(dynlistdep) \
|
||||
$(additional-link-deps)
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
Upstream-Status: Backport
|
||||
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||
|
||||
From f50962e3f56f0932662b2ffa10afe53339a335dd Mon Sep 17 00:00:00 2001
|
||||
From: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
|
||||
Date: Fri, 16 Oct 2020 16:36:08 +0300
|
||||
Subject: [PATCH 3/3] ta_dev_kit.mk: make sure that libutils is linked second
|
||||
time
|
||||
|
||||
libgcc depends on __getauxval symbol from libuils. As, generally libutils
|
||||
is linked before libgcc, we will get "unresolved symbol" error. To resolve
|
||||
this dependency we need to link libutils second time - after libgcc.
|
||||
|
||||
Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
|
||||
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
|
||||
Reviewed-by: Jerome Forissier <jerome@forissier.org>
|
||||
---
|
||||
ta/mk/ta_dev_kit.mk | 10 ++++++++++
|
||||
1 file changed, 10 insertions(+)
|
||||
|
||||
diff --git a/ta/mk/ta_dev_kit.mk b/ta/mk/ta_dev_kit.mk
|
||||
index e28be677..d0e66317 100644
|
||||
--- a/ta/mk/ta_dev_kit.mk
|
||||
+++ b/ta/mk/ta_dev_kit.mk
|
||||
@@ -78,6 +78,16 @@ endif
|
||||
libnames += dl
|
||||
libdeps += $(ta-dev-kit-dir$(sm))/lib/libdl.a
|
||||
|
||||
+# libutils provides __getauxval symbol which is needed by libgcc 10.x. We can't
|
||||
+# link libutils after libgcc, because libgcc will replace some symbols provided
|
||||
+# by libutils, which will cause further linking issues.
|
||||
+#
|
||||
+# But if we place libutils before libgcc, linker will not be able to resolve
|
||||
+# __getauxval. So we need to link with libutils twice: before and after libgcc.
|
||||
+# Hence it included both in $(libnames) and in $(libnames-after-libgcc)
|
||||
+libnames-after-libgcc += utils
|
||||
+libdeps-after-libgcc += $(ta-dev-kit-dir$(sm))/lib/libutils.a
|
||||
+
|
||||
# Pass config variable (CFG_) from conf.mk on the command line
|
||||
cppflags$(sm) += $(strip \
|
||||
$(foreach var, $(filter CFG_%,$(.VARIABLES)), \
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -1,16 +1,13 @@
|
||||
FILESEXTRAPATHS_prepend_ti-soc := "${THISDIR}/${PN}:"
|
||||
|
||||
PV_ti-soc = "3.11.0+git${SRCPV}"
|
||||
PV_ti-soc = "3.12.0+git${SRCPV}"
|
||||
|
||||
SRCREV_ti-soc = "c4def2a8262a03244d9a88461699b9b8e43c6b55"
|
||||
SRCREV_ti-soc = "3d47a131bca1d9ed511bfd516aa5e70269e12c1d"
|
||||
|
||||
SRC_URI_ti-soc = " \
|
||||
git://github.com/OP-TEE/optee_os.git \
|
||||
file://0006-allow-setting-sysroot-for-libgcc-lookup.patch \
|
||||
file://0007-allow-setting-sysroot-for-clang.patch \
|
||||
file://0001-libutils-provide-empty-__getauxval-implementation.patch \
|
||||
file://0002-link.mk-implement-support-for-libnames-after-libgcc-.patch \
|
||||
file://0003-ta_dev_kit.mk-make-sure-that-libutils-is-linked-seco.patch \
|
||||
"
|
||||
|
||||
do_compile_prepend_ti-soc() {
|
||||
@@ -64,10 +61,18 @@ do_compile_append_am65xx-hs-evm() {
|
||||
optee_sign_k3hs
|
||||
}
|
||||
|
||||
do_compile_append_am64xx-hs-evm() {
|
||||
optee_sign_k3hs
|
||||
}
|
||||
|
||||
do_compile_append_j7-hs-evm() {
|
||||
optee_sign_k3hs
|
||||
}
|
||||
|
||||
do_compile_append_j7200-hs-evm() {
|
||||
optee_sign_k3hs
|
||||
}
|
||||
|
||||
do_install_append_ti-soc() {
|
||||
install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true
|
||||
install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true
|
||||
|
||||
@@ -8,7 +8,7 @@ LICENSE = "CC-BY-SA-3.0 & GPLv3+ & MIT & PD"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f6f02761e31334c48f7021fb94c89aaa"
|
||||
|
||||
SRCREV = "05bedba192646152b7bc80b0accaea75aef864e5"
|
||||
SRC_URI = "git://github.com/jadonk/beaglebone-getting-started.git"
|
||||
SRC_URI = "git://github.com/jadonk/beaglebone-getting-started.git;protocol=https;branch=master"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ PROTOCOL = "git"
|
||||
BRANCH = "master"
|
||||
SRC_URI = "git://git.ti.com/rpmsg/ti-rpmsg-char.git;protocol=${PROTOCOL};branch=${BRANCH};"
|
||||
|
||||
# Initial 0.3.0 release
|
||||
SRCREV = "0e76d13d08f0df5c7e70d58bbf76f7e299906ae1"
|
||||
# Initial 0.3.1 release
|
||||
SRCREV = "0824546f61bda7715519841d9b9f0fb030ddfaf2"
|
||||
|
||||
PV = "0.3.0+git${SRCPV}"
|
||||
PV = "0.3.1+git${SRCPV}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
|
||||
@@ -10,73 +10,267 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
|
||||
inherit deploy
|
||||
inherit update-alternatives
|
||||
|
||||
# First, let's try including metadata.inc that could be fetched and deployed
|
||||
# by ti-rtos-metadata earlier and provide new set of CORESDK_RTOS_* variables
|
||||
include ${DEPLOY_DIR_IMAGE}/metadata.inc
|
||||
PLAT_SFX = ""
|
||||
PLAT_SFX_j7 = "j721e"
|
||||
PLAT_SFX_j7200-evm = "j7200"
|
||||
PLAT_SFX_j7200-hs-evm = "j7200"
|
||||
PLAT_SFX_am65xx = "am65xx"
|
||||
PLAT_SFX_am64xx = "am64xx"
|
||||
|
||||
# Set some defaults for when metadata.inc is not available
|
||||
DEFAULT_RTOS_FAMILY = "jacinto"
|
||||
DEFAULT_RTOS_VERSION = "07_02_00_10"
|
||||
DEFAULT_RTOS_VERSION_DOT = "07.02.00.10"
|
||||
FILESEXTRAPATHS_prepend := "${METATIBASE}/recipes-bsp/ti-sci-fw/files/:"
|
||||
require recipes-bsp/ti-linux-fw/ti-linux-fw.inc
|
||||
|
||||
DEFAULT_RTOS_VERSION_am64xx = "07_02_01_06"
|
||||
DEFAULT_RTOS_VERSION_DOT_am64xx = "07.02.01.06"
|
||||
CORESDK_RTOS_VERSION ?= "08.00.00.26"
|
||||
PV = "${CORESDK_RTOS_VERSION}"
|
||||
|
||||
DEFAULT_RTOS_SOC = "undefined"
|
||||
DEFAULT_RTOS_SOC_j7 = "j721e"
|
||||
DEFAULT_RTOS_SOC_j7200-evm = "j7200"
|
||||
DEFAULT_RTOS_SOC_am65xx = "am65xx"
|
||||
DEFAULT_RTOS_SOC_am64xx = "am64x"
|
||||
CLEANBROKEN = "1"
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
DEFAULT_RTOS_WEBLINK = "undefined"
|
||||
DEFAULT_RTOS_WEBLINK_j7 = "https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/firmware/${CORESDK_RTOS_VERSION}"
|
||||
DEFAULT_RTOS_WEBLINK_am65xx = "https://software-dl.ti.com/processor-sdk-rtos/esd/AM65X/firmware/${CORESDK_RTOS_VERSION}"
|
||||
DEFAULT_RTOS_WEBLINK_am64xx = "https://software-dl.ti.com/processor-sdk-rtos/esd/AM64X/firmware/${CORESDK_RTOS_VERSION}"
|
||||
|
||||
DEFAULT_FIRMWARE_FILE = "coresdk_rtos_${CORESDK_RTOS_SOC}_${CORESDK_RTOS_VERSION}_firmware.tar.xz"
|
||||
|
||||
DEFAULT_FIRMWARE_URL = "file://empty"
|
||||
DEFAULT_FIRMWARE_URL_k3 = "${CORESDK_RTOS_WEBLINK}/${DEFAULT_FIRMWARE_FILE}"
|
||||
|
||||
DEFAULT_FIRMWARE_SHA256SUM = "unknown"
|
||||
DEFAULT_FIRMWARE_SHA256SUM_j7 = "c1a1a44ff1a027c9f1d3aefdcfcddde1cd0ecb03465b9490d4ef8f6da0d15e2e"
|
||||
DEFAULT_FIRMWARE_SHA256SUM_j7200-evm = "41febbfe971e2fe31061e339406e3528ccf967f44dba61d3ffedc0ec7c0a4ab4"
|
||||
DEFAULT_FIRMWARE_SHA256SUM_am65xx = "139297fa2cd537d5ca911528ad492e10b4f470b9bb9466d218e84a6ebff48477"
|
||||
DEFAULT_FIRMWARE_SHA256SUM_am64xx = "2557fa08872d4c335e87699730227c238cff525276f669dfcbd5803365aa5c01"
|
||||
|
||||
# Use weak assignment for CORESDK_RTOS_* variables to use defaults if not yet set
|
||||
CORESDK_RTOS_FAMILY ?= "${DEFAULT_RTOS_FAMILY}"
|
||||
CORESDK_RTOS_VERSION ?= "${DEFAULT_RTOS_VERSION}"
|
||||
CORESDK_RTOS_VERSION_DOT ?= "${DEFAULT_RTOS_VERSION_DOT}"
|
||||
CORESDK_RTOS_SOC ?= "${DEFAULT_RTOS_SOC}"
|
||||
CORESDK_RTOS_WEBLINK ?= "${DEFAULT_RTOS_WEBLINK}"
|
||||
CORESDK_RTOS_FIRMWARE_URL ?= "${DEFAULT_FIRMWARE_URL}"
|
||||
CORESDK_RTOS_FIRMWARE_SHA256SUM ?= "${DEFAULT_FIRMWARE_SHA256SUM}"
|
||||
CORESDK_RTOS_FILE_PREFIX ?= ""
|
||||
CORESDK_RTOS_FILE_SUFFIX ?= ""
|
||||
|
||||
# Common code below
|
||||
S = "${WORKDIR}/lib"
|
||||
|
||||
PV = "${CORESDK_RTOS_VERSION_DOT}"
|
||||
|
||||
SRC_URI = "${CORESDK_RTOS_FIRMWARE_URL}${CORESDK_RTOS_FILE_SUFFIX}"
|
||||
SRC_URI[sha256sum] = "${CORESDK_RTOS_FIRMWARE_SHA256SUM}"
|
||||
# Secure Build
|
||||
DEPENDS += "openssl-native"
|
||||
|
||||
FILES_${PN} += "${base_libdir}"
|
||||
|
||||
do_install() {
|
||||
CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
|
||||
install -d ${D}${base_libdir}
|
||||
cp ${CP_ARGS} ${S} ${D}
|
||||
TI_SECURE_DEV_PKG ?= ""
|
||||
|
||||
RTOS_ETH_FW_DIR = "${S}/ti-eth/${PLAT_SFX}"
|
||||
RTOS_DM_FW_DIR = "${S}/ti-dm/${PLAT_SFX}"
|
||||
RTOS_IPC_FW_DIR = "${S}/ti-ipc/${PLAT_SFX}"
|
||||
|
||||
# For back-ward compatability keeping legacy firmware folder name
|
||||
# TODO: fix this in next version
|
||||
LEGACY_ETH_FW_DIR = "${D}${base_libdir}/firmware/ethfw/"
|
||||
LEGACY_IPC_FW_DIR = "${D}${base_libdir}/firmware/pdk-ipc/"
|
||||
LEGACY_DM_FW_DIR = "${D}${base_libdir}/firmware/pdk-ipc/"
|
||||
|
||||
DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
|
||||
|
||||
# J7 HS support
|
||||
do_install_prepend_j7-hs-evm() {
|
||||
export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
|
||||
( cd ${RTOS_DM_FW_DIR}; \
|
||||
mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \
|
||||
${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \
|
||||
)
|
||||
}
|
||||
|
||||
FILES_${PN} = "${base_libdir}"
|
||||
# J7 HS support
|
||||
do_install_prepend_j7200-hs-evm() {
|
||||
export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
|
||||
( cd ${RTOS_DM_FW_DIR}; \
|
||||
mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \
|
||||
${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \
|
||||
)
|
||||
}
|
||||
|
||||
# Update the am64xx ipc binaries to be consistent with other platforms
|
||||
do_install_prepend_am64xx() {
|
||||
( cd ${RTOS_IPC_FW_DIR}; \
|
||||
mv am64-main-r5f0_0-fw ipc_echo_baremetal_test_mcu1_0_release_strip.xer5f; \
|
||||
mv am64-main-r5f0_1-fw ipc_echo_baremetal_test_mcu1_1_release_strip.xer5f; \
|
||||
mv am64-main-r5f1_0-fw ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f; \
|
||||
mv am64-main-r5f1_1-fw ipc_echo_baremetal_test_mcu2_1_release_strip.xer5f; \
|
||||
mv am64-mcu-m4f0_0-fw ipc_echo_baremetal_test_mcu3_0_release_strip.xer5f; \
|
||||
)
|
||||
}
|
||||
|
||||
#Install all R5 & DSP ipc echo test binaries in lib/firmware/pdk-ipc, with softlinks up a level
|
||||
do_install() {
|
||||
|
||||
}
|
||||
|
||||
do_install_j7() {
|
||||
install -d ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c66xdsp_1_release_strip.xe66 ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c66xdsp_2_release_strip.xe66 ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_1_release_strip.xe71 ${LEGACY_IPC_FW_DIR}
|
||||
# DM Firmware
|
||||
install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR}
|
||||
# ETH firmware
|
||||
install -d ${LEGACY_ETH_FW_DIR}
|
||||
install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR}
|
||||
}
|
||||
|
||||
do_install_j7200-evm() {
|
||||
install -d ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
# DM Firmware
|
||||
install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR}
|
||||
# ETH firmware
|
||||
install -d ${LEGACY_ETH_FW_DIR}
|
||||
install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR}
|
||||
}
|
||||
|
||||
do_install_j7200-hs-evm() {
|
||||
install -d ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
# DM Firmware
|
||||
install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR}
|
||||
# ETH firmware
|
||||
install -d ${LEGACY_ETH_FW_DIR}
|
||||
install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR}
|
||||
}
|
||||
|
||||
do_install_am65xx() {
|
||||
install -d ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
}
|
||||
|
||||
do_install_am64xx() {
|
||||
install -d ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu1_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_baremetal_test_mcu3_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR}
|
||||
}
|
||||
|
||||
# Set up names for the firmwares
|
||||
ALTERNATIVE_${PN}_am65xx = "\
|
||||
am65x-mcu-r5f0_0-fw \
|
||||
am65x-mcu-r5f0_1-fw \
|
||||
"
|
||||
|
||||
ALTERNATIVE_${PN}_am64xx = "\
|
||||
am64-main-r5f0_0-fw \
|
||||
am64-main-r5f0_1-fw \
|
||||
am64-main-r5f1_0-fw \
|
||||
am64-main-r5f1_1-fw \
|
||||
am64-mcu-m4f0_0-fw \
|
||||
"
|
||||
|
||||
ALTERNATIVE_${PN}_j7 = "\
|
||||
j7-mcu-r5f0_0-fw \
|
||||
j7-mcu-r5f0_1-fw \
|
||||
j7-main-r5f0_0-fw \
|
||||
j7-main-r5f0_1-fw \
|
||||
j7-main-r5f1_0-fw \
|
||||
j7-main-r5f1_1-fw \
|
||||
j7-c66_0-fw \
|
||||
j7-c66_1-fw \
|
||||
j7-c71_0-fw\
|
||||
"
|
||||
|
||||
ALTERNATIVE_${PN}_j7200-evm = "\
|
||||
j7200-mcu-r5f0_0-fw \
|
||||
j7200-mcu-r5f0_1-fw \
|
||||
j7200-main-r5f0_0-fw \
|
||||
j7200-main-r5f0_1-fw \
|
||||
"
|
||||
|
||||
ALTERNATIVE_${PN}_j7200-hs-evm = "\
|
||||
j7200-mcu-r5f0_0-fw \
|
||||
j7200-mcu-r5f0_1-fw \
|
||||
j7200-main-r5f0_0-fw \
|
||||
j7200-main-r5f0_1-fw \
|
||||
"
|
||||
|
||||
# Set up link names for the firmwares
|
||||
|
||||
TARGET_MCU_R5FSS0_0_am65xx = "am65x-mcu-r5f0_0-fw"
|
||||
TARGET_MCU_R5FSS0_1_am65xx = "am65x-mcu-r5f0_1-fw"
|
||||
|
||||
TARGET_MAIN_R5FSS0_0_am64xx = "am64-main-r5f0_0-fw"
|
||||
TARGET_MAIN_R5FSS0_1_am64xx = "am64-main-r5f0_1-fw"
|
||||
TARGET_MAIN_R5FSS1_0_am64xx = "am64-main-r5f1_0-fw"
|
||||
TARGET_MAIN_R5FSS1_1_am64xx = "am64-main-r5f1_1-fw"
|
||||
TARGET_MCU_M4FSS0_0_am64xx = "am64-mcu-m4f0_0-fw"
|
||||
|
||||
TARGET_MCU_R5FSS0_0_j7 = "j7-mcu-r5f0_0-fw"
|
||||
TARGET_MCU_R5FSS0_1_j7 = "j7-mcu-r5f0_1-fw"
|
||||
TARGET_MAIN_R5FSS0_0_j7 = "j7-main-r5f0_0-fw"
|
||||
TARGET_MAIN_R5FSS0_1_j7 = "j7-main-r5f0_1-fw"
|
||||
TARGET_MAIN_R5FSS1_0_j7 = "j7-main-r5f1_0-fw"
|
||||
TARGET_MAIN_R5FSS1_1_j7 = "j7-main-r5f1_1-fw"
|
||||
TARGET_C66_0_j7 = "j7-c66_0-fw"
|
||||
TARGET_C66_1_j7 = "j7-c66_1-fw"
|
||||
TARGET_C7X_j7 = "j7-c71_0-fw"
|
||||
|
||||
TARGET_MCU_R5FSS0_0_j7200-evm = "j7200-mcu-r5f0_0-fw"
|
||||
TARGET_MCU_R5FSS0_1_j7200-evm = "j7200-mcu-r5f0_1-fw"
|
||||
TARGET_MAIN_R5FSS0_0_j7200-evm = "j7200-main-r5f0_0-fw"
|
||||
TARGET_MAIN_R5FSS0_1_j7200-evm = "j7200-main-r5f0_1-fw"
|
||||
|
||||
TARGET_MCU_R5FSS0_0_j7200-hs-evm = "j7200-mcu-r5f0_0-fw"
|
||||
TARGET_MCU_R5FSS0_1_j7200-hs-evm = "j7200-mcu-r5f0_1-fw"
|
||||
TARGET_MAIN_R5FSS0_0_j7200-hs-evm = "j7200-main-r5f0_0-fw"
|
||||
TARGET_MAIN_R5FSS0_1_j7200-hs-evm = "j7200-main-r5f0_1-fw"
|
||||
|
||||
ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}"
|
||||
ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}"
|
||||
|
||||
ALTERNATIVE_LINK_NAME[am64-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}"
|
||||
ALTERNATIVE_LINK_NAME[am64-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}"
|
||||
ALTERNATIVE_LINK_NAME[am64-main-r5f1_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0}"
|
||||
ALTERNATIVE_LINK_NAME[am64-main-r5f1_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1}"
|
||||
ALTERNATIVE_LINK_NAME[am64-mcu-m4f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_M4FSS0_0}"
|
||||
|
||||
ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}"
|
||||
ALTERNATIVE_LINK_NAME[j7-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}"
|
||||
ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}"
|
||||
ALTERNATIVE_LINK_NAME[j7-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}"
|
||||
ALTERNATIVE_LINK_NAME[j7-main-r5f1_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0}"
|
||||
ALTERNATIVE_LINK_NAME[j7-main-r5f1_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1}"
|
||||
ALTERNATIVE_LINK_NAME[j7-c66_0-fw] = "${base_libdir}/firmware/${TARGET_C66_0}"
|
||||
ALTERNATIVE_LINK_NAME[j7-c66_1-fw] = "${base_libdir}/firmware/${TARGET_C66_1}"
|
||||
ALTERNATIVE_LINK_NAME[j7-c71_0-fw] = "${base_libdir}/firmware/${TARGET_C7X}"
|
||||
|
||||
ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}"
|
||||
ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}"
|
||||
ALTERNATIVE_LINK_NAME[j7200-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}"
|
||||
ALTERNATIVE_LINK_NAME[j7200-main-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1}"
|
||||
|
||||
# Create the firmware alternatives
|
||||
|
||||
ALTERNATIVE_TARGET[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_0_release_strip.xer5f"
|
||||
ALTERNATIVE_TARGET[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f"
|
||||
|
||||
ALTERNATIVE_TARGET[am64-main-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu1_0_release_strip.xer5f"
|
||||
ALTERNATIVE_TARGET[am64-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu1_1_release_strip.xer5f"
|
||||
ALTERNATIVE_TARGET[am64-main-r5f1_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu2_0_release_strip.xer5f"
|
||||
ALTERNATIVE_TARGET[am64-main-r5f1_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu2_1_release_strip.xer5f"
|
||||
ALTERNATIVE_TARGET[am64-mcu-m4f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_baremetal_test_mcu3_0_release_strip.xer5f"
|
||||
|
||||
ALTERNATIVE_TARGET[j7-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f"
|
||||
ALTERNATIVE_TARGET[j7-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f"
|
||||
ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f"
|
||||
ALTERNATIVE_TARGET[j7-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f"
|
||||
ALTERNATIVE_TARGET[j7-main-r5f1_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_0_release_strip.xer5f"
|
||||
ALTERNATIVE_TARGET[j7-main-r5f1_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_1_release_strip.xer5f"
|
||||
ALTERNATIVE_TARGET[j7-c66_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_1_release_strip.xe66"
|
||||
ALTERNATIVE_TARGET[j7-c66_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_2_release_strip.xe66"
|
||||
ALTERNATIVE_TARGET[j7-c71_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71"
|
||||
|
||||
ALTERNATIVE_TARGET[j7200-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f"
|
||||
ALTERNATIVE_TARGET[j7200-mcu-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f"
|
||||
ALTERNATIVE_TARGET[j7200-main-r5f0_0-fw] = "${base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f"
|
||||
ALTERNATIVE_TARGET[j7200-main-r5f0_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f"
|
||||
|
||||
ALTERNATIVE_PRIORITY = "10"
|
||||
|
||||
# make sure that lib/firmware, and all its contents are part of the package
|
||||
FILES_${PN} += "${base_libdir}/firmware"
|
||||
|
||||
# This is used to prevent the build system to_strip the executables
|
||||
INHIBIT_PACKAGE_STRIP = "1"
|
||||
INHIBIT_SYSROOT_STRIP = "1"
|
||||
# This is used to prevent the build system to split the debug info in a separate file
|
||||
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
||||
# As it likely to be a different arch from the Yocto build, disable checking by adding "arch" to INSANE_SKIP
|
||||
INSANE_SKIP_${PN} += "arch"
|
||||
|
||||
# we don't want to configure and build the source code
|
||||
do_compile[noexec] = "1"
|
||||
do_configure[noexec] = "1"
|
||||
|
||||
@@ -18,10 +18,11 @@ PLAT_SFX_am64xx = "/am64x"
|
||||
# Use weak assignment to set defaults to TI_RTOS_METADATA_* variables
|
||||
TI_RTOS_METADATA_URI ?= "git://git.ti.com/processor-sdk/coresdk_rtos_releases.git"
|
||||
TI_RTOS_METADATA_PROTOCOL ?= "git"
|
||||
TI_RTOS_METADATA_SRCREV ?= "66af60bbb229b2fb586cb55466fe61cfc653c6c8"
|
||||
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${SRCPV}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user