From patchwork Thu Apr 18 09:39:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 1087480 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="PTt8dwcC"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44lDZm6s6Gz9s9y for ; Thu, 18 Apr 2019 19:39:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 23FD925E5D; Thu, 18 Apr 2019 09:39:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jgo3i4gKTk6z; Thu, 18 Apr 2019 09:39:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 1803D220EC; Thu, 18 Apr 2019 09:39:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5B2B81C1644 for ; Thu, 18 Apr 2019 09:39:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5547687326 for ; Thu, 18 Apr 2019 09:39:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id svOwixEMzWIx for ; Thu, 18 Apr 2019 09:39:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtprelay-out1.synopsys.com (dc8-smtprelay2.synopsys.com [198.182.47.102]) by whitealder.osuosl.org (Postfix) with ESMTPS id 34D688731A for ; Thu, 18 Apr 2019 09:39:07 +0000 (UTC) Received: from mailhost.synopsys.com (dc8-mailhost2.synopsys.com [10.13.135.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 2A122C0B21 for ; Thu, 18 Apr 2019 09:39:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1555580347; bh=GYcuvZdpTBws7Jzmtza9QNaodZUOTodS8jsukMed4h8=; h=From:To:Cc:Subject:Date:From; b=PTt8dwcChWZ5VciW6venHXU+64o2sps+X2Dm1TNYwxEelLUnUgVIfoCBOtlXIN01s KgaN1wqz4hOQjhhGOUuoM9djUhzRJ8Hp+cQfVbX6NQknXs5IkVqR8J5RYXz/5XhtDe CkEw1oSiOEptWIO4Ko7jDNR6vcGyojnEO3c7TWz5nqA6hIuC+22oK+MQfa5dxEJ+s1 iXDtI4fIxw5nhSn1cDl9pt7YKYDgBnMdyk/CDflu3URK82UXuidqgmRcFAXGmKYANV MNdd61cIjgpoJoL+XV+2s4x6Cz65x/IraHMdbf6PF8iXauCdcz2Uxg0q1pImU9rcql WnWyAWjpRBWWQ== Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id B956BA0065; Thu, 18 Apr 2019 09:39:05 +0000 (UTC) From: Alexey Brodkin To: buildroot@busybox.net Date: Thu, 18 Apr 2019 12:39:02 +0300 Message-Id: <20190418093902.41835-1-abrodkin@synopsys.com> X-Mailer: git-send-email 2.16.2 Subject: [Buildroot] [PATCH] linux-tools/perf: Respect TARGET_CFLAGS X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexey Brodkin , ARC Buildroot mailing list MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" perf uses its own build-system and doesn't respect externally set flags. Let's force it to use target flags as perf utility is nothing but an ordinary user-space application. This among other things is required to build perf for ARC700 for which we pass "-matomic" via TARGET_ABI, see [1] for more details. [1] https://patchwork.ozlabs.org/patch/1087471/ Signed-off-by: Alexey Brodkin --- package/linux-tools/linux-tool-perf.mk.in | 1 + 1 file changed, 1 insertion(+) diff --git a/package/linux-tools/linux-tool-perf.mk.in b/package/linux-tools/linux-tool-perf.mk.in index 80e00c3c56..e7565773c4 100644 --- a/package/linux-tools/linux-tool-perf.mk.in +++ b/package/linux-tools/linux-tool-perf.mk.in @@ -19,6 +19,7 @@ PERF_MAKE_FLAGS = \ JOBS=$(PARALLEL_JOBS) \ ARCH=$(PERF_ARCH) \ DESTDIR=$(TARGET_DIR) \ + EXTRA_CFLAGS="$(TARGET_CFLAGS)" \ prefix=/usr \ WERROR=0 \ NO_LIBAUDIT=1 \