VirtualBox

Changeset 2946 in vbox for trunk


Ignore:
Timestamp:
May 30, 2007 9:26:06 PM (18 years ago)
Author:
vboxsync
Message:

hacking remote additions build...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/Makefile.kmk

    r2943 r2946  
    22## @file
    33# Top-level makefile for the VirtualBox Guest Additions.
     4#
     5# This makefile and all it's sub-makefiles are involved in remote
     6# building of additions that cannot be build locally. Typically
     7# tools/env.sh kmk -C src/VBox/Additions build-somehost-additions
     8# is send as a command and the source tree is accessed using an
     9# SMB mount.
     10#
     11# When doing these operations BUILD_TARGET remains the same (not
     12# yet true for linux), and it's therefore important that
     13# Config.kmk and all the involved (sub-)makefiles doesn't make
     14# assumptions about BUILD_TARGET being the same as the additions
     15# target.
    416#
    517
     
    2335include $(PATH_KBUILD)/subheader.kmk
    2436
     37#
     38# Make some indicator adjustments to keep things simple in these makefiles.
     39#
     40ifdef VBOX_ADDITIONS_LINUX_ONLY
     41 VBOX_ADDITIONS_XYZ_ONLY = 1
     42 VBOX_WITH_LINUX_ADDITIONS = 1
     43 VBOX_REMOTE_LINUX_ADDITIONS_BUILD =
     44 VBOX_WITH_WIN32_ADDITIONS =
     45else ifdef VBOX_ADDITIONS_WIN32_ONLY
     46 VBOX_ADDITIONS_XYZ_ONLY = 1
     47 VBOX_WITH_WIN32_ADDITIONS = 1
     48 VBOX_REMOTE_WIN32_ADDITIONS_BUILD =
     49 VBOX_WITH_LINUX_ADDITIONS =
     50endif
     51
    2552# Include sub-makefiles.
    2653include $(PATH_SUB_CURRENT)/common/Makefile.kmk
    2754ifdef VBOX_WITH_WIN32_ADDITIONS
    28  ifndef VBOX_REMOTE_BUILD_WIN32_ADDITIONS
     55 ifndef VBOX_REMOTE_WIN32_ADDITIONS_BUILD
    2956  include $(PATH_SUB_CURRENT)/WINNT/Makefile.kmk
    3057 endif
     
    3259
    3360ifdef VBOX_WITH_LINUX_ADDITIONS
    34 SUBDIRS      += linux
    35 LINUXINSTALLER = $(PATH_BIN)/additions/VBoxLinuxAdditions.run
     61 SUBDIRS      += linux
     62 LINUXINSTALLER = $(PATH_BIN)/additions/VBoxLinuxAdditions.run
    3663endif
    37 ifneq ($(VBOX_WITH_WIN32_ADDITIONS)$(VBOX_WITH_LINUX_ADDITIONS),)
    38 PACKING += $(PATH_BIN)/additions/VBoxGuestAdditions.iso
     64LINUXINSTALLER_CROSS = $(PATH_ROOT)/out/linux.x86/$(BUILD_TYPE)/bin/additions/VBoxLinuxAdditions.run
     65ifdef VBOX_ADDITIONS_LINUX_CROSS
     66 OTHER_CLEAN   += $(LINUXINSTALLER_CROSS)
     67 LINUXINSTALLER = $(LINUXINSTALLER_CROSS)
    3968endif
    4069
    41 LINUXINSTALLER_CROSS = $(PATH_ROOT)/out/linux.x86/$(BUILD_TYPE)/bin/additions/VBoxLinuxAdditions.run
    42 # If the build (Windows host only, problem doesn't exist for Linux) should
    43 # include Linux additions, set VBOX_ADDITIONS_LINUX_CROSS. This causes the
    44 # Linux additions to be built via a ssh session (to the host specified in
    45 # VBOX_ADDITIONS_LINUX_CROSS_HOST, usually set in LocalConfig.kmk. Needs
    46 # eventually be generalized once more additions platforms are supported.
    47 # This host has the Windows build box tree mounted, in order to make 100% sure
    48 # that a complete build is created from a single consistent revision.
    49 ifdef VBOX_ADDITIONS_LINUX_CROSS
    50 OTHER_CLEAN   += $(LINUXINSTALLER_CROSS)
    51 LINUXINSTALLER = $(LINUXINSTALLER_CROSS)
     70# The packing target rule, but only if we're on the local build box.
     71ifndef VBOX_ADDITIONS_XYZ_ONLY
     72 ifneq ($(VBOX_WITH_WIN32_ADDITIONS)$(VBOX_WITH_LINUX_ADDITIONS),)
     73  PACKING += $(PATH_BIN)/additions/VBoxGuestAdditions.iso
     74 endif
    5275endif
    53 
    5476
    5577include $(PATH_KBUILD)/subfooter.kmk
     
    110132# Remote building.
    111133#
    112 ifdef VBOX_REMOTE_BUILD_WIN32_ADDITIONS
     134ifdef VBOX_REMOTE_WIN32_ADDITIONS_BUILD
    113135OTHER_CLEAN += $(PATH_TARGET)/ts-remote-build-win32-additions
    114136$(GUESTADDITIONS_WIN32_DEPS): $(PATH_TARGET)/ts-remote-build-win32-additions
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