Re: [PATCH] make depmod

From: Matt Mackall
Date: Mon Dec 20 2004 - 20:17:39 EST


On Mon, Dec 20, 2004 at 04:24:16PM -0800, Matt Mackall wrote:
> This patch exposes the modules_install depmod functionality as a
> convenience to external modules
>
> Index: l/Makefile
> ===================================================================
> --- l.orig/Makefile 2004-11-04 10:52:49.499525000 -0800
> +++ l/Makefile 2004-12-20 16:19:01.195688000 -0800
> @@ -867,7 +867,9 @@
> depmod_opts := -b $(INSTALL_MOD_PATH) -r
> endif
> .PHONY: _modinst_post
> -_modinst_post: _modinst_
> +_modinst_post: _modinst_ depmod
> +
> +depmod:
> if [ -r System.map ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi
>
> else # CONFIG_MODULES

As was pointed out to me privately, this is broken for make -j.

--
Mathematics is the supreme nostalgia of our time.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/