VirtualBox

儲存庫 vbox 的更動 16532


忽略:
時間撮記:
2009-2-5 下午05:03:04 (16 年 以前)
作者:
vboxsync
訊息:

root/Makefile.kmk: Moved the subheader.kmk include down so the BLDDIRS for the docs will work right.

檔案:
修改 1 筆資料

圖例:

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

    r16166 r16532  
    162162 ifeq ($(KBUILD_TARGET),darwin)
    163163  qt4-bin_INST = $(INST_VIRTUALBOX)Contents/
     164ifneq ($(KBUILD_TARGET_ARCH),amd64)
    164165  qt4-bin_SOURCES = \
    165166        $(VBOX_PATH_QT4)/Frameworks/QtCore.framework/Versions/4/QtCore=>Frameworks/QtCore.framework/Versions/4/QtCore \
     
    179180                 @executable_path/../Frameworks/QtNetwork.framework/Versions/4/QtNetwork \
    180181                $@
     182endif
    181183
    182184 else ifeq ($(KBUILD_TARGET),win)
     
    307309endif # !VBOX_ONLY_ADDITIONS
    308310endif # !VBOX_ONLY_DOCS
    309 
    310 
    311 include $(KBUILD_PATH)/subfooter.kmk
    312311
    313312
     
    538537                $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \
    539538                $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \
    540                 | $(call DIRDEP, $(PATH_TARGET))
     539                | $$(dir $$@)
    541540        $(RM) -f $@ [email protected] $(PATH_TARGET)/Doxyfile.Core.dep
    542541        $(CP) -f Doxyfile.Core [email protected]
     
    562561        doxygen $(PATH_TARGET)/Doxyfile.Core
    563562        $(APPEND) $(PATH_TARGET)/docs.Core
     563
     564
     565
     566#
     567# Build the additions, all of them.
     568#
     569# This is currently tailored (hardcoded) for the additions
     570# build box. Can make it pretty and configurable later.
     571#
     572# The fetching must be done in serial fashion, while the building
     573# should be more flexible wrt to -jN.
     574#
     575additions-fetch:
     576        + $(KMK) -C tools fetch
     577        + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux   BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux
     578        + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86   KBUILD_TARGET=linux   BUILD_TARGET_ARCH=x86   BUILD_TARGET=linux
     579#       + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86   KBUILD_TARGET=os2     BUILD_TARGET_ARCH=x86   BUILD_TARGET=os2
     580        + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris
     581        + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86   KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86   BUILD_TARGET=solaris
     582        + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win     BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win
     583        + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86   KBUILD_TARGET=win     BUILD_TARGET_ARCH=x86   BUILD_TARGET=win
     584
     585
     586## @todo Currently combined solaris additions building assumes that amd64 is
     587# built first. The windows amd64 additions need some x86 files, so don't change
     588# the order of the windows builds.
     589# Do not change the order of dependencies here without testing.
     590additions-build: \
     591        additions-build-win.x86 \
     592        additions-build-win.amd64 \
     593        additions-build-solaris.amd64 \
     594        additions-build-solaris.x86 \
     595        additions-build-os2.x86 \
     596        additions-build-linux.amd64 \
     597        additions-build-linux.x86
     598
     599VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
     600        KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
     601        KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
     602        VBOX_SVN_REV=$(VBOX_SVN_REV) \
     603        all packing
     604
     605VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
     606        KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
     607        KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
     608        VBOX_SVN_REV=$(VBOX_SVN_REV) \
     609        all packing
     610
     611# Automatically determine the additions build subdir name. Used for figuring
     612# out directory names inside the additions building VMs.
     613VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
     614
     615VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
     616
     617# Oh well, this gets really fancy - ms vc8 doesn't work inside ssh due to some
     618# session setup issue. So do this indirectly through psexec. The downside is
     619# that there is no direct build feedback. Also I couldn't get the share to
     620# work via psexec, so rsync over the result of the build.
     621additions-build-win.amd64:
     622ifeq ($(KBUILD_TARGET),win)
     623        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
     624else
     625        $(call MSG_L1,Building Windows/amd64 additions)
     626        rsync -av --no-owner --no-group --delete --delete-excluded --exclude .svn/ --exclude tinderclient.log . 192.168.27.5:/cygdrive/e/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
     627        $(VBOX_KMK_TIME) ssh [email protected] c:/psexec/psexec.exe \\\\\\\\addvm -u vbox -p $(WIN64PASSWORD) c:\\\\cygwin\\\\bin\\\\bash.exe -c \''PATH=/usr/bin:/bin e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64) > e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME).log 2>&1'\'; \
     628        rc=$$?; \
     629        rsync -av --delete 192.168.27.5:/cygdrive/e/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/win.amd64/ out/win.amd64; \
     630        mkdir -p out/win.amd64; \
     631        rsync -a --delete 192.168.27.5:/cygdrive/e/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME).log out/win.amd64/build.log; \
     632        cat out/win.amd64/build.log; \
     633        exit $$rc
     634endif
     635
     636additions-build-win.x86:
     637ifeq ($(KBUILD_TARGET),win)
     638        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
     639else
     640        $(call MSG_L1,Building Windows/x86 additions)
     641        rsync -av --no-owner --no-group --delete --delete-excluded --exclude .svn/ --exclude out/ --exclude tinderclient.log . 192.168.27.5:/cygdrive/e/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
     642        $(VBOX_KMK_TIME) ssh [email protected] " cd /cygdrive/e/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && PATH_OUT_BASE=Z:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86)"
     643endif
     644
     645additions-build-solaris.amd64:
     646ifeq ($(KBUILD_TARGET),solaris)
     647        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
     648else
     649        $(call MSG_L1,Building Solaris/amd64 additions)
     650        $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/vbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
     651endif
     652
     653# ASSUMES 64-bit is built already. See @todo above.
     654additions-build-solaris.x86:
     655ifeq ($(KBUILD_TARGET),solaris)
     656        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1
     657else
     658        $(call MSG_L1,Building Solaris/x86 additions)
     659        $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/vbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1"
     660endif
     661
     662additions-build-os2.x86:
     663#ifeq ($(KBUILD_TARGET),os2)
     664#       + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
     665#else
     666#       $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/vbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
     667#endif
     668
     669additions-build-linux.amd64:
     670ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
     671        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
     672else
     673        $(call MSG_L1,Building Linux/amd64 additions)
     674        $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/vbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
     675endif
     676
     677additions-build-linux.x86:
     678ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
     679        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
     680else
     681        $(call MSG_L1,Building Linux/x86 additions)
     682        $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/vbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
     683endif
     684
     685
     686additions-packing:
     687        + $(KMK) VBOX_ONLY_ADDITIONS=1 \
     688                VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
     689                VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
     690                VBOX_WITH_ADDITIONS_ISO.linux.amd64=1 \
     691                VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
     692                VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
     693                VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
     694                VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
     695                VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
     696                VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
     697                -C src/VBox/Additions \
     698                $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.iso
     699
     700
     701
     702#
     703# Generate VirtualBox-OSE-x.x.x.tar.bz2 tarballs for distribution
     704#
     705# - includes kBuild
     706# - must be executed on an OSE checkout
     707#
     708
     709# the path where to store the tarball
     710TARBALLPATH ?= $(shell cd $(PATH_ROOT)/..; pwd)
     711#TARBALLPATH ?= $(abspath $(PATH_ROOT)/..) - this should also do the trick without spawning a shell.
     712# the root directory inside the tarball
     713TARBALLROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
     714# the name of the tarball file
     715TARBALLNAME ?= VirtualBox-$(VBOX_VERSION_STRING).tar.bz2
     716snapshot:
     717        @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
     718        @if [ -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then echo; echo "Found USB stuff, refused to build OSE tarball!"; echo; exit 1; fi
     719        $(QUIET)$(MKDIR) -p $(TARBALLPATH)
     720        $(QUIET)$(RM) -f $(wildcard $(TARBALLPATH)/VirtualBox*)
     721        $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
     722        $(QUIET)tar -cjh --owner 0 --group 0 --totals \
     723            --exclude=.svn \
     724            --exclude=$(TARBALLROOT)/out \
     725            --exclude=$(TARBALLROOT)/env.sh \
     726            --exclude=$(TARBALLROOT)/configure.log \
     727            --exclude=$(TARBALLROOT)/AutoConfig.kmk \
     728            --exclude=$(TARBALLROOT)/LocalConfig.kmk \
     729            -C $(TARBALLPATH) \
     730            -f $(TARBALLPATH)/$(TARBALLNAME) \
     731            $(TARBALLROOT)
     732        $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
     733
     734
     735#
     736# Generate ALL the rules.
     737#
     738include $(KBUILD_PATH)/subfooter.kmk
    564739
    565740
     
    679854
    680855
    681 #
    682 # Build the additions, all of them.
    683 #
    684 # This is currently tailored (hardcoded) for the additions
    685 # build box. Can make it pretty and configurable later.
    686 #
    687 # The fetching must be done in serial fashion, while the building
    688 # should be more flexible wrt to -jN.
    689 #
    690 additions-fetch:
    691         + $(KMK) -C tools fetch
    692         + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux   BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux
    693         + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86   KBUILD_TARGET=linux   BUILD_TARGET_ARCH=x86   BUILD_TARGET=linux
    694 #       + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86   KBUILD_TARGET=os2     BUILD_TARGET_ARCH=x86   BUILD_TARGET=os2
    695         + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris
    696         + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86   KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86   BUILD_TARGET=solaris
    697         + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win     BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win
    698         + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86   KBUILD_TARGET=win     BUILD_TARGET_ARCH=x86   BUILD_TARGET=win
    699 
    700 
    701 ## @todo Currently combined solaris additions building assumes that amd64 is
    702 # built first. The windows amd64 additions need some x86 files, so don't change
    703 # the order of the windows builds.
    704 # Do not change the order of dependencies here without testing.
    705 additions-build: \
    706         additions-build-win.x86 \
    707         additions-build-win.amd64 \
    708         additions-build-solaris.amd64 \
    709         additions-build-solaris.x86 \
    710         additions-build-os2.x86 \
    711         additions-build-linux.amd64 \
    712         additions-build-linux.x86
    713 
    714 VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
    715         KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
    716         KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
    717         VBOX_SVN_REV=$(VBOX_SVN_REV) \
    718         all packing
    719 
    720 VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
    721         KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
    722         KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
    723         VBOX_SVN_REV=$(VBOX_SVN_REV) \
    724         all packing
    725 
    726 # Automatically determine the additions build subdir name. Used for figuring
    727 # out directory names inside the additions building VMs.
    728 VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
    729 
    730 VBOX_KMK_TIME = $(KBUILD_BIN_PATH)/kmk_time
    731 
    732 # Oh well, this gets really fancy - ms vc8 doesn't work inside ssh due to some
    733 # session setup issue. So do this indirectly through psexec. The downside is
    734 # that there is no direct build feedback. Also I couldn't get the share to
    735 # work via psexec, so rsync over the result of the build.
    736 additions-build-win.amd64:
    737 ifeq ($(KBUILD_TARGET),win)
    738         + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
    739 else
    740         $(call MSG_L1,Building Windows/amd64 additions)
    741         rsync -av --no-owner --no-group --delete --delete-excluded --exclude .svn/ --exclude tinderclient.log . 192.168.27.5:/cygdrive/e/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
    742         $(VBOX_KMK_TIME) ssh [email protected] c:/psexec/psexec.exe \\\\\\\\addvm -u vbox -p $(WIN64PASSWORD) c:\\\\cygwin\\\\bin\\\\bash.exe -c \''PATH=/usr/bin:/bin e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64) > e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME).log 2>&1'\'; \
    743         rc=$$?; \
    744         rsync -av --delete 192.168.27.5:/cygdrive/e/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/win.amd64/ out/win.amd64; \
    745         mkdir -p out/win.amd64; \
    746         rsync -a --delete 192.168.27.5:/cygdrive/e/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME).log out/win.amd64/build.log; \
    747         cat out/win.amd64/build.log; \
    748         exit $$rc
    749 endif
    750 
    751 additions-build-win.x86:
    752 ifeq ($(KBUILD_TARGET),win)
    753         + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
    754 else
    755         $(call MSG_L1,Building Windows/x86 additions)
    756         rsync -av --no-owner --no-group --delete --delete-excluded --exclude .svn/ --exclude out/ --exclude tinderclient.log . 192.168.27.5:/cygdrive/e/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
    757         $(VBOX_KMK_TIME) ssh [email protected] " cd /cygdrive/e/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && PATH_OUT_BASE=Z:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86)"
    758 endif
    759 
    760 additions-build-solaris.amd64:
    761 ifeq ($(KBUILD_TARGET),solaris)
    762         + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
    763 else
    764         $(call MSG_L1,Building Solaris/amd64 additions)
    765         $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/vbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
    766 endif
    767 
    768 # ASSUMES 64-bit is built already. See @todo above.
    769 additions-build-solaris.x86:
    770 ifeq ($(KBUILD_TARGET),solaris)
    771         + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1
    772 else
    773         $(call MSG_L1,Building Solaris/x86 additions)
    774         $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/vbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1"
    775 endif
    776 
    777 additions-build-os2.x86:
    778 #ifeq ($(KBUILD_TARGET),os2)
    779 #       + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
    780 #else
    781 #       $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/vbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
    782 #endif
    783 
    784 additions-build-linux.amd64:
    785 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
    786         + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.amd64)
    787 else
    788         $(call MSG_L1,Building Linux/amd64 additions)
    789         $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/vbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) "
    790 endif
    791 
    792 additions-build-linux.x86:
    793 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
    794         + $(VBOX_KMK_TIME) $(KMK) $(VBOX_ADDITIONS_BUILD.x86)
    795 else
    796         $(call MSG_L1,Building Linux/x86 additions)
    797         $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/vbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && ./tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) "
    798 endif
    799 
    800 
    801 additions-packing:
    802         + $(KMK) VBOX_ONLY_ADDITIONS=1 \
    803                 VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
    804                 VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
    805                 VBOX_WITH_ADDITIONS_ISO.linux.amd64=1 \
    806                 VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
    807                 VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
    808                 VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
    809                 VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
    810                 VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
    811                 VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
    812                 -C src/VBox/Additions \
    813                 $(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.iso
    814 
    815 
    816856
    817857#
     
    827867
    828868
    829 
    830 
    831 #
    832 # Generate VirtualBox-OSE-x.x.x.tar.bz2 tarballs for distribution
    833 #
    834 # - includes kBuild
    835 # - must be executed on an OSE checkout
    836 #
    837 
    838 # the path where to store the tarball
    839 TARBALLPATH ?= $(shell cd $(PATH_ROOT)/..; pwd)
    840 #TARBALLPATH ?= $(abspath $(PATH_ROOT)/..) - this should also do the trick without spawning a shell.
    841 # the root directory inside the tarball
    842 TARBALLROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
    843 # the name of the tarball file
    844 TARBALLNAME ?= VirtualBox-$(VBOX_VERSION_STRING).tar.bz2
    845 snapshot:
    846         @$(call MSG_L1,Creating tarball $(TARBALLPATH)/$(TARBALLNAME))
    847         @if [ -d "$(PATH_ROOT)/src/VBox/Devices/USB" ]; then echo; echo "Found USB stuff, refused to build OSE tarball!"; echo; exit 1; fi
    848         $(QUIET)$(MKDIR) -p $(TARBALLPATH)
    849         $(QUIET)$(RM) -f $(wildcard $(TARBALLPATH)/VirtualBox*)
    850         $(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(TARBALLPATH)/$(TARBALLROOT)
    851         $(QUIET)tar -cjh --owner 0 --group 0 --totals \
    852             --exclude=.svn \
    853             --exclude=$(TARBALLROOT)/out \
    854             --exclude=$(TARBALLROOT)/env.sh \
    855             --exclude=$(TARBALLROOT)/configure.log \
    856             --exclude=$(TARBALLROOT)/AutoConfig.kmk \
    857             --exclude=$(TARBALLROOT)/LocalConfig.kmk \
    858             -C $(TARBALLPATH) \
    859             -f $(TARBALLPATH)/$(TARBALLNAME) \
    860             $(TARBALLROOT)
    861         $(QUIET)$(RM) $(TARBALLPATH)/$(TARBALLROOT)
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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