2014-08-11 13:27:10 +02:00

38 lines
1.1 KiB
Plaintext

$NetBSD: patch-aa,v 1.5 2013/12/08 00:35:28 jakllsch Exp $
--- Makefile.orig 2013-08-10 02:01:58.000000000 +0000
+++ Makefile
@@ -7,7 +7,7 @@
#
# Path for the floppy disk device
#
-FDISK=/dev/fd0
+FDISK=/dev/fd0a
AS=as -32
CC=gcc
@@ -20,8 +20,7 @@ OBJS= head.o reloc.o main.o test.o init.
smp.o vmem.o random.o
-all: clean memtest.bin memtest
- scp memtest.bin root@192.168.0.12:/srv/tftp/mt86plus
+all: memtest.bin memtest
# Link it statically once so I know I don't have undefined
# symbols and then link it dynamically so I have full
@@ -34,8 +33,11 @@ memtest_shared: $(OBJS) memtest_shared.l
memtest_shared.bin: memtest_shared
objcopy -O binary $< memtest_shared.bin
-memtest: memtest_shared.bin memtest.lds
- $(LD) -s -T memtest.lds -b binary memtest_shared.bin -o $@
+nbstart.s: nbstart.S config.h defs.h
+ $(CC) -E -traditional $< -o $@
+
+memtest: memtest_shared.bin memtest.lds nbstart.o
+ $(LD) -T memtest.lds -z max-page-size=0x1000 nbstart.o -b binary memtest_shared.bin -o $@
head.s: head.S config.h defs.h test.h
$(CC) -E -traditional $< -o $@