From patchwork Tue Jul 10 00:45:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 10516021 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 309586032C for ; Tue, 10 Jul 2018 00:48:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2130028CC3 for ; Tue, 10 Jul 2018 00:48:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 158A328CDD; Tue, 10 Jul 2018 00:48:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B750528CC3 for ; Tue, 10 Jul 2018 00:48:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933025AbeGJAsC (ORCPT ); Mon, 9 Jul 2018 20:48:02 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:35640 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933324AbeGJAqP (ORCPT ); Mon, 9 Jul 2018 20:46:15 -0400 Received: by mail-qt0-f195.google.com with SMTP id a5-v6so2471211qtp.2 for ; Mon, 09 Jul 2018 17:46:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fMMWWjSXVmIYjP+bqeMR5GcK88w+ADcuRU163HYC/58=; b=s6l1ssWYkgpeFkQrHPxvqkvTjOTcm6R0LZfJbz25Kd5WxzmdaMo+ZN8TclL1jUJHLm cIHCIdIMOBePSsmYA8uXII9XRdcyJ5UiHQFzM2rECxwyeCgQRa81XSguGRx9E0aXySXj xOmO0xIR1X8E5TAMT8eeYm8LlccPIWYATBp7QkQAdwMdO/iId7V4jDuhU7XH11C2Ipph xBbGNtL0vihyPwPEfndCslwL7h2TMbsMoRqfNe+WXQzHlD3Jc7MxXNLw/cKwFWw/v3h3 iwV1mG/UaFkEH72urU/qGCwbJGYjVq+gqfYTEHDxaGwxgqaL+hE8FlOEwLSC7HVaGmoq TFeQ== X-Gm-Message-State: APt69E0+AxyR2IdfEr/nsCfOlomu9ufWk5voRynoZdjFG3rRWkY+FhdN s48CiUtUr7wmZWad2D/eBh2fQYuLqDE= X-Google-Smtp-Source: AAOMgpcwt/Wd8AG2tgvwDjxHhE7IdoUvZ4L2KI/597JyPSTZcszD66eoFHhhu+rpBxdDqPOx+nUaIQ== X-Received: by 2002:a0c:f98d:: with SMTP id t13-v6mr19653021qvn.172.1531183574546; Mon, 09 Jul 2018 17:46:14 -0700 (PDT) Received: from labbott-redhat.redhat.com ([2601:602:9802:a8dc::1941]) by smtp.gmail.com with ESMTPSA id l36-v6sm1816792qtk.12.2018.07.09.17.46.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Jul 2018 17:46:13 -0700 (PDT) From: Laura Abbott To: Masahiro Yamada , Josh Poimboeuf , Jiri Olsa Cc: Laura Abbott , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Robin Jarry Subject: [PATCHv2 1/7] tools: build: Fixup host c flags Date: Mon, 9 Jul 2018 17:45:56 -0700 Message-Id: <20180710004602.21599-2-labbott@redhat.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180710004602.21599-1-labbott@redhat.com> References: <20180710004602.21599-1-labbott@redhat.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 0c3b7e42616f ("tools build: Add support for host programs format") introduced host_c_flags which referenced CHOSTFLAGS. The actual name of the variable is HOSTCFLAGS. Fix this up. Fixes: 0c3b7e42616f ("tools build: Add support for host programs format") Signed-off-by: Laura Abbott Acked-by: Jiri Olsa --- v2: Also fixed another instance in perf pmu-events. --- tools/build/Build.include | 2 +- tools/perf/pmu-events/Build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build/Build.include b/tools/build/Build.include index a4bbb984941d..b5c679cd441c 100644 --- a/tools/build/Build.include +++ b/tools/build/Build.include @@ -98,4 +98,4 @@ cxx_flags = -Wp,-MD,$(depfile) -Wp,-MT,$@ $(CXXFLAGS) -D"BUILD_STR(s)=\#s" $(CXX ### ## HOSTCC C flags -host_c_flags = -Wp,-MD,$(depfile) -Wp,-MT,$@ $(CHOSTFLAGS) -D"BUILD_STR(s)=\#s" $(CHOSTFLAGS_$(basetarget).o) $(CHOSTFLAGS_$(obj)) +host_c_flags = -Wp,-MD,$(depfile) -Wp,-MT,$@ $(HOSTCFLAGS) -D"BUILD_STR(s)=\#s" $(HOSTCFLAGS_$(basetarget).o) $(HOSTCFLAGS_$(obj)) diff --git a/tools/perf/pmu-events/Build b/tools/perf/pmu-events/Build index 17783913d330..215ba30b8534 100644 --- a/tools/perf/pmu-events/Build +++ b/tools/perf/pmu-events/Build @@ -1,7 +1,7 @@ hostprogs := jevents jevents-y += json.o jsmn.o jevents.o -CHOSTFLAGS_jevents.o = -I$(srctree)/tools/include +HOSTCFLAGS_jevents.o = -I$(srctree)/tools/include pmu-events-y += pmu-events.o JDIR = pmu-events/arch/$(SRCARCH) JSON = $(shell [ -d $(JDIR) ] && \