Skip to contentSkip to conversation

CI: add meta-gem5 to the pending upgrades report

PATCH Applied Ross Burton 3 participants 6 messages Feb 11, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 CI: add meta-gem5 to the pending upgrades report

The gem5-arm64 machine was missing.

---
 .gitlab-ci.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
.gitlab-ci.yml +3 -2
index d7a47ad0..bd495cf9 100644
@@ -91,8 +91,9 @@ pending-updates:
       - update-report
   script:
     - rm -fr update-report
-    - kas shell ci/qemuarm64.yml:ci/meta-openembedded.yml --command \
-      "$CI_PROJECT_DIR/scripts/machine-summary.py -t report -o $CI_PROJECT_DIR/update-report $($CI_PROJECT_DIR/ci/listmachines.py meta-arm meta-arm-bsp)"
+    # This configuration has all of the layers we need enabled
+    - kas shell ci/gem5-arm64.yml --command \
+      "$CI_PROJECT_DIR/scripts/machine-summary.py -t report -o $CI_PROJECT_DIR/update-report $($CI_PROJECT_DIR/ci/listmachines.py meta-arm meta-arm-bsp meta-gem5)"
   # Do this on x86 whilst the compilers are x86-only
   tags:
     - x86_64
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/4 gem5/gem-aarch64-native: remove duplicate --command-line

The contents of GEM5_RUN_CMDLINE is passed via --command-line, so there is no need to include --command-line in it.

---
 meta-gem5/recipes-devtools/gem5/gem5-aarch64-native.inc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-gem5/recipes-devtools/gem5/gem5-aarch64-native.inc +1 -2
index 0a8e34c1..2fd5206e 100644
@@ -21,8 +21,7 @@ GEM5_RUN_DISK ?= "*-${MACHINE}.ext4"
 GEM5_RUN_DTB ?= "${@os.path.basename(d.getVar('KERNEL_DEVICETREE'))}"
 
 # Linux command line to pass
-GEM5_RUN_CMDLINE ?= "--command-line='earlyprintk=pl011,0x1c090000 \
-        console=ttyAMA0 rw mem=512MB root=/dev/sda rootwait'"
+GEM5_RUN_CMDLINE ?= "earlyprintk=pl011,0x1c090000 console=ttyAMA0 rw mem=512MB root=/dev/sda rootwait"
 
 # Extra arguments to pass to gem5
 GEM5_RUN_EXTRA ?= "--mem-size=512MB -n 4 --machine-type=VExpress_GEM5_V2"
Signature · 1 line
2.25.1
#2 lore raw

PATCH 3/4 gem5/linux-yocto: use wildcards in the bbappend

In reply to Ross Burton

Don't hard-code 5.4, use wildcards instead.

---
 .../recipes-kernel/linux/linux-yocto_%.bbappend      | 11 +++++++++++
 .../recipes-kernel/linux/linux-yocto_5.4.bbappend    | 12 ------------
 2 files changed, 11 insertions(+), 12 deletions(-)
 create mode 100644 meta-gem5/recipes-kernel/linux/linux-yocto_%.bbappend
meta-gem5/recipes-kernel/linux/linux-yocto_%.bbappend new file +11 -0
new file mode 100644
index 00000000..b36ea064
@@ -0,0 +1,11 @@
+FILESEXTRAPATHS:prepend:gem5-arm64 := "${THISDIR}:${THISDIR}/files:"
+
+COMPATIBLE_MACHINE:gem5-arm64 = "gem5-arm64"
+KMACHINE:gem5-arm64 = "gem5-arm64"
+SRC_URI:append:gem5-arm64 = " file://gem5-kmeta;type=kmeta;name=gem5-kmeta;destsuffix=gem5-kmeta \
+                              file://dts/gem5-arm64;subdir=add-files"
+
+do_patch:append:gem5-arm64() {
+    tar -C ${WORKDIR}/add-files/dts -cf - gem5-arm64 | \
+        tar -C arch/arm64/boot/dts -xf -
+}
meta-gem5/recipes-kernel/linux/linux-yocto_5.4.bbappend +0 -12
index 480c5e23..078b684f 100644
@@ -1,13 +1 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}:${THISDIR}/files:"
-
 require ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', 'recipes-kernel/linux/linux-yocto_virtualization.inc', '', d)}
-
-COMPATIBLE_MACHINE:gem5-arm64 = "gem5-arm64"
-KMACHINE:gem5-arm64 = "gem5-arm64"
-SRC_URI:append:gem5-arm64 = " file://gem5-kmeta;type=kmeta;name=gem5-kmeta;destsuffix=gem5-kmeta \
-                              file://dts/gem5-arm64;subdir=add-files"
-
-do_patch:append:gem5-arm64() {
-    tar -C ${WORKDIR}/add-files/dts -cf - gem5-arm64 | \
-        tar -C arch/arm64/boot/dts -xf -
-}
Signature · 1 line
2.25.1
#3 lore raw

Re: [meta-arm] [PATCH 3/4] gem5/linux-yocto: use wildcards in the bbappend

Why not use --find-renames so the patch like this is more readable and reviewable?

Quoted 47 lines · Ross Burton

Don't hard-code 5.4, use wildcards instead.

