From nobody Mon Feb 9 13:25:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1529677688692746.3559619834838; Fri, 22 Jun 2018 07:28:08 -0700 (PDT) Received: from localhost ([::1]:34390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWN2k-000258-U2 for importer@patchew.org; Fri, 22 Jun 2018 10:28:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWMnM-00064d-UW for qemu-devel@nongnu.org; Fri, 22 Jun 2018 10:12:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWMnL-00066w-2P for qemu-devel@nongnu.org; Fri, 22 Jun 2018 10:12:12 -0400 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:33081) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWMnK-00066N-SJ for qemu-devel@nongnu.org; Fri, 22 Jun 2018 10:12:11 -0400 Received: by mail-wm0-x231.google.com with SMTP id z6-v6so6448559wma.0 for ; Fri, 22 Jun 2018 07:12:10 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id n7-v6sm8164956wri.27.2018.06.22.07.12.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Jun 2018 07:12:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 85CBB3E08C1; Fri, 22 Jun 2018 15:12:05 +0100 (BST) 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=I2gocXId63VjHU4zxg+0vNSJIkmrjZ9YOwljyIOrCkQ=; b=ZIU2j6Uo2U/qxCoQfiqr/uzsy+xJGQ4VzaPhlnG1DdGqLtBKopZmOHzdZHREwB/m2v RPaaEZEhlKodB7EEO8QQ7rD44C0D+Z01jChq1wJz7V9daRUK0C9L7pZ8qOYL5G/SDyhX 74SYHlPIyk1ckA6I/LclAlokHfbPtx/Z4sc4g= 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=I2gocXId63VjHU4zxg+0vNSJIkmrjZ9YOwljyIOrCkQ=; b=mUD3+5ivVF3jdBa+w62UM7o5Noz2P6WqHItbShFPbqywx0UY39DeH1YOe7pdYKqMyP NbkMgHR/P7L99B+PV7mtKXTVPuSFXz3eijJ/ZoB/3O8X2SK4uvyVjbTIHi89xD3ZEXkm fDELxpWXsJh674e+3Mc0Tw8Lizej7tzt0O4UVaO04rq5zcNX0sPHxaT8y8PbKOV6FZdD LKR8PXd/YW93+DLfUr56CWJ3qhsIydhCSVpwPXXgfYqZmmFMw1HR9Yeolo3trALEP9oB u7RNgawmkCFtqAyeSyRKE+26hALbBMJu1hNum6nJ8tIal4aERtjk0+UpuIiM23c7v+8j jMfA== X-Gm-Message-State: APt69E2SQElo3VR0Lm+O6mzAlU2OwsPc6wErz+QedLKjlernJI95Ngoe 40eo5xcBPhq2VMTCuHXKILY3p4ZpV3M= X-Google-Smtp-Source: ADUXVKJVMPBEZkulRGOThq9Tcg/+Xp5noyTfE9JlYFe0dYrFa/8oqnmqCQPn/P9/XU4cN84Tdh2D2w== X-Received: by 2002:a1c:17d4:: with SMTP id 203-v6mr1801710wmx.75.1529676729807; Fri, 22 Jun 2018 07:12:09 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Fri, 22 Jun 2018 15:11:47 +0100 Message-Id: <20180622141205.16306-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180622141205.16306-1-alex.bennee@linaro.org> References: <20180622141205.16306-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:400c:c09::231 Subject: [Qemu-devel] [RISU PATCH v4 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=20Benn=C3=A9e?= , qemu-arm@nongnu.org, richard.henderson@linaro.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 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=C3=A9e 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) =20 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" =3D -* ]]; do esac done =20 +# +# 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 --=20 2.17.1