summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-11-23 16:32:48 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-11-23 16:33:53 +0100
commit1d8e5bde8f2ce2f4245703fc4baf22a9e80efcd6 (patch)
treec49375da6277335a831ec34df0be48397199b54b
parentf0fd1513969e6cdf28069c522f82f3bdf609fa41 (diff)
downloadptxdist-1d8e5bde8f2ce2f4245703fc4baf22a9e80efcd6.tar.gz
ptxdist-1d8e5bde8f2ce2f4245703fc4baf22a9e80efcd6.tar.xz
memtest86+: fix building with gcc-4.6ptxdist-2011.12.0
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--patches/memtest86+-4.20/0001-Remove-hardcoded-cc-variable.patch (renamed from patches/memtest86+-4.20/memtest86+-4.10-hardcoded_cc.patch)20
-rw-r--r--[-rwxr-xr-x]patches/memtest86+-4.20/0002-Use-serial-port-addresses-provided-by-BIOS.patch (renamed from patches/memtest86+-4.20/serial_base.patch)21
-rw-r--r--patches/memtest86+-4.20/series7
3 files changed, 33 insertions, 15 deletions
diff --git a/patches/memtest86+-4.20/memtest86+-4.10-hardcoded_cc.patch b/patches/memtest86+-4.20/0001-Remove-hardcoded-cc-variable.patch
index 4841b1d15..c10ce9333 100644
--- a/patches/memtest86+-4.20/memtest86+-4.10-hardcoded_cc.patch
+++ b/patches/memtest86+-4.20/0001-Remove-hardcoded-cc-variable.patch
@@ -1,4 +1,6 @@
-Subject: Remove hardcoded cc variable
+From: Alexander Stein <alexander.stein@systec-electronic.com>
+Date: Wed, 23 Nov 2011 16:30:13 +0100
+Subject: [PATCH] Remove hardcoded cc variable
This patch is from Gentoo.
URL: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-apps/memtest86+/files/memtest86+-4.10-hardcoded_cc.patch?revision=1.1
@@ -6,10 +8,16 @@ URL: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-apps/memtest86+
This patch cleans up the Makefile to allow overwrite CC and AS variable
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
+[mol: remove "-nopie", not available with gcc-4.6 here]
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ Makefile | 11 +++++------
+ 1 files changed, 5 insertions(+), 6 deletions(-)
-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
+diff --git a/Makefile b/Makefile
+index f51b813..f8066d0 100644
+--- a/Makefile
++++ b/Makefile
@@ -8,10 +8,9 @@
#
FDISK=/dev/fd0
@@ -24,7 +32,7 @@ diff -Naurp memtest86+-4.10-orig/Makefile memtest86+-4.10/Makefile
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
+@@ -47,10 +46,10 @@ memtest.bin: memtest_shared.bin bootsect.o setup.o memtest.bin.lds
memtest_shared.bin -o memtest.bin
reloc.o: reloc.c
@@ -33,7 +41,7 @@ diff -Naurp memtest86+-4.10-orig/Makefile memtest86+-4.10/Makefile
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
++ $(CC) -c -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin -ffreestanding -fno-stack-protector -fno-pie test.c
clean:
rm -f *.o *.s *.iso memtest.bin memtest memtest_shared memtest_shared.bin
diff --git a/patches/memtest86+-4.20/serial_base.patch b/patches/memtest86+-4.20/0002-Use-serial-port-addresses-provided-by-BIOS.patch
index ea18382d4..9747df736 100755..100644
--- a/patches/memtest86+-4.20/serial_base.patch
+++ b/patches/memtest86+-4.20/0002-Use-serial-port-addresses-provided-by-BIOS.patch
@@ -1,21 +1,28 @@
-Subject: Use serial port addresses provided by BIOS
+From: Alexander Stein <alexander.stein@systec-electronic.com>
+Date: Wed, 23 Nov 2011 16:30:13 +0100
+Subject: [PATCH] Use serial port addresses provided by BIOS
Using this patch memtest86+ uses the serial port addresses provided by BIOS rather hardcoded defaults.
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
+---
+ lib.c | 4 +++-
+ 1 files changed, 3 insertions(+), 1 deletions(-)
---- memtest86+-4.20/lib.c 2011-01-23 19:11:04.000000000 +0100
-+++ memtest86+-4.20/lib.c 2011-03-30 09:31:38.519674571 +0200
-@@ -24,7 +24,7 @@
+diff --git a/lib.c b/lib.c
+index d107039..91ea950 100644
+--- a/lib.c
++++ b/lib.c
+@@ -24,7 +24,7 @@ short serial_cons = SERIAL_CONSOLE_DEFAULT;
#error Bad SERIAL_TTY. Only ttyS0 and ttyS1 are supported.
#endif
short serial_tty = SERIAL_TTY;
-const short serial_base_ports[] = {0x3f8, 0x2f8, 0x3e8, 0x2e8};
+unsigned short serial_base_ports[] = {0x3f8, 0x2f8, 0x3e8, 0x2e8};
-
+
#if ((115200%SERIAL_BAUD_RATE) != 0)
#error Bad default baud rate
-@@ -1112,6 +1112,8 @@
+@@ -1112,6 +1112,8 @@ void serial_console_setup(char *param)
serial_baud_rate = (int) baud_rate;
save_tty:
serial_tty = (short) tty;
@@ -23,4 +30,4 @@ Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
+ serial_base_ports[serial_tty] = ((const unsigned short *) 0x0400)[serial_tty];
serial_cons = 1;
}
-
+
diff --git a/patches/memtest86+-4.20/series b/patches/memtest86+-4.20/series
index 70c0db89c..992ddd113 100644
--- a/patches/memtest86+-4.20/series
+++ b/patches/memtest86+-4.20/series
@@ -1,2 +1,5 @@
-memtest86+-4.10-hardcoded_cc.patch
-serial_base.patch
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-Remove-hardcoded-cc-variable.patch
+0002-Use-serial-port-addresses-provided-by-BIOS.patch
+# ac32e21dd23823fda596f9b6028589c5 - git-ptx-patches magic