From patchwork Wed Apr 1 23:20:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 6143321 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 C84809F1BE for ; Wed, 1 Apr 2015 23:25:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0185B20306 for ; Wed, 1 Apr 2015 23:25:21 +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 2E8FB20328 for ; Wed, 1 Apr 2015 23:25:20 +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 1YdRx5-00080t-Cd; Wed, 01 Apr 2015 23:21:39 +0000 Received: from mail-pa0-f46.google.com ([209.85.220.46]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YdRwR-0007ch-KN for linux-arm-kernel@lists.infradead.org; Wed, 01 Apr 2015 23:21:00 +0000 Received: by pactp5 with SMTP id tp5so65791505pac.1 for ; Wed, 01 Apr 2015 16:20:38 -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=3bnH69WeubJzTJxI6ly2r/mEJDG16ZeRCsI6Uw09qlI=; b=PpcPQmODxoDE3mbmDc2Uzobrn2XMICsZbM/tu+VcmQwrga20BN55gIm1g5hoXmufkv a9lf5FBk33aOxJZ49nwPTKuO6AzaAbDNfvI/xMTvgemugUclVL42pvFaWMuXhiPoOtfm 1t+tUaDRnws70GQJmiO7BoEQA6+XljNi5N9BNCgYX0wGrtRAHQYAPH42rID9z4+/WXLn pUpra272mH/bzxDpojX8ESV9I1g0uqjzj4xu4B0DMEaEPPBJBlQhPQhY1c1zaA8vqaMH We9M4Ic0BiQX4riEBMHrq5PNgj5LKRNP0li++b7/Yr4MBmYdfviEhyZzcnyfZFx6W413 iqPQ== X-Gm-Message-State: ALoCoQldFPK0Nc/8pazD1Bd7flNjUIHT/kQQtby+WJ74rEm1IyM5sKbr8pgk5p5ynwk93au/ArG+ X-Received: by 10.68.238.200 with SMTP id vm8mr49496513pbc.15.1427930438535; Wed, 01 Apr 2015 16:20:38 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id qz3sm3210197pab.13.2015.04.01.16.20.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 16:20:37 -0700 (PDT) From: Tyler Baker To: Shuah Khan Subject: [PATCH 3/6] selftest/mount: enable cross compilation Date: Wed, 1 Apr 2015 16:20:17 -0700 Message-Id: <1427930420-4762-4-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_162059_735069_50A027CB X-CRM114-Status: UNSURE ( 9.15 ) 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/mount/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/mount/Makefile b/tools/testing/selftests/mount/Makefile index a5b367f..95580a9 100644 --- a/tools/testing/selftests/mount/Makefile +++ b/tools/testing/selftests/mount/Makefile @@ -1,9 +1,10 @@ # Makefile for mount selftests. - +CFLAGS = -Wall \ + -O2 all: unprivileged-remount-test unprivileged-remount-test: unprivileged-remount-test.c - gcc -Wall -O2 unprivileged-remount-test.c -o unprivileged-remount-test + $(CC) $(CFLAGS) unprivileged-remount-test.c -o unprivileged-remount-test include ../lib.mk