From patchwork Sat Apr 11 09:22:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudio Fontana X-Patchwork-Id: 284468 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=-3.8 required=3.0 tests=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 E395BC2BA2B for ; Sat, 11 Apr 2020 09:23:21 +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 AAA7F20857 for ; Sat, 11 Apr 2020 09:23:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AAA7F20857 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:50160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNCMC-0002uo-RO for qemu-devel@archiver.kernel.org; Sat, 11 Apr 2020 05:23:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38903) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNCLJ-0001Mw-SH for qemu-devel@nongnu.org; Sat, 11 Apr 2020 05:22:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNCLI-0001Ub-NB for qemu-devel@nongnu.org; Sat, 11 Apr 2020 05:22:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:38960) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jNCLI-0001UC-He for qemu-devel@nongnu.org; Sat, 11 Apr 2020 05:22:24 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 86F89AC50; Sat, 11 Apr 2020 09:22:22 +0000 (UTC) From: Claudio Fontana To: Peter Maydell , David Gibson , Philippe Mathieu-Daude , Markus Armbruster Subject: [PATCH v3 0/2] Makefile: libfdt: build only the strict necessary Date: Sat, 11 Apr 2020 11:22:00 +0200 Message-Id: <20200411092203.4167-1-cfontana@suse.de> X-Mailer: git-send-email 2.16.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 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: Claudio Fontana , Alex Bennee , Laurent Vivier , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" v2 -> v3: * changed into a 2 patch series; in the second patch we remove the old compatibility gunks that were meant for removal some time after 4.1. * renamed the libfdt PHONY rule to dtc/all, with the intent to make existing working trees forward and backward compatible across the change. v1 -> v2: * fix error generated when running UNCHECKED_GOALS without prior configure, for example during make docker-image-fedora. Without configure, DSOSUF is empty, and the module pattern rule in rules.mak that uses this variable can match too much; provide a default in the Makefile to avoid it. * only attempt to build the archive when there is a non-empty list of objects. This could be done in general for the %.a: pattern in rules.mak, but maybe there are valid reasons to build an empty .a? * removed some intermediate variables that did not add much value (LIBFDT_srcdir, LIBFDT_archive) Tested locally with 3 VPATH configurations (no-, VPATH, VPATH in src subdir), and with docker-image-fedora, docker-test-debug@fedora that failed before. Claudio Fontana (2): Makefile: libfdt: build only the strict necessary Makefile: remove old compatibility gunks Makefile | 32 ++++++++++++++++---------------- configure | 6 +----- rules.mak | 2 ++ 3 files changed, 19 insertions(+), 21 deletions(-)