diff mbox

[v2] Makefile: gard/pflash targets for CI build with HOSTCFLAGS/HOSTGCOVFLAGS

Message ID 20170718041248.22039-1-stewart@linux.vnet.ibm.com
State Accepted
Headers show

Commit Message

Stewart Smith July 18, 2017, 4:12 a.m. UTC
This enables us to do coverage reports on gard/pflash.

Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
---
Changes since v1: keep -O0 and gcov options for test build
---
 Makefile.main | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Cyril Bur July 18, 2017, 4:26 a.m. UTC | #1
On Tue, 2017-07-18 at 14:12 +1000, Stewart Smith wrote:
> This enables us to do coverage reports on gard/pflash.
> 
> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>

Reviewed-by: Cyril Bur <cyril.bur@au1.ibm.com>

> ---
> Changes since v1: keep -O0 and gcov options for test build
> ---
>  Makefile.main | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Makefile.main b/Makefile.main
> index b22925dac88a..7275ae6fe4da 100644
> --- a/Makefile.main
> +++ b/Makefile.main
> @@ -180,10 +180,10 @@ include $(SRC)/libstb/Makefile.inc
>  
>  # hack for travis-ci and coverity
>  gard:
> -	(cd external/gard; make)
> +	(cd external/gard; CFLAGS="$(HOSTCFLAGS) $(HOSTGCOVCFLAGS)" make)
>  
>  pflash:
> -	(cd external/pflash; make)
> +	(cd external/pflash; CFLAGS="$(HOSTCFLAGS) $(HOSTGCOVCFLAGS)" make)
>  
>  pflash-coverity:
>  	(cd external/pflash; ./build-all-arch.sh)
diff mbox

Patch

diff --git a/Makefile.main b/Makefile.main
index b22925dac88a..7275ae6fe4da 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -180,10 +180,10 @@  include $(SRC)/libstb/Makefile.inc
 
 # hack for travis-ci and coverity
 gard:
-	(cd external/gard; make)
+	(cd external/gard; CFLAGS="$(HOSTCFLAGS) $(HOSTGCOVCFLAGS)" make)
 
 pflash:
-	(cd external/pflash; make)
+	(cd external/pflash; CFLAGS="$(HOSTCFLAGS) $(HOSTGCOVCFLAGS)" make)
 
 pflash-coverity:
 	(cd external/pflash; ./build-all-arch.sh)