From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755523AbZKHV4f (ORCPT ); Sun, 8 Nov 2009 16:56:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755267AbZKHV4e (ORCPT ); Sun, 8 Nov 2009 16:56:34 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:51555 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755262AbZKHV4d (ORCPT ); Sun, 8 Nov 2009 16:56:33 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=rEXJnGp7UxM8xyYbZAJ8NB6g3hWJl5I86WvcAsbvZd8HU4Bep3NXUjkU8VOj65VG2i 0LN+iTIK/hiG8gd5B0im4TcqGDcKsfA1R6FJjOl8k1CMajeuUXiva8aqF9x9ufHP6XCI PSsC0ORYW66CHzzyjMFa+NmKUJd81WSfAGnY0= Message-ID: <4AF73E93.9020804@gmail.com> Date: Sun, 08 Nov 2009 22:56:35 +0100 From: Carmelo Amoroso Reply-To: carmelo73@gmail.com User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Carmelo Amoroso CC: Linux Kernel Mailing List , Carmelo AMOROSO Subject: Re: [PATCH] modules: Allow to use depmod from a non default install References: <4AF73BA4.3000501@gmail.com> In-Reply-To: <4AF73BA4.3000501@gmail.com> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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