From nobody Tue Feb 10 06:07:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1578579760; cv=none; d=zohomail.com; s=zohoarc; b=jpEk1IhbZCuiT/sCaoe/kZEEdjr/+MdQxfIFFDekxKvQNsp9dGgK2zWafocoZ8n0NwPppFDFCpfpCGuW1PD7u56m/rwpJoJZX+WT4iGg4LLg286CSoy373hbSSTJoTlsvJNv23XkfjGJGJSc02ioeKROo7G3prd7IGJfXgYbD3s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578579760; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=aLSGKJVJ8GzXMyvCS2+6bjDQkXD5H9Xhihyf+FOwMEw=; b=hPxDkV3p0ZXWHijPejmfe0EuUEPRXe0dUybP1rkOsuaFwDNeDXx4oTeo0BfDWiN842rEJD93FPZEqD7dfmQUUd8xIgmGB9d/vuUaL5hk/f21v1JU3rKMIbH/YhkWLlRJITiMmN6PRHbRhYVJq6U124YOJeRy/CwNDurhVJLDtsU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1578579760827274.20051447589503; Thu, 9 Jan 2020 06:22:40 -0800 (PST) Received: from localhost ([::1]:33044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipYhr-0005TF-BK for importer@patchew.org; Thu, 09 Jan 2020 09:22:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59760) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipYeY-0001AB-4e for qemu-devel@nongnu.org; Thu, 09 Jan 2020 09:19:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipYeW-0006DK-LL for qemu-devel@nongnu.org; Thu, 09 Jan 2020 09:19:13 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:37118) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipYeW-00068N-Dx for qemu-devel@nongnu.org; Thu, 09 Jan 2020 09:19:12 -0500 Received: by mail-wr1-x42f.google.com with SMTP id w15so7602274wru.4 for ; Thu, 09 Jan 2020 06:19:12 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id p26sm2883902wmc.24.2020.01.09.06.19.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 06:19:06 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id A3B221FF98; Thu, 9 Jan 2020 14:18:59 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aLSGKJVJ8GzXMyvCS2+6bjDQkXD5H9Xhihyf+FOwMEw=; b=UEOEdLbWJX/2v8znXz/3MOkA7jWwwCQYBK4whGRG4/K6UGpFFMMw1T4l1YbOzxlGDw 0cyHAtbnVHeyPa7wdRUkKrG48tzGaccX2E2toAouccgUgWS8kUFsQ+VDHt6gQfIDPieo BE/JS/knoaI/FoeevoWt3OCrRab2xPsv2ZShWwIDFaKnYTG2h47eFOubJTstaqF8VHsa xyvcrnBD3sCIt/lyH4clHD0uRuet2ogNIi2mHVYuXQT+8sxOrxT/FWqvH5yAByLk1ojN UbbFrZV6tUUgGgGjcell4vM8hOH7BwOxQQQhH2/gznUvdRewS/gvJ8ru42b2NTaefla0 oZNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aLSGKJVJ8GzXMyvCS2+6bjDQkXD5H9Xhihyf+FOwMEw=; b=EVbt+lXAnQqDi40mlP7f33kWRljAk1IZJ7LHr6MCYuZWerqpUXCQRSaFPSJbDuZrbj 22nBDQIKPI9RxelmCVZA1iSchNoqnziTPsU4bnRG8VQ71Iynpt7kaqLzQd2ubQB12oLT cEot5LziuU8fkBBxlO65GHEwDvem93cQvJqwfWIcNOHvibd0fSr3IGhWaXPlYIIiIFeX yHPUrxF/34TqkVl4ehCn1mMqYtYYP5AsJHRFuf3OlmElyCmd6Wt8P2AFo5kSEDBLHuIs ZbJ4S5Mw92hhk3yKR3qm23LE3AZyvApvl6m7e7HXiuMeeBv7jr8ZaBSlmurijIQl9t0M bhuA== X-Gm-Message-State: APjAAAX2uitayPtm3Eyq2XsTWeIlrikrnCiZpAwC2crkggyxR0ZhGkpZ YuQspj9d5nrR39B172luBdK1RVMCHNs= X-Google-Smtp-Source: APXvYqzhHoQmVbY8yq1ACK4vAy69EN+RsVxT9PxeMYDz23+LD3UW5+a1Nvz/WEM/UhQtU/cAo1WZyw== X-Received: by 2002:a5d:404b:: with SMTP id w11mr11802595wrp.171.1578579551330; Thu, 09 Jan 2020 06:19:11 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL v2 08/14] testing: don't nest build for fp-test Date: Thu, 9 Jan 2020 14:18:52 +0000 Message-Id: <20200109141858.14376-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200109141858.14376-1-alex.bennee@linaro.org> References: <20200109141858.14376-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42f 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: "Emilio G . Cota" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org, Aurelien Jarno Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Re-calling the main make is counter-productive and really messes up with parallel builds. Just ensure we have built the pre-requisites before we build the fp-test bits. If the user builds manually just complain if the parent build hasn't got the bits we need. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Emilio G. Cota diff --git a/tests/Makefile.include b/tests/Makefile.include index 49e3b0d3194..7a767bf1148 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -969,7 +969,7 @@ FP_TEST_BIN=3D$(BUILD_DIR)/tests/fp/fp-test =20 # the build dir is created by configure .PHONY: $(FP_TEST_BIN) -$(FP_TEST_BIN): +$(FP_TEST_BIN): config-host.h $(test-util-obj-y) $(call quiet-command, \ $(MAKE) $(SUBDIR_MAKEFLAGS) -C $(dir $@) V=3D"$(V)" $(notdir $@), \ "BUILD", "$(notdir $@)") diff --git a/tests/fp/Makefile b/tests/fp/Makefile index 5a35e7c2109..56768ecfd2f 100644 --- a/tests/fp/Makefile +++ b/tests/fp/Makefile @@ -554,15 +554,13 @@ TF_OBJS_LIB +=3D $(TF_OBJS_TEST) =20 BINARIES :=3D fp-test$(EXESUF) fp-bench$(EXESUF) =20 -# everything depends on config-host.h because platform.h includes it -all: $(BUILD_DIR)/config-host.h - $(MAKE) $(BINARIES) +# We require artefacts from the main build including config-host.h +# because platform.h includes it. Rather than re-invoking the main +# build we just error out if things aren't there. +$(LIBQEMUUTIL) $(BUILD_DIR)/config-host.h: + $(error $@ missing, re-run parent build) =20 -$(LIBQEMUUTIL): - $(MAKE) -C $(BUILD_DIR) libqemuutil.a - -$(BUILD_DIR)/config-host.h: - $(MAKE) -C $(BUILD_DIR) config-host.h +all: $(BUILD_DIR)/config-host.h $(BINARIES) =20 # libtestfloat.a depends on libsoftfloat.a, so specify it first FP_TEST_LIBS :=3D libtestfloat.a libsoftfloat.a $(LIBQEMUUTIL) --=20 2.20.1