From patchwork Wed Apr 1 23:20:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baker X-Patchwork-Id: 46670 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D3B2C2159A for ; Wed, 1 Apr 2015 23:20:43 +0000 (UTC) Received: by wiaa2 with SMTP id a2sf14845315wia.1 for ; Wed, 01 Apr 2015 16:20:43 -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=Oawwouu67OnIg9M8P0g98aNYGzZACDxqvfaYviu/3SQ=; b=LACvGZj3MqQy4D7QSGqgvrdQNNbitoPF8obPgbLkknHhQ1gJauCozgbGdhb9zYSyVv psXl3+owM5MDN9kZNeoJwbLvxPtD6ra7hRS7ZQ7wLuCmpvFWecrRMGSMFhc/dPJKcBjc Mzhqc0XorcZnrvlkz4HCacknD6+D8tm+DN5ZiZpQvgulTeVY1gCuhglEmJmiGiEsfD3/ ldGiRFK9pwSnuZ5aM0iMDTLGOLlXtQyO9dE5e9Z19IKP4LFna+9gorCpvqx8CI3ci6Oa SmYK8wTf8Mj9I5Kbvxhw9BqIgrXc7c8sve0aV1CGGYdSvaEzFlANsab8xmf789hhDnBD vDaA== X-Gm-Message-State: ALoCoQmT5c38u850+RlWno4fqq0ZbvleiRUVMUrQ4qK0p1/xi4RMR8b19U43dUEbsf1fGjptZOfV X-Received: by 10.180.101.39 with SMTP id fd7mr2459835wib.0.1427930443130; Wed, 01 Apr 2015 16:20:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.67 with SMTP id l3ls143472lae.93.gmail; Wed, 01 Apr 2015 16:20:42 -0700 (PDT) X-Received: by 10.152.6.34 with SMTP id x2mr11071333lax.47.1427930442801; Wed, 01 Apr 2015 16:20:42 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id g6si2761866lab.64.2015.04.01.16.20.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2015 16:20:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by lbdc10 with SMTP id c10so47429049lbd.2 for ; Wed, 01 Apr 2015 16:20:42 -0700 (PDT) X-Received: by 10.152.5.72 with SMTP id q8mr20415885laq.73.1427930442456; Wed, 01 Apr 2015 16:20:42 -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 k9csp972016lbq; Wed, 1 Apr 2015 16:20:41 -0700 (PDT) X-Received: by 10.68.209.169 with SMTP id mn9mr14094626pbc.60.1427930440576; Wed, 01 Apr 2015 16:20:40 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id iq9si4755896pbc.181.2015.04.01.16.20.39; Wed, 01 Apr 2015 16:20:40 -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 S1752779AbbDAXUg (ORCPT + 27 others); Wed, 1 Apr 2015 19:20:36 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:36254 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752687AbbDAXUc (ORCPT ); Wed, 1 Apr 2015 19:20:32 -0400 Received: by pdea3 with SMTP id a3so18449435pde.3 for ; Wed, 01 Apr 2015 16:20:31 -0700 (PDT) X-Received: by 10.68.132.169 with SMTP id ov9mr81184594pbb.109.1427930431841; Wed, 01 Apr 2015 16:20:31 -0700 (PDT) Received: from localhost.localdomain ([173.14.250.228]) by mx.google.com with ESMTPSA id qz3sm3210197pab.13.2015.04.01.16.20.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 16:20:30 -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 1/6] selftest/memfd: enable cross compilation Date: Wed, 1 Apr 2015 16:20:15 -0700 Message-Id: <1427930420-4762-2-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.173 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/memfd/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/memfd/Makefile b/tools/testing/selftests/memfd/Makefile index 191dee9..69f08ab 100644 --- a/tools/testing/selftests/memfd/Makefile +++ b/tools/testing/selftests/memfd/Makefile @@ -1,17 +1,18 @@ +CC = $(CROSS_COMPILE)gcc CFLAGS += -D_FILE_OFFSET_BITS=64 CFLAGS += -I../../../../include/uapi/ CFLAGS += -I../../../../include/ all: - gcc $(CFLAGS) memfd_test.c -o memfd_test + $(CC) $(CFLAGS) memfd_test.c -o memfd_test TEST_PROGS := memfd_test include ../lib.mk build_fuse: - gcc $(CFLAGS) fuse_mnt.c `pkg-config fuse --cflags --libs` -o fuse_mnt - gcc $(CFLAGS) fuse_test.c -o fuse_test + $(CC) $(CFLAGS) fuse_mnt.c `pkg-config fuse --cflags --libs` -o fuse_mnt + $(CC) $(CFLAGS) fuse_test.c -o fuse_test run_fuse: build_fuse @./run_fuse_test.sh || echo "fuse_test: [FAIL]"