From: Keith Owens <kaos@ocs.com.au>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Chuck Ebbert <76306.1226@compuserve.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
Johannes Stezenbach <js@linuxtv.org>,
Adrian Bunk <bunk@stusta.de>
Subject: Re: Why build empty object files in drivers/media?
Date: Sun, 24 Jul 2005 16:10:13 +1000 [thread overview]
Message-ID: <3945.1122185413@ocs3.ocs.com.au> (raw)
In-Reply-To: Your message of "Fri, 22 Jul 2005 19:46:00 GMT." <20050722194600.GA8757@mars.ravnborg.org>
On Fri, 22 Jul 2005 19:46:00 +0000,
Sam Ravnborg <sam@ravnborg.org> wrote:
>On Thu, Jul 21, 2005 at 11:06:21PM -0400, Chuck Ebbert wrote:
>>
>> I have this in my .config file for 2.6.13-rc3:
>>
>>
>> #
>> # Multimedia devices
>> #
>> # CONFIG_VIDEO_DEV is not set
>>
>> #
>> # Digital Video Broadcasting Devices
>> #
>> # CONFIG_DVB is not set
>>
>>
>> And yet these completely empty files are being built:
>>
>> ...
>kbuild is told to visit these directories - and then it build an empty
>.o file to make linking step possible.
>The only solution is to tell kbuild not to visit these directories
>unless they are in real use.
>Following untested patch should do the trick. But the media people must
>check if before being applied since I have only taken a brief look at
>the Kconfig and Makefile files.
>
> Sam
>
>diff --git a/drivers/media/Makefile b/drivers/media/Makefile
>--- a/drivers/media/Makefile
>+++ b/drivers/media/Makefile
>@@ -2,4 +2,7 @@
> # Makefile for the kernel multimedia device drivers.
> #
>
>-obj-y := video/ radio/ dvb/ common/
>+obj-y := common/
>+obj-$(CONFIG_VIDEO_DEV) := video/
>+obj-$(CONFIG_VIDEO_DEV) := radio/
>+obj-$(CONFIG_DVB) := dvb/
That should be +=, not :=
+obj-$(CONFIG_VIDEO_DEV) += video/
+obj-$(CONFIG_VIDEO_DEV) += radio/
+obj-$(CONFIG_DVB) += dvb/
next prev parent reply other threads:[~2005-07-24 6:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-22 3:06 Why build empty object files in drivers/media? Chuck Ebbert
2005-07-22 19:46 ` Sam Ravnborg
2005-07-22 21:18 ` Olaf Dietsche
2005-07-23 0:09 ` Sam Ravnborg
2005-07-24 6:10 ` Keith Owens [this message]
[not found] ` <20050724085845.GA8018@mars.ravnborg.org>
2005-07-24 17:29 ` Johannes Stezenbach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3945.1122185413@ocs3.ocs.com.au \
--to=kaos@ocs.com.au \
--cc=76306.1226@compuserve.com \
--cc=bunk@stusta.de \
--cc=js@linuxtv.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox