All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] modules: Allow to use depmod from a non default install
@ 2009-11-08 21:44 Carmelo Amoroso
  2009-11-08 21:56 ` Carmelo Amoroso
  2009-11-09  3:06 ` Américo Wang
  0 siblings, 2 replies; 6+ messages in thread
From: Carmelo Amoroso @ 2009-11-08 21:44 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Carmelo AMOROSO

This patch allow to specify the directory where to find the
depmod tool other than being forced to use the module-init-tools
installed on the host. The reason for this is explained below.
When doing cross-compilation, it not guaranteed that the
module-init-tools installed on the host (and used during kernel build)
are exactly the same and compatible with those used on the target at runtime.
For example, recent changes in how depmod writes modules.dep using
root-less path, make older modprobe unusable on the target.
User in ths case could install in a different path the module-init-tools
compatible with the version used on the target and specify the path on the
command line.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
---
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index b4c04f7..f5286c4 100644
--- a/Makefile
+++ b/Makefile
@@ -316,7 +316,8 @@ OBJDUMP             = $(CROSS_COMPILE)objdump
 AWK            = awk
 GENKSYMS       = scripts/genksyms/genksyms
 INSTALLKERNEL  := installkernel
-DEPMOD         = /sbin/depmod
+DEPMOD_PATH    ?= /sbin
+DEPMOD         = $(DEPMOD_PATH)/depmod
 KALLSYMS       = scripts/kallsyms
 PERL           = perl
 CHECK          = sparse
-- 1.6.3.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] modules: Allow to use depmod from a non default install
  2009-11-08 21:44 [PATCH] modules: Allow to use depmod from a non default install Carmelo Amoroso
@ 2009-11-08 21:56 ` Carmelo Amoroso
  2009-11-09  3:06 ` Américo Wang
  1 sibling, 0 replies; 6+ messages in thread
From: Carmelo Amoroso @ 2009-11-08 21:56 UTC (permalink / raw)
  To: Carmelo Amoroso; +Cc: Linux Kernel Mailing List, Carmelo AMOROSO

Carmelo Amoroso wrote:
> This patch allow to specify the directory where to find the
> depmod tool other than being forced to use the module-init-tools
> installed on the host. The reason for this is explained below.
> When doing cross-compilation, it not guaranteed that the
> module-init-tools installed on the host (and used during kernel build)
> are exactly the same and compatible with those used on the target at runtime.
> For example, recent changes in how depmod writes modules.dep using
> root-less path, make older modprobe unusable on the target.
> User in ths case could install in a different path the module-init-tools
> compatible with the version used on the target and specify the path on the
> command line.
> 
> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
> ---
>  Makefile |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index b4c04f7..f5286c4 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -316,7 +316,8 @@ OBJDUMP             = $(CROSS_COMPILE)objdump
>  AWK            = awk
>  GENKSYMS       = scripts/genksyms/genksyms
>  INSTALLKERNEL  := installkernel
> -DEPMOD         = /sbin/depmod
> +DEPMOD_PATH    ?= /sbin
> +DEPMOD         = $(DEPMOD_PATH)/depmod
>  KALLSYMS       = scripts/kallsyms
>  PERL           = perl
>  CHECK          = sparse
> -- 1.6.3.3
> 

Apologies for duplicated emails.
Please discard this last one.

