Changeset 34482 in vbox
- Timestamp:
- Nov 29, 2010 5:31:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.kmk
r34113 r34482 23 23 # 24 24 ifdef 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) 26 26 include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk 27 27 endif 28 28 include $(PATH_SUB_CURRENT)/src/Makefile.kmk 29 29 else 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) 31 31 SUBDIRS = doc/manual 32 32 endif … … 50 50 51 51 52 if !defined(VBOX_ONLY_ADDITIONS) && !defined(VBOX_ONLY_TESTSUITE) && !defined(VBOX_ONLY_DOCS) # -> line 412b ;-) 52 if !defined(VBOX_ONLY_ADDITIONS) \ 53 && !defined(VBOX_ONLY_DOCS) \ 54 && !defined(VBOX_ONLY_EXTPACKS) \ 55 && !defined(VBOX_ONLY_TESTSUITE) # -> line 418b ;-) 53 56 54 57 ifndef VBOX_OSE … … 413 416 endif 414 417 415 endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_ TESTSUITE && !VBOX_ONLY_DOCS418 endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_TESTSUITE 416 419 417 420 … … 845 848 846 849 # 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 # 857 extpacks-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 872 extpacks-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 885 VBOX_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 890 VBOX_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. 897 VBOX_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. 901 ifeq ($(KBUILD_TARGET),win) 902 VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64 903 else 904 VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = 905 endif 906 907 extpacks-build-win.amd64: 908 ifeq ($(KBUILD_TARGET),win) 909 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK) 910 else 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" 913 endif 914 915 extpacks-build-win.x86: 916 ifeq ($(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 919 else 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" 922 endif 923 924 ifeq ($(KBUILD_TARGET),solaris) 925 extpacks-build-solaris.amd64: 926 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK) 927 928 extpacks-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 931 else 932 # Serialize 32-bit and 64-bit ASSUMING the same VM builds both. 933 extpacks-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 936 extpacks-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 942 extpacks-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 949 extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm 950 extpacks-build-solaris.x86: extpacks-build-solaris.rsync-out-of-vm 951 endif 952 953 extpacks-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 960 extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST) 961 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.amd64) 962 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK) 963 else 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" 966 endif 967 968 extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST) 969 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),linux.x86) 970 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK) 971 else 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" 974 endif 975 976 extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST) 977 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64) 978 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK) 979 else 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" 982 endif 983 984 extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST) 985 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86) 986 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK) 987 else 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" 990 endif 991 992 extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST) 993 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64) 994 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK) 995 else 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" 998 endif 999 1000 extpacks-build-darwin.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST) 1001 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86) 1002 + $(VBOX_KMK_TIME) $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_BUILD_TWEAK) 1003 else 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" 1006 endif 1007 1008 1009 VBOX_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 1011 extpacks-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 # 847 1030 # Build the test suite, all of it. 848 1031 #
Note:
See TracChangeset
for help on using the changeset viewer.