From patchwork Tue Aug 25 12:49:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bamvor Zhang Jian X-Patchwork-Id: 52672 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by patches.linaro.org (Postfix) with ESMTPS id 3A97522E8F for ; Tue, 25 Aug 2015 12:52:28 +0000 (UTC) Received: by lbbpd10 with SMTP id pd10sf50913461lbb.3 for ; Tue, 25 Aug 2015 05:52:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:subject:to:references:cc:from :message-id:date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=7XsC9og4kBmu+PRMGqKEchYoBgUkDn6YuY+ygOIOIJE=; b=eKn4+IBlAiPPuW9IkBpjd5kfGrP0kGXbdUG2U8wJ64X6gQ8Bu6fVIYdjD+fIO84vnA R3TDRE3CDwi/tjd9ocqIBmKHMrIvyGWXhcwuVp8D7CKlw4j/uNzMr4u/fLlgbEEaJtZD PNYFNoHpUErrshYc3MleQChBxDC+y1+s4QZ1IkjgWx+9yCai8OLsgDeXUtCnp5yVU23F i0uTBI3XGTmf7ImkWX/91OTdYsdYdeVqC8Ft6bxmooR64cc4NVSGlfwqhqNY6tWQxfTG WQM08u1peZ7zvqTpC28JVCgWwiwLQ8bWdAt0WCeI+QEOl1p7ZbYRA9HDPdU+WskXurHT efUA== X-Gm-Message-State: ALoCoQk7cAihTNfa33poXuEzEbKEeGsANa0G9p3j/WgBfWSM0n1QAaHn7SY+AEF5O3yaKmIbR26i X-Received: by 10.112.149.39 with SMTP id tx7mr8459353lbb.11.1440507147232; Tue, 25 Aug 2015 05:52:27 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.198 with SMTP id le6ls612539lab.56.gmail; Tue, 25 Aug 2015 05:52:27 -0700 (PDT) X-Received: by 10.112.166.106 with SMTP id zf10mr25539851lbb.36.1440507146987; Tue, 25 Aug 2015 05:52:26 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id d10si15945551lae.52.2015.08.25.05.52.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Aug 2015 05:52:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbbtg9 with SMTP id tg9so99453519lbb.1 for ; Tue, 25 Aug 2015 05:52:26 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr26053250lbc.32.1440507146689; Tue, 25 Aug 2015 05:52:26 -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.162.200 with SMTP id yc8csp3156863lbb; Tue, 25 Aug 2015 05:52:25 -0700 (PDT) X-Received: by 10.50.30.226 with SMTP id v2mr2307419igh.11.1440507145190; Tue, 25 Aug 2015 05:52:25 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r9si32915388pdl.105.2015.08.25.05.52.24; Tue, 25 Aug 2015 05:52:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755432AbbHYMwW (ORCPT + 28 others); Tue, 25 Aug 2015 08:52:22 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:35097 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753858AbbHYMwV (ORCPT ); Tue, 25 Aug 2015 08:52:21 -0400 Received: by pacdd16 with SMTP id dd16so123442220pac.2 for ; Tue, 25 Aug 2015 05:52:20 -0700 (PDT) X-Received: by 10.68.254.99 with SMTP id ah3mr55669265pbd.15.1440507140672; Tue, 25 Aug 2015 05:52:20 -0700 (PDT) Received: from linux-j170.site ([104.236.134.8]) by smtp.googlemail.com with ESMTPSA id hv5sm21028346pdb.32.2015.08.25.05.52.18 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 25 Aug 2015 05:52:19 -0700 (PDT) Subject: Re: [PATCH 2/7] selftests: add CFLAGS_EXTRA To: Michael Ellerman References: <1439559818-21666-1-git-send-email-bamvor.zhangjian@linaro.org> <1439559818-21666-3-git-send-email-bamvor.zhangjian@linaro.org> <1440388080.9176.6.camel@ellerman.id.au> Cc: linux-kernel@vger.kernel.org, Mark Brown , khilman@linaro.org, tyler.baker@linaro.org, shuahkh@osg.samsung.com From: Bamvor Zhang Jian Message-ID: <55DC6470.8030106@linaro.org> Date: Tue, 25 Aug 2015 20:49:52 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1440388080.9176.6.camel@ellerman.id.au> 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: bamvor.zhangjian@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.178 as permitted sender) smtp.mailfrom=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: , On 08/24/2015 11:48 AM, Michael Ellerman wrote: > On Fri, 2015-08-14 at 21:43 +0800, Bamvor Jian Zhang wrote: >> One may pass the "-I /path/to/headers -L /path/to/lib" through >> CFLAGS_EXTRA for cross compiling. mqueue could compile pass >> in this way when we provide the popt.h and libpopt.so. And kdbus >> could compile pass with sys/capability and libcap.so > > There should be no need to define a new variable. > > You should just update the relevant Makefiles to use CFLAGS += rather than > CFLAGS =. And then you can just specifiy CFLAGS on the command line. yeap, it works for me. There is only one line need to be changed: regards bamvor > > cheers > > --- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/tools/testing/selftests/mqueue/Makefile b/tools/testing/selftests/mqueue/Makefile index 0e3b41e..ca8327f 100644 --- a/tools/testing/selftests/mqueue/Makefile +++ b/tools/testing/selftests/mqueue/Makefile @@ -1,4 +1,4 @@ -CFLAGS = -O2 +CFLAGS += -O2 all: $(CC) $(CFLAGS) mq_open_tests.c -o mq_open_tests -lrt