-ffreestanding is the word.
(also resort some CFLAGS such that the more "important" value are first so they are easier to see)
This commit is contained in:
parent
3b2b7c3e7a
commit
d1bdfb40fd
@ -8,12 +8,12 @@ PROG = boot1
|
||||
.PATH: ${.CURDIR}/../libalpha
|
||||
|
||||
SRCS= start.S boot1.c sys.c
|
||||
CFLAGS+= -mno-fp-regs
|
||||
CFLAGS+= -ffreestanding -mno-fp-regs
|
||||
CFLAGS+= -DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS} -DMINIMAL
|
||||
CFLAGS+= -DBOOT1
|
||||
CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}
|
||||
CFLAGS+= -I${LIBSTANDDIR}
|
||||
CFLAGS+= -I${.CURDIR}/..
|
||||
CFLAGS+= -DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS} -DMINIMAL
|
||||
CFLAGS+= -DBOOT1
|
||||
NOMAN=1
|
||||
STRIP=
|
||||
BINDIR?= /boot
|
||||
|
@ -6,6 +6,6 @@ NOMAN=
|
||||
NEWVERSWHAT= "SRM CD9660 boot" alpha
|
||||
LOAD_ADDRESS= ${PRIMARY_LOAD_ADDRESS}
|
||||
|
||||
CFLAGS+= -DLOADER_CDROM_SUPPORT
|
||||
CFLAGS+= -ffreestanding -DLOADER_CDROM_SUPPORT
|
||||
|
||||
.include <${.CURDIR}/../common/Makefile.common>
|
||||
|
@ -5,19 +5,20 @@ NOPIC= true
|
||||
NOPROFILE= true
|
||||
INTERNALLIB= true
|
||||
|
||||
CFLAGS+= -ffreestanding
|
||||
#CFLAGS+= -DDISK_DEBUG
|
||||
#CPPFLAGS+= -DNO_DISKLABEL
|
||||
#CPPFLAGS+= -DSAVE_MEMORY
|
||||
|
||||
# XXX hack to pick up stand.h
|
||||
LIBSTANDDIR= ${.CURDIR}/../../../../lib/libstand
|
||||
CFLAGS+= -I${LIBSTANDDIR}
|
||||
CFLAGS+= -DDEBUG
|
||||
CFLAGS+= -I${LIBSTANDDIR}
|
||||
|
||||
# Pick up the bootstrap header for some interface items
|
||||
CFLAGS+= -I${.CURDIR}/../../common -mno-fp-regs \
|
||||
-I${.CURDIR}/../../.. -I.
|
||||
|
||||
#CFLAGS+= -DDISK_DEBUG
|
||||
#CPPFLAGS+= -DNO_DISKLABEL
|
||||
#CPPFLAGS+= -DSAVE_MEMORY
|
||||
|
||||
SRCS= OSFpal.c elf_freebsd.c prom.c prom_disp.S prom_swpal.S \
|
||||
pal.S reboot.c delay.c time.c alpha_module.c devicename.c \
|
||||
srmdisk.c srmnet.c getsecs.c alpha_copy.c bootinfo.c
|
||||
|
@ -7,6 +7,6 @@ INSTALL_HELP= yes
|
||||
LOAD_ADDRESS= ${SECONDARY_LOAD_ADDRESS}
|
||||
|
||||
# Only disk support
|
||||
CFLAGS+= -DLOADER_DISK_SUPPORT # -DLOADER_EXT2FS_SUPPORT
|
||||
CFLAGS+= -ffreestanding -DLOADER_DISK_SUPPORT # -DLOADER_EXT2FS_SUPPORT
|
||||
|
||||
.include <${.CURDIR}/../common/Makefile.common>
|
||||
|
@ -7,7 +7,7 @@ NOMAN=
|
||||
NEWVERSWHAT= "SRM net boot" alpha
|
||||
LOAD_ADDRESS= ${PRIMARY_LOAD_ADDRESS}
|
||||
|
||||
CFLAGS+= -DLOADER_NET_SUPPORT
|
||||
CFLAGS+= -ffreestanding -DLOADER_NET_SUPPORT
|
||||
|
||||
.include <${.CURDIR}/../common/Makefile.common>
|
||||
|
||||
|
@ -5,6 +5,7 @@ NOPIC= true
|
||||
NOPROFILE= true
|
||||
INTERNALLIB= true
|
||||
|
||||
CFLAGS+= -ffreestanding
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
|
||||
# XXX hack to pick up stand.h
|
||||
LIBSTANDDIR= ${.CURDIR}/../../../../lib/libstand
|
||||
|
@ -14,7 +14,7 @@ SRCS+= main.c conf.c
|
||||
# Always add MI sources
|
||||
.PATH: ${.CURDIR}/../../common
|
||||
.include <${.CURDIR}/../../common/Makefile.inc>
|
||||
CFLAGS+= -mno-fp-regs
|
||||
CFLAGS+= -ffreestanding -mno-fp-regs
|
||||
CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}
|
||||
CFLAGS+= -I${.CURDIR}/../../.. -I.
|
||||
CFLAGS+= -DLOADER
|
||||
|
@ -15,7 +15,7 @@ SRCS+= delay.c efifs.c efinet.c elf_freebsd.c bootinfo.c pal.s
|
||||
SRCS+= efifpswa.c
|
||||
.endif
|
||||
|
||||
CFLAGS+= -fpic
|
||||
CFLAGS+= -ffreestanding -fpic
|
||||
CFLAGS+= -I${.CURDIR}/../include
|
||||
CFLAGS+= -I${.CURDIR}/../include/${MACHINE_ARCH}
|
||||
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
|
||||
|
@ -11,6 +11,7 @@ STRIP= # We must not strip loader.efi at install time.
|
||||
|
||||
SRCS+= main.c conf.c dev_net.c
|
||||
|
||||
CFLAGS+= -ffreestanding
|
||||
# Enable BootForth
|
||||
BOOT_FORTH= yes
|
||||
CFLAGS+= -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/${MACHINE_ARCH}
|
||||
|
@ -6,6 +6,7 @@ BASE_SRCS= dict.c ficl.c fileaccess.c float.c loader.c math64.c \
|
||||
|
||||
SRCS= ${BASE_SRCS} sysdep.c softcore.c
|
||||
CLEANFILES= softcore.c testmain testmain.o
|
||||
CFLAGS+= -ffreestanding
|
||||
.if ${MACHINE_ARCH} == "alpha"
|
||||
CFLAGS+= -mno-fp-regs
|
||||
.endif
|
||||
|
@ -11,6 +11,7 @@ STRIP= # We must not strip loader.efi at install time.
|
||||
|
||||
SRCS+= main.c conf.c dev_net.c
|
||||
|
||||
CFLAGS+= -ffreestanding
|
||||
# Enable BootForth
|
||||
BOOT_FORTH= yes
|
||||
CFLAGS+= -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/${MACHINE_ARCH}
|
||||
|
@ -9,7 +9,7 @@ INTERNALSTATICLIB= true
|
||||
SRCS= skiconsole.c time.c copy.c devicename.c module.c exit.c
|
||||
SRCS+= delay.c skifs.c elf_freebsd.c bootinfo.c ssc.c
|
||||
|
||||
CFLAGS+= -fpic -g
|
||||
CFLAGS+= -ffreestanding -fpic -g
|
||||
CFLAGS+= -I${.CURDIR}/../include
|
||||
CFLAGS+= -I${.CURDIR}/../include/${MACHINE_ARCH}
|
||||
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
|
||||
|
@ -11,6 +11,7 @@ SRCS+= main.c conf.c
|
||||
|
||||
# Enable BootForth
|
||||
BOOT_FORTH= yes
|
||||
CFLAGS+= -ffreestanding
|
||||
CFLAGS+= -g
|
||||
CFLAGS+= -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/ia64
|
||||
.if BOOT_FORTH
|
||||
|
@ -11,6 +11,7 @@ SRCS+= main.c conf.c
|
||||
|
||||
# Enable BootForth
|
||||
BOOT_FORTH= yes
|
||||
CFLAGS+= -ffreestanding
|
||||
CFLAGS+= -g
|
||||
CFLAGS+= -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/ia64
|
||||
.if BOOT_FORTH
|
||||
|
@ -8,7 +8,7 @@ SRCS+= probe_keyboard.c io.c disk.c sys.c
|
||||
|
||||
BINDIR= /boot
|
||||
BINMODE= 444
|
||||
CFLAGS= -elf -Os -fno-builtin -fforce-addr -fdata-sections \
|
||||
CFLAGS= -elf -Os -ffreestanding -fforce-addr -fdata-sections \
|
||||
-malign-functions=0 -malign-jumps=0 -malign-loops=0 \
|
||||
-mpreferred-stack-boundary=2 -mrtd \
|
||||
-D_KERNEL -DPC98 -DBOOTWAIT=${BOOTWAIT} -DTIMEOUT=${TIMEOUT}
|
||||
|
@ -3,7 +3,7 @@
|
||||
FILES= kgzldr.o
|
||||
SRCS= start.s boot.c inflate.c lib.c crt.s sio.s
|
||||
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
|
||||
CFLAGS= -fno-builtin
|
||||
CFLAGS= -ffreestanding
|
||||
.if ${OBJFORMAT} == aout
|
||||
CFLAGS+=-O2
|
||||
.else
|
||||
|
@ -13,6 +13,7 @@ SRCS= aout_freebsd.c biosacpi.c bioscd.c biosdisk.c biosmem.c biospnp.c \
|
||||
i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
|
||||
time.c vidconsole.c
|
||||
|
||||
CFLAGS+= -ffreestanding
|
||||
CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
|
||||
-I${.CURDIR}/../../i386/libi386 \
|
||||
-I${.CURDIR}/../../../contrib/dev/acpica \
|
||||
|
@ -10,6 +10,7 @@ INSTALLFLAGS= -b
|
||||
LOADER_AOUT_SUPPORT= yes
|
||||
.endif
|
||||
|
||||
CFLAGS+= -ffreestanding
|
||||
CFLAGS+= -DPC98
|
||||
|
||||
# architecture-specific loader code
|
||||
|
@ -11,6 +11,7 @@ INSTALLFLAGS= -b
|
||||
LOADER_DISK_SUPPORT?= yes
|
||||
LOADER_NET_SUPPORT?= yes
|
||||
|
||||
CFLAGS+= -ffreestanding
|
||||
# load address
|
||||
RELOC?= 0x6c0000
|
||||
CFLAGS+= -DRELOC=${RELOC}
|
||||
@ -48,7 +49,6 @@ CFLAGS+= -I${.CURDIR}/../../.. -I.
|
||||
|
||||
CLEANFILES+= vers.c vers.o ${BASE}.list ${BASE}.bin ${BASE}.sym ${BASE}.help
|
||||
|
||||
CFLAGS+= -Wall
|
||||
LDFLAGS= -nostdlib -static -Ttext ${RELOC}
|
||||
|
||||
# OpenFirmware standalone support library
|
||||
|
@ -11,6 +11,7 @@ INSTALLFLAGS= -b
|
||||
LOADER_DISK_SUPPORT?= yes
|
||||
LOADER_NET_SUPPORT?= yes
|
||||
|
||||
CFLAGS+= -ffreestanding
|
||||
# load address
|
||||
RELOC?= 0x6c0000
|
||||
CFLAGS+= -DRELOC=${RELOC}
|
||||
@ -48,7 +49,6 @@ CFLAGS+= -I${.CURDIR}/../../.. -I.
|
||||
|
||||
CLEANFILES+= vers.c vers.o ${BASE}.list ${BASE}.bin ${BASE}.sym ${BASE}.help
|
||||
|
||||
CFLAGS+= -Wall
|
||||
LDFLAGS= -nostdlib -static -Ttext ${RELOC}
|
||||
|
||||
# OpenFirmware standalone support library
|
||||
|
@ -9,8 +9,7 @@ BINMODE= 444
|
||||
|
||||
BOOTBLOCKBASE= 0x4000
|
||||
|
||||
CFLAGS= -W -Wall -Wno-unused -I../../ -I../../common/ -Os -ffreestanding \
|
||||
-mcmodel=medlow
|
||||
CFLAGS= -ffreestanding -mcmodel=medlow -Os -I../.. -I../../common
|
||||
|
||||
boot1.elf: _start.o boot1.o
|
||||
${LD} -N -Ttext ${BOOTBLOCKBASE} -o ${.TARGET} ${.ALLSRC}
|
||||
|
@ -45,7 +45,7 @@ CFLAGS+= -I${.CURDIR}/../../.. -I.
|
||||
|
||||
CLEANFILES+= ${PROG}.help
|
||||
|
||||
CFLAGS+= -W -Wall -ffreestanding
|
||||
CFLAGS+= -ffreestanding
|
||||
LDFLAGS= -nostdlib -static
|
||||
LDADD= ${LIBSTAND} ${LIBOFW}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user