From patchwork Sat Jan 18 14:06:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 11340089 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C555592A for ; Sat, 18 Jan 2020 14:07:49 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 5948A2469C for ; Sat, 18 Jan 2020 14:07:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="HQ8+3PMF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5948A2469C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:40632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1isolP-0001Q8-2I for patchwork-qemu-devel@patchwork.kernel.org; Sat, 18 Jan 2020 09:07:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45282) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1isokO-0000Bd-2o for qemu-devel@nongnu.org; Sat, 18 Jan 2020 09:06:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1isokI-0007Ut-Ql for qemu-devel@nongnu.org; Sat, 18 Jan 2020 09:06:41 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:52620 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1isokI-0007UA-Mq for qemu-devel@nongnu.org; Sat, 18 Jan 2020 09:06:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579356397; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1rKRKN3OpUWiFF7mmOWHDQpByBqOQ7tZ0Y7nIN7DNi4=; b=HQ8+3PMFvy0WGmQItGVY5hH5JivqCzaIHtKEvw8Gd5yfOwF58VIIhwQO30IrALPwnDFDUT Um5OmbrGlvTnO/sOwsW3uBoOxga3JKo8RmubDG9MTGJ0v4zKa7RAdX1MZEsySyPVDQlEpq 3I1u5gxXpxn7rKVQgRM0lckIqkeKWsY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-198-YOaUvgn_NdqXjvPZdRt9rg-1; Sat, 18 Jan 2020 09:06:33 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E03A71005510; Sat, 18 Jan 2020 14:06:31 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-59.brq.redhat.com [10.40.204.59]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C0DBC5C1D4; Sat, 18 Jan 2020 14:06:23 +0000 (UTC) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Riku Voipio , Laurent Vivier Subject: [PATCH v2 0/6] buildsys: Build faster (mostly tools and linux-user) Date: Sat, 18 Jan 2020 15:06:13 +0100 Message-Id: <20200118140619.26333-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: YOaUvgn_NdqXjvPZdRt9rg-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 205.139.110.61 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , Eduardo Habkost , =?utf-8?q?Alex_Benn=C3=A9e?= , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" In some configuration (linux-user, tools) we can ignore building various objects (and the libfdt). Tested with all the combinations of --[enable|disable]-tools, --[enable|disable]-user and --[enable|disable]-system using the following commands (suggested by Laurent Vivier in v1): $ mkdir build $ cd build $ for user in enable disable; do \ for tools in enable disable; do \ for system in enable disable; do \ rm -fr build-$user-$system-$tools && \ mkdir build-$user-$system-$tools && \ (cd build-$user-$system-$tools && \ ../../configure \ --${user}-user \ --${system}-system \ --${tools}-tools \ --disable-docs \ ); \ done; \ done; \ done Then building each of the 8 subdirectories on x86_64 and aarch64 hosts, running 'make check', and only on x86_64: 'make run-tcg-tests-x86_64-linux-user'. All CI green: https://gitlab.com/philmd/qemu/pipelines/110420332 https://travis-ci.org/philmd/qemu/builds/638781159 https://app.shippable.com/github/philmd/qemu/runs/587/summary/console Since v1: - no code change, improved commit description, added review tags - added 2 new patches touching hw/core/ (remove reset.o from linux-user) $ git backport-diff -u v1 Key: [----] : patches are identical [####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively 001/6:[----] [--] 'configure: Do not build libfdt if not required' 002/6:[----] [--] 'Makefile: Clarify all the codebase requires qom/ objects' 003/6:[----] [--] 'Makefile: Restrict system emulation and tools objects' 004/6:[----] [--] 'Makefile: Remove unhelpful comment' 005/6:[down] 'hw/core: Restrict reset handlers API to system-mode' 006/6:[down] 'hw/core/Makefile: Group generic objects versus system-mode objects' Supersedes: <20200109153939.27173-1-philmd@redhat.com> Philippe Mathieu-Daudé (6): configure: Do not build libfdt if not required Makefile: Clarify all the codebase requires qom/ objects Makefile: Restrict system emulation and tools objects Makefile: Remove unhelpful comment hw/core: Restrict reset handlers API to system-mode hw/core/Makefile: Group generic objects versus system-mode objects configure | 2 ++ Makefile.objs | 31 ++++++++++--------------------- hw/core/Makefile.objs | 31 ++++++++++++++++--------------- 3 files changed, 28 insertions(+), 36 deletions(-)