]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
kconfig: add sanity checks for SPL configuration
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Wed, 10 Sep 2014 09:13:10 +0000 (18:13 +0900)
committerTom Rini <trini@ti.com>
Tue, 16 Sep 2014 16:23:59 +0000 (12:23 -0400)
commit11b5db67879c1ac0f1c358fb9b791896af189b0a
tree3af15acf87b892fa7cc56a977c2ebf77ea7d28b3
parentad6e48e509fa86e5c365d2a3f7b561717305cf3c
kconfig: add sanity checks for SPL configuration

For the SPL configuration, "make <dir>/<target>" is used.
Here,
  <dir> is either "spl" or "tpl"
  <target> is one of "config", "menuconfig", "xconfig", etc.

This commit adds two checks:

[1] If <dir> is given an unsupported subimage, the configuration
    should error out like this:

  $ make qpl/menuconfig
  ***
  *** "make qpl/menuconfig" is not supported.
  ***

[2] Make sure that "CONFIG_SPL" is enabled in the ".config" before
    running "make spl/menuconfig.  Otherwise, the SPL image
    is not built at all.  Having "spl/.config" makes no sense.
    In such a case, the configuration should exit with a message:

  $ make spl/menuconfig
  ***
  *** Create ".config" with "CONFIG_SPL" enabled
  *** before "make spl/menuconfig".
  ***

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Suggested-by: Simon Glass <sjg@chromium.org>
scripts/multiconfig.sh