1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-04-20 11:29:54 +00:00

atp: decouple m5readfile from m5ops

By making m5readfile into its own recipe, we avoid modifications to the
m5ops recipe when using the meta-atp layer, which break the Yocto
compatibility of the layer.

Signed-off-by: Adrian Herrera <adrian.herrera@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Adrian Herrera
2022-11-21 10:43:47 -05:00
committed by Jon Mason
parent ee80cc19e4
commit 5e00e21286
4 changed files with 20 additions and 17 deletions

View File

@@ -5,7 +5,7 @@ MACHINEOVERRIDES =. "gem5-arm64:"
GEM5_RUN_PROFILE = "configs/baremetal_atp.py"
# Require m5term
EXTRA_IMAGEDEPENDS += "gem5-m5term-native"
# Require ATP kernel modules, user API and gem5 m5ops
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-module-atp atp-uapi gem5-m5ops"
# Require ATP kernel modules, user API and gem5 m5readfile
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-module-atp atp-uapi gem5-m5readfile"
# Optionally provide ATP kernel tests
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "atp-test"

View File

@@ -1,14 +0,0 @@
inherit update-rc.d
FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"
# Add startup script calling m5 readfile for automatic checkpoint and restore
SRC_URI += "file://m5-readfile.sh"
INITSCRIPT_NAME = "m5-readfile.sh"
INITSCRIPT_PARAMS = "defaults 99"
do_install:append() {
install -d ${D}/${INIT_D_DIR}
install -m 755 ${WORKDIR}/m5-readfile.sh ${D}/${INIT_D_DIR}
}

View File

@@ -0,0 +1,17 @@
inherit update-rc.d
SUMMARY = "Enables reading any script at simulation launch time"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
SRC_URI = "file://m5-readfile.sh"
INITSCRIPT_NAME = "m5-readfile.sh"
INITSCRIPT_PARAMS = "defaults 99"
do_install() {
install -d ${D}/${INIT_D_DIR}
install -m 755 ${WORKDIR}/m5-readfile.sh ${D}/${INIT_D_DIR}
}
RDEPENDS:${PN} = "gem5-m5ops"

View File

@@ -3,7 +3,7 @@
# Provides: m5-readfile
# Required-Start: $all
# Default-Start: 5
# Description: Enables reading any script at simulation launch time.
# Description: Enables reading any script at simulation launch time.
### END INIT INFO
m5 readfile | sh