redhat/Makefile: honor BREW_FLAGS like the kernel

When doing make rh-brew on a RHEL kernel one can set BREW_FLAGS
to anything that 'brew build' accepts (see 'brew build -h'). This
is useful to avoid wasting resources when only one arch needs to
be compiled for a test, as the arch-override parameter can be
set. For example,

  BREW_FLAGS='--arch-override=aarch64' make -C redhat rh-brew

only builds for aarch64.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
This commit is contained in:
Miroslav Rezanina 2017-06-26 13:51:51 +02:00
parent c8afc5ecbc
commit 836b4e3d7c

View file

@ -11,7 +11,7 @@ else
DS=@
endif
BREW_OPTIONS:=--scratch
BREW_OPTIONS:=$(BREW_FLAGS) --scratch
# Hide progress bar in scripts
ifeq ($(NOPROGRESS),1)