From patchwork Thu Apr 6 19:07:22 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: 9668149 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5BE7C602B8 for ; Thu, 6 Apr 2017 19:08:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F2D0285C4 for ; Thu, 6 Apr 2017 19:08:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 33BC0285D5; Thu, 6 Apr 2017 19:08:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9CA2C285C4 for ; Thu, 6 Apr 2017 19:08:52 +0000 (UTC) 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=kbTbSW/o7Nh/JcxGJ9oxEFZLG6CPSGHcnhwEjBMl8TM=; b=nUPBkj5+fueE41 Obhq1v66eSx+uYv53h8JWiYkaei4kyUiRA4fYhMEz+mYpsO3JWM8A9MYCBxls7hGu38dvieqr63U1 1YdIOJZ2n4YmodnkRHyWp/cKLSUNhtbOQFvysJuzTGEaVZPhW9xCYOOUtPeOc4EyGnNr9GSaPStWI tj8hiUtUiUblVISAi62ZCSgOl2UHn1aoHWy0zkqZ62R2t6naBSwls5lpWc09hVqwBEObYHk7TOzXX Rmfh3qdAJCI2wsXcU+RUFcDy28/YEIp3SgnUoaIn4hCBXjiPGzshZn8kR+kHx1+dVo9ZScUWLLKgm 6T4EIAztKR2aiQ9esO5w==; 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 1cwCm4-0000aB-0i; Thu, 06 Apr 2017 19:08:52 +0000 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cwClD-0007tx-4G for linux-arm-kernel@lists.infradead.org; Thu, 06 Apr 2017 19:08:00 +0000 Received: by mail-wr0-x22c.google.com with SMTP id o21so48650391wrb.2 for ; Thu, 06 Apr 2017 12:07:38 -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=9chLwGWBMMJjwU12yXTh+k9IVm7mm4eAd/qhd2r3BVk=; b=TOydR1mB51IeZz9t4hTOMu5T5zeJKqfyrXUh4P3tptUaXJniZ0GPRTwKrn7oAMWLY8 AchC4ZMjQWNqTi9jk/pABIqoqu1Qfyy1ItJ4aEs5YUSyA9xLtGyq7AKkWPOamFbsj6O3 Co8XhL4zzUtf5KVvLLla3H+MxIQ1/4KGOMHnU= 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=9chLwGWBMMJjwU12yXTh+k9IVm7mm4eAd/qhd2r3BVk=; b=MlfAbb14WZH2WWIwLeNl+YEFxdMp2fvMoNH3jM3VGvLDVfcqZSb6is9pflPTN5d+sb XMCTpTWOIflu2YqmiZDo6xeereHT9MsqF31D8RXGhG6xIOA7Umtm97C6FbN0P+XivY+7 9hNml/1sbo1vc9UjvA11Lzmrovr+M5yQcKiaFTynYiAh3iVXSslqYHslkuPVKhW1vM43 e/KV0YAudJNfFfjEh2Cd2LU3hDtK9OD4SSZl9Y20j6nX5IFRlAQwvndz72Cq10QvEyMw c2ERr12rS9aGFf0Q0FNzmQy9Bsh/hPQkfWXRTjSpF85LlvMYbgBMg7Z2AWTE1UiLJ1oF aajw== X-Gm-Message-State: AFeK/H1bhEYYLu/BVpd0wqHfMVN7kQTBrYww5h9+MtoxGVsc+PTC1EvO/NVV+12SKzr0OlbZ X-Received: by 10.223.156.18 with SMTP id f18mr25265538wrc.113.1491505657297; Thu, 06 Apr 2017 12:07:37 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id x1sm3131213wrd.63.2017.04.06.12.07.33 (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 876453E031F; 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 3/8] Makefile: set VPATH based on SRCDIR Date: Thu, 6 Apr 2017 20:07:22 +0100 Message-Id: <20170406190727.5624-4-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_120759_458125_2185DAC0 X-CRM114-Status: UNSURE ( 9.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Setting the VPATH prompts make to search VPATH for source files. There are still some fix-ups needed for linking and including other Makefile fragments for each architecture. Signed-off-by: Alex Bennée Reviewed-by: Andrew Jones --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index eba7b28..80bc57e 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,9 @@ endif include config.mak +# Set search path for all sources +VPATH=$(SRCDIR) + libdirs-get = $(shell [ -d "lib/$(1)" ] && echo "lib/$(1) lib/$(1)/asm") ARCH_LIBDIRS := $(call libdirs-get,$(ARCH)) $(call libdirs-get,$(TEST_DIR))