Regards,
Carmelo

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] modules: Allow to use depmod from a non default install
  2009-11-08 21:44 [PATCH] modules: Allow to use depmod from a non default install Carmelo Amoroso
  2009-11-08 21:56 ` Carmelo Amoroso
@ 2009-11-09  3:06 ` Américo Wang
  2009-11-21 15:02   ` Carmelo Amoroso
  1 sibling, 1 reply; 6+ messages in thread
From: Américo Wang @ 2009-11-09  3:06 UTC (permalink / raw)
  To: Carmelo Amoroso; +Cc: Linux Kernel Mailing List, Carmelo AMOROSO

On Sun, Nov 08, 2009 at 10:44:04PM +0100, Carmelo Amoroso wrote:
>This patch allow to specify the directory where to find the
>depmod tool other than being forced to use the module-init-tools
>installed on the host. The reason for this is explained below.
>When doing cross-compilation, it not guaranteed that the
>module-init-tools installed on the host (and used during kernel build)
>are exactly the same and compatible with those used on the target at runtime.
>For example, recent changes in how depmod writes modules.dep using
>root-less path, make older modprobe unusable on the target.
>User in ths case could install in a different path the module-init-tools
>compatible with the version used on the target and specify the path on the
>command line.
>
>Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>

Acked-by: WANG Cong <xiyou.wangcong@gmail.com>


>---
> Makefile |    3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
>diff --git a/Makefile b/Makefile
>index b4c04f7..f5286c4 100644
>--- a/Makefile
>+++ b/Makefile
>@@ -316,7 +316,8 @@ OBJDUMP             = $(CROSS_COMPILE)objdump
> AWK            = awk
> GENKSYMS       = scripts/genksyms/genksyms
> INSTALLKERNEL  := installkernel
>-DEPMOD         = /sbin/depmod
>+DEPMOD_PATH    ?= /sbin
>+DEPMOD         = $(DEPMOD_PATH)/depmod
> KALLSYMS       = scripts/kallsyms
> PERL           = perl
> CHECK          = sparse
>-- 1.6.3.3
>--
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/

-- 
Live like a child, think like the god.
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] modules: Allow to use depmod from a non default install
  2009-11-09  3:06 ` Américo Wang
@ 2009-11-21 15:02   ` Carmelo Amoroso
  2009-11-21 17:08     ` Américo Wang
  2010-12-24  7:39     ` Carmelo AMOROSO
  0 siblings, 2 replies; 6+ messages in thread
From: Carmelo Amoroso @ 2009-11-21 15:02 UTC (permalink / raw)
  To: Américo Wang; +Cc: Linux Kernel Mailing List, Carmelo AMOROSO

Américo Wang wrote:
> On Sun, Nov 08, 2009 at 10:44:04PM +0100, Carmelo Amoroso wrote:
>> This patch allow to specify the directory where to find the
>> depmod tool other than being forced to use the module-init-tools
>> installed on the host. The reason for this is explained below.
>> When doing cross-compilation, it not guaranteed that the
>> module-init-tools installed on the host (and used during kernel build)
>> are exactly the same and compatible with those used on the target at runtime.
>> For example, recent changes in how depmod writes modules.dep using
>> root-less path, make older modprobe unusable on the target.
>> User in ths case could install in a different path the module-init-tools
>> compatible with the version used on the target and specify the path on the
>> command line.
>>
>> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
> 
> Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
> 
> 

Hi,
any plan to get it included ?

cheers,
carmelo

>> ---
>> Makefile |    3 ++-
>> 1 files changed, 2 insertions(+), 1 deletions(-)
>>
>> diff --git a/Makefile b/Makefile
>> index b4c04f7..f5286c4 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -316,7 +316,8 @@ OBJDUMP             = $(CROSS_COMPILE)objdump
>> AWK            = awk
>> GENKSYMS       = scripts/genksyms/genksyms
>> INSTALLKERNEL  := installkernel
>> -DEPMOD         = /sbin/depmod
>> +DEPMOD_PATH    ?= /sbin
>> +DEPMOD         = $(DEPMOD_PATH)/depmod
>> KALLSYMS       = scripts/kallsyms
>> PERL           = perl
>> CHECK          = sparse
>> -- 1.6.3.3
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] modules: Allow to use depmod from a non default install
  2009-11-21 15:02   ` Carmelo Amoroso
@ 2009-11-21 17:08     ` Américo Wang
  2010-12-24  7:39     ` Carmelo AMOROSO
  1 sibling, 0 replies; 6+ messages in thread
From: Américo Wang @ 2009-11-21 17:08 UTC (permalink / raw)
  To: Carmelo Amoroso
  Cc: Américo Wang, Linux Kernel Mailing List, Carmelo AMOROSO

