From: Paolo Bonzini Subject: Re: [kvm-unit-tests PATCH] s390x: Fix bad dependency on asm-offsets.h Date: Thu, 8 Jun 2017 15:47:41 +0200 Message-ID: <46c7b0bc-0261-2e29-121b-1990f20f360f@redhat.com> References: <1496860977-22516-1-git-send-email-thuth@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= To: Thomas Huth , David Hildenbrand , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:40504 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751856AbdFHNru (ORCPT ); Thu, 8 Jun 2017 09:47:50 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 766117F746 for ; Thu, 8 Jun 2017 13:47:45 +0000 (UTC) In-Reply-To: <1496860977-22516-1-git-send-email-thuth@redhat.com> Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: 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 > --- > 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