Changeset 1403 for trunk/kBuild


Ignore:
Timestamp:
Mar 17, 2008, 12:34:00 AM (17 years ago)
Author:
bird
Message:

Added KBUILD_BLD_TYPES for the valid build types and the corresponding tests of BUILD_TYPE ++.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r1400 r1403  
    131131# Equal character.
    132132EQUAL := =
     133
     134
     135#
     136# The list of standard build types in kBuild.
     137#
     138# This list can be extended in Config.kmk and it's possible to extend
     139# (inherit) another build type.
     140#
     141KBUILD_BLD_TYPES := releases profile debug
    133142
    134143
     
    10271036
    10281037
     1038#
     1039# Validate any KBUILD_BLD_TYPES additions and finally the BUILD_TYPE.
     1040#
     1041if1of ($(KBUILD_BLD_TYPES), $(KBUILD_OSES))
     1042 $(error kBuild: found KBUILD_BLD_TYPES in KBUILD_OSES!)
     1043endif
     1044if1of ($(KBUILD_BLD_TYPES), $(KBUILD_ARCHES))
     1045 $(error kBuild: found KBUILD_BLD_TYPES in KBUILD_ARCHES!)
     1046endif
     1047if1of ($(KBUILD_OSES), $(KBUILD_ARCHES))
     1048 $(error kBuild: found KBUILD_OSES in KBUILD_ARCHES!)
     1049endif
     1050ifn1of ($(BUILD_TYPE), $(KBUILD_BLD_TYPES))
     1051 $(error kBuild: BUILD_TYPE(=$(BUILD_TYPE)) is not found in KBUILD_BLD_TYPES(=$(KBUILD_BLD_TYPES))!)
     1052endif
     1053
     1054
     1055
    10291056ifdef KBUILD_PROFILE_SELF
    10301057 _KBUILD_TS_HEADER_END := $(nanots )
Note: See TracChangeset for help on using the changeset viewer.