• 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
Makefile 7.89 KB