All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 tegra-cbootimage] Add automake option subdir-objects to prevent warnings
@ 2013-08-19 20:10 Stefan Agner
       [not found] ` <c0f44202ad8a959b1bd4c93f43c1dc42-XLVq0VzYD2Y@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Agner @ 2013-08-19 20:10 UTC (permalink / raw)
  To: linux-tegra-u79uwXL29TY76Z2rM5mHXA
  Cc: amartin-DDmLM1+adcrQT0dZR+AlfA, swarren-3lzwWm7+Weoh9ZMKESR00Q

The SoC specific code is in subdirectories which leads to warnings in
newer
automake versions. The option subdir-objects prevents those warnings.

Signed-off-by: Stefan Agner <stefan-XLVq0VzYD2Y@public.gmane.org>
---

Sorry, was in vacation. I could not reproduce the message Thierry sees
on
my automake 1.14 installation, however, the option make sense as far as
I 
understand its meaning.

 configure.ac    | 1 +
 src/Makefile.am | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index ccd0a55..9b83a21 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,6 +10,7 @@ AC_CONFIG_HEADERS([config.h])
 # Checks for programs.
 AC_PROG_CXX
 AC_PROG_CC
+AM_PROG_CC_C_O
 PKG_PROG_PKG_CONFIG
 
 # Checks for libraries.
diff --git a/src/Makefile.am b/src/Makefile.am
index 6fcc0d8..6fecfc7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,3 +1,5 @@
+AUTOMAKE_OPTIONS = subdir-objects
+
 AM_CFLAGS = -Wall -std=c99
 
 bin_PROGRAMS = cbootimage bct_dump
-- 
1.8.3.4

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

* Re: [PATCH v2 tegra-cbootimage] Add automake option subdir-objects to prevent warnings
       [not found] ` <c0f44202ad8a959b1bd4c93f43c1dc42-XLVq0VzYD2Y@public.gmane.org>
@ 2013-08-19 20:33   ` Thierry Reding
  2013-08-19 21:01   ` Stephen Warren
  2013-08-23 16:50   ` Stephen Warren
  2 siblings, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2013-08-19 20:33 UTC (permalink / raw)
  To: Stefan Agner
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	amartin-DDmLM1+adcrQT0dZR+AlfA, swarren-3lzwWm7+Weoh9ZMKESR00Q

[-- Attachment #1: Type: text/plain, Size: 1623 bytes --]

On Mon, Aug 19, 2013 at 10:10:20PM +0200, Stefan Agner wrote:
> The SoC specific code is in subdirectories which leads to warnings in
> newer
> automake versions. The option subdir-objects prevents those warnings.
> 
> Signed-off-by: Stefan Agner <stefan-XLVq0VzYD2Y@public.gmane.org>
> ---
> 
> Sorry, was in vacation. I could not reproduce the message Thierry sees
> on
> my automake 1.14 installation, however, the option make sense as far as
> I 
> understand its meaning.

Yes, automake 1.14 doesn't warn about it, presumably because it makes
sure to select AM_PROG_CC_C_O if subdir-objects is enabled. I can
reproduce the warning by downgrading to 1.13.4, though.

>  configure.ac    | 1 +
>  src/Makefile.am | 2 ++
>  2 files changed, 3 insertions(+)
> 
> diff --git a/configure.ac b/configure.ac
> index ccd0a55..9b83a21 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -10,6 +10,7 @@ AC_CONFIG_HEADERS([config.h])
>  # Checks for programs.
>  AC_PROG_CXX
>  AC_PROG_CC
> +AM_PROG_CC_C_O
>  PKG_PROG_PKG_CONFIG
>  
>  # Checks for libraries.
> diff --git a/src/Makefile.am b/src/Makefile.am
> index 6fcc0d8..6fecfc7 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -1,3 +1,5 @@
> +AUTOMAKE_OPTIONS = subdir-objects
> +

I don't remember if I mentioned it before, but I've seen a lot of
projects that keep these options in the configure.ac file (in the
AM_INIT_AUTOMAKE command). The GNU documentation isn't specific
about which variant is preferred, so either way:

Reviewed-by: Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH v2 tegra-cbootimage] Add automake option subdir-objects to prevent warnings
       [not found] ` <c0f44202ad8a959b1bd4c93f43c1dc42-XLVq0VzYD2Y@public.gmane.org>
  2013-08-19 20:33   ` Thierry Reding
@ 2013-08-19 21:01   ` Stephen Warren
  2013-08-23 16:50   ` Stephen Warren
  2 siblings, 0 replies; 4+ messages in thread
From: Stephen Warren @ 2013-08-19 21:01 UTC (permalink / raw)
  To: Stefan Agner
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA, amartin-DDmLM1+adcrQT0dZR+AlfA

On 08/19/2013 02:10 PM, Stefan Agner wrote:
> The SoC specific code is in subdirectories which leads to warnings in newer
> automake versions. The option subdir-objects prevents those warnings.

Everything still works fine in my evidently archaic automake-1.11.x, so,
Tested-by: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>

Allen, do you intend to apply this? If not, I'm happy to.

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

* Re: [PATCH v2 tegra-cbootimage] Add automake option subdir-objects to prevent warnings
       [not found] ` <c0f44202ad8a959b1bd4c93f43c1dc42-XLVq0VzYD2Y@public.gmane.org>
  2013-08-19 20:33   ` Thierry Reding
  2013-08-19 21:01   ` Stephen Warren
@ 2013-08-23 16:50   ` Stephen Warren
  2 siblings, 0 replies; 4+ messages in thread
From: Stephen Warren @ 2013-08-23 16:50 UTC (permalink / raw)
  To: Stefan Agner
  Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA, amartin-DDmLM1+adcrQT0dZR+AlfA

On 08/19/2013 02:10 PM, Stefan Agner wrote:
> The SoC specific code is in subdirectories which leads to warnings in
> newer
> automake versions. The option subdir-objects prevents those warnings.

I've applied this.

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

end of thread, other threads:[~2013-08-23 16:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-19 20:10 [PATCH v2 tegra-cbootimage] Add automake option subdir-objects to prevent warnings Stefan Agner
     [not found] ` <c0f44202ad8a959b1bd4c93f43c1dc42-XLVq0VzYD2Y@public.gmane.org>
2013-08-19 20:33   ` Thierry Reding
2013-08-19 21:01   ` Stephen Warren
2013-08-23 16:50   ` Stephen Warren

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.