Message ID | 1426120815-32528-2-git-send-email-john.stultz@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCJ7RPMX4EMBB6GAQOUAKGQEML5EHBY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f200.google.com (mail-we0-f200.google.com [74.125.82.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2AB0A214C6 for <linaro@patches.linaro.org>; Thu, 12 Mar 2015 00:40:25 +0000 (UTC) Received: by wesu56 with SMTP id u56sf9226174wes.2 for <linaro@patches.linaro.org>; Wed, 11 Mar 2015 17:40:24 -0700 (PDT) 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=LAUA7KaKlJvpgklojIGt948lM6F3DDfN0H4mSpyglxIlvT0iW4lv+L2MPmNZHeuzpQ Vwh88iQ9gwy4a3wQFoVfe7ZO3sDTZFAibK3FTAUGc9liu2xbwsdNe725VxCyI8tsNEpW JsWEIptLhE+5S9OceBXcFukE27g50BSLc2Ka5wlgzTh4Pl2Oa0bCrB0BNyrbjxlLC/Fn 3TlIKm8NhhhgaTPCE6ZhqyZpoC1vIXdi4yozpCGEqwpib+GHA17QxEWpCqVZlIvMw8mM xT1tpnhQVA9HMQfzD0jPuCIBwricG9YVn5s/Xtcl7roxH2TGvdCUhHoIqa/K4x2yezm2 AjcQ== X-Gm-Message-State: ALoCoQk48elrXoEYBMiOvlUJSkXsVV29GTkjVk2c1CAOwp0zRgur7fSk2KZcQHrhmM782v4gHuIu X-Received: by 10.152.19.67 with SMTP id c3mr4599950lae.7.1426120824453; Wed, 11 Mar 2015 17:40:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.243.37 with SMTP id wv5ls226469lac.60.gmail; Wed, 11 Mar 2015 17:40:24 -0700 (PDT) X-Received: by 10.152.19.228 with SMTP id i4mr37489859lae.77.1426120824018; Wed, 11 Mar 2015 17:40:24 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id zu3si3400788lbb.11.2015.03.11.17.40.24 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Mar 2015 17:40:24 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by labgd6 with SMTP id gd6so12501450lab.3 for <patchwork-forward@linaro.org>; Wed, 11 Mar 2015 17:40:23 -0700 (PDT) X-Received: by 10.152.120.134 with SMTP id lc6mr36234799lab.72.1426120823936; Wed, 11 Mar 2015 17:40:23 -0700 (PDT) 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 h5csp3098432lbj; Wed, 11 Mar 2015 17:40:23 -0700 (PDT) X-Received: by 10.70.51.131 with SMTP id k3mr82790168pdo.155.1426120822009; Wed, 11 Mar 2015 17:40:22 -0700 (PDT) Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com. [209.85.220.45]) by mx.google.com with ESMTPS id ro12si7999895pab.108.2015.03.11.17.40.21 for <patches@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Mar 2015 17:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.45 as permitted sender) client-ip=209.85.220.45; Received: by padfa1 with SMTP id fa1so15743707pad.3 for <patches@linaro.org>; Wed, 11 Mar 2015 17:40:21 -0700 (PDT) X-Received: by 10.70.124.138 with SMTP id mi10mr23045167pdb.39.1426120820957; Wed, 11 Mar 2015 17:40:20 -0700 (PDT) Received: from localhost.localdomain (c-67-170-153-23.hsd1.or.comcast.net. [67.170.153.23]) by mx.google.com with ESMTPSA id qa1sm7783493pdb.84.2015.03.11.17.40.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Mar 2015 17:40:20 -0700 (PDT) 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: Wed, 11 Mar 2015 17:39:57 -0700 Message-Id: <1426120815-32528-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1426120815-32528-1-git-send-email-john.stultz@linaro.org> References: <1426120815-32528-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.215.52 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(-)