From patchwork Wed Apr 1 23:20:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 46674 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3E6292159A for ; Wed, 1 Apr 2015 23:21:13 +0000 (UTC) Received: by wixm2 with SMTP id m2sf14917032wix.0 for ; Wed, 01 Apr 2015 16:21:12 -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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=orGptj+TD/s7DH4CL5Ix1E4goBs64EEUgQtC6O0e8yg=; b=BHKyDTAWQwKD9Dwh0A1yLRDXpvxztBML604y6BUyrmVAXBUi+SEZ9D6sp4e/Zu875V 4LVmyGoQwcKM8I6PbQ3V2va4gcM/aDEhiQyEJLOaDJxybOLKeZ41qljwfJCRgwUPTGET PHlZssj1fQ4tqn0erPOeQHj7l2R+qbkGA6VKk2m0d7CbGrg8LoAZQAZGUvm8ResgcO/H 4FvSMCa0fRZSRA5JtWVRsQ23qLhL+t68yH9lAdZUOJMc1IfYjhYLprRxynO9imbJ4/8L o8kS3wW/GE2uwT1CQI2fF2jkWR8kxE+OCyUxFDg3IJUSkoV6pQr4aXzF2UADhOVpl7xQ xcBQ== X-Gm-Message-State: ALoCoQmfcQr2IVRN17/dapjwNI60C+oENUrGpx8wInLjmqF+vlyX+WbxjpC3TAfAVKcpucOivcap X-Received: by 10.112.166.164 with SMTP id zh4mr7413792lbb.20.1427930472449; Wed, 01 Apr 2015 16:21:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.137 with SMTP id o9ls140513lal.65.gmail; Wed, 01 Apr 2015 16:21:12 -0700 (PDT) X-Received: by 10.152.9.195 with SMTP id c3mr36375680lab.80.1427930472147; Wed, 01 Apr 2015 16:21:12 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id ms7si2764129lbb.51.2015.04.01.16.21.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2015 16:21:12 -0700 (PDT) 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 lbdc10 with SMTP id c10so47434796lbd.2 for ; Wed, 01 Apr 2015 16:21:12 -0700 (PDT) X-Received: by 10.152.36.169 with SMTP id r9mr14824727laj.29.1427930472010; Wed, 01 Apr 2015 16:21:12 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp972222lbq; Wed, 1 Apr 2015 16:21:11 -0700 (PDT) X-Received: by 10.66.221.135 with SMTP id qe7mr80320390pac.97.1427930466900; Wed, 01 Apr 2015 16:21:06 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wl5si4839836pab.105.2015.04.01.16.21.05; Wed, 01 Apr 2015 16:21:06 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752685AbbDAXUy (ORCPT + 27 others); Wed, 1 Apr 2015 19:20:54 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35510 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752756AbbDAXUs (ORCPT ); Wed, 1 Apr 2015 19:20:48 -0400 Received: by patj18 with SMTP id j18so65910929pat.2 for ; Wed, 01 Apr 2015 16:20:48 -0700 (PDT) X-Received: by 10.70.64.228 with SMTP id r4mr81256977pds.15.1427930448430; Wed, 01 Apr 2015 16:20:48 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id qz3sm3210197pab.13.2015.04.01.16.20.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 16:20:47 -0700 (PDT) From: Tyler Baker To: Shuah Khan Cc: Kevin Hilman , John Stultz , Darren Hart , David Herrmann , Michael Ellerman , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tyler Baker Subject: [PATCH 6/6] selftest/mqueue: enable cross compilation Date: Wed, 1 Apr 2015 16:20:20 -0700 Message-Id: <1427930420-4762-7-git-send-email-tyler.baker@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1427930420-4762-1-git-send-email-tyler.baker@linaro.org> References: <1427930420-4762-1-git-send-email-tyler.baker@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: tyler.baker@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 Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Use the CC variable instead of hard coding gcc. Also clean up the compiler options by creating a CFLAGS variable. Signed-off-by: Tyler Baker --- tools/testing/selftests/mqueue/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/mqueue/Makefile b/tools/testing/selftests/mqueue/Makefile index 6ca7261..0e3b41e 100644 --- a/tools/testing/selftests/mqueue/Makefile +++ b/tools/testing/selftests/mqueue/Makefile @@ -1,6 +1,8 @@ +CFLAGS = -O2 + all: - gcc -O2 mq_open_tests.c -o mq_open_tests -lrt - gcc -O2 -o mq_perf_tests mq_perf_tests.c -lrt -lpthread -lpopt + $(CC) $(CFLAGS) mq_open_tests.c -o mq_open_tests -lrt + $(CC) $(CFLAGS) -o mq_perf_tests mq_perf_tests.c -lrt -lpthread -lpopt include ../lib.mk