2001-02-15 00:39:12

by J.A. Magallon

[permalink] [raw]
Subject: modules_install target

I have recently noticed that 'make modules_install' tries as a last step

if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.1-ac13; fi

I depends on 'make install' doing the right symlinks in /boot.
Would not be better to do a:

if [ -r System.map-2.4.1-ac13 ]; then /sbin/depmod -ae -F System.map-2.4.1-ac13
2.4.1-ac13; fi

???

--
J.A. Magallon $> cd pub
mailto:[email protected] $> more beer

Linux werewolf 2.4.1-ac10 #1 SMP Sun Feb 11 23:36:46 CET 2001 i686


2001-02-15 00:53:26

by Keith Owens

[permalink] [raw]
Subject: Re: modules_install target

On Thu, 15 Feb 2001 01:38:46 +0100,
"J . A . Magallon" <[email protected]> wrote:
>I have recently noticed that 'make modules_install' tries as a last step
>
>if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.1-ac13; fi
>
>I depends on 'make install' doing the right symlinks in /boot.
>Would not be better to do a:
>
>if [ -r System.map-2.4.1-ac13 ]; then /sbin/depmod -ae -F System.map-2.4.1-ac13
> 2.4.1-ac13; fi

The System.map depmod uses is the one in the top level linux directory.
It has nothing to do with where the distribution will copy that
System.map to, nor does it depend on /boot. Leave it alone.

2001-02-15 01:05:30

by Mohammad A. Haque

[permalink] [raw]
Subject: Re: modules_install target

You're forgetting it's using System.map from your build directory and
not from /boot.

"J . A . Magallon" wrote:
>
> I have recently noticed that 'make modules_install' tries as a last step
>
> if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.1-ac13; fi
>
> I depends on 'make install' doing the right symlinks in /boot.
> Would not be better to do a:
>
> if [ -r System.map-2.4.1-ac13 ]; then /sbin/depmod -ae -F System.map-2.4.1-ac13
> 2.4.1-ac13; fi
>
> ???

--

=====================================================================
Mohammad A. Haque http://www.haque.net/
[email protected]

"Alcohol and calculus don't mix. Project Lead
Don't drink and derive." --Unknown http://wm.themes.org/
[email protected]
=====================================================================