Skip to contentSkip to conversation

s390x: Fix bad dependency on asm-offsets.h

PATCH Applied Thomas Huth 3 participants 3 messages Jun 7, 2017 – Jun 8, 2017 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390x: Fix bad dependency on asm-offsets.h

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).

---
 s390x/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
s390x/Makefile +1 -1
index a61e163..470cbba 100644
@@ -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)
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Thomas Huth

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).

---
 s390x/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
s390x/Makefile +0 -0
index a61e163..470cbba 100644

s390x/Makefile arch_clean: asm_offsets_clean · line 46

Quoted 5 lines
s390x/Makefile +1 -1
@@ -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)
Signature · 3 lines
Thanks,

David
maintainer Applied
#2 lore raw
In reply to Thomas Huth
Quoted 17 lines · Thomas Huth

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).

---
 s390x/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
s390x/Makefile +0 -0
index a61e163..470cbba 100644

s390x/Makefile arch_clean: asm_offsets_clean · line 46

Quoted 5 lines
s390x/Makefile +1 -1
@@ -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