VirtualBox

Changeset 34482 in vbox


Ignore:
Timestamp:
Nov 29, 2010 5:31:31 PM (14 years ago)
Author:
vboxsync
Message:

/Makefile.kmk: Extension pack build box.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.kmk

    r34113 r34482  
    2323#
    2424ifdef VBOX_SINGLE_MAKEFILE
    25  if defined(VBOX_WITH_DOCS) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_TESTSUITE)
     25 if defined(VBOX_WITH_DOCS) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_EXTPACKS) && !defined(VBOX_ONLY_TESTSUITE)
    2626  include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
    2727 endif
    2828 include $(PATH_SUB_CURRENT)/src/Makefile.kmk
    2929else
    30  if defined(VBOX_WITH_DOCS) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_TESTSUITE)
     30 if defined(VBOX_WITH_DOCS) && !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_EXTPACKS) && !defined(VBOX_ONLY_TESTSUITE)
    3131  SUBDIRS = doc/manual
    3232 endif
     
    5050
    5151
    52 if !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_TESTSUITE) && !defined(VBOX_ONLY_DOCS) # -> line 412b ;-)
     52if  !defined(VBOX_ONLY_ADDITIONS) \
     53 && !defined(VBOX_ONLY_DOCS) \
     54 && !defined(VBOX_ONLY_EXTPACKS) \
     55 && !defined(VBOX_ONLY_TESTSUITE) # -> line 418b ;-)
    5356
    5457ifndef VBOX_OSE
     
    413416endif
    414417
    415 endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_TESTSUITE && !VBOX_ONLY_DOCS
     418endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_TESTSUITE
    416419
    417420
     
    845848
    846849#
     850# Build the extension packs, all of them.
     851#
     852# This is tailored (hardcoded) for the extension pack build box.
     853#
     854# The fetching must be done in serial fashion, while the building should be
     855# more flexible wrt to -jN.
     856#
     857extpacks-fetch:
     858        + $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
     859#       + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin  BUILD_TARGET_ARCH=amd64 BUILD_TARGET=darwin   VBOX_ONLY_EXTPACKS=1
     860#       + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86   KBUILD_TARGET=darwin  BUILD_TARGET_ARCH=x86   BUILD_TARGET=darwin   VBOX_ONLY_EXTPACKS=1
     861#       + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=amd64 BUILD_TARGET=freebsd  VBOX_ONLY_EXTPACKS=1
     862#       + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86   KBUILD_TARGET=freebsd BUILD_TARGET_ARCH=x86   BUILD_TARGET=freebsd  VBOX_ONLY_EXTPACKS=1
     863        + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux   BUILD_TARGET_ARCH=amd64 BUILD_TARGET=linux    VBOX_ONLY_EXTPACKS=1
     864        + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86   KBUILD_TARGET=linux   BUILD_TARGET_ARCH=x86   BUILD_TARGET=linux    VBOX_ONLY_EXTPACKS=1
     865#       + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86   KBUILD_TARGET=os2     BUILD_TARGET_ARCH=x86   BUILD_TARGET=os2      VBOX_ONLY_EXTPACKS=1
     866        + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris BUILD_TARGET_ARCH=amd64 BUILD_TARGET=solaris  VBOX_ONLY_EXTPACKS=1
     867        + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86   KBUILD_TARGET=solaris BUILD_TARGET_ARCH=x86   BUILD_TARGET=solaris  VBOX_ONLY_EXTPACKS=1
     868        + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win     BUILD_TARGET_ARCH=amd64 BUILD_TARGET=win      VBOX_ONLY_EXTPACKS=1
     869        + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86   KBUILD_TARGET=win     BUILD_TARGET_ARCH=x86   BUILD_TARGET=win      VBOX_ONLY_EXTPACKS=1
     870
     871
     872extpacks-build: \
     873        extpacks-build-solaris.amd64 \
     874        extpacks-build-solaris.x86 \
     875        extpacks-build-linux.x86 \
     876        extpacks-build-linux.amd64 \
     877        extpacks-build-win.x86 \
     878        extpacks-build-win.amd64
     879#       extpacks-build-darwin.x86
     880#       extpacks-build-darwin.amd64
     881#       extpacks-build-freebsd.x86
     882#       extpacks-build-freebsd.amd64
     883#       extpacks-build-os2.x86
     884
     885VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 \
     886        KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
     887        KBUILD_TARGET_ARCH=amd64 BUILD_TARGET_ARCH=amd64 \
     888        VBOX_SVN_REV=$(VBOX_SVN_REV)
     889
     890VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 \
     891        KBUILD_TYPE=$(KBUILD_TYPE) BUILD_TYPE=$(KBUILD_TYPE) \
     892        KBUILD_TARGET_ARCH=x86 BUILD_TARGET_ARCH=x86 \
     893        VBOX_SVN_REV=$(VBOX_SVN_REV)
     894
     895# Automatically determine the extpack build subdir name. Used for figuring out
     896# directory names inside the extension pack building VMs.
     897VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
     898
     899# When building in parallel on a Windows host, make sure we finish the host
     900# bit before kicking off any UNIX guest or we'll run into file sharing issues.
     901ifeq ($(KBUILD_TARGET),win)
     902VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
     903else
     904VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
     905endif
     906
     907extpacks-build-win.amd64:
     908ifeq ($(KBUILD_TARGET),win)
     909        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
     910else
     911        $(call MSG_L1,Building Windows/amd64 extension packs)
     912        $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
     913endif
     914
     915extpacks-build-win.x86:
     916ifeq ($(KBUILD_TARGET),win)
     917        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
     918        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) packing
     919else
     920        $(call MSG_L1,Building Windows/x86 extension packs)
     921        $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.x86) all"
     922endif
     923
     924ifeq ($(KBUILD_TARGET),solaris)
     925extpacks-build-solaris.amd64:
     926        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
     927
     928extpacks-build-solaris.x86: extpacks-build-solaris.amd64
     929        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
     930
     931else
     932# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
     933extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
     934        $(VBOX_KMK_TIME) rsync -a --delete --delete-excluded --exclude .svn --exclude FetchDir --exclude tinderclient.log --exclude win.amd64 --exclude win.x86 . 192.168.27.4:/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
     935
     936extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
     937        $(call MSG_L1,Building Solaris/amd64 extension packs)
     938        $(VBOX_KMK_TIME) ssh [email protected] " echo $@/amd64 && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
     939        $(call MSG_L1,Building Solaris/x86 extension packs)
     940        $(VBOX_KMK_TIME) ssh [email protected] " echo $@/x86   && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
     941
     942extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
     943        $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
     944        $(VBOX_KMK_TIME) rsync -a --delete 192.168.27.4:/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
     945
     946.NOTPARALLEL: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm
     947.PHONY:       extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
     948
     949extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
     950extpacks-build-solaris.x86: extpacks-build-solaris.rsync-out-of-vm
     951endif
     952
     953extpacks-build-os2.x86:
     954#ifeq ($(KBUILD_TARGET),os2)
     955#       + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
     956#else
     957#       $(VBOX_KMK_TIME) ssh [email protected] " cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) "
     958#endif
     959
     960extpacks-build-linux.amd64:   $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
     961ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64)
     962        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
     963else
     964        $(call MSG_L1,Building Linux/amd64 extension packs)
     965        $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
     966endif
     967
     968extpacks-build-linux.x86:   $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
     969ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86)
     970        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
     971else
     972        $(call MSG_L1,Building Linux/x86 extension packs)
     973        $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
     974endif
     975
     976extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
     977ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
     978        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
     979else
     980        $(call MSG_L1,Building FreeBSD/amd64 extension packs)
     981        $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
     982endif
     983
     984extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
     985ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
     986        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
     987else
     988        $(call MSG_L1,Building FreeBSD/x86 extension packs)
     989        $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
     990endif
     991
     992extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
     993ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
     994        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
     995else
     996        $(call MSG_L1,Building Darwin/amd64 extension packs)
     997        $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all"
     998endif
     999
     1000extpacks-build-darwin.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
     1001ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
     1002        + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
     1003else
     1004        $(call MSG_L1,Building Darwin/x86 extension packs)
     1005        $(VBOX_KMK_TIME) ssh [email protected] " echo $@ && cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all"
     1006endif
     1007
     1008
     1009VBOX_WITH_EXTPACK_OS_ARCHS ?= linux.amd64 linux.x86 solaris.amd64 solaris.x86 win.amd64 win.x86
     1010# +++  darwin.amd64 darwin.x86 freebsd.amd64 freebsd.x86 os2.x86
     1011extpacks-packing:
     1012        + $(KMK) VBOX_ONLY_EXTPACKS=1 packing
     1013
     1014.PHONY: \
     1015        extpacks-build-win.x86 \
     1016        extpacks-build-win.amd64 \
     1017        extpacks-build-solaris.amd64 \
     1018        extpacks-build-solaris.x86 \
     1019        extpacks-build-os2.x86 \
     1020        extpacks-build-linux.amd64 \
     1021        extpacks-build-linux.x86 \
     1022        extpacks-build-freebsd.amd64 \
     1023        extpacks-build-freebsd.x86 \
     1024        extpacks-build-darwin.amd64 \
     1025        extpacks-build-darwin.x86 \
     1026        extpacks-packing
     1027
     1028
     1029#
    8471030# Build the test suite, all of it.
    8481031#
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