• Masahiro Yamada's avatar
    kconfig: fix "Can't open ..." in parallel build · 476738bb
    Masahiro Yamada authored
    commit 98a4afbf upstream.
    
    If you run "make menuconfig" or "make nconfig" with -j<N> option in a
    fresh source tree, you will see several "Can't open ..." messages:
    
      $ make -j8 menuconfig
        HOSTCC  scripts/basic/fixdep
        YACC    scripts/kconfig/zconf.tab.c
        LEX     scripts/kconfig/zconf.lex.c
      /bin/sh: 1: .: Can't open scripts/kconfig/.mconf-cfg
      /bin/sh: 1: .: Can't open scripts/kconfig/.mconf-cfg
      /bin/sh: 1: .: Can't open scripts/kconfig/.mconf-cfg
      /bin/sh: 1: .:   HOSTCC  scripts/kconfig/lxdialog/checklist.o
      Can't open scripts/kconfig/.mconf-cfg
      /bin/sh: 1: .: Can't open scripts/kconfig/.mconf-cfg
      /bin/sh: 1: .: Can't open scripts/kconfig/.mconf-cfg
      /bin/sh: 1: .: Can't open scripts/kconfig/.mconf-cfg
        HOSTCC  scripts/kconfig/lxdialog/inputbox.o
      /bin/sh: 1: .: Can't open scripts/kconfig/.mconf-cfg
      /bin/sh: 1: .: Can't open scripts/kconfig/.mconf-cfg
      /bin/sh: 1: .: Can't open scripts/kconfig/.mconf-cfg
        UPD     scripts/kconfig/.mconf-cfg
      /bin/sh: 1: .: Can't open scripts/kconfig/.mconf-cfg
        HOSTCC  scripts/kconfig/lxdialog/menubox.o
        HOSTCC  scripts/kconfig/lxdialog/textbox.o
        HOSTCC  scripts/kconfig/lxdialog/util.o
        HOSTCC  scripts/kconfig/lxdialog/yesno.o
        HOSTCC  scripts/kconfig/mconf.o
        HOSTCC  scripts/kconfig/zconf.tab.o
        HOSTLD  scripts/kconfig/mconf
    
    Correct dependencies to fix this problem.
    
    Fixes: 1c5af5cf ("kconfig: refactor ncurses package checks for building mconf and nconf")
    Cc: linux-stable <stable@vger.kernel.org> # v4.18
    Reported-by: 's avatarBorislav Petkov <bp@suse.de>
    Signed-off-by: 's avatarMasahiro Yamada <yamada.masahiro@socionext.com>
    Tested-by: 's avatarBorislav Petkov <bp@suse.de>
    Signed-off-by: 's avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    476738bb
Name
Last commit
Last update
..
lxdialog Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
conf.c Loading commit data...
confdata.c Loading commit data...
expr.c Loading commit data...
expr.h Loading commit data...
gconf-cfg.sh Loading commit data...
gconf.c Loading commit data...
gconf.glade Loading commit data...
images.c Loading commit data...
kconf_id.c Loading commit data...
list.h Loading commit data...
lkc.h Loading commit data...
lkc_proto.h Loading commit data...
mconf-cfg.sh Loading commit data...
mconf.c Loading commit data...
menu.c Loading commit data...
merge_config.sh Loading commit data...
nconf-cfg.sh Loading commit data...
nconf.c Loading commit data...
nconf.gui.c Loading commit data...
nconf.h Loading commit data...
preprocess.c Loading commit data...
qconf-cfg.sh Loading commit data...
qconf.cc Loading commit data...
qconf.h Loading commit data...
streamline_config.pl Loading commit data...
symbol.c Loading commit data...
util.c Loading commit data...
zconf.l Loading commit data...
zconf.y Loading commit data...