Changeset 2764 in kBuild
- Timestamp:
- Jan 28, 2015 6:51:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer-pass1.kmk
r2762 r2764 108 108 endif 109 109 endif 110 ifn1of ($(insttype), none both stage)111 $(error kBuild: Unknown value '$(insttype)' for '$(target)_INSTTYPE'. Valid values are 'none', 'both' and 'stage'.)112 endif113 110 $(target)_1_INSTTYPE := $(insttype) 114 111 115 if1of ($(insttype), stage both) 116 local inst := $(strip $(firstdefined \ 112 local inst := $(strip $(firstdefined \ 117 113 $(target)_INST.$(bld_trg).$(bld_trg_arch).$(bld_type) \ 118 114 $(target)_INST.$(bld_trg).$(bld_trg_arch) \ … … 125 121 definst \ 126 122 ,value)) 127 123 local stage := $(strip $(firstdefined \ 128 124 $(target)_STAGE.$(bld_trg).$(bld_trg_arch).$(bld_type) \ 129 125 $(target)_STAGE.$(bld_trg).$(bld_trg_arch) \ … … 136 132 inst \ 137 133 ,value)) 134 if1of ($(insttype), stage both) 138 135 $(target)_1_STAGE := $(stage) 139 136 if "$(substr $(stage),-1,1)" == "/" # Multicast support requires addprefix/suffix. … … 144 141 $(target)_1_STAGE_TARGET := $(addprefix $(PATH_STAGE)/,$(stage)) 145 142 endif 146 else 147 local inst := 148 local stage := 143 else if1of ($(insttype), none) 149 144 $(target)_1_STAGE := 150 145 $(target)_1_STAGE_TARGET := 146 else 147 $(error kBuild: Unknown value '$(insttype)' for '$(target)_INSTTYPE'. Valid values are 'none', 'both' and 'stage'.) 151 148 endif 152 149 INSTARGET_$(target) := $($(target)_1_STAGE_TARGET) … … 177 174 $($(target)_DEBUG_INSTTYPE) \ 178 175 $(insttype) ) 179 ifn1of ($(debug_insttype), none both stage)180 $(error kBuild: Unknown value '$(debug_insttype)' for '$(target)_DEBUG_INSTTYPE'. Valid values are 'none', 'both' and 'stage'.)181 endif182 176 $(target)_1_DEBUG_INSTTYPE := $(debug_insttype) 183 177 … … 208 202 $(target)_1_DEBUG_STAGE := ./ 209 203 endif 210 else 204 else if1of ($(debug_insttype), none) 211 205 $(target)_1_DEBUG_STAGE := 206 else 207 $(error kBuild: Unknown value '$(debug_insttype)' for '$(target)_DEBUG_INSTTYPE'. Valid values are 'none', 'both' and 'stage'.) 212 208 endif 213 209
Note:
See TracChangeset
for help on using the changeset viewer.