aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-10-07 08:09:20 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-10-07 08:09:20 +0000
commit5765b4ef72e0d68b1b98edadfc61ec988a81da89 (patch)
tree91d7936bab0915304fd5edf36aa7ec49ec94ec2f /sys
parentfcc57bdac416eca694c6193886a2952e8092b89c (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/common/ufsread.c3
-rw-r--r--sys/boot/i386/boot2/Makefile2
-rw-r--r--sys/boot/i386/gptboot/Makefile2
-rw-r--r--sys/boot/pc98/boot2/Makefile1
4 files changed, 5 insertions, 3 deletions
diff --git a/sys/boot/common/ufsread.c b/sys/boot/common/ufsread.c
index 3949deb5e4250..802e0352e27eb 100644
--- a/sys/boot/common/ufsread.c
+++ b/sys/boot/common/ufsread.c
@@ -122,9 +122,6 @@ lookup(const char *path)
return dt == DT_REG ? ino : 0;
}
-#ifndef __sparc64__
-#define UFS1_ONLY
-#endif
#ifdef UFS1_ONLY
static ssize_t
diff --git a/sys/boot/i386/boot2/Makefile b/sys/boot/i386/boot2/Makefile
index 05cf5b010a144..e4ab3f5ddbf10 100644
--- a/sys/boot/i386/boot2/Makefile
+++ b/sys/boot/i386/boot2/Makefile
@@ -36,6 +36,8 @@ CFLAGS= -elf -ffreestanding -Os -fno-builtin \
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings
+CFLAGS+= -DUFS1_ONLY
+
LDFLAGS=-nostdlib -static -N
all: boot1 boot2
diff --git a/sys/boot/i386/gptboot/Makefile b/sys/boot/i386/gptboot/Makefile
index 05cf5b010a144..e4ab3f5ddbf10 100644
--- a/sys/boot/i386/gptboot/Makefile
+++ b/sys/boot/i386/gptboot/Makefile
@@ -36,6 +36,8 @@ CFLAGS= -elf -ffreestanding -Os -fno-builtin \
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings
+CFLAGS+= -DUFS1_ONLY
+
LDFLAGS=-nostdlib -static -N
all: boot1 boot2
diff --git a/sys/boot/pc98/boot2/Makefile b/sys/boot/pc98/boot2/Makefile
index f5f4c8782c25d..240c92cd6b31a 100644
--- a/sys/boot/pc98/boot2/Makefile
+++ b/sys/boot/pc98/boot2/Makefile
@@ -15,6 +15,7 @@ CFLAGS+= -DBOOTSEG=${BOOTSEG} -DBOOTSTACK=${BOOTSTACK}
CFLAGS+= ${CWARNFLAGS}
CFLAGS+= -I${.CURDIR}/../../.. -I.
+CFLAGS+= -DUFS1_ONLY
# By default, if a serial port is going to be used as console, use COM1
# (aka /dev/ttyd0).