Message ID | 20191009204134.26960-4-ivan.khoronzhuk@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1263970ill; Wed, 9 Oct 2019 13:41:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyS5IhQIHrgubRNU2dBWM+bR+3uGq9hbGU18tIEdAaRgfkqpK7F2lCcsYxG80tkOAm3o/nw X-Received: by 2002:aa7:dd18:: with SMTP id i24mr4904701edv.239.1570653708460; Wed, 09 Oct 2019 13:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570653708; cv=none; d=google.com; s=arc-20160816; b=mqzgNE4N42UuH2qR4B4O1xh8Lqcek8UV7QV6peSQIB27A0OJYYehvuUTlDDIvvwTd2 8K1fNH8k0tuShiTBghXxnFi4+0gJWCkBqkW9UsN04g6GrkFybtgA9tzsRRfnlf04XEXZ iwEDONr9P4nDXICRkoeYzB5J4vdMcfMg4eIGyW0cOFcVqkd8NR0M40cT5MSt8XgRAUgh F+hFbF+QClFE9AldlpOjt2hBDBTG4RQWfFcYRs3EYVpmfkHzvqIEd37EckamXDZPPKyU ogST2w4oN1sesn38cBVtI5V8ezt4obvHswbMJAprms+EKTatkI6OTJUYQl+knU8EMXOM 8m/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=X+OYdLBkIYv08X2eKXt3TCPXQ11so0VYCO7f1mswfR4=; b=O0Oaf7Da6Omoebcdu2mW28m8v4aJz5zyAVpgBvuh6k12gIKiOuQkUr9NLq9VUCd3LI mWwkMCtg5aY2FRvux23uuMdNiG9oXhtvK5B94a3UZ6Rxv4y4fPG5WSc5bpqnkARWXu7b ZTfHkq/kIPRVu0OagF82czmnaCY3S1IcL7USFjCIoV9GBnxS5tzN+El024aJVwD2YGZp LG2CN+zFt2ivImJScQ0vd58D1+uyA3ZHP/PGuxJHVYEBHwbMdv+hHjXuFlkmHOsJWNMj b8jsj2ESXXr9mXYaXzG8Ku7juur49QdfXpiwkfiOtMii1JCYL4pI2QtGsWpUxdzWFrYe kYTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tfJRZwLz; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <netdev-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l23si1802319ejr.296.2019.10.09.13.41.48; Wed, 09 Oct 2019 13:41:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tfJRZwLz; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731987AbfJIUlq (ORCPT <rfc822;dan.rue@linaro.org> + 8 others); 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-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