VirtualBox

儲存庫 vbox 的更動 63548


忽略:
時間撮記:
2016-8-16 下午12:37:13 (8 年 以前)
作者:
vboxsync
訊息:

Config.kmk: Use symlinks to reach NetBSD kernel includes when building
R0 code.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/Config.kmk

    r63545 r63548  
    43044304ifeq ($(KBUILD_TARGET),netbsd)
    43054305
    4306 ## The location of the NetBSD kernel headers.
    4307 VBOX_NETBSD_SRC ?= /usr/src/sys
    4308 
     4306# The location of the NetBSD sources.
     4307VBOX_NETBSD_SRC ?= /usr/src
     4308
     4309# NetBSD uses "i386" for 32-bit, "x86" for common 32- and 64-bit code.
    43094310ifeq ($(KBUILD_TARGET_ARCH),amd64)
    4310 VBOX_NETBSD_MACHINE_SRC=$(VBOX_NETBSD_SRC)/arch/amd64
    4311 else
    4312 VBOX_NETBSD_MACHINE_SRC=$(VBOX_NETBSD_SRC)/arch/i386
    4313 endif
     4311VBOX_NETBSD_TARGET_ARCH=amd64
     4312else
     4313VBOX_NETBSD_TARGET_ARCH=i386
     4314endif
     4315
     4316VBOX_NETBSD_TARGET_SRC=$(VBOX_NETBSD_SRC)/sys/arch/$(VBOX_NETBSD_TARGET_ARCH)
    43144317
    43154318TEMPLATE_VBOXR0DRV_TOOL                = $(VBOX_GCC_TOOL)
    43164319TEMPLATE_VBOXR0DRV_DEFS               += _KERNEL _MODULE
    43174320TEMPLATE_VBOXR0DRV_INCS                = \
    4318         $(VBOX_NETBSD_SRC) \
    4319         $(VBOX_NETBSD_SRC)/../common/include \
     4321        $(VBOX_NETBSD_SRC)/sys \
     4322        $(VBOX_NETBSD_SRC)/common/include \
    43204323        $(PATH_OBJ)/netbsd/include
    43214324
     
    43474350TEMPLATE_VBOXR0DRV_LDFLAGS.amd64       = -m elf_x86_64
    43484351
    4349 TEMPLATE_VBOXR0DRV_ORDERDEPS = \
    4350         $(PATH_OBJ)/netbsd/include/machine/cdefs.h \
    4351         $(PATH_OBJ)/netbsd/include/i386/cpu.h \
    4352         $(PATH_OBJ)/netbsd/include/x86/cpu.h
    4353 
    4354 $$(PATH_OBJ)/netbsd/include/machine/cdefs.h: $(VBOX_NETBSD_MACHINE_SRC)/include/cdefs.h
     4352# symlink kernel includes
     4353TEMPLATE_VBOXR0DRV_ORDERDEPS += \
     4354        $(PATH_OBJ)/netbsd/include/$(VBOX_NETBSD_TARGET_ARCH) \
     4355        $(PATH_OBJ)/netbsd/include/x86 \
     4356        $(PATH_OBJ)/netbsd/include/machine
     4357
     4358$$(PATH_OBJ)/netbsd/include/$(VBOX_NETBSD_TARGET_ARCH):
    43554359        $(QUIET)$(MKDIR) -p $(@D)
    4356         $(QUIET)cp $(VBOX_NETBSD_MACHINE_SRC)/include/*.h $(@D)/
    4357 
    4358 # XXX: uwe: the "machine" above should be a symlink to "i386" here
    4359 $$(PATH_OBJ)/netbsd/include/i386/cpu.h: $(VBOX_NETBSD_SRC)/arch/i386/include/cpu.h
     4360        $(QUIET)$(LN_SYMLINK) $(VBOX_NETBSD_TARGET_SRC)/include $@
     4361
     4362$$(PATH_OBJ)/netbsd/include/x86:
    43604363        $(QUIET)$(MKDIR) -p $(@D)
    4361         $(QUIET)cp $(VBOX_NETBSD_MACHINE_SRC)/include/*.h $(@D)/
    4362 
    4363 $$(PATH_OBJ)/netbsd/include/x86/cpu.h: $(VBOX_NETBSD_SRC)/arch/x86/include/cpu.h
     4364        $(QUIET)$(LN_SYMLINK) $(VBOX_NETBSD_SRC)/sys/arch/x86/include $@
     4365
     4366$$(PATH_OBJ)/netbsd/include/machine:
    43644367        $(QUIET)$(MKDIR) -p $(@D)
    4365         $(QUIET)cp $(VBOX_NETBSD_SRC)/arch/x86/include/*.h $(@D)/
     4368        $(QUIET)$(LN_SYMLINK) $(VBOX_NETBSD_TARGET_ARCH) $@
    43664369
    43674370endif # NetBSD
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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