1 | # $Id: Makefile.kmk 2707 2007-05-18 12:53:00Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level makefile for the VirtualBox Guest Additions.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006 InnoTek Systemberatung GmbH
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License as published by the Free Software Foundation,
|
---|
13 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
14 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
15 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 | # If you received this file as part of a commercial VirtualBox
|
---|
18 | # distribution, then only the terms of your commercial VirtualBox
|
---|
19 | # license agreement apply instead of the previous paragraph.
|
---|
20 | #
|
---|
21 |
|
---|
22 | DEPTH = ../../..
|
---|
23 | include $(PATH_KBUILD)/subheader.kmk
|
---|
24 |
|
---|
25 | # Include sub-makefiles.
|
---|
26 | include $(PATH_SUB_CURRENT)/common/Makefile.kmk
|
---|
27 | ifdef VBOX_WITH_WIN32_ADDITIONS
|
---|
28 | include $(PATH_SUB_CURRENT)/WINNT/Makefile.kmk
|
---|
29 | endif
|
---|
30 |
|
---|
31 | ifdef VBOX_WITH_LINUX_ADDITIONS
|
---|
32 | SUBDIRS += linux
|
---|
33 | LINUXINSTALLER = $(PATH_BIN)/additions/VBoxLinuxAdditions.run
|
---|
34 | endif
|
---|
35 | ifneq ($(VBOX_WITH_WIN32_ADDITIONS)$(VBOX_WITH_LINUX_ADDITIONS),)
|
---|
36 | PACKING += $(PATH_BIN)/additions/VBoxGuestAdditions.iso
|
---|
37 | endif
|
---|
38 |
|
---|
39 | LINUXINSTALLER_CROSS = $(PATH_ROOT)/out/linux.x86/$(BUILD_TYPE)/bin/additions/VBoxLinuxAdditions.run
|
---|
40 | # If the build (Windows host only, problem doesn't exist for Linux) should
|
---|
41 | # include Linux additions, set VBOX_ADDITIONS_LINUX_CROSS. This causes the
|
---|
42 | # Linux additions to be built via a ssh session (to the host specified in
|
---|
43 | # VBOX_ADDITIONS_LINUX_CROSS_HOST, usually set in LocalConfig.kmk. Needs
|
---|
44 | # eventually be generalized once more additions platforms are supported.
|
---|
45 | # This host has the Windows build box tree mounted, in order to make 100% sure
|
---|
46 | # that a complete build is created from a single consistent revision.
|
---|
47 | ifdef VBOX_ADDITIONS_LINUX_CROSS
|
---|
48 | OTHER_CLEAN += $(LINUXINSTALLER_CROSS)
|
---|
49 | LINUXINSTALLER = $(LINUXINSTALLER_CROSS)
|
---|
50 | endif
|
---|
51 |
|
---|
52 |
|
---|
53 | include $(PATH_KBUILD)/subfooter.kmk
|
---|
54 |
|
---|
55 |
|
---|
56 | ifdef VBOX_WITH_WIN32_ADDITIONS
|
---|
57 | GUESTADDITIONS_WIN32_DEPS = $(PATH_BIN)/additions/VBoxGuest.sys \
|
---|
58 | ./WINNT/VBoxGuest/VBoxGuest.inf \
|
---|
59 | $(PATH_BIN)/additions/VBoxService.exe \
|
---|
60 | $(PATH_BIN)/additions/VBoxControl.exe \
|
---|
61 | $(PATH_BIN)/additions/VBCoInst.dll \
|
---|
62 | $(PATH_BIN)/additions/VBoxMouse.sys \
|
---|
63 | ./WINNT/MouseFilter/VBoxMouse.inf \
|
---|
64 | $(PATH_BIN)/additions/VBoxVideo.sys \
|
---|
65 | ./WINNT/Graphics/Miniport/VBoxVideo.inf \
|
---|
66 | $(PATH_BIN)/additions/VBoxDisp.dll \
|
---|
67 | $(PATH_BIN)/additions/VBoxGINA.dll \
|
---|
68 | $(PATH_BIN)/additions/VBoxGuestAdditions.exe \
|
---|
69 | ./WINNT/Installer/AUTORUN.INF \
|
---|
70 | ./WINNT/Network/AMD/netamd.inf \
|
---|
71 | ./WINNT/Network/AMD/pcntpci5.cat \
|
---|
72 | ./WINNT/Network/AMD/PCNTPCI5.sys
|
---|
73 | GUESTADDITIONS_WIN32_FILESPEC = driver/VBoxGuest/VBoxGuest.sys=$(PATH_BIN)/additions/VBoxGuest.sys \
|
---|
74 | driver/VBoxGuest/VBoxGuest.inf=./WINNT/VBoxGuest/VBoxGuest.inf \
|
---|
75 | driver/VBoxGuest/VBoxService.exe=$(PATH_BIN)/additions/VBoxService.exe \
|
---|
76 | driver/VBoxGuest/VBoxControl.exe=$(PATH_BIN)/additions/VBoxControl.exe \
|
---|
77 | driver/VBoxGuest/VBCoInst.dll=$(PATH_BIN)/additions/VBCoInst.dll \
|
---|
78 | driver/VBoxGuest/VBoxMouse.sys=$(PATH_BIN)/additions/VBoxMouse.sys \
|
---|
79 | driver/VBoxGuest/VBoxMouse.inf=./WINNT/MouseFilter/VBoxMouse.inf \
|
---|
80 | driver/VBoxVideo/VBoxVideo.sys=$(PATH_BIN)/additions/VBoxVideo.sys \
|
---|
81 | driver/VBoxVideo/VBoxVideo.inf=./WINNT/Graphics/Miniport/VBoxVideo.inf \
|
---|
82 | driver/VBoxVideo/VBoxDisp.dll=$(PATH_BIN)/additions/VBoxDisp.dll \
|
---|
83 | gina/VBoxGINA.dll=$(PATH_BIN)/additions/VBoxGINA.dll \
|
---|
84 | AMD_PCnet/netamd.inf=./WINNT/Network/AMD/netamd.inf \
|
---|
85 | AMD_PCnet/pcntpci5.cat=./WINNT/Network/AMD/pcntpci5.cat \
|
---|
86 | AMD_PCnet/PCNTPCI5.sys=./WINNT/Network/AMD/PCNTPCI5.sys \
|
---|
87 | VBoxGuestAdditions.exe=$(PATH_BIN)/additions/VBoxGuestAdditions.exe \
|
---|
88 | AUTORUN.INF=./WINNT/Installer/AUTORUN.INF
|
---|
89 | endif
|
---|
90 |
|
---|
91 | ifdef LINUXINSTALLER
|
---|
92 | GUESTADDITIONS_LINUX_DEPS = $(LINUXINSTALLER)
|
---|
93 | GUESTADDITIONS_LINUX_FILESPEC = VBoxLinuxAdditions.run=$(LINUXINSTALLER)
|
---|
94 | endif
|
---|
95 |
|
---|
96 | #
|
---|
97 | # Build the Guest Additions ISO image.
|
---|
98 | #
|
---|
99 | $(PATH_BIN)/additions/VBoxGuestAdditions.iso: \
|
---|
100 | $(GUESTADDITIONS_WIN32_DEPS) $(GUESTADDITIONS_LINUX_DEPS) \
|
---|
101 | Makefile.kmk
|
---|
102 | $(call MSG_TOOL,mkisofs,,$@)
|
---|
103 | $(QUIET)$(VBOX_MKISOFS) -rational-rock -joliet -iso-level 4 -volid "VBOXADDITIONS" -l -graft-points -o $@ \
|
---|
104 | $(GUESTADDITIONS_WIN32_FILESPEC) $(GUESTADDITIONS_LINUX_FILESPEC)
|
---|
105 |
|
---|
106 | # build the Linux installer on a remote machine
|
---|
107 | $(LINUXINSTALLER_CROSS):
|
---|
108 | ssh vbox@$(VBOX_ADDITIONS_LINUX_CROSS_HOST) "./enter-rhel3-jail /mnt/tinderwin_vbox/w32-rel/tools/env.sh --no-wine kmk -C src/VBox/Runtime BUILD_TYPE=release VBOX_ADDITIONS_LINUX_ONLY=1"
|
---|
109 | ssh vbox@$(VBOX_ADDITIONS_LINUX_CROSS_HOST) "./enter-rhel3-jail /mnt/tinderwin_vbox/w32-rel/tools/env.sh --no-wine kmk -C src/VBox/Additions/common BUILD_TYPE=release VBOX_ADDITIONS_LINUX_ONLY=1"
|
---|
110 | ssh vbox@$(VBOX_ADDITIONS_LINUX_CROSS_HOST) "./enter-rhel3-jail /mnt/tinderwin_vbox/w32-rel/tools/env.sh --no-wine kmk -C src/VBox/Additions/linux BUILD_TYPE=release all packing"
|
---|