Skip to contentSkip to conversation

gem5: centralise v20 sources

PATCH New Adrian Herrera 1 participant 1 message Jan 28, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gem5: centralise v20 sources

Both simulator and bootloader now fetch from a single include file defining the sources. This is in preparation for m5term recipe.

---
 .../gem5/gem5-aarch64-bootloader_20.bb        | 11 +---------
 .../gem5/gem5-aarch64-native_20.bb            | 20 +++++--------------
 .../recipes-devtools/gem5/gem5-source_20.inc  | 12 +++++++++++
 3 files changed, 18 insertions(+), 25 deletions(-)
 create mode 100644 meta-gem5/recipes-devtools/gem5/gem5-source_20.inc
meta-gem5/recipes-devtools/gem5/gem5-aarch64-bootloader_20.bb +1 -10
index d960e6c..67570f6 100644
@@ -1,15 +1,6 @@
 # gem5 custom bootloader
 
-LIC_FILES_CHKSUM = "file://COPYING;md5=2d9514d69d8abf88b6e9125e759bf0ab \
-                    file://LICENSE;md5=a585e2893cee63d16a1d8bc16c6297ec"
-
-SRC_URI = "git://gem5.googlesource.com/public/gem5;protocol=https;nobranch=1"
-RELEASE_TAG = "v20.0.0.1"
-SRCREV = "332a9de33db603e0aefedae1e05134db4257ea3e"
-
-PV = "${RELEASE_TAG}"
-
-S = "${WORKDIR}/git"
+require gem5-source_20.inc
 
 BPN = "gem5-aarch64-bootloader"
 
meta-gem5/recipes-devtools/gem5/gem5-aarch64-native_20.bb +5 -15
index ce36514..a222765 100644
@@ -1,19 +1,9 @@
-# gem5 simulator source and checksum information
+require gem5-source_20.inc
 
-LIC_FILES_CHKSUM = "file://COPYING;md5=2d9514d69d8abf88b6e9125e759bf0ab \
-                    file://LICENSE;md5=a585e2893cee63d16a1d8bc16c6297ec"
-
-SRC_URI = "git://gem5.googlesource.com/public/gem5;protocol=https;nobranch=1 \
-           file://0001-scons-Add-MARSHAL_XXFLAGS_EXTRA-for-the-marshal-object.patch \
-           file://0002-arch-arm-Introduce-HavePACExt-helper.patch \
-           file://0003-arch-arm-Check-if-PAC-is-implemented-before-executing-insts.patch \
-          "
-RELEASE_TAG = "v20.0.0.3"
-SRCREV = "fa70478413e4650d0058cbfe81fd5ce362101994"
-
-PV = "${RELEASE_TAG}"
-
-S = "${WORKDIR}/git"
+SRC_URI += "file://0001-scons-Add-MARSHAL_XXFLAGS_EXTRA-for-the-marshal-object.patch \
+            file://0002-arch-arm-Introduce-HavePACExt-helper.patch \
+            file://0003-arch-arm-Check-if-PAC-is-implemented-before-executing-insts.patch \
+           "
 
 BPN = "gem5-aarch64-native"
 
meta-gem5/recipes-devtools/gem5/gem5-source_20.inc new file +12 -0
new file mode 100644
index 0000000..c448466
@@ -0,0 +1,12 @@
+# gem5 sources v20.0.0.3
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=2d9514d69d8abf88b6e9125e759bf0ab \
+                    file://LICENSE;md5=a585e2893cee63d16a1d8bc16c6297ec"
+
+SRC_URI = "git://gem5.googlesource.com/public/gem5;protocol=https;nobranch=1"
+RELEASE_TAG = "v20.0.0.3"
+SRCREV = "fa70478413e4650d0058cbfe81fd5ce362101994"
+
+PV = "${RELEASE_TAG}"
+
+S = "${WORKDIR}/git"
Signature · 1 line
2.30.0