Skip to contentSkip to conversation

recipes-kernel: perf: Add a perf.bbappend to handle RDEPENDS on newer kernel

PATCH Superseded Nishanth Menon 2 participants 4 messages May 3, 2021 – May 4, 2021 1 message not in the archive

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 recipes-kernel: perf: Add a perf.bbappend to handle RDEPENDS on newer kernel

Commit 159cdb159ad0 ("perf-tests: add bash into RDEPENDS (v5.12-rc5+)") in upstream openembedded-core layer.

Copying over a snippet of description over:

Commit 1dc481c0b0cf perf test: Change to use bash for daemon test in upstream kernel
Changes tools/perf/tests/shell/daemon.sh to be explicitly bash (it was already required, but was just skipped on various
distros).

We add it into our RDEPENDS for perf-tests to fixup 5.12+ builds.

We already have relatively heavy RDEPENDS for perf tests (python3), so adding bash into the RDEPENDS isn't signifcant even for older perf builds that use the same recipe.

[OE patch by: Bruce Ashfield <[email protected]>]

---

This patch should NOT be applied to master, since master of OE-core has the fixup for this.

 recipes-kernel/perf/perf.bbappend | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 recipes-kernel/perf/perf.bbappend
recipes-kernel/perf/perf.bbappend new file +2 -0
new file mode 100644
index 000000000000..9915a2997b71
@@ -0,0 +1,2 @@
+
+RDEPENDS_${PN}-tests =+ "bash"
Signature · 1 line
2.31.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Nishanth Menon

Commit 159cdb159ad0 ("perf-tests: add bash into RDEPENDS (v5.12-rc5+)") in upstream openembedded-core layer.

Copying over a snippet of description over:

Commit 1dc481c0b0cf perf test: Change to use bash for daemon test in upstream kernel
Changes tools/perf/tests/shell/daemon.sh to be explicitly bash (it was already required, but was just skipped on various
distros).

We add it into our RDEPENDS for perf-tests to fixup 5.12+ builds.

Quoted 6 lines

We already have relatively heavy RDEPENDS for perf tests (python3), so adding bash into the RDEPENDS isn't signifcant even for older perf builds that use the same recipe.

[OE patch by: Bruce Ashfield <[email protected]>]
Quoted 20 lines

---

This patch should NOT be applied to master, since master of OE-core has the fixup for this.

 recipes-kernel/perf/perf.bbappend | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 recipes-kernel/perf/perf.bbappend
recipes-kernel/perf/perf.bbappend new file +2 -0
new file mode 100644
index 000000000000..9915a2997b71
@@ -0,0 +1,2 @@
+
+RDEPENDS_${PN}-tests =+ "bash"
Signature · 1 line
2.31.0
Signature · 4 lines
Regards,
Denys Dmytriyenko <[email protected]>
PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186  6D76 4209 0272 9A92 C964

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 34 lines · Denys Dmytriyenko
Quoted 14 lines · Nishanth Menon

Commit 159cdb159ad0 ("perf-tests: add bash into RDEPENDS (v5.12-rc5+)") in upstream openembedded-core layer.

Copying over a snippet of description over:

Commit 1dc481c0b0cf perf test: Change to use bash for daemon test in upstream kernel
Changes tools/perf/tests/shell/daemon.sh to be explicitly bash (it was already required, but was just skipped on various
distros).

We add it into our RDEPENDS for perf-tests to fixup 5.12+ builds.

Quoted 6 lines

We already have relatively heavy RDEPENDS for perf tests (python3), so adding bash into the RDEPENDS isn't signifcant even for older perf builds that use the same recipe.

[OE patch by: Bruce Ashfield <[email protected]>]
Quoted 9 lines

---

This patch should NOT be applied to master, since master of OE-core has the fixup for this.

 recipes-kernel/perf/perf.bbappend | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 recipes-kernel/perf/perf.bbappend
Quoted 8 lines

recipes-kernel/perf/perf.bbappend line 2

Quoted 8 lines
recipes-kernel/perf/perf.bbappend new file +2 -0
new file mode 100644
index 000000000000..9915a2997b71
@@ -0,0 +1,2 @@
+
+RDEPENDS_${PN}-tests =+ "bash"

Come to think of it, you might want to guard this change to meta-ti platforms:

+RDEPENDS_${PN}-tests_ti-soc += "bash"

BTW, any specific reason to prepend (=+) instead of appending (+=)?

Signature · 4 lines
Regards,
Denys Dmytriyenko <[email protected]>
PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186  6D76 4209 0272 9A92 C964
#4 lore raw

On 19:26-20210503, Denys Dmytriyenko wrote:
[..]

Quoted 5 lines
Quoted 1 line
Quoted 1 line

+RDEPENDS_${PN}-tests =+ "bash"

Come to think of it, you might want to guard this change to meta-ti platforms:

+RDEPENDS_${PN}-tests_ti-soc += "bash"

True.. yeah, will post a v2.

Quoted 2 lines

BTW, any specific reason to prepend (=+) instead of appending (+=)?

Nothing specific.. oe-core was using += So, followed the same, but in a higher order layer like meta-ti - yeah i think append makes more sense.

Thanks.

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D)/Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D