Changeset 1529 for trunk/bootstrap.gmk


Ignore:
Timestamp:
Apr 19, 2008, 8:06:50 PM (17 years ago)
Author:
bird
Message:

Updated requirements and assumptions. Check for those we can.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootstrap.gmk

    r1512 r1529  
    2929# ASSUMES:
    3030#   - KBUILD_TARGET, KBUILD_HOST, KBUILD_HOST_ARCH, and KBUILD_TYPE in the env.
    31 #   - PATH_KBUILD points to ./kBuild with an absolute path.
    32 #   - PATH_KBUILD_BIN must *NOT* be defined anywhere.
     31#   - KBUILD_PATH points to ./kBuild with an absolute path.
     32#   - KBUILD_BIN_PATH and PATH_KBUILD_BIN must *NOT* be defined anywhere.
    3333#   - Current directory == bootstrap.gmk directory.
    3434#   - mkdir -p works.
     
    3737#   - cd somedir && command works.
    3838#   - echo done > some-file works.
    39 #   - GNU make implements CURDIR, if not please define SRCDIR.
    40 #
    41 # Tip: kBuild/env.sh --full (g)make -f bootstrap.kmk
     39#   - Recent GNU make that implements CURDIR, $(error) and ifdef.
     40#
     41# Tip: kBuild/env.sh --full (g(nu))make -f bootstrap.kmk
    4242#
    4343#
     
    7878ifndef KBUILD_PATH
    7979 KBUILD_PATH := $(PATH_KBUILD)
     80endif
     81
     82#
     83# Check (some of) the assumptions.
     84#
     85ifndef KBUILD_TARGET
     86 $(error KBUILD_TARGET not set)
     87endif
     88
     89ifndef KBUILD_HOST
     90 $(error KBUILD_HOST not set)
     91endif
     92
     93ifndef KBUILD_HOST_ARCH
     94 $(error KBUILD_HOST_ARCH not set)
     95endif
     96
     97ifndef KBUILD_TYPE
     98 $(error KBUILD_TYPE not set)
     99endif
     100
     101ifndef KBUILD_TYPE
     102 $(error KBUILD_TYPE not set)
     103endif
     104
     105ifndef KBUILD_PATH
     106 $(error KBUILD_PATH not set)
     107endif
     108
     109ifdef KBUILD_BIN_PATH
     110 $(error KBUILD_BIN_PATH is set)
     111endif
     112ifdef PATH_KBUILD_BIN
     113 $(error PATH_KBUILD_BIN is set)
    80114endif
    81115
Note: See TracChangeset for help on using the changeset viewer.