From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82F4AC4363D for ; Wed, 23 Sep 2020 14:05:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2B55E221F0 for ; Wed, 23 Sep 2020 14:05:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600869916; bh=Cljqi9iR+ywFU+S0W7NotXGLDsVpUqJ5MGGSDUZLaTw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=lHz/MGXqJsgQ/J0TPy1xno5dLI3P8gXNVpVKd1SmbdjY29xt1vAEkQdF/Q15alKwU 2CkN7YicBRZud6PMmrcnE7ATIg9TcT8En0NX735oNkCAYKzKxTbrBx81zJNe//14Rp 4rZyhtMoXqz7s74zgcmoBfq7SSoJl10ZWBvlBKn8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726632AbgIWOFP convert rfc822-to-8bit (ORCPT ); Wed, 23 Sep 2020 10:05:15 -0400 Received: from us-smtp-delivery-44.mimecast.com ([205.139.111.44]:26075 "EHLO us-smtp-delivery-44.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbgIWOFO (ORCPT ); Wed, 23 Sep 2020 10:05:14 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-144-bnZt6VK9N82OrVMvDVFZTg-1; Wed, 23 Sep 2020 10:05:11 -0400 X-MC-Unique: bnZt6VK9N82OrVMvDVFZTg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3A8701007471; Wed, 23 Sep 2020 14:05:09 +0000 (UTC) Received: from krava.redhat.com (unknown [10.40.192.120]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4981955777; Wed, 23 Sep 2020 14:05:04 +0000 (UTC) From: Jiri Olsa To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: Seth Forshee , netdev@vger.kernel.org, bpf@vger.kernel.org, Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh Subject: [PATCHv2 bpf-next 2/2] tools resolve_btfids: Always force HOSTARCH Date: Wed, 23 Sep 2020 16:04:59 +0200 Message-Id: <20200923140459.3029213-2-jolsa@kernel.org> In-Reply-To: <20200923140459.3029213-1-jolsa@kernel.org> References: <20200923140459.3029213-1-jolsa@kernel.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jolsa@kernel.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: kernel.org Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset=WINDOWS-1252 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Seth reported problem with cross builds, that fail on resolve_btfids build, because we are trying to build it on cross build arch. Fixing this by always forcing the host arch. Reported-by: Seth Forshee Signed-off-by: Jiri Olsa --- tools/bpf/resolve_btfids/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/bpf/resolve_btfids/Makefile b/tools/bpf/resolve_btfids/Makefile index a88cd4426398..d3c818b8d8d3 100644 --- a/tools/bpf/resolve_btfids/Makefile +++ b/tools/bpf/resolve_btfids/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only include ../../scripts/Makefile.include +include ../../scripts/Makefile.arch ifeq ($(srctree),) srctree := $(patsubst %/,%,$(dir $(CURDIR))) @@ -29,6 +30,7 @@ endif AR = $(HOSTAR) CC = $(HOSTCC) LD = $(HOSTLD) +ARCH = $(HOSTARCH) OUTPUT ?= $(srctree)/tools/bpf/resolve_btfids/ -- 2.26.2