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: 6143341 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 066C39F1BE for ; Wed, 1 Apr 2015 23:25:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 42BE92034A for ; Wed, 1 Apr 2015 23:25:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5AD5F20114 for ; Wed, 1 Apr 2015 23:25:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YdRyK-0000JN-GP; Wed, 01 Apr 2015 23:22:56 +0000 Received: from mail-pa0-f41.google.com ([209.85.220.41]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YdRwb-0007eq-Fi for linux-arm-kernel@lists.infradead.org; Wed, 01 Apr 2015 23:21:10 +0000 Received: by pactp5 with SMTP id tp5so65794858pac.1 for ; Wed, 01 Apr 2015 16:20:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1ELF+YmWQZSXZ9gcLlyuneshKRlfculmcey71l1cihY=; b=ArEnWb439GPmfGu9bKqIhuxL1TNcqG/ytlgtc9BXLxK2XSf/cotnGbgVd/Sk7lYY+N zZHg2rUkydsrWk87mwXOtiiumnXwEGamoVSGoLlE9XGlFL4A75WIvus1qtrN6l/dSRiL bO25IUoKnZlnOQnbsn17gHjcew3O2I3xAiSu2o6syWmY2Hu5IFIQJZTkF26lN2AwxVQl PCz9DBxA4jqPE+6qKb6dDp6cGlLkrRImxFl7oqUTV1rchzN1quv+s34UyLCmImnOetEE 3m5CT4e3zz2Zy+ES9FrGecJ1N32ZUtnDLcfLUFr0Udpzjeqx/Debs/OtiNVoceGIAt8C 77qA== X-Gm-Message-State: ALoCoQne68mkSSl/zEIrWfNpb24Dgtnjs3Pyvg9aHafhI/D/xF0wrB3Uq4caMBBr7pk1HPxVVPq2 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150401_162109_555838_A46287DF X-CRM114-Status: UNSURE ( 9.34 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Kevin Hilman , Michael Ellerman , Tyler Baker , linux-kernel@vger.kernel.org, John Stultz , David Herrmann , Darren Hart , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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