• Masahiro Yamada's avatar
    kconfig: fix "Can't open ..." in parallel build · 98a4afbf
    Masahiro Yamada authored
    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: default avatarBorislav Petkov <bp@suse.de>
    Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
    Tested-by: default avatarBorislav Petkov <bp@suse.de>
    98a4afbf
Makefile 7.99 KB