memtest86 in main
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
WorkDir = "%s+-%s" % (get.srcNAME(), get.srcVERSION())
|
||||
docompile = False if get.ARCH() == "x86_64" else True
|
||||
|
||||
def setup():
|
||||
pisitools.dosed("memtest.lds", "0x5000", "0x100000")
|
||||
|
||||
def build():
|
||||
if docompile:
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
if docompile:
|
||||
finalbin = "memtest.bin"
|
||||
else:
|
||||
finalbin = "precomp.bin"
|
||||
|
||||
pisitools.insinto("/boot", finalbin, "memtest")
|
||||
|
||||
pisitools.dodoc("FAQ", "README*")
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
diff -ur memtest86+-1.70.orig/memtest_shared.lds memtest86+-1.70/memtest_shared.lds
|
||||
--- memtest86+-1.70.orig/memtest_shared.lds 2006-12-27 02:33:06.000000000 +0100
|
||||
+++ memtest86+-1.70/memtest_shared.lds 2007-01-25 16:34:19.000000000 +0100
|
||||
@@ -8,6 +8,7 @@
|
||||
_start = .;
|
||||
*(.text)
|
||||
*(.text.*)
|
||||
+ *(.gnu.linkonce.t.*)
|
||||
*(.plt)
|
||||
_etext = . ;
|
||||
} = 0x9090
|
||||
@@ -0,0 +1,30 @@
|
||||
diff -Naurp memtest86+-4.10-orig/Makefile memtest86+-4.10/Makefile
|
||||
--- memtest86+-4.10-orig/Makefile 2010-06-24 00:27:22.864634431 +0200
|
||||
+++ memtest86+-4.10/Makefile 2010-06-24 00:28:42.402478590 +0200
|
||||
@@ -8,10 +8,9 @@
|
||||
#
|
||||
FDISK=/dev/fd0
|
||||
|
||||
-AS=as -32
|
||||
-CC=gcc
|
||||
-
|
||||
-CFLAGS= -Wall -march=i486 -m32 -O2 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector
|
||||
+CFLAGS=-Wall -march=i486 -m32 -O2 -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC -fno-stack-protector
|
||||
+CPPFLAGS=-m32
|
||||
+ASFLAGS=-32
|
||||
|
||||
OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \
|
||||
config.o linuxbios.o memsize.o pci.o controller.o random.o spd.o \
|
||||
@@ -47,10 +46,10 @@ memtest.bin: memtest_shared.bin bootsect
|
||||
memtest_shared.bin -o memtest.bin
|
||||
|
||||
reloc.o: reloc.c
|
||||
- $(CC) -c $(CFLAGS) -fno-strict-aliasing reloc.c
|
||||
+ $(CC) -c $(CFLAGS) -fno-strict-aliasing -fno-stack-protector reloc.c
|
||||
|
||||
test.o: test.c
|
||||
- $(CC) -c -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding test.c
|
||||
+ $(CC) -c -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fno-stack-protector -fno-pie -nopie test.c
|
||||
|
||||
clean:
|
||||
rm -f *.o *.s *.iso memtest.bin memtest memtest_shared memtest_shared.bin
|
||||
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>memtest86</Name>
|
||||
<Homepage>http://www.memtest.org/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Memory tester</Summary>
|
||||
<Description>Memory tester for x86 and x86_64 devices for x86 and 64bit x86 compatible computers. It should be started from boot menu.</Description>
|
||||
<Archive sha1sum="eb4b6d70114db3c9ed320785da44c0ba8349c10c" type="targz">http://www.memtest.org/download/5.01/memtest86+-5.01.tar.gz</Archive>
|
||||
<Patches>
|
||||
<!-- <Patch level="1">no-hardcoded-cc.patch</Patch> -->
|
||||
<!-- <Patch level="1">linkonce.patch</Patch> -->
|
||||
<!-- <Patch level="1">serial-enable.patch</Patch> -->
|
||||
<!-- <Patch level="1">asciimap.patch</Patch> -->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>memtest86</Name>
|
||||
<Files>
|
||||
<Path fileType="executable">/boot</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="4">
|
||||
<Date>2015-01-27</Date>
|
||||
<Version>5.01</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2014-06-14</Date>
|
||||
<Version>4.20</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>Alihan Öztürk</Name>
|
||||
<Email>alihan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2014-03-10</Date>
|
||||
<Version>4.20</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Varol Maksutoğlu</Name>
|
||||
<Email>waroi@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-09-24</Date>
|
||||
<Version>4.20</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Erdem Artan</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>memtest86</Name>
|
||||
<Summary xml:lang="tr">Bellek test edici</Summary>
|
||||
<Description xml:lang="tr">x86 ve 64bit x86 mimarilerindeki bilgisayarın belleklerini test etmeye ve hataları bulmaya yaran bir program. Kullanmak için açılış menüsünden çalıştırmanız gerekmektedir.</Description>
|
||||
<Description xml:lang="fr">Testeur de mémoire pour architecture x86 et x86_64 pour ordinateurs x86 et 64 bit x86 compatibles. Il doit être lancer depuis le menu de démarrage.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user