---
 .../recipes-kernel/linux/linux-yocto_%.bbappend      | 11 +++++++++++
 .../recipes-kernel/linux/linux-yocto_5.4.bbappend    | 12 ------------
 2 files changed, 11 insertions(+), 12 deletions(-)
 create mode 100644 meta-gem5/recipes-kernel/linux/linux-yocto_%.bbappend
meta-gem5/recipes-kernel/linux/linux-yocto_%.bbappend new file +11 -0
new file mode 100644
index 00000000..b36ea064
@@ -0,0 +1,11 @@
+FILESEXTRAPATHS:prepend:gem5-arm64 := "${THISDIR}:${THISDIR}/files:"
+
+COMPATIBLE_MACHINE:gem5-arm64 = "gem5-arm64"
+KMACHINE:gem5-arm64 = "gem5-arm64"
+SRC_URI:append:gem5-arm64 = " file://gem5-kmeta;type=kmeta;name=gem5-kmeta;destsuffix=gem5-kmeta \
+                              file://dts/gem5-arm64;subdir=add-files"
+
+do_patch:append:gem5-arm64() {
+    tar -C ${WORKDIR}/add-files/dts -cf - gem5-arm64 | \
+        tar -C arch/arm64/boot/dts -xf -
+}
meta-gem5/recipes-kernel/linux/linux-yocto_5.4.bbappend +0 -12
index 480c5e23..078b684f 100644
@@ -1,13 +1 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}:${THISDIR}/files:"
-
 require ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', 'recipes-kernel/linux/linux-yocto_virtualization.inc', '', d)}
-
-COMPATIBLE_MACHINE:gem5-arm64 = "gem5-arm64"
-KMACHINE:gem5-arm64 = "gem5-arm64"
-SRC_URI:append:gem5-arm64 = " file://gem5-kmeta;type=kmeta;name=gem5-kmeta;destsuffix=gem5-kmeta \
-                              file://dts/gem5-arm64;subdir=add-files"
-
-do_patch:append:gem5-arm64() {
-    tar -C ${WORKDIR}/add-files/dts -cf - gem5-arm64 | \
-        tar -C arch/arm64/boot/dts -xf -
-}
Signature · 1 line
2.25.1
#4 lore raw

PATCH 4/4 atp/linux-yocto: use wildcards in the bbappend

In reply to Ross Burton

Don't hard-code 5.4, use wildcards instead.

---
 .../linux/{linux-yocto-5.4 => files}/no_ftrace.cfg              | 0
 .../recipes-kernel/linux/{linux-yocto-5.4 => files}/smmuv3.cfg  | 0
 .../linux/{linux-yocto_5.4.bbappend => linux-yocto_%.bbappend}  | 2 +-
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename meta-atp/recipes-kernel/linux/{linux-yocto-5.4 => files}/no_ftrace.cfg (100%)
 rename meta-atp/recipes-kernel/linux/{linux-yocto-5.4 => files}/smmuv3.cfg (100%)
 rename meta-atp/recipes-kernel/linux/{linux-yocto_5.4.bbappend => linux-yocto_%.bbappend} (50%)
meta-atp/recipes-kernel/linux/files/no_ftrace.cfg renamed from meta-atp/recipes-kernel/linux/linux-yocto-5.4/no_ftrace.cfg +0 -0
similarity index 100%
rename from meta-atp/recipes-kernel/linux/linux-yocto-5.4/no_ftrace.cfg
rename to meta-atp/recipes-kernel/linux/files/no_ftrace.cfg
meta-atp/recipes-kernel/linux/files/smmuv3.cfg renamed from meta-atp/recipes-kernel/linux/linux-yocto-5.4/smmuv3.cfg +0 -0
similarity index 100%
rename from meta-atp/recipes-kernel/linux/linux-yocto-5.4/smmuv3.cfg
rename to meta-atp/recipes-kernel/linux/files/smmuv3.cfg
meta-atp/recipes-kernel/linux/linux-yocto_%.bbappend renamed from meta-atp/recipes-kernel/linux/linux-yocto_5.4.bbappend +1 -1
similarity index 50%
rename from meta-atp/recipes-kernel/linux/linux-yocto_5.4.bbappend
rename to meta-atp/recipes-kernel/linux/linux-yocto_%.bbappend
index c8352206..f59f8d44 100644
@@ -1,2 +1,2 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}-5.4:"
+FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
 SRC_URI += "file://no_ftrace.cfg file://smmuv3.cfg"
Signature · 1 line
2.25.1
Applied
#5 lore raw
In reply to Ross Burton
Quoted 1 line · Ross Burton

The gem5-arm64 machine was missing.

Applied, thanks!

[1/4] CI: add meta-gem5 to the pending upgrades report

      commit: bade8df2d882098e7a06b419e4924efd87b717b2
[2/4] gem5/gem-aarch64-native: remove duplicate --command-line
      commit: 6c410376dfd2188ee9f071a1cc4f2c8cccc25d07
[3/4] gem5/linux-yocto: use wildcards in the bbappend
      commit: e5334bfabfbb5ea6d0a6819d62085f58520c6181
[4/4] atp/linux-yocto: use wildcards in the bbappend
      commit: 31446384e6dfa9d0bbf26ebe11adbff8250a3964

Best regards,

Signature · 1 line
Jon Mason <[email protected]>