On Fri, 2013-04-12 at 03:43 -0700, Luis R. Rodriguez wrote:
> On Fri, Apr 12, 2013 at 3:02 AM, Luis R. Rodriguez
> <[email protected]> wrote:
> > From: "Luis R. Rodriguez" <[email protected]>
> >
> > The Linux kernel uses srctree to help prefix header files
> > and scripts. When backporting we want to be able to override
> > driver's Makefiles' usage of srctree with our own. Since we
> > can't easily and sanely override the srctree itself without
> > causing a lot of issues just use the python generator to
> > do the change for us on the target Makefiles. This addresses
> > the srctree usage case and where ccflags was used without
> > prefixing any parent directory when used with drivers, the
> > kernel tends to fix that with addtree command.
> >
> > Signed-off-by: Luis R. Rodriguez <[email protected]>
> > ---
> >
> > Running ckmake now too so you can either apply or wait.
> >
> >  backport/Makefile.kernel |    2 ++
> >  gentree.py               |    4 +++-
> >  2 files changed, 5 insertions(+), 1 deletion(-)
> >
> > diff --git a/backport/Makefile.kernel b/backport/Makefile.kernel
> > index 91e7dd6..76202f8 100644
> > --- a/backport/Makefile.kernel
> > +++ b/backport/Makefile.kernel
> > @@ -15,6 +15,8 @@ NOSTDINC_FLAGS := \
> >         $(BACKPORTS_GIT_TRACKER_DEF) \
> >         $(CFLAGS)
> >
> > +backport_srctree = $(M)
> 
> this needs to be just srctree as the gen script will add the backport
> prefix for us.

I'd probably be a little more careful in teh regex and just replace
"$(srctree)" (needs escaping for regex)?

johannes

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to