Ignore:
Timestamp:
May 29, 2007, 10:00:08 PM (18 years ago)
Author:
bird
Message:

logical order. use test. Made the CPU defaults consistent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r992 r994  
    177177
    178178ifeq ($(strip $(BUILD_PLATFORM_CPU)),)
    179  $(error kBuild: The BUILD_PLATFORM_CPU value is missing (should be set by kmk)!)
    180 endif
    181 ifneq (.$(words $(BUILD_PLATFORM_CPU)).$(BUILD_PLATFORM_CPU).,.1.$(strip $(BUILD_PLATFORM_CPU)).)
    182  $(error kBuild: The BUILD_PLATFORM_CPU value '$(BUILD_PLATFORM_CPU)' contains spaces/tabs!)
    183 endif
    184 ifneq ($(filter $(BUILD_PLATFORM_CPU), $(KBUILD_OSES) $(BUILD_ARCHES)),)
    185  $(error kBuild: The BUILD_PLATFORM_CPU value '$(BUILD_PLATFORM_CPU)' was found in the OS or architecture keywords!)
    186 endif
    187 ifeq ($(BUILD_PLATFORM_CPU),$(BUILD_TYPE))
    188  $(error kBuild: The BUILD_PLATFORM_CPU value '$(BUILD_PLATFORM_CPU)' is the same as the BUILD_TYPE!)
     179 BUILD_PLATFORM_CPU := blend
     180else
     181 ifneq (.$(words $(BUILD_PLATFORM_CPU)).$(BUILD_PLATFORM_CPU).,.1.$(strip $(BUILD_PLATFORM_CPU)).)
     182  $(error kBuild: The BUILD_PLATFORM_CPU value '$(BUILD_PLATFORM_CPU)' contains spaces/tabs!)
     183 endif
     184 ifneq ($(filter $(BUILD_PLATFORM_CPU), $(KBUILD_OSES) $(BUILD_ARCHES)),)
     185  $(error kBuild: The BUILD_PLATFORM_CPU value '$(BUILD_PLATFORM_CPU)' was found in the OS or architecture keywords!)
     186 endif
     187 ifeq ($(BUILD_PLATFORM_CPU),$(BUILD_TYPE))
     188  $(error kBuild: The BUILD_PLATFORM_CPU value '$(BUILD_PLATFORM_CPU)' is the same as the BUILD_TYPE!)
     189 endif
    189190endif
    190191
     
    218219ifndef BUILD_TARGET_CPU
    219220 BUILD_TARGET_CPU := $(BUILD_PLATFORM_CPU)
    220 else
    221  ifeq ($(strip $(BUILD_TARGET_CPU)),)
    222   $(error kBuild: The BUILD_TARGET_CPU value is missing (should be set by kmk)!)
    223  endif
     221else ifeq ($(strip $(BUILD_TARGET_CPU)),)
     222 ifeq ($(BUILD_TARGET_ARCH),$(BUILD_PLATFORM_ARCH))
     223  BUILD_TARGET_CPU := $(BUILD_PLATFORM_CPU)
     224 else
     225  BUILD_TARGET_CPU := blend
     226 endif
     227else
    224228 ifneq (.$(words $(BUILD_TARGET_CPU)).$(BUILD_TARGET_CPU).,.1.$(strip $(BUILD_TARGET_CPU)).)
    225229  $(error kBuild: The BUILD_TARGET_CPU value '$(BUILD_TARGET_CPU)' contains spaces/tabs!)
Note: See TracChangeset for help on using the changeset viewer.