VirtualBox

Changeset 21015 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Jun 29, 2009 7:30:52 AM (16 years ago)
Author:
vboxsync
Message:

Linux guest kernel modules: prevent some superflous output during build

Location:
trunk/src/VBox/Additions/linux
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/Makefile.module

    r17935 r21015  
    2626# While at it, warn about BUILD_* vars found to help with user problems.
    2727#
     28ifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),)
     29 BUILD_TARGET_ARCH_DEF := amd64
     30else
     31 BUILD_TARGET_ARCH_DEF := x86
     32endif
    2833ifneq ($(filter-out amd64 x86,$(BUILD_TARGET_ARCH)),)
    2934 $(warning Ignoring unknown BUILD_TARGET_ARCH value '$(BUILD_TARGET_ARCH)'.)
     
    3742   BUILD_TARGET_ARCH := x86
    3843  else
    39    ifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),)
    40     BUILD_TARGET_ARCH := amd64
    41    else
    42     BUILD_TARGET_ARCH := x86
    43    endif
     44   BUILD_TARGET_ARCH := $(BUILD_TARGET_ARCH_DEF)
    4445  endif
    4546 endif
    4647else
    47  $(warning Using BUILD_TARGET_ARCH='$(BUILD_TARGET_ARCH)' from the $(origin BUILD_TARGET_ARCH).)
     48 ifneq ($(BUILD_TARGET_ARCH),$(BUILD_TARGET_ARCH_DEF))
     49  $(warning Using BUILD_TARGET_ARCH='$(BUILD_TARGET_ARCH)' from the $(origin BUILD_TARGET_ARCH).)
     50 endif
    4851endif
    4952
     
    5558 BUILD_TYPE := release
    5659else
    57  $(warning Using BUILD_TYPE='$(BUILD_TYPE)' from the $(origin BUILD_TYPE).)
     60 ifneq ($(BUILD_TYPE),release)
     61  $(warning Using BUILD_TYPE='$(BUILD_TYPE)' from the $(origin BUILD_TYPE).)
     62 endif
    5863endif
    5964
  • trunk/src/VBox/Additions/linux/module/Makefile.module

    r17935 r21015  
    2424# While at it, warn about BUILD_* vars found to help with user problems.
    2525#
     26ifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),)
     27 BUILD_TARGET_ARCH_DEF := amd64
     28else
     29 BUILD_TARGET_ARCH_DEF := x86
     30endif
    2631ifneq ($(filter-out amd64 x86,$(BUILD_TARGET_ARCH)),)
    2732 $(warning Ignoring unknown BUILD_TARGET_ARCH value '$(BUILD_TARGET_ARCH)'.)
     
    3540   BUILD_TARGET_ARCH := x86
    3641  else
    37    ifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),)
    38     BUILD_TARGET_ARCH := amd64
    39    else
    40     BUILD_TARGET_ARCH := x86
    41    endif
     42   BUILD_TARGET_ARCH := $(BUILD_TARGET_ARCH_DEF)
    4243  endif
    4344 endif
    4445else
    45  $(warning Using BUILD_TARGET_ARCH='$(BUILD_TARGET_ARCH)' from the $(origin BUILD_TARGET_ARCH).)
     46 ifneq ($(BUILD_TARGET_ARCH),$(BUILD_TARGET_ARCH_DEF))
     47  $(warning Using BUILD_TARGET_ARCH='$(BUILD_TARGET_ARCH)' from the $(origin BUILD_TARGET_ARCH).)
     48 endif
    4649endif
    4750
     
    5356 BUILD_TYPE := release
    5457else
    55  $(warning Using BUILD_TYPE='$(BUILD_TYPE)' from the $(origin BUILD_TYPE).)
     58 ifneq ($(BUILD_TYPE),release)
     59  $(warning Using BUILD_TYPE='$(BUILD_TYPE)' from the $(origin BUILD_TYPE).)
     60 endif
    5661endif
    5762
  • trunk/src/VBox/Additions/linux/sharedfolders/Makefile.module

    r17935 r21015  
    2424# While at it, warn about BUILD_* vars found to help with user problems.
    2525#
     26ifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),)
     27 BUILD_TARGET_ARCH_DEF := amd64
     28else
     29 BUILD_TARGET_ARCH_DEF := x86
     30endif
    2631ifneq ($(filter-out amd64 x86,$(BUILD_TARGET_ARCH)),)
    2732 $(warning Ignoring unknown BUILD_TARGET_ARCH value '$(BUILD_TARGET_ARCH)'.)
     
    3540   BUILD_TARGET_ARCH := x86
    3641  else
    37    ifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),)
    38     BUILD_TARGET_ARCH := amd64
    39    else
    40     BUILD_TARGET_ARCH := x86
    41    endif
     42   BUILD_TARGET_ARCH := $(BUILD_TARGET_ARCH_DEF)
    4243  endif
    4344 endif
    4445else
    45  $(warning Using BUILD_TARGET_ARCH='$(BUILD_TARGET_ARCH)' from the $(origin BUILD_TARGET_ARCH).)
     46 ifneq ($(BUILD_TARGET_ARCH),$(BUILD_TARGET_ARCH_DEF))
     47  $(warning Using BUILD_TARGET_ARCH='$(BUILD_TARGET_ARCH)' from the $(origin BUILD_TARGET_ARCH).)
     48 endif
    4649endif
    4750
     
    5356 BUILD_TYPE := release
    5457else
    55  $(warning Using BUILD_TYPE='$(BUILD_TYPE)' from the $(origin BUILD_TYPE).)
     58 ifneq ($(BUILD_TYPE),release)
     59  $(warning Using BUILD_TYPE='$(BUILD_TYPE)' from the $(origin BUILD_TYPE).)
     60 endif
    5661endif
    5762
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