summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-07 08:09:20 +0000
committerphk <phk@FreeBSD.org>2002-10-07 08:09:20 +0000
commitc91ffdd939399cd253ce7fe0e51bdf04828dc0db (patch)
tree91d7936bab0915304fd5edf36aa7ec49ec94ec2f /sys/boot
parente0eaaedba9a58f30748a9243261bcb08b5aae5b1 (diff)
downloadFreeBSD-src-c91ffdd939399cd253ce7fe0e51bdf04828dc0db.zip
FreeBSD-src-c91ffdd939399cd253ce7fe0e51bdf04828dc0db.tar.gz
Move the definition of UFS1_ONLY into the Makefiles where it belongs.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/boot')
-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 3949deb..802e035 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 05cf5b0..e4ab3f5 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 05cf5b0..e4ab3f5 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 f5f4c87..240c92c 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).
OpenPOWER on IntegriCloud