All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] backports: catch make in backport template directory
@ 2013-05-28 20:33 Johannes Berg
  2013-05-28 21:13 ` Larry Finger
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2013-05-28 20:33 UTC (permalink / raw)
  To: backports; +Cc: Johannes Berg

From: Johannes Berg <johannes.berg@intel.com>

Catch running make in the backport template directory by
checking for the .local-symbols file. If it isn't there
then we're in the input/template directory rather than in
an output tree, give the user a hint about it instead of
keeling over.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 backport/Makefile | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/backport/Makefile b/backport/Makefile
index 287b27d..f0c7586 100644
--- a/backport/Makefile
+++ b/backport/Makefile
@@ -37,6 +37,18 @@ mrproper:
 	@rm -f backport-include/backport/autoconf.h
 
 .DEFAULT:
+	@set -e ; test -f .local-symbols || (						\
+	echo "/--------------"								;\
+	echo "| You shouldn't run make in the backports tree, but only in"		;\
+	echo "| the generated output. This here is only the skeleton code"		;\
+	echo "| copied into the output directory. To use the backport system"		;\
+	echo "| from scratch, go into the top-level directoroy and run"			;\
+	echo "|	./gentree.py /path/to/linux-next/ /tmp/output"				;\
+	echo "| and then make menuconfig/... in the output directory. See"		;\
+	echo "|	./gentree.py --help"							;\
+	echo "| for more options."							;\
+	echo "\\--"									;\
+	false)
 	@set -e ; test -f $(KERNEL_CONFIG) || (						\
 	echo "/--------------"								;\
 	echo "| Your kernel headers are incomplete/not installed."			;\
-- 
1.8.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] backports: catch make in backport template directory
  2013-05-28 20:33 [PATCH] backports: catch make in backport template directory Johannes Berg
@ 2013-05-28 21:13 ` Larry Finger
  2013-05-28 21:34   ` Johannes Berg
  0 siblings, 1 reply; 4+ messages in thread
From: Larry Finger @ 2013-05-28 21:13 UTC (permalink / raw)
  To: Johannes Berg; +Cc: backports, Johannes Berg

On 05/28/2013 03:33 PM, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@intel.com>
>
> Catch running make in the backport template directory by
> checking for the .local-symbols file. If it isn't there
> then we're in the input/template directory rather than in
> an output tree, give the user a hint about it instead of
> keeling over.
>
> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
> ---
>   backport/Makefile | 12 ++++++++++++
>   1 file changed, 12 insertions(+)
>
> diff --git a/backport/Makefile b/backport/Makefile
> index 287b27d..f0c7586 100644
> --- a/backport/Makefile
> +++ b/backport/Makefile
> @@ -37,6 +37,18 @@ mrproper:
>   	@rm -f backport-include/backport/autoconf.h
>
>   .DEFAULT:
> +	@set -e ; test -f .local-symbols || (						\
> +	echo "/--------------"								;\
> +	echo "| You shouldn't run make in the backports tree, but only in"		;\
> +	echo "| the generated output. This here is only the skeleton code"		;\
> +	echo "| copied into the output directory. To use the backport system"		;\
> +	echo "| from scratch, go into the top-level directoroy and run"			;\

=======================================================^ Typo here.

Larry


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] backports: catch make in backport template directory
  2013-05-28 21:13 ` Larry Finger
@ 2013-05-28 21:34   ` Johannes Berg
  2013-05-28 22:10     ` Luis R. Rodriguez
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2013-05-28 21:34 UTC (permalink / raw)
  To: Larry Finger; +Cc: backports

On Tue, 2013-05-28 at 16:13 -0500, Larry Finger wrote:
> On 05/28/2013 03:33 PM, Johannes Berg wrote:
> > From: Johannes Berg <johannes.berg@intel.com>
> >
> > Catch running make in the backport template directory by
> > checking for the .local-symbols file. If it isn't there
> > then we're in the input/template directory rather than in
> > an output tree, give the user a hint about it instead of
> > keeling over.
> >
> > Signed-off-by: Johannes Berg <johannes.berg@intel.com>
> > ---
> >   backport/Makefile | 12 ++++++++++++
> >   1 file changed, 12 insertions(+)
> >
> > diff --git a/backport/Makefile b/backport/Makefile
> > index 287b27d..f0c7586 100644
> > --- a/backport/Makefile
> > +++ b/backport/Makefile
> > @@ -37,6 +37,18 @@ mrproper:
> >   	@rm -f backport-include/backport/autoconf.h
> >
> >   .DEFAULT:
> > +	@set -e ; test -f .local-symbols || (						\
> > +	echo "/--------------"								;\
> > +	echo "| You shouldn't run make in the backports tree, but only in"		;\
> > +	echo "| the generated output. This here is only the skeleton code"		;\
> > +	echo "| copied into the output directory. To use the backport system"		;\
> > +	echo "| from scratch, go into the top-level directoroy and run"			;\
> 
> =======================================================^ Typo here.

Good catch, thanks. Luis, can you just fix that when you apply or do you
want a resend?

johannes


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] backports: catch make in backport template directory
  2013-05-28 21:34   ` Johannes Berg
@ 2013-05-28 22:10     ` Luis R. Rodriguez
  0 siblings, 0 replies; 4+ messages in thread
From: Luis R. Rodriguez @ 2013-05-28 22:10 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Larry Finger, backports

On Tue, May 28, 2013 at 2:34 PM, Johannes Berg
<johannes@sipsolutions.net> wrote:
> On Tue, 2013-05-28 at 16:13 -0500, Larry Finger wrote:
>> On 05/28/2013 03:33 PM, Johannes Berg wrote:
>> > From: Johannes Berg <johannes.berg@intel.com>
>> >
>> > Catch running make in the backport template directory by
>> > checking for the .local-symbols file. If it isn't there
>> > then we're in the input/template directory rather than in
>> > an output tree, give the user a hint about it instead of
>> > keeling over.
>> >
>> > Signed-off-by: Johannes Berg <johannes.berg@intel.com>
>> > ---
>> >   backport/Makefile | 12 ++++++++++++
>> >   1 file changed, 12 insertions(+)
>> >
>> > diff --git a/backport/Makefile b/backport/Makefile
>> > index 287b27d..f0c7586 100644
>> > --- a/backport/Makefile
>> > +++ b/backport/Makefile
>> > @@ -37,6 +37,18 @@ mrproper:
>> >     @rm -f backport-include/backport/autoconf.h
>> >
>> >   .DEFAULT:
>> > +   @set -e ; test -f .local-symbols || (                                           \
>> > +   echo "/--------------"                                                          ;\
>> > +   echo "| You shouldn't run make in the backports tree, but only in"              ;\
>> > +   echo "| the generated output. This here is only the skeleton code"              ;\
>> > +   echo "| copied into the output directory. To use the backport system"           ;\
>> > +   echo "| from scratch, go into the top-level directoroy and run"                 ;\
>>
>> =======================================================^ Typo here.
>
> Good catch, thanks. Luis, can you just fix that when you apply or do you
> want a resend?

I've fixed it prior to applying. Thanks, applied and pushed!

  Luis

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-28 22:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-28 20:33 [PATCH] backports: catch make in backport template directory Johannes Berg
2013-05-28 21:13 ` Larry Finger
2013-05-28 21:34   ` Johannes Berg
2013-05-28 22:10     ` Luis R. Rodriguez

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.