Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932107AbXIEJzl (ORCPT ); Wed, 5 Sep 2007 05:55:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755018AbXIEJze (ORCPT ); Wed, 5 Sep 2007 05:55:34 -0400 Received: from nic.NetDirect.CA ([216.16.235.2]:39128 "EHLO rubicon.netdirect.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753502AbXIEJzd (ORCPT ); Wed, 5 Sep 2007 05:55:33 -0400 X-Originating-Ip: 72.143.66.27 Date: Wed, 5 Sep 2007 05:42:38 -0400 (EDT) From: "Robert P. J. Day" X-X-Sender: rpjday@localhost.localdomain To: Jan Engelhardt cc: Michal Piotrowski , Linux Kernel Mailing List , Sam Ravnborg , Roman Zippel Subject: Re: building a specific in-tree module is currently a bit broken In-Reply-To: Message-ID: References: <6bffcb0e0709050237m7d948782iffec36253c6fccb2@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Net-Direct-Inc-MailScanner-Information: Please contact the ISP for more information X-Net-Direct-Inc-MailScanner: Found to be clean X-Net-Direct-Inc-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-16.8, required 5, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -15.00, INIT_RECVD_OUR_AUTH -20.00, RCVD_IN_SORBS_DUL 20.00) X-Net-Direct-Inc-MailScanner-From: rpjday@mindspring.com Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1677 Lines: 48 On Wed, 5 Sep 2007, Jan Engelhardt wrote: > > On Sep 5 2007 11:37, Michal Piotrowski wrote: > > > >Hi, > > > >[Adding K{build,config} wizards to CC] > > > >On 05/09/07, Robert P. J. Day wrote: > >> > >> $ make distclean > >> $ make defconfig > >> $ make menuconfig (select visor.ko to be built a module) > >> $ make drivers/usb/serial/visor.ko > > Beep. Need 'make scripts prepare' between menuconfig and visor. that doesn't solve the problem. i should have mentioned that i already (unnecessarily, i suggest) ran "make modules_prepare", but the problem persists. the issue seems to be that running that last make command to build the module visor.ko doesn't somehow signal the Makefile that this is a *module* build, and therefore no module-related initialization is done, such as creating that directory or setting the Makefile variable MODVERDIR, etc, etc. once you've build at least one module successfully, then the directory .tmp_versions exists so future module builds will work fine. it's only when you do a clean, *immediately* followed by trying to do an in-tree module build, that this is going to bite you. rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://crashcourse.ca ======================================================================== - 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/