acrn-hypervisor/scripts
Junjie Mao 10518de722 make: add functions for checking build prerequisites
This patch introduces the following functions for Makefiles:

  check_dep_exec <exe>

      Check existence of the executable <exe>

  check_dep_pylib <lib>

      Check existence of the python library <lib>

Calling and evaluting the functions will create a check_xxx target and add the
target to the variable BUILD_DEPS. Thus it is sufficient to add the following
to a Makefile for checking a number of build dependencies.

  include deps.mk
  $(eval $(call check_dep_exec,python))
  $(eval $(call check_dep_pylib,Sphinx))
  all: $(BUILD_DEPS) ...

v4 -> v5:

    * No changes.

v3 -> v4:

    * No changes.

v2 -> v3:

    * No changes.

v1 -> v2:

    * New in v2.

Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
2018-06-08 17:21:13 +08:00
..
kconfig scripts: introduce .config/config.h generators 2018-06-08 17:21:13 +08:00
deps.mk make: add functions for checking build prerequisites 2018-06-08 17:21:13 +08:00