summaryrefslogtreecommitdiffstats
path: root/sys/boot/pc98
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-02-07 14:35:33 +0000
committerru <ru@FreeBSD.org>2004-02-07 14:35:33 +0000
commitcf59eef9c2bab07b1bfebcdb976aa936996bae0d (patch)
tree14da762133e941724b5918c190e4be203508a886 /sys/boot/pc98
parentdb4c9bf67ff0dbeda43dc2ae06b3abbf92c3214e (diff)
downloadFreeBSD-src-cf59eef9c2bab07b1bfebcdb976aa936996bae0d.zip
FreeBSD-src-cf59eef9c2bab07b1bfebcdb976aa936996bae0d.tar.gz
MFi386: Removed -elf and duplicate -ffreestanding.
Diffstat (limited to 'sys/boot/pc98')
-rw-r--r--sys/boot/pc98/boot2/Makefile4
-rw-r--r--sys/boot/pc98/kgzldr/Makefile3
-rw-r--r--sys/boot/pc98/libpc98/Makefile1
-rw-r--r--sys/boot/pc98/loader/Makefile4
4 files changed, 3 insertions, 9 deletions
diff --git a/sys/boot/pc98/boot2/Makefile b/sys/boot/pc98/boot2/Makefile
index 42a49ff..85f6151 100644
--- a/sys/boot/pc98/boot2/Makefile
+++ b/sys/boot/pc98/boot2/Makefile
@@ -7,8 +7,8 @@ SRCS= start.S table.c boot2.S boot.c asm.S bios.S serial.S
SRCS+= probe_keyboard.c io.c disk.c sys.c
BINMODE= 444
-CFLAGS= -elf -Os -mrtd \
- -ffreestanding -fno-builtin -fno-guess-branch-probability \
+CFLAGS= -Os -mrtd \
+ -fno-guess-branch-probability \
-D_KERNEL -DPC98 -DBOOTWAIT=${BOOTWAIT} -DTIMEOUT=${TIMEOUT}
CFLAGS+= -DBOOTSEG=${BOOTSEG} -DBOOTSTACK=${BOOTSTACK}
CFLAGS+= ${CWARNFLAGS}
diff --git a/sys/boot/pc98/kgzldr/Makefile b/sys/boot/pc98/kgzldr/Makefile
index eb249d2..a3ddf0f 100644
--- a/sys/boot/pc98/kgzldr/Makefile
+++ b/sys/boot/pc98/kgzldr/Makefile
@@ -9,8 +9,7 @@ CLEANFILES= kgzldr.o
SRCS= start.s boot.c inflate.c lib.c crt.s sio.s
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
-CFLAGS= -ffreestanding
-CFLAGS+=-Os
+CFLAGS= -Os
CFLAGS+=-DKZIP
LDFLAGS=-nostdlib -static -Wl,-r
.PATH: ${.CURDIR}/../../../kern
diff --git a/sys/boot/pc98/libpc98/Makefile b/sys/boot/pc98/libpc98/Makefile
index d9ab9eb..c3ebc16 100644
--- a/sys/boot/pc98/libpc98/Makefile
+++ b/sys/boot/pc98/libpc98/Makefile
@@ -10,7 +10,6 @@ SRCS= bioscd.c biosdisk.c biosmem.c biospnp.c biospci.c biossmap.c \
gatea20.c i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
time.c vidconsole.c
-CFLAGS+= -ffreestanding
BOOT_COMCONSOLE_PORT?= 0x238
CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT}
diff --git a/sys/boot/pc98/loader/Makefile b/sys/boot/pc98/loader/Makefile
index e9081e1..7824fdd 100644
--- a/sys/boot/pc98/loader/Makefile
+++ b/sys/boot/pc98/loader/Makefile
@@ -8,7 +8,6 @@ CFLAGS+= -DPC98
SRCS= main.c conf.c vers.c
.PATH: ${.CURDIR}/../../i386/loader
-CFLAGS+= -ffreestanding
# Enable PXE TFTP or NFS support, not both.
.if defined(LOADER_TFTP_SUPPORT)
CFLAGS+= -DLOADER_TFTP_SUPPORT
@@ -57,9 +56,6 @@ CFLAGS+= -I${.CURDIR}/..
# BTX components
CFLAGS+= -I${.CURDIR}/../btx/lib
-# BTX is expecting ELF components
-CFLAGS+= -elf
-
# Debug me!
#CFLAGS+= -g
#LDFLAGS+= -g
OpenPOWER on IntegriCloud