On Fri, Apr 12, 2013 at 3:02 AM, Luis R. Rodriguez <mcgrof@xxxxxxxxxxxxxxxx> wrote: > From: "Luis R. Rodriguez" <mcgrof@xxxxxxxxxxxxxxxx> > > 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 <mcgrof@xxxxxxxxxxxxxxxx> > --- > > 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. ckmake test 1 failed :) Luis -- To unsubscribe from this list: send the line "unsubscribe backports" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html