memtester: initial package

Includes cross compile patch from Debian

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2018-04-13 10:15:06 +02:00
parent 03ea5940f9
commit 26ba408a60
2 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,38 @@
################################################################################
# This file is part of LibreELEC - https://libreelec.tv
# Copyright (C) 2018-present Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="memtester"
PKG_VERSION="4.3.0"
PKG_SHA256="f9dfe2fd737c38fad6535bbab327da9a21f7ce4ea6f18c7b3339adef6bf5fd88"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://pyropus.ca/software/memtester/"
PKG_URL="http://pyropus.ca/software/memtester/old-versions/memtester-${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_SECTION="debug"
PKG_SHORTDESC="A userspace utility for testing the memory subsystem for faults"
PKG_TOOLCHAIN="manual"
make_target() {
make memtester
}
makeinstall_target() {
mkdir -p $INSTALL/usr/bin
cp memtester $INSTALL/usr/bin
}

View File

@ -0,0 +1,34 @@
Author: Helmut Grohne <helmut@subdivi.de>
Description: make the build system honor $CC to facilitate cross builds
Index: memtester-4.3.0/conf-cc
===================================================================
--- memtester-4.3.0.orig/conf-cc 2012-06-09 23:45:22.000000000 +0200
+++ memtester-4.3.0/conf-cc 2015-09-12 20:36:27.000000000 +0200
@@ -1,3 +1,3 @@
-cc -O2 -DPOSIX -D_POSIX_C_SOURCE=200809L -D_FILE_OFFSET_BITS=64 -DTEST_NARROW_WRITES -c
+$CC -O2 -DPOSIX -D_POSIX_C_SOURCE=200809L -D_FILE_OFFSET_BITS=64 -DTEST_NARROW_WRITES -c
This will be used to compile .c files.
Index: memtester-4.3.0/conf-ld
===================================================================
--- memtester-4.3.0.orig/conf-ld 2012-06-09 23:45:22.000000000 +0200
+++ memtester-4.3.0/conf-ld 2015-09-12 20:36:33.000000000 +0200
@@ -1,3 +1,3 @@
-cc -s
+$CC -s
This will be used to link .o files into an executable.
Index: memtester-4.3.0/Makefile
===================================================================
--- memtester-4.3.0.orig/Makefile 2015-09-12 20:01:06.000000000 +0200
+++ memtester-4.3.0/Makefile 2015-09-12 20:50:40.000000000 +0200
@@ -10,8 +10,6 @@
# You don't need to edit these; change the contents of the conf-cc and conf-ld
# files if you need to change the compile/link commands. See the README for
# more information.
-CC = $(shell head -n 1 conf-cc)
-LD = $(shell head -n 1 conf-ld)
SOURCES = memtester.c tests.c
OBJECTS = $(SOURCES:.c=.o)