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=-7.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT 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 A0AE6C433DF for ; Sat, 15 Aug 2020 13:04:21 +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 8062423122 for ; Sat, 15 Aug 2020 13:04:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8062423122 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 1k6vqk-0006RC-RF; Sat, 15 Aug 2020 13:03:54 +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 1k6vqj-0006R1-7W for xen-devel@lists.xenproject.org; Sat, 15 Aug 2020 13:03:53 +0000 X-Inumbo-ID: 105d1c67-473b-4976-9460-291ffb3013b9 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 105d1c67-473b-4976-9460-291ffb3013b9; Sat, 15 Aug 2020 13:03:51 +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 CE741B57C; Sat, 15 Aug 2020 13:04:13 +0000 (UTC) From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Samuel Thibault , Ian Jackson , Wei Liu , George Dunlap , Nick Rosbrook , Andrew Cooper , Jan Beulich , Julien Grall , Stefano Stabellini , Anthony PERARD Subject: [PATCH I v2 0/6] tools: streamline tools/libs/ building Date: Sat, 15 Aug 2020 15:03:35 +0200 Message-Id: <20200815130341.27147-1-jgross@suse.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 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" Generate many make variables automatically instead of having to reiterate common patterns multiple times. This is part I of a larger series. The previous version included the move of multiple other libraries below tools/libs. In V2 I have decided to split the series up, as this makes it easier to commit some parts early. Part I just contains some cleanup work and the automatic generation of the make variables, without moving any other libraries under tools/libs. Patches 1-5 can go in independently from each other, just patch 6 depends on some of the first 5 patches. The other parts will be sent out later, moving more libraries. Changes in V2: - split series up in multiple parts, part I containing only patches 1-5 and 12 of the series V1 - eliminate the LIBNAME variable from tools/libs/*/Makefile (patch 6) Juergen Gross (6): stubdom: add stubdom/mini-os.mk for Xen paths used by Mini-OS tools: switch XEN_LIBXEN* make variables to lower case (XEN_libxen*) tools: add a copy of library headers in tools/include tools: don't call make recursively from libs.mk tools: define ROUNDUP() in tools/include/xen-tools/libs.h tools: generate most contents of library make variables .gitignore | 1 + stubdom/mini-os.mk | 17 ++++ tools/Rules.mk | 134 ++++++++++++------------------ tools/console/daemon/io.c | 6 +- tools/golang/xenlight/Makefile | 4 +- tools/include/xen-tools/libs.h | 4 + tools/libs/call/Makefile | 4 +- tools/libs/call/buffer.c | 3 +- tools/libs/devicemodel/Makefile | 4 +- tools/libs/evtchn/Makefile | 4 +- tools/libs/foreignmemory/Makefile | 4 +- tools/libs/foreignmemory/linux.c | 3 +- tools/libs/gnttab/Makefile | 4 +- tools/libs/gnttab/private.h | 3 - tools/libs/hypfs/Makefile | 4 +- tools/libs/libs.mk | 37 +++++++-- tools/libs/toolcore/Makefile | 3 +- tools/libs/toollog/Makefile | 3 +- tools/libvchan/Makefile | 2 +- tools/libxc/Makefile | 2 +- tools/libxc/xg_private.h | 1 - tools/libxl/libxl_internal.h | 3 - tools/xenstat/libxenstat/Makefile | 2 +- tools/xenstore/Makefile | 2 +- tools/xenstore/xenstored_core.c | 2 - 25 files changed, 119 insertions(+), 137 deletions(-) create mode 100644 stubdom/mini-os.mk -- 2.26.2