diff mbox

[kvm-unit-tests] s390x: Fix bad dependency on asm-offsets.h

Message ID 1496860977-22516-1-git-send-email-thuth@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Thomas Huth June 7, 2017, 6:42 p.m. UTC
When building the kvm-unit-tests for s390x in parallel ("make -j10"
for example), the build sometimes fails since asm-offsets.h has not
been generated yet. The problem is a bad rule in the Makefile: The
test cases are stored in the the "tests" variable, and not in
"test_cases" (which is just an abstract target, not a variable).

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 s390x/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Hildenbrand June 8, 2017, 7:44 a.m. UTC | #1
On 07.06.2017 20:42, Thomas Huth wrote:
> When building the kvm-unit-tests for s390x in parallel ("make -j10"
> for example), the build sometimes fails since asm-offsets.h has not
> been generated yet. The problem is a bad rule in the Makefile: The
> test cases are stored in the the "tests" variable, and not in
> "test_cases" (which is just an abstract target, not a variable).
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  s390x/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/s390x/Makefile b/s390x/Makefile
> index a61e163..470cbba 100644
> --- a/s390x/Makefile
> +++ b/s390x/Makefile
> @@ -43,4 +43,4 @@ arch_clean: asm_offsets_clean
>  	$(RM) $(TEST_DIR)/*.{o,elf} $(TEST_DIR)/.*.d lib/s390x/.*.d
>  
>  generated-files = $(asm-offsets)
> -$(test_cases:.elf=.o) $(cstart.o) $(cflatobjs): $(generated-files)
> +$(tests:.elf=.o) $(cstart.o) $(cflatobjs): $(generated-files)
> 

Reviewed-by: David Hildenbrand <david@redhat.com>
Paolo Bonzini June 8, 2017, 1:47 p.m. UTC | #2
On 07/06/2017 20:42, Thomas Huth wrote:
> When building the kvm-unit-tests for s390x in parallel ("make -j10"
> for example), the build sometimes fails since asm-offsets.h has not
> been generated yet. The problem is a bad rule in the Makefile: The
> test cases are stored in the the "tests" variable, and not in
> "test_cases" (which is just an abstract target, not a variable).
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  s390x/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/s390x/Makefile b/s390x/Makefile
> index a61e163..470cbba 100644
> --- a/s390x/Makefile
> +++ b/s390x/Makefile
> @@ -43,4 +43,4 @@ arch_clean: asm_offsets_clean
>  	$(RM) $(TEST_DIR)/*.{o,elf} $(TEST_DIR)/.*.d lib/s390x/.*.d
>  
>  generated-files = $(asm-offsets)
> -$(test_cases:.elf=.o) $(cstart.o) $(cflatobjs): $(generated-files)
> +$(tests:.elf=.o) $(cstart.o) $(cflatobjs): $(generated-files)
> 

Applied, thanks.

Paolo
diff mbox

Patch

diff --git a/s390x/Makefile b/s390x/Makefile
index a61e163..470cbba 100644
--- a/s390x/Makefile
+++ b/s390x/Makefile
@@ -43,4 +43,4 @@  arch_clean: asm_offsets_clean
 	$(RM) $(TEST_DIR)/*.{o,elf} $(TEST_DIR)/.*.d lib/s390x/.*.d
 
 generated-files = $(asm-offsets)
-$(test_cases:.elf=.o) $(cstart.o) $(cflatobjs): $(generated-files)
+$(tests:.elf=.o) $(cstart.o) $(cflatobjs): $(generated-files)