recipes-products/images/qcom-minimal-image: Add rt-tests and stress-ng#160
Conversation
| TOOLCHAIN_TARGET_TASK += "kernel-devsrc" | ||
|
|
||
| # Add RT tools only if the RT kernel is selected | ||
| IMAGE_INSTALL:append = "${@bb.utils.contains('PREFERRED_PROVIDER_virtual/kernel', 'linux-qcom-rt', ' rt-tests stress-ng', '', d)}" |
There was a problem hiding this comment.
Please explain why you are adding rt-tests and stress-ng as part of your commit message.
Also, why qcom-minimal-image?
stress-ng is also useful without the rt kernel, so should just go as an utility (e.g. recipes-products/packagegroups/packagegroup-qcom-utilities.bb).
There was a problem hiding this comment.
Thanks for the review!
Updated as suggested:
Moved stress-ng into packagegroup-qcom-utilities (profile-utils subpackage) so it’s available as a general validation tool and not tied to RT.
Expanded the commit message to explain the rationale (no RT-specific distro in this layer, and any image can enable RT by selecting the RT kernel provider).
Please take another look.
834cc98 to
9f6ff70
Compare
9f6ff70 to
7a777d3
Compare
| # Default root password: oelinux123 | ||
| EXTRA_USERS_PARAMS = "usermod -p '\$6\$UDMimfYF\$akpHo9mLD4z0vQyKzYxYbsdYxnpUD7B7rHskq1E3zXK8ygxzq719wMxI78i0TIIE0NB1jUToeeFzWXVpBBjR8.' root;" | ||
|
|
||
| # Adding kernel-devsrc to provide kernel development support on SDK |
There was a problem hiding this comment.
image: add rt-tests when using linux-qcom-rt kernel
Which image? You are touching one recipe.
There was a problem hiding this comment.
Thanks, good point. I’ve updated the commit message to explicitly reference the qcom-minimal-image.bb recipe instead of using the generic term “image”. Please take another look.
| sysbench \ | ||
| systemd-analyze \ | ||
| tiobench \ | ||
| stress-ng \ |
There was a problem hiding this comment.
Updated - the package list is now alphabetically sorted as suggested.
| RDEPENDS:${PN}-profile-utils = " \ | ||
| perf \ | ||
| powertop \ | ||
| sysbench \ |
There was a problem hiding this comment.
stress-ng is a ...
add it to...
Sentences should start with the capital letter.
There was a problem hiding this comment.
Thanks for pointing that out. I’ve fixed the commit message wording, ensured sentences start with capital letters
7a777d3 to
8a08e84
Compare
| TOOLCHAIN_TARGET_TASK += "kernel-devsrc" | ||
|
|
||
| # Add RT tools only if the RT kernel is selected | ||
| IMAGE_INSTALL:append = "${@bb.utils.contains('PREFERRED_PROVIDER_virtual/kernel', 'linux-qcom-rt', ' rt-tests', '', d)}" |
There was a problem hiding this comment.
How about "linux-qcom-next-rt" Kernel?
There was a problem hiding this comment.
Thanks! Updated to also handle linux-qcom-next-rt. Switched the conditional accordingly.
8a08e84 to
c999621
Compare
| TOOLCHAIN_TARGET_TASK += "kernel-devsrc" | ||
|
|
||
| # Add RT tools only if the RT kernel is selected | ||
| IMAGE_INSTALL:append = "${@bb.utils.contains_any('PREFERRED_PROVIDER_virtual/kernel', \ |
There was a problem hiding this comment.
What the reason to not use the CORE_IMAGE_BASE_INSTALL?
There was a problem hiding this comment.
Thanks for the question.
I kept this out of CORE_IMAGE_BASE_INSTALL because I intended that variable to remain limited to packages essential for system boot and core functionality.
Since rt-tests is a validation suite specific to PREEMPT_RT rather than a runtime requirement, placing it under IMAGE_INSTALL keeps the separation clear between core system components and optional tools.
If you have a specific reason for preferring the base install list, I’m happy to revisit it.
There was a problem hiding this comment.
IMAGE_INSTALL should not be called directly. As we are using the meta/classes-recipe/core-image.bbclass, we should use CORE_IMAGE_BASE_INSTALL or CORE_IMAGE_EXTRA_INSTALL which are defined in this class. So please use the CORE_IMAGE_EXTRA_INSTALL in this case.
There was a problem hiding this comment.
Thanks for the feedback. I've updated the recipe to use CORE_IMAGE_EXTRA_INSTALL instead of appending to IMAGE_INSTALL.
c999621 to
658f00a
Compare
| TOOLCHAIN_TARGET_TASK += "kernel-devsrc" | ||
|
|
||
| # Add RT tools only if the RT kernel is selected | ||
| CORE_IMAGE_EXTRA_INSTALL:append = "${@bb.utils.contains_any('PREFERRED_PROVIDER_virtual/kernel', \ |
There was a problem hiding this comment.
please also use the += instaed of the :append
There was a problem hiding this comment.
Updated — replaced the :append with += as requested.
Thanks.
…-next-rt Install rt-tests only when PREEMPT_RT is selected using: PREFERRED_PROVIDER_virtual/kernel = linux-qcom-rt or linux-qcom-next-rt. This ensures rt-tests is included only for RT-enabled builds as rt-tests is specific to validating PREEMPT_RT behavior(cyclictest, signaltest, hwlatdetect, etc.) Added rt-tests in qcom-minimal-image as any QCOM image can opt for RT kernel, and qcom-minimal-image is included in all images. Signed-off-by: Deewan Singh <deewsing@qti.qualcomm.com>
81210ac to
704053b
Compare
Stress-ng is a general-purpose system stress tool useful for platform validation across kernels (CPU/mem/I/O/thermal, etc.). Add it to the utilities packagegroup (profile-utils) so images that already consume profiling utilities will include it. Signed-off-by: Deewan Singh <deewsing@qti.qualcomm.com>
|
@lumag @quaresmajose @ricardosalveti @vkraleti let us know if any more comment else help approve changes. |
Add rt-tests and stress-ng to package list (for linux-qcom-rt kernel)