Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4048492imm; Mon, 8 Oct 2018 14:03:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV61ONBoVoQ7JZjEthuNPbob3nrt/C9xH4e7iTsuvYTRxo8PN3cGm3YGxm9fAaGbLKcWwjgKo X-Received: by 2002:a17:902:7043:: with SMTP id h3-v6mr25820880plt.103.1539032617652; Mon, 08 Oct 2018 14:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539032617; cv=none; d=google.com; s=arc-20160816; b=BaxlEj52P3sH3elXIdhrpAtpkEULQLql3R0bT53LA3RYqS5BxsIZXcsYT0kO57GNQQ 25DA4cvlOnGD6Js+mwpqZ+8Gy+DfOSS0lkyizWp8taiPwI3TOGKD8AT6/YzxvzXTukUz 2mkuKE83VUlFuMDEUHejNxb57EQ9vpD6WanQplWgF+4UGS7h+mAFQ2lMiJ9BVf5eKqCZ CmypT9kS3uW5SbvBDsjEBRTqMFJa1vYEZ4aqQhMRo79o3+VJgzfKHY90a+oS+GV/EGcJ Jy9i3HGurAbJeVENOUV38dY9pXA8ICSC/FwLD1I9NS1b5J6b5MCNBWrM+ZV3lYCZ150I ihUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=oKpC6wdeM4j4YaEODz6Iu3/eXkhlCF0kf5UMe1jidP4=; b=KLP0kiGUhPry7RmUhkLMWWd8DEATa1p4GHne0AiyaLp4pOY3xZzX4RP/hLPD/93EeB Mc3QjnCmVj0GUye2jfK7R6gAN0m6KS25c/Lz5KNcqSmP9My95lt4DuJLNkqfbfjt/Bk9 BpNa1WkEQjEUCsD5HM7ED7b2bHRrqKtnmZ1vaC6/XJsEvx6/6kwa+9XrhSnWWa5aJ4Rp 9XE49fvp3YNcpSE32MlwjbbPD46aDFBMEq2OCb+44pAVWjcf+z+A3Foxb5XqV/9yJY1N aX7d6vBVwkXdgBNyHvAplQXflVv//5s00unrP8fWxAlYQLRi8FvdyFEjS+gmosiuZbzx NNTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fZHddEGZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z19-v6si17993309pga.468.2018.10.08.14.03.23; Mon, 08 Oct 2018 14:03:37 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fZHddEGZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726731AbeJIEQR (ORCPT + 99 others); Tue, 9 Oct 2018 00:16:17 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:41906 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725749AbeJIEQQ (ORCPT ); Tue, 9 Oct 2018 00:16:16 -0400 Received: by mail-qt1-f196.google.com with SMTP id l41-v6so9933402qtl.8; Mon, 08 Oct 2018 14:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oKpC6wdeM4j4YaEODz6Iu3/eXkhlCF0kf5UMe1jidP4=; b=fZHddEGZssDOLdiF15rCsU8CSphmvtLy8nPpYnkCPIIq0waOYGUUGl/Racf2LnKExH k9z4A1yGl7fU6UO725A5eq0kMG/zll88YMEz98yJEviVyeqDI4VYtDmy+h9KgTcvamoB S0QS33N8hmU/L9k1Xz5V7K7KwAVkD0r5AojbLSMjx+cnVNuyNdQnaMZf4dPjU3c/CkrL JBGtyhDwAEoOm9TNna96kyAseZaxoxnCY74bB9Nowv33WCxtd+S9wqL9UYQR1rcLkvCZ qxGayn5oED3or2qD2oYRNa+rsahHruyDMU8McTQBpOBjaJbIR0bhq/Bbl8jJyP9kisX/ btAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oKpC6wdeM4j4YaEODz6Iu3/eXkhlCF0kf5UMe1jidP4=; b=IRitW+5aPSZnY/Gn89jyAB49dsy4/oyC4hD68y57GmLSg8NmMX3A7iCI2jL5Klozb9 OYnGGxPUb1Cl6ktpGfDVKjNvcWV6J1wn3mh3TBndLqPSeS3uTFrubRoDYrEXtcn42klv rK4dDSacWhxVFfkZ9KDKQ37ACP2yWm1JnEHLBYBJ5/XRj02Y71ODZrck/DBdHBg/j9QN L0TtDinsexXU2Rchm3Nejwfp97K416TRFJlbuZCEHn9VVticy6U6OvTj7rkCkG1oilJV 1vi8t7gNoynt8w9iO1N5yHJySSusfMHHClIo0pRrKtPusX2IbaoO32X9jdRl6kMkDQud FBrw== X-Gm-Message-State: ABuFfohAO6XoolkbJENNapGdpSVxXJksUqyUknf8tMGw7EG2SjQmI5Eu 5ytSY08wQLLCaKtvJ1diNKXNIJVHgNLpmlTzpUs= X-Received: by 2002:aed:3121:: with SMTP id 30-v6mr21424831qtg.180.1539032557946; Mon, 08 Oct 2018 14:02:37 -0700 (PDT) MIME-Version: 1.0 References: <20181008082259.26742-1-jolsa@kernel.org> In-Reply-To: <20181008082259.26742-1-jolsa@kernel.org> From: Song Liu Date: Mon, 8 Oct 2018 14:02:26 -0700 Message-ID: Subject: Re: [PATCH 1/2] bpftool: Allow to add compiler flags via EXTRA_CFLAGS variable To: Jiri Olsa Cc: Alexei Starovoitov , Daniel Borkmann , open list , Networking Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 8, 2018 at 1:24 AM Jiri Olsa wrote: > > Adding EXTRA_CFLAGS allowing user to specify extra flags > for CFLAGS variable. > > Signed-off-by: Jiri Olsa Acked-by: Song Liu > --- > tools/bpf/bpftool/Makefile | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile > index 74288a2197ab..5bfa07e3f2f7 100644 > --- a/tools/bpf/bpftool/Makefile > +++ b/tools/bpf/bpftool/Makefile > @@ -46,6 +46,10 @@ CFLAGS += -DPACKAGE='"bpftool"' -D__EXPORTED_HEADERS__ \ > -I$(srctree)/tools/lib/bpf \ > -I$(srctree)/tools/perf > CFLAGS += -DBPFTOOL_VERSION='"$(BPFTOOL_VERSION)"' > +ifneq ($(EXTRA_CFLAGS),) > +CFLAGS += $(EXTRA_CFLAGS) > +endif > + > LIBS = -lelf -lbfd -lopcodes $(LIBBPF) > > INSTALL ?= install > -- > 2.17.2 >