memtool: Add recipe
PATCH 1/1 memtool: Add recipe
From: Ricardo Simoes <[email protected]>
memtool is a program that allows to access memory mapped registers. This is useful to inspect and modify registers from the command line. memtool can also operate on plain files, and access PHY registers.
Signed-off-by Ricardo Simoes <[email protected]>
Signed-off-by Mark Jonas <[email protected]>
--- .../memtool/memtool/run-ptest | 27 ++++++++ .../memtool/test_read_write_plainfiles.sh | 69 +++++++++++++++++++ .../memtool/memtool_2018.03.0.bb | 31 +++++++++ 3 files changed, 127 insertions(+) create mode 100644 meta-oe/recipes-devtools/memtool/memtool/run-ptest create mode 100644 meta-oe/recipes-devtools/memtool/memtool/test_read_write_plainfiles.sh create mode 100644 meta-oe/recipes-devtools/memtool/memtool_2018.03.0.bb
meta-oe/recipes-devtools/memtool/memtool/run-ptest new file +27 -0
@@ -0,0 +1,27 @@ +#!/bin/sh + +# SPDX-FileCopyrightText: 2024 Bosch Sicherheitssysteme GmbH +# +# SPDX-License-Identifier: MIT + +fail_count=0 +all_count=0 + +for test_suite in tests/test_* +do + if "./$test_suite" + then + echo "PASS: $test_suite" + else + echo "FAIL: $test_suite" + fail_count=$((fail_count + 1)) + fi + all_count=$((all_count + 1)) +done + +if [ $fail_count -eq 0 ] +then + echo "PASS: All $all_count tests passed" +else + echo "FAIL: $fail_count of $all_count tests failed" +fi
meta-oe/recipes-devtools/memtool/memtool/test_read_write_plainfiles.sh new file +69 -0
69 lines not on this page · raw message
meta-oe/recipes-devtools/memtool/memtool_2018.03.0.bb new file +31 -0
@@ -0,0 +1,31 @@ +# SPDX-FileCopyrightText: 2024 Bosch Sicherheitssysteme GmbH +# +# SPDX-License-Identifier: MIT + +SUMMARY = "A tool to manipulate and read memory mapped registers" +DESCRIPTION = "memtool is a program that allows to access memory mapped registers. This is useful \ +to inspect and modify registers from the command line. memtool can also operate on plain files, \ +and access PHY registers." +HOMEPAGE = "https://github.com/pengutronix/memtool" +BUGTRACKER = "https://github.com/pengutronix/memtool/issues" +SECTION = "devtool" + +LICENSE = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +SRC_URI = " \ + http://www.pengutronix.de/software/memtool/downloads/memtool-${PV}.tar.xz \ + file://run-ptest \ + file://test_read_write_plainfiles.sh \ +" + +SRC_URI[sha256sum] = "87cb7175266ff3a00a9c1f541c4c6c93693ffbe8dcc0d97a60d13c45ff860900" + +inherit autotools ptest + +do_install_ptest () { + install -d ${D}${PTEST_PATH}/tests + install -m 0755 ${UNPACKDIR}/test_* ${D}${PTEST_PATH}/tests +} + +RDEPENDS:${PN}-ptest += "bash coreutils"
Signature · 1 line
2.34.1