Message ID | 1425330612-24280-2-git-send-email-john.stultz@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCJ7RPMX4EMBBP5D2OTQKGQE5ATUH2I@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4A229214B5 for <linaro@patches.linaro.org>; Mon, 2 Mar 2015 21:10:24 +0000 (UTC) Received: by lbiw7 with SMTP id w7sf26085526lbi.0 for <linaro@patches.linaro.org>; Mon, 02 Mar 2015 13:10:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=iI6gUDHsaQa+a5ws1JIfxINcIb0uLKSl4CaCBf7I2LI=; b=Eqp5dJSPykHJ8clah5f9UxrRumguVFQE1QnryHvkAk8wlXGcW2otfrxX8DFKq4TiQ2 b283iU7Xac/JTKyzIuK4CkauFDRwk70fH9i8Ey+PKrk3IerQDvy1Os8MCt/Lm5DrVnX3 /iam0qg0biHeASbN4tr7KZnCCclh3ASpRc+1juddVCR/H4doAArzfKazPlK0Seo4X6LC xoOnl5pwpMVIRGxxH+OGvseMYSGMNTargFWDZ3kZ50ryaOkdL933yvyw76SGJ0imGZNd MxALJGEjBLyRyOVDxTnJ4+Lwows6soZclRSnQc2HozFPE/2z7KqGLdUKmOqw66TynKk3 tvLw== X-Gm-Message-State: ALoCoQnM8ZvAk0onmRk7FLuU/tStBJM825OqVVlEPNJZrb0g+cZGdyIVhKqjiQ0/QcDyd1aWLcDj X-Received: by 10.180.8.67 with SMTP id p3mr2492875wia.7.1425330623209; Mon, 02 Mar 2015 13:10:23 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.168 with SMTP id a8ls454118lab.14.gmail; Mon, 02 Mar 2015 13:10:23 -0800 (PST) X-Received: by 10.153.4.44 with SMTP id cb12mr26058349lad.26.1425330623054; Mon, 02 Mar 2015 13:10:23 -0800 (PST) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id uq1si2766879lbc.153.2015.03.02.13.10.23 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Mar 2015 13:10:23 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbiz11 with SMTP id z11so6974345lbi.3 for <patchwork-forward@linaro.org>; Mon, 02 Mar 2015 13:10:23 -0800 (PST) X-Received: by 10.112.130.39 with SMTP id ob7mr16829643lbb.32.1425330622949; Mon, 02 Mar 2015 13:10:22 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.35.133 with SMTP id h5csp158161lbj; Mon, 2 Mar 2015 13:10:22 -0800 (PST) X-Received: by 10.66.102.4 with SMTP id fk4mr49431547pab.111.1425330620931; Mon, 02 Mar 2015 13:10:20 -0800 (PST) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com. [209.85.192.169]) by mx.google.com with ESMTPS id o10si13702082pap.23.2015.03.02.13.10.20 for <patches@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Mar 2015 13:10:20 -0800 (PST) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.192.169 as permitted sender) client-ip=209.85.192.169; Received: by pdbfp1 with SMTP id fp1so5324019pdb.7 for <patches@linaro.org>; Mon, 02 Mar 2015 13:10:20 -0800 (PST) X-Received: by 10.68.136.167 with SMTP id qb7mr49280804pbb.155.1425330619765; Mon, 02 Mar 2015 13:10:19 -0800 (PST) Received: from localhost.localdomain (c-67-170-153-23.hsd1.or.comcast.net. [67.170.153.23]) by mx.google.com with ESMTPSA id ym10sm11765258pac.10.2015.03.02.13.10.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Mar 2015 13:10:19 -0800 (PST) From: John Stultz <john.stultz@linaro.org> To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org> Cc: John Stultz <john.stultz@linaro.org>, Shuah Khan <shuahkh@osg.samsung.com>, Prarit Bhargava <prarit@redhat.com>, Thomas Gleixner <tglx@linutronix.de>, Richard Cochran <richardcochran@gmail.com> Subject: [PATCH 01/19] selftests/timers: Cleanup Makefile to make it easier to add future tests Date: Mon, 2 Mar 2015 13:09:54 -0800 Message-Id: <1425330612-24280-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1425330612-24280-1-git-send-email-john.stultz@linaro.org> References: <1425330612-24280-1-git-send-email-john.stultz@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: john.stultz@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/tools/testing/selftests/timers/Makefile b/tools/testing/selftests/timers/Makefile index eb2859f..e65c543 100644 --- a/tools/testing/selftests/timers/Makefile +++ b/tools/testing/selftests/timers/Makefile @@ -1,8 +1,13 @@ -all: - gcc posix_timers.c -o posix_timers -lrt +CC = $(CROSS_COMPILE)gcc +BUILD_FLAGS = -DKTEST +CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS) +LDFLAGS += -lrt -lpthread +bins = posix_timers + +all: ${bins} run_tests: all ./posix_timers clean: - rm -f ./posix_timers + rm -f ${bins}
Try to streamline the makefile so its easier to add timer/timekeeping tests. Also adds support for the CROSS_COMPILE variable. Cc: Shuah Khan <shuahkh@osg.samsung.com> Cc: Prarit Bhargava <prarit@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Richard Cochran <richardcochran@gmail.com> Signed-off-by: John Stultz <john.stultz@linaro.org> --- tools/testing/selftests/timers/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)