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,URIBL_BLOCKED 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 AF8CEC4727D for ; Wed, 23 Sep 2020 18:57:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 503DA235FD for ; Wed, 23 Sep 2020 18:57:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600887470; bh=DqZ2RgInXtfx9htpKU3nx4V9Ftz8U1dHUfcM2MbSaYA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Y0V52zh9qdK+YtFvz6GuJmbuDyHxhD3v7JZ1ngS+5Vwo8VoAKtupMcAXh62JLcgXE D7J4fSGc7PK+g+a9k8ecQQ1pOcEqV1Mv5KSF4VCR2e7W/h8dw8FKSExcHulFwa7cav JSxeukszl63f8o0RBIICKzRBeg8mwPqihy7ladz0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726620AbgIWS5u convert rfc822-to-8bit (ORCPT ); Wed, 23 Sep 2020 14:57:50 -0400 Received: from us-smtp-delivery-44.mimecast.com ([205.139.111.44]:45387 "EHLO us-smtp-delivery-44.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbgIWS5t (ORCPT ); Wed, 23 Sep 2020 14:57:49 -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-344-Cg6JPIpSM66tKcBYPu80Ag-1; Wed, 23 Sep 2020 14:57:44 -0400 X-MC-Unique: Cg6JPIpSM66tKcBYPu80Ag-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 D3280800135; Wed, 23 Sep 2020 18:57:42 +0000 (UTC) Received: from krava.redhat.com (ovpn-112-117.ams2.redhat.com [10.36.112.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1371F3782; Wed, 23 Sep 2020 18:57:39 +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: [PATCHv3 bpf-next 2/2] tools resolve_btfids: Always force HOSTARCH Date: Wed, 23 Sep 2020 20:57:35 +0200 Message-Id: <20200923185735.3048198-2-jolsa@kernel.org> In-Reply-To: <20200923185735.3048198-1-jolsa@kernel.org> References: <20200923185735.3048198-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-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: bpf@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 Acked-by: Andrii Nakryiko 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