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

Cyril Bur cyrilbur at gmail.com
Tue Jul 18 14:26:21 AEST 2017


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 at linux.vnet.ibm.com>

Reviewed-by: Cyril Bur <cyril.bur at 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)


More information about the Skiboot mailing list