From patchwork Fri Jun 22 14:11:47 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: 139660 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp940750lji; Fri, 22 Jun 2018 07:28:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpehf99jyCwl7cWmvcXURVvVsO0gfDwoOdWlb6wnPSzDxLEn9iwH3e8uUXSULxuICv8OK0PW X-Received: by 2002:ac8:3065:: with SMTP id g34-v6mr1514212qte.317.1529677732686; Fri, 22 Jun 2018 07:28:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529677732; cv=none; d=google.com; s=arc-20160816; b=LBOkqTAxpMBzVh6zSCKy85woUWmkL0jz8IUV6ImtILOftDMNa9d2ZwXzmEbwWpJEUF 2pbmTvLEo6jLBAsLc98a+jdjLblPyb4bwPbeOVLOOR38+fPF0NQxlUXQAsZJoKmksxdu AOuPbv5p62EvsgXnK7RfoBzwJZPwNbAyuMVe8Y7eRzRvwTJ3JNXQtH3F22RWHen7qlKE AOFpOOVcA4mdWmZ0wX9HjUemcwIyVzwco9ErBKJjEhzqZArny0R1ZcCdUG8qqLvGvi6w axXlbaBkjDZe9r4Ft3STnynzMUeVdwkQnREbVO/lHj5VuDN+tGzMGf0oCTrtajPmYEpg clHw== 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=I2gocXId63VjHU4zxg+0vNSJIkmrjZ9YOwljyIOrCkQ=; b=zx/o6yi0ywBK7vsEJ86wSlp7ND2rFDpVOYJ/rWOsaFFSc/dUORr1pVHenMml9ZEsml CbwR4XOlSUlFw4Zxhlzh2UdgPZMElFnaiNYxCQ0syX480xQzI7yYd+D2zHPWOGki5o3k 6BqOyduAaxlW1EqqGfEsJZHa/36dvI+U7jy3YLf8DTc80eD52gFWIEZ+hIw+OkNmh5XT JHnh5QTz8xICt3eNyqmz0wVM7AL9deu0iCDLK3qcQDUHNU4cJeH8VzIIoGHOuoFrM10q RL/Sh6SXIJdnrb7pTKEEBlmbGxEl9Z7GHN2LYmO/kIs2pSvUET3W0MByOog7bxgqIi+a trig== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ZIU2j6Uo; 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 m66-v6si5608418qkf.379.2018.06.22.07.28.52 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 22 Jun 2018 07:28:52 -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=ZIU2j6Uo; 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]:34395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWN3U-0003G5-0h for patch@linaro.org; Fri, 22 Jun 2018 10:28:52 -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) 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-Received: by 2002:a1c:17d4:: with SMTP id 203-v6mr1801710wmx.75.1529676729807; Fri, 22 Jun 2018 07:12:09 -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) From: =?utf-8?q?Alex_Benn=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 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_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 Reviewed-by: Richard Henderson --- Makefile | 3 +++ build-all-archs | 10 ++++++++++ 2 files changed, 13 insertions(+) -- 2.17.1 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