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: 9668141 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 1A775602B3 for ; Thu, 6 Apr 2017 19:08:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2D92285C4 for ; Thu, 6 Apr 2017 19:08:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E7AAE285D5; Thu, 6 Apr 2017 19:08:03 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 858C7285C4 for ; Thu, 6 Apr 2017 19:08:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933084AbdDFTIC (ORCPT ); Thu, 6 Apr 2017 15:08:02 -0400 Received: from mail-wr0-f177.google.com ([209.85.128.177]:33249 "EHLO mail-wr0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932244AbdDFTHs (ORCPT ); Thu, 6 Apr 2017 15:07:48 -0400 Received: by mail-wr0-f177.google.com with SMTP id g19so32947750wrb.0 for ; Thu, 06 Apr 2017 12:07:48 -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=Zav3cYbiQYhNiF3WzaJWkUhMXFOsx8fM6clOg154hhA0GsW7RVx6THbWkWVdz6k1jN /ZZSlDUFWAXrfDrFdoaiLhIZdjjuc2zvzxy/7Z4oBPEwWJizpgCapqA1GDAHmliP64bd j8OqdfuU48u9zoB1KrvRcQ4j46JH0MqD2eQzrO/vQlDjYWWZji4GlgKJeeLkfzjX5vCE eKS92ubSV3wp9K7a6hbayZXIkvKcqsuCuIQkLbVwFa490dP+m4pMZWB45h7C0bPGLq4v jKfaTHrFbOT9i85kxBbHhnWsS7d9spTtGNjys9rogBULZZXNuBCu3m/hFNHRarduBrVJ x/fg== X-Gm-Message-State: AFeK/H1RVwFWrRAy5zi7j5YROGDzzwJjTGGX764FEBsiwHikqvF5vbJulUeoVuWAx87jVFuc 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 Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org, marc.zyngier@arm.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= 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 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.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))