Ignore:
Timestamp:
Aug 21, 2020, 1:49:39 PM (5 years ago)
Author:
bird
Message:

header.kmk: Complain if legacy variables like BUILD_TYPE and BUILD_TARGET_ARCH are seen on the command line. Removed temporary KBUILD_HOST* fallback definitions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r3419 r3423  
    235235 ifneq ($(KBUILD_TYPE),$(BUILD_TYPE))
    236236  ifeq ($(origin KBUILD_TYPE):$(origin BUILD_TYPE),environment:command line)
     237   $(warning kBuild: Please use KBUILD_TYPE instead of BUILD_TYPE on the command line!)
    237238   KBUILD_TYPE := $(BUILD_TYPE)
    238239  else ifneq ($(origin KBUILD_TYPE):$(origin BUILD_TYPE),command line:environment)
    239    $(error kBuild: KBUILD_TYPE and BUILD_TYPE disagree.)
     240   $(error kBuild: KBUILD_TYPE (command line) and BUILD_TYPE (env) disagree.)
    240241  endif
    241242 endif
     
    252253  $(error kBuild: The KBUILD_TYPE value '$(KBUILD_TYPE)' contains spaces/tabs!)
    253254 endif
    254 endif
    255 
    256 
    257 #
    258 # Host platform legacy
    259 # kmk deals with this, so this is only temporary until I've rebuilt everything.
    260 #
    261 ifndef KBUILD_HOST
    262  KBUILD_HOST := $(BUILD_PLATFORM)
    263 endif
    264 ifndef KBUILD_HOST_ARCH
    265  KBUILD_HOST_ARCH := $(BUILD_PLATFORM_ARCH)
    266 endif
    267 ifndef KBUILD_HOST_CPU
    268  KBUILD_HOST_CPU := $(BUILD_PLATFORM_CPU)
    269255endif
    270256
     
    315301 ifneq ($(KBUILD_TARGET),$(BUILD_TARGET))
    316302  ifeq ($(origin KBUILD_TARGET):$(origin BUILD_TARGET),environment:command line)
     303   $(warning kBuild: Please use KBUILD_TARGET instead of BUILD_TARGET on the command line!)
    317304   KBUILD_TARGET := $(BUILD_TARGET)
    318305  else ifneq ($(origin KBUILD_TARGET):$(origin BUILD_TARGET),command line:environment)
     
    330317 ifneq ($(KBUILD_TARGET_ARCH),$(BUILD_TARGET_ARCH))
    331318  ifeq ($(origin KBUILD_TARGET_ARCH):$(origin BUILD_TARGET_ARCH),environment:command line)
     319   $(warning kBuild: Please use KBUILD_TARGET_ARCH instead of BUILD_TARGET_ARCH on the command line!)
    332320   KBUILD_TARGET_ARCH := $(BUILD_TARGET_ARCH)
    333321  else ifneq ($(origin KBUILD_TARGET_ARCH):$(origin BUILD_TARGET_ARCH),command line:environment)
     
    345333 ifneq ($(KBUILD_TARGET_CPU),$(BUILD_TARGET_CPU))
    346334  ifeq ($(origin KBUILD_TARGET_CPU):$(origin BUILD_TARGET_CPU),environment:command line)
     335   $(warning kBuild: Please use KBUILD_TARGET_CPU instead of BUILD_TARGET_CPU on the command line!)
    347336   KBUILD_TARGET_CPU := $(BUILD_TARGET_CPU)
    348337  else ifneq ($(origin KBUILD_TARGET_CPU):$(origin BUILD_TARGET_CPU),command line:environment)
Note: See TracChangeset for help on using the changeset viewer.