VirtualBox

Changeset 16008 in vbox


Ignore:
Timestamp:
Jan 17, 2009 9:52:34 PM (16 years ago)
Author:
vboxsync
Message:

VBOXR0DRV and 64-bit FreeBSD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r16003 r16008  
    22072207
    22082208ifeq ($(KBUILD_TARGET),freebsd)
    2209 # x86 FreeBSD:
     2209# x86 FreeBSD (6.2 or something):
    22102210#  cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE \
    22112211#   -nostdinc -I- -I. -I@ -I@/contrib/altq -I@/../include -I/usr/include \
     
    22192219#  ld -Bsharable -d warn-commnon -o my.ko my.kld
    22202220#
     2221# AMD64 FreeBSD (7.1):
     2222#  cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I. -I@ -I@/contrib/altq \
     2223#  -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  \
     2224#  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx \
     2225#  -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding \
     2226#  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign \
     2227#  -fformat-extensions -c /usr/src/sys/modules/my/../../dev/my/if_my.c
     2228#  ld  -d -warn-common -r -d -o if_my.ko if_my.o
     2229#  :> export_syms
     2230#  awk -f /usr/src/sys/modules/my/../../conf/kmod_syms.awk if_my.ko  export_syms | xargs -J% objcopy % if_my.ko
     2231
    22212232# Note: @ -> /usr/src/sys  and  machine -> /usr/src/sys/i386/include
    22222233
     
    22422253        -nostdinc -std=c99
    22432254TEMPLATE_VBOXR0DRV_CFLAGS.x86          = -m32 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2
    2244 TEMPLATE_VBOXR0DRV_CFLAGS.amd64        = -m64 "Port me to amd64 FreeBSD"
     2255TEMPLATE_VBOXR0DRV_CFLAGS.amd64        = -m64 --param inline-unit-growth=100 --param large-function-growth=1000 \
     2256        -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx \
     2257        -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -Wundef
    22452258TEMPLATE_VBOXR0DRV_CXXFLAGS            = -fno-exceptions -fno-rtti \
    22462259        $(VBOX_GCC_WARN) -Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) \
     
    22482261        $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_OPT) $(VBOX_GCC_FP) \
    22492262        -nostdinc
     2263TEMPLATE_VBOXR0DRV_CXXFLAGS.x86        = $(TEMPLATE_VBOXR0DRV_CFLAGS.x86)
     2264TEMPLATE_VBOXR0DRV_CXXFLAGS.amd64      = $(TEMPLATE_VBOXR0DRV_CFLAGS.amd64)
    22502265TEMPLATE_VBOXR0DRV_SYSSUFF             = .ko
    22512266TEMPLATE_VBOXR0DRV_LDFLAGS             = -d --warn-common
    22522267TEMPLATE_VBOXR0DRV_LDFLAGS.x86         = -m elf_i386_fbsd
    2253 TEMPLATE_VBOXR0DRV_LDFLAGS.amd64       = -m elf_x86_64 "Port me to amd64 FreeBSD"
     2268TEMPLATE_VBOXR0DRV_LDFLAGS.amd64       = -m elf_x86_64_fbsd
    22542269
    22552270TOOL_FREEBSDKMODLD = FreeBSD kernel module linker.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette