Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B00AC433E1 for ; Mon, 17 Aug 2020 11:08:01 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D695A2067C for ; Mon, 17 Aug 2020 11:08:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D695A2067C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1k7czX-0005hN-0o; Mon, 17 Aug 2020 11:07:51 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1k7czW-0005hI-JM for xen-devel@lists.xenproject.org; Mon, 17 Aug 2020 11:07:50 +0000 X-Inumbo-ID: a46b8f8c-8ea1-4c51-b7b0-210f8d07ead2 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id a46b8f8c-8ea1-4c51-b7b0-210f8d07ead2; Mon, 17 Aug 2020 11:07:49 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id DDB4AADAD; Mon, 17 Aug 2020 11:08:13 +0000 (UTC) Subject: Re: [PATCH II v2 01/17] stubdom: add correct dependencies for Xen libraries To: Samuel Thibault , xen-devel@lists.xenproject.org, Ian Jackson , Wei Liu References: <20200817094922.15768-1-jgross@suse.com> <20200817094922.15768-2-jgross@suse.com> <20200817101243.vxb6feikogjv6rqj@function> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: <6da9feb2-62ff-794c-7122-75df60a18bfb@suse.com> Date: Mon, 17 Aug 2020 13:07:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200817101243.vxb6feikogjv6rqj@function> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On 17.08.20 12:12, Samuel Thibault wrote: > Hello, > > Juergen Gross, le lun. 17 août 2020 11:49:06 +0200, a ecrit: >> The stubdom Makefile is missing several dependencies between Xen >> libraries. Add them. > >> @@ -405,6 +405,7 @@ libs-$(XEN_TARGET_ARCH)/toollog/libxentoollog.a: mk-headers-$(XEN_TARGET_ARCH) $ >> >> .PHONY: libxenevtchn >> libxenevtchn: libs-$(XEN_TARGET_ARCH)/evtchn/libxenevtchn.a >> +libs-$(XEN_TARGET_ARCH)/evtchn/libxenevtchn.a: libxentoolcore > > I see > > evtchn/Makefile:USELIBS := toollog toolcore > > So it'd actually need libxentoollog as well? > >> @@ -423,6 +425,7 @@ libs-$(XEN_TARGET_ARCH)/gnttab/libxengnttab.a: mk-headers-$(XEN_TARGET_ARCH) $(N >> >> .PHONY: libxencall >> libxencall: libs-$(XEN_TARGET_ARCH)/call/libxencall.a >> +libs-$(XEN_TARGET_ARCH)/call/libxencall.a: libxentoolcore > > Same with > > call/Makefile:USELIBS := toollog toolcore > > ? > >> @@ -432,6 +435,7 @@ libs-$(XEN_TARGET_ARCH)/call/libxencall.a: mk-headers-$(XEN_TARGET_ARCH) $(NEWLI >> >> .PHONY: libxenforeignmemory >> libxenforeignmemory: libs-$(XEN_TARGET_ARCH)/foreignmemory/libxenforeignmemory.a >> +libs-$(XEN_TARGET_ARCH)/foreignmemory/libxenforeignmemory.a: libxentoolcore > > Same with > > foreignmemory/Makefile:USELIBS := toollog toolcore > > ? > > Possibly they are actually already coming from somewhere by > transitivity, but it'd probably better to just make sure we match > Makefiles' USELIBS. Yes. Thanks for catching those. When all libraries have been switched to the USELIBS scheme I'll add a patch using those variables in the stubdom Makefile, too. This will avoid duplicate work when adding new libs or changing dependencies. Juergen