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: 928861 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="b9Y0L1Yh"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 415Rg4588Wz9s0W for ; Wed, 13 Jun 2018 23:00:00 +1000 (AEST) Received: from localhost ([::1]:34006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT5NW-0005Jb-Cw for incoming@patchwork.ozlabs.org; Wed, 13 Jun 2018 08:59:58 -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-Google-Smtp-Source: ADUXVKJxHjA3+BgclsMoYZZ8mISnKQtOW7At7qACRm3e4fW/1RxnGMHtEYGkuCHeKBxTCwCo7ivWbw== 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+incoming=patchwork.ozlabs.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 Reviewed-by: Richard Henderson --- Makefile | 3 +++ build-all-archs | 10 ++++++++++ 2 files changed, 13 insertions(+) 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