[Buildroot] [PATCH 6/9] Ask the kernel source where it will install modules

Grant Likely grant.likely at secretlab.ca
Thu Oct 30 13:23:53 UTC 2008


On Thu, Oct 30, 2008 at 7:20 AM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Le Thu, 16 Oct 2008 14:32:46 -0600,
> Grant Likely <grant.likely at secretlab.ca> a écrit :
>
>> Originally, $(LINUX26_VERSION) was used to figure out which directory
>> modules would get installed in under /lib/modules.  This causes
>> problems when $(LINUX26_VERSION) differs from what version the kernel
>> source thinks it is using because it will try to use depmod in the
>> wrong directory.
>
> Just for curiosity, in what cases $(LINUX26_VERSION) can differ from
> the « version the kernel source thinks it is using » ?

When using a git kernel tree for instance, LINUX26_VERSION is set to
"linux-git" to match the directory that the kernel is unpacked into
but the kernel source could be reporting just about any
"linux-vX.Y.Z-<sha1>".

>
> Otherwise, the version proposed by Hans-Christian Egtvedt looks good to
> me.

Looks good to me too.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.



More information about the buildroot mailing list