Skip to content
  • Sam Ravnborg's avatar
    kbuild: fix modules_install after a 'make vmlinux' · ab19f879
    Sam Ravnborg authored
    
    
    make vmlinux would delete the content of $(MODVERDIR)
    equals .tmp_versions. This caused a subsequent
    make modules_install to fail.
    
    Fix it so we clean the directory only for the
    modules build - but we still unconditionally create it so
    we can do:
    make dir/file.ko
    without a preceeding make modules.
    
    Reported by David Miller <davem@davemloft.net>
    
    Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
    Cc: David Miller <davem@davemloft.net>
    ab19f879