summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.rules3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 9a1f986f35..e9b0a1802c 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -63,7 +63,8 @@ $(test-targets): test-%:
@set -e ; \
echo " BUILD $(out)/$*" ; \
$(MAKE) --no-print-directory BOARD=$(BOARD) PROJECT=$* \
- V=$(V) out=$(out)/$* TEST_BUILD=y
+ V=$(V) out=$(out)/$* TEST_BUILD=y; \
+ cp $(out)/$*/$*.bin $(out)/test-$*.bin
$(qemu-test-targets): qemu-%: test-%
$(call quiet,qemu,TEST )