• Masahiro Yamada's avatar
    kconfig: add sanity checks for SPL configuration · 11b5db67
    Masahiro Yamada authored
    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: 's avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
    Suggested-by: 's avatarSimon Glass <sjg@chromium.org>
    11b5db67
Name
Last commit
Last update
..
basic Loading commit data...
kconfig Loading commit data...
.gitignore Loading commit data...
Kbuild.include Loading commit data...
Lindent Loading commit data...
Makefile Loading commit data...
Makefile.autoconf Loading commit data...
Makefile.build Loading commit data...
Makefile.clean Loading commit data...
Makefile.extrawarn Loading commit data...
Makefile.host Loading commit data...
Makefile.lib Loading commit data...
Makefile.spl Loading commit data...
binutils-version.sh Loading commit data...
checkpatch.pl Loading commit data...
checkstack.pl Loading commit data...
cleanpatch Loading commit data...
docproc.c Loading commit data...
dtc-version.sh Loading commit data...
gcc-stack-usage.sh Loading commit data...
gcc-version.sh Loading commit data...
get_maintainer.pl Loading commit data...
kernel-doc Loading commit data...
ld-version.sh Loading commit data...
mailmapper Loading commit data...
mkmakefile Loading commit data...
multiconfig.sh Loading commit data...
objdiff Loading commit data...
setlocalversion Loading commit data...
show-gnu-make Loading commit data...