VirtualBox

Ignore:
Timestamp:
Jul 26, 2011 1:20:51 PM (13 years ago)
Author:
vboxsync
Message:

kBuild,HostDrivers: Consolidate install targets using EXEC_SOURCES. Some cleanup, esp VBoxPci ofc.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/VBox/HostDrivers/Support/Makefile.kmk

    r38082 r38183  
    55
    66#
    7 # Copyright (C) 2006-2010 Oracle Corporation
     7# Copyright (C) 2006-2011 Oracle Corporation
    88#
    99# This file is part of VirtualBox Open Source Edition (OSE), as
     
    5151  SYSMODS.solaris += vboxdrv
    5252 endif
    53  INSTALLS.linux   += vboxdrv-mod vboxdrv-sh vboxdrv-dkms
    54  INSTALLS.freebsd += vboxdrv-mod vboxdrv-sh
     53 INSTALLS.linux   += vboxdrv-mod
     54 INSTALLS.freebsd += vboxdrv-mod
    5555
    5656 #
     
    185185endif
    186186ifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION
    187 VBoxDrv_DEFS         += VBOX_WITH_VMMR0_DISABLE_PREEMPTION
     187 VBoxDrv_DEFS        += VBOX_WITH_VMMR0_DISABLE_PREEMPTION
    188188endif
    189189VBoxDrv_SDKS          = W2K3DDK WINPSDKINCS
     
    240240vboxdrv_DEFS          = KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) MODULE IN_RT_R0 IN_SUP_R0 CONFIG_VBOXDRV_AS_MISC
    241241ifdef VBOX_LINUX_VERSION_2_4
    242 vboxdrv_DEFS         += EXPORT_SYMTAB
     242 vboxdrv_DEFS        += EXPORT_SYMTAB
    243243endif
    244244vboxdrv_INCS         := \
     
    252252        SUPDrvSem.c
    253253ifndef VBOX_LINUX_VERSION_2_4
    254 vboxdrv_SOURCES      += \
    255         $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).mod.c
     254 vboxdrv_SOURCES     += \
     255        $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).mod.c
    256256endif
    257257
     
    261261#
    262262vboxdrv-mod_INST    = bin/src/vboxdrv/
    263 vboxdrv-mod_MODE    = a+r,u+w
    264 vboxdrv-mod_SOURCES = $(subst ",,$(FILES_VBOXDRV_NOBIN)) #"
    265 vboxdrv-mod_SOURCES += \
     263vboxdrv-mod_SOURCES = \
     264        $(subst $(DQUOTE),,$(FILES_VBOXDRV_NOBIN)) \
    266265        $(vboxdrv-mod_0_OUTDIR)/Makefile
     266vboxdrv-mod_EXEC_SOURCES  = \
     267        $(subst $(DQUOTE),,$(FILES_VBOXDRV_BIN)) \
     268        $(vboxdrv-mod_0_OUTDIR)/build_in_tmp \
     269        $(PATH_ROOT)/src/VBox/HostDrivers/linux/do_Module.symvers
    267270vboxdrv-mod_CLEAN   = \
    268         $(vboxdrv-mod_0_OUTDIR)/Makefile
    269 
    270 vboxdrv-sh_INST     = bin/src/vboxdrv/
    271 vboxdrv-sh_MODE     = a+rx,u+w
    272 vboxdrv-sh_SOURCES  = $(subst ",,$(FILES_VBOXDRV_BIN)) #"
    273 vboxdrv-sh_SOURCES += \
    274         $(vboxdrv-sh_0_OUTDIR)/build_in_tmp \
    275         $(PATH_ROOT)/src/VBox/HostDrivers/linux/do_Module.symvers
    276 vboxdrv-sh_CLEAN    = \
    277         $(PATH_TARGET)/vboxdrv-sh-1.dep \
    278         $(vboxdrv-sh_0_OUTDIR)/build_in_tmp
     271        $(vboxdrv-mod_0_OUTDIR)/Makefile \
     272        $(PATH_TARGET)/vboxdrv-mod-1.dep \
     273        $(vboxdrv-mod_0_OUTDIR)/build_in_tmp
    279274
    280275# Scripts needed for building the kernel modules
    281276
    282 $$(vboxdrv-sh_0_OUTDIR)/build_in_tmp: \
     277$$(vboxdrv-mod_0_OUTDIR)/build_in_tmp: \
    283278                $(PATH_ROOT)/src/VBox/HostDrivers/linux/build_in_tmp \
    284279                $(VBOX_VERSION_STAMP) \
     
    291286        $(QUIET)chmod 0755 $@
    292287
    293 includedep $(PATH_TARGET)/vboxdrv-sh-1.dep
     288includedep $(PATH_TARGET)/vboxdrv-mod-1.dep
    294289$$(vboxdrv-mod_0_OUTDIR)/Makefile: \
    295290                $(PATH_SUB_CURRENT)/linux/Makefile \
     
    302297        $(QUIET)$(CP) -f $< $@
    303298 endif
    304         %$(QUIET2)$(RM) -f -- $(PATH_TARGET)/vboxdrv-sh-1.dep
    305         %$(QUIET2)$(APPEND) '$(PATH_TARGET)/vboxdrv-sh-1.dep' 'Support/linux/Makefile_VBOX_HARDENED=$(VBOX_WITH_HARDENING)'
     299        %$(QUIET2)$(APPEND) -t '$(PATH_TARGET)/vboxdrv-mod-1.dep' 'Support/linux/Makefile_VBOX_HARDENED=$(VBOX_WITH_HARDENING)'
    306300
    307301endif # real linux
     
    360354# Common manual loader script.
    361355INSTALLS += Scripts
    362 Scripts_INST     = $(INST_DIST)
    363 Scripts_SOURCES  = \
     356Scripts_INST = $(INST_DIST)
     357Scripts_EXEC_SOURCES  = \
    364358        darwin/load.sh
    365359
     
    417411#
    418412vboxdrv-mod_INST    = bin/src/vboxdrv/
    419 vboxdrv-mod_MODE    = a+r,u+w
    420 vboxdrv-mod_SOURCES = $(subst ",,$(FILES_VBOXDRV_NOBIN)) #"
    421 vboxdrv-mod_SOURCES += \
     413vboxdrv-mod_SOURCES = \
     414        $(subst $(DQUOTE),,$(FILES_VBOXDRV_NOBIN)) \
    422415        $(vboxdrv-mod_0_OUTDIR)/Makefile
    423416vboxdrv-mod_CLEAN   = \
     
    429422                | $$(dir $$@)
    430423        $(call MSG_TOOL,Creating,,$@)
     424        $(QUIET)$(RM) -f -- $@
    431425 ifndef VBOX_WITH_HARDENING
    432426        $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
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