VirtualBox

Ignore:
Timestamp:
May 6, 2009 7:23:10 PM (16 years ago)
Author:
vboxsync
Message:

linux kernel modules: prevent some superflous output during build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/linux/Makefile

    r19013 r19455  
    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   endif
    45  endif
    46 else
    47  $(warning Using BUILD_TARGET_ARCH='$(BUILD_TARGET_ARCH)' from the $(origin BUILD_TARGET_ARCH).)
     44   BUILD_TARGET_ARCH := $(BUILD_TARGET_ARCH_DEF)
     45  endif
     46 endif
     47else
     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
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