From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: "linux-media @ vger . kernel . org" <linux-media@vger.kernel.org>,
David Cohen <dacohen@gmail.com>
Subject: Re: [PATCH] media: video: append $(srctree) to -I parameters
Date: Thu, 16 Feb 2012 11:57:31 +0200 [thread overview]
Message-ID: <1329386251.16824.83.camel@smile> (raw)
In-Reply-To: <2218117.VoHfpPQjC4@avalon>
On Thu, 2012-02-16 at 07:22 +0100, Laurent Pinchart wrote:
> Hi Andy,
>
> Thanks for the patch.
>
> On Wednesday 15 February 2012 17:08:01 Andy Shevchenko wrote:
> > Without this we have got the warnings like following if build with "make W=1
> > O=/var/tmp":
> > CHECK drivers/media/video/videobuf-vmalloc.c
> > CC [M] drivers/media/video/videobuf-vmalloc.o
> > +cc1: warning: drivers/media/dvb/dvb-core: No such file or directory
> > [enabled by default] +cc1: warning: drivers/media/dvb/frontends: No such
> > file or directory [enabled by default] +cc1: warning:
> > drivers/media/dvb/dvb-core: No such file or directory [enabled by default]
> > +cc1: warning: drivers/media/dvb/frontends: No such file or directory
> > [enabled by default] LD drivers/media/built-in.o
> >
> > Some details could be found in [1] as well.
> >
> > [1] http://comments.gmane.org/gmane.linux.kbuild.devel/7733
>
> There are several occurencies if the same issue throughout drivers/. Could you
> send a patch that fixes them all in one go ?
I guess it should be a patch series anyway to help with bisecting.
Okay, I will check it and make a patches if there any issue is found.
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > ---
> > drivers/media/video/Makefile | 6 +++---
> > 1 files changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/media/video/Makefile b/drivers/media/video/Makefile
> > index 3541388..3bf0aa8 100644
> > --- a/drivers/media/video/Makefile
> > +++ b/drivers/media/video/Makefile
> > @@ -199,6 +199,6 @@ obj-y += davinci/
> >
> > obj-$(CONFIG_ARCH_OMAP) += omap/
> >
> > -ccflags-y += -Idrivers/media/dvb/dvb-core
> > -ccflags-y += -Idrivers/media/dvb/frontends
> > -ccflags-y += -Idrivers/media/common/tuners
> > +ccflags-y += -I$(srctree)/drivers/media/dvb/dvb-core
> > +ccflags-y += -I$(srctree)/drivers/media/dvb/frontends
> > +ccflags-y += -I$(srctree)/drivers/media/common/tuners
>
> The above link mentions $(src). Is that different than $(srctree) ?
If I remember correctly $srctree points always to the root of the linux
kernel sources, but $src to the path of a certain Makefile.
In this case it seems $(src) == drivers/media/video.
Moment...
Aha, the Documentation/kbuild/makefiles.txt clearly tells us:
$(src)
$(src) is a relative path which points to the directory
where the Makefile is located. Always use $(src) when
referring to files located in the src tree.
--
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy
next prev parent reply other threads:[~2012-02-16 9:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-15 15:08 [PATCH] media: video: append $(srctree) to -I parameters Andy Shevchenko
2012-02-16 6:22 ` Laurent Pinchart
2012-02-16 9:57 ` Andy Shevchenko [this message]
2012-02-17 8:57 ` [PATCHv2 1/7] " Andy Shevchenko
2012-02-17 8:57 ` [PATCHv2 2/7] media: tuners: " Andy Shevchenko
2012-02-17 8:57 ` [PATCHv2 3/7] media: gspca: " Andy Shevchenko
2012-02-17 8:57 ` [PATCHv2 4/7] media: dvb: " Andy Shevchenko
2012-02-17 8:57 ` [PATCHv2 5/7] media: ivtv: " Andy Shevchenko
2012-02-17 8:57 ` [PATCHv2 6/7] media: saa7164: " Andy Shevchenko
2012-02-17 8:57 ` [PATCHv2 7/7] media: saa7134: " Andy Shevchenko
2012-02-17 18:19 ` [PATCHv2 1/7] media: video: " Laurent Pinchart
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=1329386251.16824.83.camel@smile \
--to=andriy.shevchenko@linux.intel.com \
--cc=dacohen@gmail.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.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 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.