summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2019-09-20 10:38:07 +0200
committerPhilippe Mathieu-Daudé <philmd@redhat.com>2019-10-07 15:13:50 +0200
commit53fde085edf397c8de69de4e9f85561fe6668b09 (patch)
tree0be711ff9580b52f4714557570440f38e416bc77
parent6f8a70f62f8a4089567ea05d475f6f112dec5601 (diff)
downloadfocaccia-qemu-53fde085edf397c8de69de4e9f85561fe6668b09.tar.gz
focaccia-qemu-53fde085edf397c8de69de4e9f85561fe6668b09.zip
edk2 build scripts: honor external BaseTools flags with uefi-test-tools
Unify the recipe for "build-edk2-tools" in
"tests/uefi-test-tools/Makefile" with the recipe for "edk2-basetools" in
"roms/Makefile".

Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20190920083808.21399-2-lersek@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
-rw-r--r--tests/uefi-test-tools/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/uefi-test-tools/Makefile b/tests/uefi-test-tools/Makefile
index 1d78bc14d5..7e0177d733 100644
--- a/tests/uefi-test-tools/Makefile
+++ b/tests/uefi-test-tools/Makefile
@@ -99,7 +99,9 @@ Build/bios-tables-test.%.efi: build-edk2-tools
 	+./build.sh $(edk2_dir) BiosTablesTest $* $@
 
 build-edk2-tools:
-	$(MAKE) -C $(edk2_dir)/BaseTools
+	$(MAKE) -C $(edk2_dir)/BaseTools \
+		EXTRA_OPTFLAGS='$(EDK2_BASETOOLS_OPTFLAGS)' \
+		EXTRA_LDFLAGS='$(EDK2_BASETOOLS_LDFLAGS)'
 
 clean:
 	rm -rf Build Conf log