mainline fixes
cover mainline fixes
From: Denys Dmytriyenko <[email protected]>
Set of fixes to enable building tisdk-base-image with ti-test against mainline kernel/u-boot via ARAGO_BRAND=mainline
Denys Dmytriyenko (7):
make-mod-scripts: pass CROSS_COMPILE to configure and build
branding-mainline: remove gpu machine feature
ti-test: combine main test and addons lists
packagegroups: move generic tools to base packagegroup
packagegroups: move benchmarks to test packagegroup
ti-test: disable cmem, omapdrmtest, ti-ipc, llds for mainline brand
tisdk-base-image: pull ti-test for mainline brand
.../conf/distro/include/branding-mainline.inc | 3 + .../recipes-core/images/tisdk-base-image.bb | 3 +- .../packagegroups/packagegroup-arago-base.bb | 14 ++- .../packagegroup-arago-tisdk-addons.bb | 15 +-- .../recipes-core/packagegroups/ti-test.bb | 117 ++++++++++----------- .../make-mod-scripts/make-mod-scripts_1.0.bbappend | 1 + 6 files changed, 74 insertions(+), 79 deletions(-) create mode 100644 meta-arago-distro/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bbappend
Signature · 1 line
2.7.4
PATCH 1/7 make-mod-scripts: pass CROSS_COMPILE to configure and build
From: Denys Dmytriyenko <[email protected]>
The fix is submitted upstream to oe-core/master.
For now also do it locally in a bbappend, so it also fixed for dunfell.
--- .../recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bbappend | 1 + 1 file changed, 1 insertion(+) create mode 100644 meta-arago-distro/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bbappend
meta-arago-distro/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bbappend new file +1 -0
@@ -0,0 +1 @@ +EXTRA_OEMAKE += "CROSS_COMPILE=${TARGET_PREFIX}"
Signature · 1 line
2.7.4
Re: [dunfell/master][PATCH 1/7] make-mod-scripts: pass CROSS_COMPILE to configure and build
Quoted 21 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
The fix is submitted upstream to oe-core/master.
For now also do it locally in a bbappend, so it also fixed for dunfell.Signed-off-by Denys Dmytriyenko <[email protected]>--- .../recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bbappend | 1 + 1 file changed, 1 insertion(+) create mode 100644 meta-arago-distro/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bbappendmeta-arago-distro/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bbappend new file +1
-0@@ -0,0 +1 @@ +EXTRA_OEMAKE += "CROSS_COMPILE=${TARGET_PREFIX}"Signature · 1 line
2.7.4
Aaah, thanks..
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
PATCH 2/7 branding-mainline: remove gpu machine feature
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
GPU support requires out-of-tree SGX and RGX drivers not available in mainline.
--- meta-arago-distro/conf/distro/include/branding-mainline.inc | 3 +++ 1 file changed, 3 insertions(+)
meta-arago-distro/conf/distro/include/branding-mainline.inc +3 -0
@@ -2,3 +2,6 @@ PREFERRED_PROVIDER_virtual/kernel = "linux-ti-mainline" PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-mainline" PREFERRED_PROVIDER_u-boot = "u-boot-ti-mainline" SRCREV_ti-upstream-tools_pn-linux-ti-mainline = "${AUTOREV}" + +# GPU support requires out-of-tree SGX and RGX drivers not available in mainline +MACHINE_FEATURES_remove = "gpu"
Signature · 1 line
2.7.4
Re: [dunfell/master][PATCH 2/7] branding-mainline: remove gpu machine feature
Quoted 14 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
GPU support requires out-of-tree SGX and RGX drivers not available in mainline.
Signed-off-by Denys Dmytriyenko <[email protected]>--- meta-arago-distro/conf/distro/include/branding-mainline.inc | 3 +++ 1 file changed, 3 insertions(+)meta-arago-distro/conf/distro/include/branding-mainline.inc +0
-0
meta-arago-distro/conf/distro/include/branding-mainline.inc PREFERRED_PROVIDER_virtual/kernel = "linux-ti-mainline" · line 7
Quoted 6 lines
meta-arago-distro/conf/distro/include/branding-mainline.inc +3
-0@@ -2,3 +2,6 @@ PREFERRED_PROVIDER_virtual/kernel = "linux-ti-mainline" PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-mainline" PREFERRED_PROVIDER_u-boot = "u-boot-ti-mainline" SRCREV_ti-upstream-tools_pn-linux-ti-mainline = "${AUTOREV}" + +# GPU support requires out-of-tree SGX and RGX drivers not available in mainline +MACHINE_FEATURES_remove = "gpu"
I was wondering if we should pick s/w mesa instead? I'd like display testing to be a little more robust... minimal drm tests are'nt playing too nicely with our test frameworks..
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
PATCH 3/7 ti-test: combine main test and addons lists
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
Previously, ti-test packagegroup was combined from arago-test and test-addons packagegroups and hence the lists were kept as is. To make it easier maintaining and making changes, combine the lists. Still keep TI test tools vs. upstream separately for now.
--- .../recipes-core/packagegroups/ti-test.bb | 38 +++++++--------------- 1 file changed, 11 insertions(+), 27 deletions(-)
meta-arago-distro/recipes-core/packagegroups/ti-test.bb +11 -27
@@ -33,6 +33,9 @@ ARAGO_TEST = "\ mstpd \ fio \ git \ + bridge-utils \ + linuxptp \ + openntpd \ " ARAGO_TEST_append_armv7a = " \
@@ -57,11 +60,14 @@ ARAGO_TI_TEST_append_ti33x = " \ ARAGO_TI_TEST_append_ti43x = " \ omapconf \ + cmem-test \ " ARAGO_TI_TEST_append_omap-a15 = " \ omapconf \ ti-ipc-test \ + ${@bb.utils.contains('MACHINE_FEATURES', 'mmip', 'omapdrmtest', '', d)} \ + cmem-test \ " ARAGO_TI_TEST_append_k3 = " \
@@ -72,34 +78,14 @@ ARAGO_TI_TEST_append_j7 = " \ ufs-utils \ " -ARAGO_TI_TEST_append_keystone = " \ - ti-ipc-test \ -" - ARAGO_TI_TEST_append_omapl138 = " \ ti-ipc-test \ " -TEST_ADDONS = " \ - bridge-utils \ - linuxptp \ - openntpd \ -" - -TEST_ADDONS_TI = "" - -TEST_ADDONS_TI_append_ti43x = " \ - cmem-test \ -" - -TEST_ADDONS_TI_append_omap-a15 = " \ - ${@bb.utils.contains('MACHINE_FEATURES', 'mmip', 'omapdrmtest', '', d)} \ - cmem-test \ -" - # Disable ipsecmgr due to libnl and xfrm conflict # ipsecmgr -TEST_ADDONS_TI_append_keystone = " \ +ARAGO_TI_TEST_append_keystone = " \ + ti-ipc-test \ mpm-transport-test \ multiprocmgr-test \ qmss-lld-test \
@@ -125,7 +111,7 @@ TEST_ADDONS_TI_append_keystone = " \ # hplib-test # nwal-lld-test # nwal-lld -TEST_ADDONS_TI_append_k2hk = " \ +ARAGO_TI_TEST_append_k2hk = " \ srio-lld-test \ ipc-transport-srio-test \ ipc-transport-qmss-test \
@@ -143,7 +129,7 @@ TEST_ADDONS_TI_append_k2hk = " \ # hplib-test # nwal-lld-test # nwal-lld -TEST_ADDONS_TI_append_k2l = " \ +ARAGO_TI_TEST_append_k2l = " \ dfe-lld-test \ iqn2-lld-test \ ipc-transport-qmss-test \
@@ -158,7 +144,7 @@ TEST_ADDONS_TI_append_k2l = " \ # hplib-test # nwal-lld-test # nwal-lld -TEST_ADDONS_TI_append_k2e = " \ +ARAGO_TI_TEST_append_k2e = " \ mmap-lld-test \ hyplnk-lld-test \ ipc-transport-qmss-test \
@@ -170,6 +156,4 @@ TEST_ADDONS_TI_append_k2e = " \ RDEPENDS_${PN} = "\ ${ARAGO_TEST} \ ${ARAGO_TI_TEST} \ - ${TEST_ADDONS} \ - ${TEST_ADDONS_TI} \ "
Signature · 1 line
2.7.4
PATCH 4/7 packagegroups: move generic tools to base packagegroup
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
These tools are useful in the base image and don't increase the size too much.
--- .../recipes-core/packagegroups/packagegroup-arago-base.bb | 14 ++++++++++---- .../packagegroups/packagegroup-arago-tisdk-addons.bb | 12 +----------- 2 files changed, 11 insertions(+), 15 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base.bb +10 -4
@@ -9,7 +9,7 @@ inherit packagegroup ARAGO_ALSA_BASE = "\ libasound \ alsa-utils-aplay \ - " +" ARAGO_BASE = "\ module-init-tools \
@@ -22,13 +22,19 @@ ARAGO_BASE = "\ bash \ opkg-bash-completion \ udev-extraconf \ - " +" # these require meta-openembedded/meta-oe layer ARAGO_EXTRA = "\ devmem2 \ tcpdump \ - " + parted \ + dropbear \ + openssh-sftp-server \ + kms++ \ + kms++-python \ + can-utils \ +" ARAGO_EXTRA_append_keystone = "\ k2-fw-initrd \
@@ -40,4 +46,4 @@ RDEPENDS_${PN} = "\ ${@bb.utils.contains('MACHINE_FEATURES', 'alsa', '${ARAGO_ALSA_BASE}', '',d)} \ ${ARAGO_BASE} \ ${ARAGO_EXTRA} \ - " +"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +1 -11
@@ -16,13 +16,9 @@ UTILS = " \ oprofile \ nbench-byte \ arm-benchmarks \ - dropbear \ - openssh-sftp-server \ netkit-ftp \ ptpd \ libdrm-kms \ - kms++ \ - kms++-python \ stream \ strongswan \ kexec \
@@ -38,7 +34,6 @@ UTILS_DSP = " \ " UTILS_append_ti33x = " mmc-utils \ - can-utils \ switch-config \ pru-icss \ pru-swuart-fw \
@@ -47,7 +42,6 @@ UTILS_append_ti33x = " mmc-utils \ " UTILS_append_ti43x = " mmc-utils \ - can-utils \ switch-config \ libdrm-omap \ pru-icss \
@@ -56,7 +50,6 @@ UTILS_append_ti43x = " mmc-utils \ " UTILS_append_omap-a15 = " mmc-utils \ - parted \ switch-config \ libdrm-omap \ stream-openmp \
@@ -67,8 +60,6 @@ UTILS_append_omap-a15 = " mmc-utils \ " UTILS_append_k3 = " mmc-utils \ - can-utils \ - parted \ switch-config \ irqbalance \ jailhouse \
@@ -85,7 +76,7 @@ UTILS_append_j7-hs-evm = " pru-icss" UTILS_append_omapl138 = " ti-ipc-rtos-fw" -UTILS_append_dra7xx = " can-utils \ +UTILS_append_dra7xx = " \ ${UTILS_DSP} \ ${@bb.utils.contains('MACHINE_FEATURES','gpu','glsdk-example-apps','',d)} \ "
@@ -108,7 +99,6 @@ UTILS_append_k2e = " \ " UTILS_append_k2g = " \ - can-utils \ pru-icss \ uio-test-pruss \ "
Signature · 1 line
2.7.4
PATCH 5/7 packagegroups: move benchmarks to test packagegroup
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
--- .../recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb | 3 --- meta-arago-distro/recipes-core/packagegroups/ti-test.bb | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +0 -3
@@ -14,12 +14,9 @@ UTILS = " \ am-sysinfo \ gdbserver \ oprofile \ - nbench-byte \ - arm-benchmarks \ netkit-ftp \ ptpd \ libdrm-kms \ - stream \ strongswan \ kexec \ kdump \
meta-arago-distro/recipes-core/packagegroups/ti-test.bb +3 -0
@@ -36,6 +36,8 @@ ARAGO_TEST = "\ bridge-utils \ linuxptp \ openntpd \ + nbench-byte \ + stream \ " ARAGO_TEST_append_armv7a = " \
@@ -52,6 +54,7 @@ ARAGO_TI_TEST = " \ input-utils \ cpuloadgen \ uvc-gadget \ + arm-benchmarks \ " ARAGO_TI_TEST_append_ti33x = " \
Signature · 1 line
2.7.4
PATCH 6/7 ti-test: disable cmem, omapdrmtest, ti-ipc, llds for mainline brand
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
These components require drivers that are not upstream (cmem, uio, rpmsg...)
--- .../recipes-core/packagegroups/ti-test.bb | 84 ++++++++++++---------- 1 file changed, 47 insertions(+), 37 deletions(-)
meta-arago-distro/recipes-core/packagegroups/ti-test.bb +47 -37
@@ -63,14 +63,16 @@ ARAGO_TI_TEST_append_ti33x = " \ ARAGO_TI_TEST_append_ti43x = " \ omapconf \ - cmem-test \ + ${@oe.utils.conditional('ARAGO_BRAND', 'mainline', '', 'cmem-test', d)} \ " ARAGO_TI_TEST_append_omap-a15 = " \ omapconf \ - ti-ipc-test \ - ${@bb.utils.contains('MACHINE_FEATURES', 'mmip', 'omapdrmtest', '', d)} \ - cmem-test \ + ${@oe.utils.conditional('ARAGO_BRAND', 'mainline', '', ' \ + ti-ipc-test \ + ${@bb.utils.contains('MACHINE_FEATURES', 'mmip', 'omapdrmtest', '', d)} \ + cmem-test \ + ', d)} \ " ARAGO_TI_TEST_append_k3 = " \
@@ -82,23 +84,25 @@ ARAGO_TI_TEST_append_j7 = " \ " ARAGO_TI_TEST_append_omapl138 = " \ - ti-ipc-test \ + ${@oe.utils.conditional('ARAGO_BRAND', 'mainline', '', 'ti-ipc-test', d)} \ " # Disable ipsecmgr due to libnl and xfrm conflict # ipsecmgr ARAGO_TI_TEST_append_keystone = " \ - ti-ipc-test \ - mpm-transport-test \ - multiprocmgr-test \ - qmss-lld-test \ - cppi-lld-test \ - edma3-lld-test \ - rm-lld \ - rm-lld-test \ - traceframework-test \ - udma-test \ - cmem-test \ + ${@oe.utils.conditional('ARAGO_BRAND', 'mainline', '', ' \ + ti-ipc-test \ + mpm-transport-test \ + multiprocmgr-test \ + qmss-lld-test \ + cppi-lld-test \ + edma3-lld-test \ + rm-lld \ + rm-lld-test \ + traceframework-test \ + udma-test \ + cmem-test \ + ', d)} \ " # The following are not yet ready for k2g-evm
@@ -115,15 +119,17 @@ ARAGO_TI_TEST_append_keystone = " \ # nwal-lld-test # nwal-lld ARAGO_TI_TEST_append_k2hk = " \ - srio-lld-test \ - ipc-transport-srio-test \ - ipc-transport-qmss-test \ - hyplnk-lld-test \ - mmap-lld-test \ - aif2-lld-test \ - pa-lld-test \ - sa-lld \ - sa-lld-test \ + ${@oe.utils.conditional('ARAGO_BRAND', 'mainline', '', ' \ + srio-lld-test \ + ipc-transport-srio-test \ + ipc-transport-qmss-test \ + hyplnk-lld-test \ + mmap-lld-test \ + aif2-lld-test \ + pa-lld-test \ + sa-lld \ + sa-lld-test \ + ', d)} \ " # Disable netapi due to libnl and xfrm conflict
@@ -133,12 +139,14 @@ ARAGO_TI_TEST_append_k2hk = " \ # nwal-lld-test # nwal-lld ARAGO_TI_TEST_append_k2l = " \ - dfe-lld-test \ - iqn2-lld-test \ - ipc-transport-qmss-test \ - pa-lld-test \ - sa-lld \ - sa-lld-test \ + ${@oe.utils.conditional('ARAGO_BRAND', 'mainline', '', ' \ + dfe-lld-test \ + iqn2-lld-test \ + ipc-transport-qmss-test \ + pa-lld-test \ + sa-lld \ + sa-lld-test \ + ', d)} \ " # Disable netapi due to libnl and xfrm conflict
@@ -148,12 +156,14 @@ ARAGO_TI_TEST_append_k2l = " \ # nwal-lld-test # nwal-lld ARAGO_TI_TEST_append_k2e = " \ - mmap-lld-test \ - hyplnk-lld-test \ - ipc-transport-qmss-test \ - pa-lld-test \ - sa-lld \ - sa-lld-test \ + ${@oe.utils.conditional('ARAGO_BRAND', 'mainline', '', ' \ + mmap-lld-test \ + hyplnk-lld-test \ + ipc-transport-qmss-test \ + pa-lld-test \ + sa-lld \ + sa-lld-test \ + ', d)} \ " RDEPENDS_${PN} = "\
Signature · 1 line
2.7.4
Re: [dunfell/master][PATCH 6/7] ti-test: disable cmem, omapdrmtest, ti-ipc, llds for mainline brand
Quoted 5 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
These components require drivers that are not upstream (cmem, uio, rpmsg...)
Signed-off-by Denys Dmytriyenko <[email protected]>
Thanks. we need to revisit the ti-test package group a bit later on... for example a ramdisk system and 2G DDR - such as those on am64, kinda hard to get the full package group in.. might be something for us to chew on later on, I guess..
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
PATCH 7/7 tisdk-base-image: pull ti-test for mainline brand
In reply to Denys DmytriyenkoFrom: Denys Dmytriyenko <[email protected]>
Mainline brand cannot build full default image, testing is done on base image.
--- meta-arago-distro/recipes-core/images/tisdk-base-image.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta-arago-distro/recipes-core/images/tisdk-base-image.bb +2 -1
@@ -11,6 +11,7 @@ IMAGE_INSTALL += "\ packagegroup-arago-console \ packagegroup-arago-base-tisdk \ ${VIRTUAL-RUNTIME_initramfs} \ - " + ${@oe.utils.conditional('ARAGO_BRAND', 'mainline', 'ti-test', '', d)} \ +" export IMAGE_BASENAME = "tisdk-base-image"
Signature · 1 line
2.7.4