Message ID | 20191009204134.26960-4-ivan.khoronzhuk@linaro.org |
---|---|
State | Changes Requested |
Delegated to: | BPF Maintainers |
Headers | show
Return-Path: <netdev-owner@vger.kernel.org> X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="tfJRZwLz"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 46pR2z3SNFz9sN1 for <patchwork-incoming-netdev@ozlabs.org>; Thu, 10 Oct 2019 07:41:47 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731987AbfJIUlq (ORCPT <rfc822;patchwork-incoming-netdev@ozlabs.org>); Wed, 9 Oct 2019 16:41:46 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:40829 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731952AbfJIUlp (ORCPT <rfc822;netdev@vger.kernel.org>); Wed, 9 Oct 2019 16:41:45 -0400 Received: by mail-lf1-f65.google.com with SMTP id d17so2672968lfa.7 for <netdev@vger.kernel.org>; Wed, 09 Oct 2019 13:41:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=X+OYdLBkIYv08X2eKXt3TCPXQ11so0VYCO7f1mswfR4=; b=tfJRZwLztmeYnFVdBAyxDdd+TZuqCcbbHvU5t2tVbgAMeD89v9awCNcvPek+HEsinA K1LAR52j6GCLiPMmHzsyATIhO8GEAHwsq1kzMxTb+kqnSKYNYd/61S+suugTWtGL+xYl hYzte2ORZ6ds9SEIuh1GeM64BiH81APaqQ8DuaBD1dx9qk2i1Er8JYdmwhNet5xJn8FY UA4s3/ng5TBA92c8PW22hDa8b8CpZzr4neRtwwxFfBh7XCXe0ywARrnUdf3onmDwFKSE KtyiZ5pt88z1zElieeXhqhh6EmSJxDY15JKWCgIFMyvdMpMSehHPchYNTgjgh1TOKi7m 700g== 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=X+OYdLBkIYv08X2eKXt3TCPXQ11so0VYCO7f1mswfR4=; b=VtK6wMe9vZpFzTF6ZL7+d0d+FVAa9zahcKu7VKfJrwbQzSrS75536RGmTBzkjff/9L D7QzsxzXyQeZXJveQoi4sKOSD/6fERs7j/ihjdnppEQlQHc2ZcFdmJEM1OSCwREEK9aK TFfih3z2dHgiBdrHYO20jcXXd7buah3wWL5ovEOEGodUOmFj8d/P0igB/HWxwIMy68w2 cYG8eYpJ4x+bpTuwcFMRTft3DIebbMtaZAiXBhgrIKnV7iXAfFsxAOBJdMsZ/aOa8jds S/CsmdVgD5UXxj4Sce+JxzDFaxswkMves086aCYlUJzrUA0HKNLb9vsjd3rbBBzJhfXM /E+Q== X-Gm-Message-State: APjAAAWCOgr9XvlrmUlxUsOifQUCmk60haA2jmfbMjD90FmXOf1huJM3 Pybonafe39kyLnQG6xv87Mk6OA== X-Google-Smtp-Source: APXvYqz1bKEUNoy2hw6TiSEtk/s+AI2BPUnSPgf5bemrwMHPwBezXWN9I4nngequORm4JiAuSncpjg== X-Received: by 2002:a19:380b:: with SMTP id f11mr637307lfa.81.1570653703810; Wed, 09 Oct 2019 13:41:43 -0700 (PDT) Received: from localhost.localdomain (168-200-94-178.pool.ukrtel.net. [178.94.200.168]) by smtp.gmail.com with ESMTPSA id h3sm730871ljf.12.2019.10.09.13.41.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 13:41:43 -0700 (PDT) From: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> To: ast@kernel.org, daniel@iogearbox.net, yhs@fb.com, davem@davemloft.net, jakub.kicinski@netronome.com, hawk@kernel.org, john.fastabend@gmail.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, clang-built-linux@googlegroups.com, ilias.apalodimas@linaro.org, sergei.shtylyov@cogentembedded.com, Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> Subject: [PATCH v4 bpf-next 03/15] samples/bpf: use --target from cross-compile Date: Wed, 9 Oct 2019 23:41:22 +0300 Message-Id: <20191009204134.26960-4-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191009204134.26960-1-ivan.khoronzhuk@linaro.org> References: <20191009204134.26960-1-ivan.khoronzhuk@linaro.org> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
samples: bpf: improve/fix cross-compilation
|
expand
|
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 045fa43842e6..9c8c9872004d 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -195,7 +195,7 @@ BTF_PAHOLE ?= pahole # Detect that we're cross compiling and use the cross compiler ifdef CROSS_COMPILE HOSTCC = $(CROSS_COMPILE)gcc -CLANG_ARCH_ARGS = -target $(ARCH) +CLANG_ARCH_ARGS = --target=$(notdir $(CROSS_COMPILE:%-=%)) endif # Don't evaluate probes and warnings if we need to run make recursively