From patchwork Wed Jun 13 12:55:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 138460 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp688463lji; Wed, 13 Jun 2018 05:59:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ9SokTjwrIPRZUkOJII+wwDixFJBbi88OjTDNjoDuGBqc510et2ZgTt2jQOvqKI335j9q8 X-Received: by 2002:a37:2801:: with SMTP id o1-v6mr4114252qkh.319.1528894783005; Wed, 13 Jun 2018 05:59:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528894783; cv=none; d=google.com; s=arc-20160816; b=iFcUOCq+EwyMawdB4hhLdhfUJiqViNQ6+fFKgRIZSgSrmIfdq2zXfFiUd+ydfCRJ75 YambEuI9wxc+t47kvXO7DAA16xG3Syg8bGxCcNjiDE+xXFS+oKQATIUrPBjR1LAYf2N0 2IknvBAegW/3yNmrsbxiQjqULY/dPdvwj49aAXaL3FPF28UgFRgxkJC0DtDSbwsOYwgF KDDZtwrqF+wfvUSb6t3ChhoPSlVi3DVx5xXWmfNILtiKLvuGyRFrxj5d648kJ7KY1l30 31BSJT+FUMv2xcJxN8t5gxy8tlDPxcdtUWL60n+SOqLbGJnUY1HWRlPZtWRNMU8IsqZx QTUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=KCKIq+8OEady2Byjj4NMgletq2g04qOhocFOf1HWHBA=; b=jC0UMgRcamtNkQPWn3kX7mv7+tQE7jurv5AsLNNzgS58evOrBGL/PBwndADVY7OD3T ax/HMNvql0RLfrSaT2pvotBk0Zm5ODI6eUKsOxMNab8lkZ8LKTw6WKHJ7y/jAmlPnffT cTlfPbs2zulazU/uAIcjej2ZR0GCOtywpLJ3eto2430FkOkTNewpMHX83JPGZWKL+4bO LcU21qqlung+mBnHblxE+pn3PEJJ8TKntRfd+7c2DP0hl6RgdcB0szIdoBw1M5q8o6hI +aVdD/oJBP66+R+I3QUfyFKB9rayuQCzZ6T4EO8d/tSUUQVd6/pIx/OR7fhMfNxYVq5I Q1qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=b9Y0L1Yh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id c9-v6si2464910qtp.300.2018.06.13.05.59.42 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 13 Jun 2018 05:59:42 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=b9Y0L1Yh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:34006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT5NG-0005Jb-HI for patch@linaro.org; Wed, 13 Jun 2018 08:59:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT5Jp-0002aa-C2 for qemu-devel@nongnu.org; Wed, 13 Jun 2018 08:56:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fT5Jm-00051z-MC for qemu-devel@nongnu.org; Wed, 13 Jun 2018 08:56:09 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:56059) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fT5Jm-00050b-F9 for qemu-devel@nongnu.org; Wed, 13 Jun 2018 08:56:06 -0400 Received: by mail-wm0-x243.google.com with SMTP id v16-v6so4521524wmh.5 for ; Wed, 13 Jun 2018 05:56:06 -0700 (PDT) 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=KCKIq+8OEady2Byjj4NMgletq2g04qOhocFOf1HWHBA=; b=b9Y0L1YhKkexSWaHhONAu5baePgADIu0RVtm/yWGHUvfxYjFhx1wEwnJzi6Y8jqZkF jBVtj00mJX3WKFF4Ojw8qB9E2QtUTKR49l3W+MCqytSmOFtQish98qInVCoD9zvnQDKE pbyBtHcYFDb/DRY0+9YtU3vAj1/JSD/uuaykw= 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=KCKIq+8OEady2Byjj4NMgletq2g04qOhocFOf1HWHBA=; b=R3eruhGyY9FbgqF4V17V9CQ9lQkIRc0iiAqLf5pX2rD7AJqqUspyRo82Y7bUbncOZK ZtxzGU9UmjjN+PKTNxnk3Cg3Vxqsr3626UaTrxx5sH+0/BuHXGIaFiQDbMdTf3CEXuQg 1tj3XAoEqEpGEage/x1RyLXuLMqhj2/Y0Kp/A/juHnxU3CBymoAxdVlGtlgXo9WAT3iQ dDTpIaQJPBc+hs1ArPaJCKafQqZSFt8vU5obdYdrrH5llsZoLNoSa8Ceq+TB7oYqYIpB dbPiAv4WH3G6+I4nXqdhDdajYOFLEwhWnUb8ru4H6048cXzYuiyXxwQF8pjd0vqPI0bE N+5w== X-Gm-Message-State: APt69E3972llsCN4uMpiM4eMUI1e1OO2n2CYB8mD/U7yN+z8sk8pgKvB 7bQlGF8g2NflqVntjm+CcqUEgQ== X-Received: by 2002:a1c:14cc:: with SMTP id 195-v6mr3317266wmu.48.1528894565395; Wed, 13 Jun 2018 05:56:05 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id l15-v6sm2754700wrs.95.2018.06.13.05.56.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Jun 2018 05:56:03 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 634113E1124; Wed, 13 Jun 2018 13:56:01 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Wed, 13 Jun 2018 13:55:43 +0100 Message-Id: <20180613125601.14371-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180613125601.14371-1-alex.bennee@linaro.org> References: <20180613125601.14371-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [RISU PATCH v3 04/22] build-all-arches: do a distclean $(SRC) configured X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-arm@nongnu.org, richard.henderson@linaro.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This can cause much confusion when you have been building in your source tree. I've added a distclean so we don't unexpectedly drop the config for normal make clean invocations. Signed-off-by: Alex Bennée --- Makefile | 3 +++ build-all-archs | 10 ++++++++++ 2 files changed, 13 insertions(+) -- 2.17.1 Reviewed-by: Richard Henderson diff --git a/Makefile b/Makefile index ca80eef..16e48a0 100644 --- a/Makefile +++ b/Makefile @@ -51,3 +51,6 @@ $(PROG): $(OBJS) clean: rm -f $(PROG) $(OBJS) $(BINS) + +distclean: clean + rm -f config.h Makefile.in diff --git a/build-all-archs b/build-all-archs index a2f5cff..a7cd7c2 100755 --- a/build-all-archs +++ b/build-all-archs @@ -54,6 +54,16 @@ while [[ "$1" = -* ]]; do esac done +# +# If you are developing your primary architecture directly out of the +# source tree you can confuse any out-of-tree builds thanks to random +# crap in your VPATH. Let's detect that and save some hair pulling. +# +if [ -e Makefile.in ]; then + echo "Cleaning in-src-tree build" + make distclean +fi + # Debian stretch and Ubuntu Xenial have cross compiler packages for # all of these: # gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu gcc-m68k-linux-gnu