From patchwork Thu Apr 6 19:07:24 2017 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: 747950 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vzXKq0c3vz9s7c for ; Fri, 7 Apr 2017 05:08:15 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hRr8N6yR"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="d7pAbp2T"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NbwTBGh/sY6rJMOAMwcy6lcFzUdNRAgNdDwUw/6Y2+A=; b=hRr8N6yRNn6sIM jejV9Dk1N3SaImG2w0s1KFGtZKtgkhmKqWd2GvOamT2UFNOgwAoEUXNidhaAfJVCEgBGExu4NVwpE lYvInPZbPgkrBXLkZtMSvREFG/zw5ZqIuEiTL6Oh0PFQ4POk9MW0M5oTmo7j6PXx5iMbl0hidxmx0 SjUt3j2FQD/U5baKtbCNNfsm7aUh+6+h+cJ12TdgRw3j/Kst2SmP4PtTLiR1UJvuoRXvk7h7gon80 mu43wVgvQFN+ONDDwsOB8BTsawCvT0kigp2KrMdw9ScwwR7dtkzMQ7+ZdTz60KfwghNdbD7Ial9ye geYRgVJR3m7Ppp6bZ5bA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cwClQ-00088s-Kj; Thu, 06 Apr 2017 19:08:12 +0000 Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cwClA-0007u6-Rl for linux-arm-kernel@lists.infradead.org; Thu, 06 Apr 2017 19:07:59 +0000 Received: by mail-wr0-x230.google.com with SMTP id o21so48651379wrb.2 for ; Thu, 06 Apr 2017 12:07:40 -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=y1hVF0rBSGt+lz/xZn6ZTzozdv4AkDc66giA2kDAgQQ=; b=d7pAbp2TcCo19/2zVLnUWuCRBv1xJH8YzA7NaKLp/LGxyrSgHSwiUj6+DH9NFa9wM/ J+HlML+4dCkihi8mu0o7BoYVWD7agbf0jQf6FIw5+jCnX5cqAfRNM5CbUfDpL7Ux4lyo 6G8p7yMoNCH34tzPvrmxfB+StVQQY4U5m1koI= 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=y1hVF0rBSGt+lz/xZn6ZTzozdv4AkDc66giA2kDAgQQ=; b=Qz9v6HUbjd9XVknIuyiVPKBamtA4y3ARfKe2OBVG2o1I2hp+dZ+uA0+HvVXS9FDrre wNJTWl2iojzb2a4nyojlKp5j/L1luDLwyAFR+u8lveHXu6HmLaGfBVLb9Cr6quP4jGtE 65vqzUm8S9BqaQ+npPr0aGx2pi89dFw4vuHIM8tz0HCai54LG625RR9kXskz5sVuuG4I WsiW2M6yhxOQJpGWwwjMrdHIjUoFeas2DImAx1EwGCUPAxslwLa574Fep5qGK4iGw7KV 3gkUU1VK819N+KKgcOybs5NqiZWREqux+JfJeQJlMTv58/zSqWGUR4fhmT08tF6CGCPC +kbA== X-Gm-Message-State: AN3rC/4oqplf7LUh7uIfx+vz/SgfW4eZeKjSsZkgrf1wbtYOrbe4WmZG/vwO6inqlugpxJ5j X-Received: by 10.28.183.198 with SMTP id h189mr753159wmf.7.1491505658897; Thu, 06 Apr 2017 12:07:38 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p185sm27483415wme.20.2017.04.06.12.07.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Apr 2017 12:07:35 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 9DE693E07BC; Thu, 6 Apr 2017 20:07:37 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: drjones@redhat.com, pbonzini@redhat.com Subject: [RFC kvm-unit-tests PATCH 5/8] Makefile: add explicit mkdir for .o targets Date: Thu, 6 Apr 2017 20:07:24 +0100 Message-Id: <20170406190727.5624-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170406190727.5624-1-alex.bennee@linaro.org> References: <20170406190727.5624-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170406_120757_052333_4FB4A315 X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:400c:c0c:0:0:0:230 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kvm@vger.kernel.org, marc.zyngier@arm.com, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org This is fairly direct way of ensuring the target build directories are created before we build a binary blob. mkdir -p fails gracefully if the directory is already there. Signed-off-by: Alex Bennée --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 781186e..56598df 100644 --- a/Makefile +++ b/Makefile @@ -79,8 +79,13 @@ $(LIBFDT_archive): $(addprefix $(LIBFDT_objdir)/,$(LIBFDT_OBJS)) $(AR) rcs $@ $^ %.o: %.S + mkdir -p $(dir $@) $(CC) $(CFLAGS) -c -nostdlib -o $@ $< +%.o: %.c + mkdir -p $(dir $@) + $(CC) $(CFLAGS) -c -o $@ $< + -include */.*.d */*/.*.d all: $(shell git -C $(SRCDIR) rev-parse --verify --short=8 HEAD >build-head 2>/dev/null)