On Sat, Nov 21, 2009 at 04:02:14PM +0100, Carmelo Amoroso wrote:
>Américo Wang wrote:
>> On Sun, Nov 08, 2009 at 10:44:04PM +0100, Carmelo Amoroso wrote:
>>> This patch allow to specify the directory where to find the
>>> depmod tool other than being forced to use the module-init-tools
>>> installed on the host. The reason for this is explained below.
>>> When doing cross-compilation, it not guaranteed that the
>>> module-init-tools installed on the host (and used during kernel build)
>>> are exactly the same and compatible with those used on the target at runtime.
>>> For example, recent changes in how depmod writes modules.dep using
>>> root-less path, make older modprobe unusable on the target.
>>> User in ths case could install in a different path the module-init-tools
>>> compatible with the version used on the target and specify the path on the
>>> command line.
>>>
>>> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
>> 
>> Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
>> 
>> 
>
>Hi,
>any plan to get it included ?
>

Hi,

I am not the maintainer, Sam was supposed to take this, but
yesterday, he just gave his position out. So I expect Andrew
or someone can take this.

Thanks.

-- 
Live like a child, think like the god.
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] modules: Allow to use depmod from a non default install
  2009-11-21 15:02   ` Carmelo Amoroso
  2009-11-21 17:08     ` Américo Wang
@ 2010-12-24  7:39     ` Carmelo AMOROSO
  1 sibling, 0 replies; 6+ messages in thread
From: Carmelo AMOROSO @ 2010-12-24  7:39 UTC (permalink / raw)
  To: carmelo73; +Cc: Américo Wang, Linux Kernel Mailing List

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/21/2009 4:02 PM, Carmelo Amoroso wrote:
> Américo Wang wrote:
>  > On Sun, Nov 08, 2009 at 10:44:04PM +0100, Carmelo Amoroso wrote:
>  >> This patch allow to specify the directory where to find the
>  >> depmod tool other than being forced to use the module-init-tools
>  >> installed on the host. The reason for this is explained below.
>  >> When doing cross-compilation, it not guaranteed that the
>  >> module-init-tools installed on the host (and used during kernel build)
>  >> are exactly the same and compatible with those used on the target at runtime.
>  >> For example, recent changes in how depmod writes modules.dep using
>  >> root-less path, make older modprobe unusable on the target.
>  >> User in ths case could install in a different path the module-init-tools
>  >> compatible with the version used on the target and specify the path on the
>  >> command line.
>  >>
>  >> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
>  >
>  > Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
>  >
>  >
> 
> Hi,
> any plan to get it included ?
> 
> cheers,
> carmelo
> 
>  >> ---
>  >> Makefile | 3 ++-
>  >> 1 files changed, 2 insertions(+), 1 deletions(-)
>  >>
>  >> diff --git a/Makefile b/Makefile
>  >> index b4c04f7..f5286c4 100644
>  >> --- a/Makefile
>  >> +++ b/Makefile
>  >> @@ -316,7 +316,8 @@ OBJDUMP = $(CROSS_COMPILE)objdump
>  >> AWK = awk
>  >> GENKSYMS = scripts/genksyms/genksyms
>  >> INSTALLKERNEL := installkernel
>  >> -DEPMOD = /sbin/depmod
>  >> +DEPMOD_PATH ?= /sbin
>  >> +DEPMOD = $(DEPMOD_PATH)/depmod
>  >> KALLSYMS = scripts/kallsyms
>  >> PERL = perl
>  >> CHECK = sparse
>  >> -- 1.6.3.3
>  >> --
>  >> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>  >> the body of a message to majordomo@vger.kernel.org
>  >> More majordomo info at http://vger.kernel.org/majordomo-info.html
>  >> Please read the FAQ at http://www.tux.org/lkml/
>  >
> 
> 

ping... one year later.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0UTj8ACgkQoRq/3BrK1s99/wCglIZ37nvDw8g0/nKAt5KRsI6W
M9AAnRVGSbEiod4jFCFhwRRxxofakEQa
=ZSKN
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-24  7:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-08 21:44 [PATCH] modules: Allow to use depmod from a non default install Carmelo Amoroso
2009-11-08 21:56 ` Carmelo Amoroso
2009-11-09  3:06 ` Américo Wang
2009-11-21 15:02   ` Carmelo Amoroso
2009-11-21 17:08     ` Américo Wang
2010-12-24  7:39     ` Carmelo AMOROSO

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.