Message ID | 20190830005037.24004-3-ivan.khoronzhuk@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp3000970ily; Thu, 29 Aug 2019 17:51:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwksfjDrD606ayCLt0gRa9kpjvXEHtnPuCqtjYCDk8XQ20eY+4mN68+lam4w8wM/Xlj3N8P X-Received: by 2002:a17:902:e506:: with SMTP id ck6mr13180004plb.132.1567126296917; Thu, 29 Aug 2019 17:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567126296; cv=none; d=google.com; s=arc-20160816; b=DyGTSHwo0M5E2OM0O7ugEyQqRiyWRKr1WiIa/8lT21+D/aessgj9viLPfaMJ/nErX3 u+QzLGTszg+dVpxfB4M0AbHWjrQrntaSjr/pn3Ne1TnUpMiydLtoRByNcFUYb68B+A7z gm2mK9WtA316HUE9GzRmGnJc6qu80+rEbEsJBWda4UHDeKkn6RpK9RCdGbPfPN7Dqgfd Oog+KiAXBqJcpyyfX/FHvK3E6q087vyTrX8fI/6dkjv/P3dHorrBGvLYs50kwRmu6n+D r9M/PvEkYTH1O0iDoxJwpg+Jqy/XdzWLwV7mEfdm3MkP2JlwawEMfSHgmnORCBy0jxBQ hpxQ== 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=LKaVdiULHZHeM3qmwqXGbS3W/6JSevNYH66TL2VqMJs=; b=loOGq4JIVmCdNrCjtVP9pl0QszeBdMRErKoInOaSyJuUeWM3RhhLHqy1ZxL9BVxDX1 VCg5A86GjdWN/CWNtJJlCl8oTqNGvkCdDyl6UKkXv2ymYvz3GqlcdIijR3MmpSxL7lf8 wGzvxvDusOU8CNpxGwPsZYYzWRwEj5BaqRnYdE66pElEwJn/7DXrpQk26/0kWRZfId5z HGI8ZeEhqqViXohXF0hN0GnbqQatDWMQsQ28+NW+5JQBnFe/COTNrcmlJHOBPAYkKs9e Gq/4ZEyoQcx7FJ+YPNxuG0NBsBWw5xrFQmepe0Y6uZqpeQF5cChHwA4j5y998BJqAxu6 8IJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FCvja2RR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck4si3325238plb.235.2019.08.29.17.51.36; Thu, 29 Aug 2019 17:51:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=FCvja2RR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727726AbfH3Auu (ORCPT <rfc822;mike.holmes@linaro.org> + 28 others); Thu, 29 Aug 2019 20:50:50 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:33080 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727487AbfH3Auq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 29 Aug 2019 20:50:46 -0400 Received: by mail-lj1-f196.google.com with SMTP id z17so4856682ljz.0 for <linux-kernel@vger.kernel.org>; Thu, 29 Aug 2019 17:50:45 -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=LKaVdiULHZHeM3qmwqXGbS3W/6JSevNYH66TL2VqMJs=; b=FCvja2RR0Kl7bYsDQOOUQUjMRFvKXGR7eNe2NgdFDmbxw/n8dJHTjUoGSI+mau6Y+4 Nur0MR6ogMXxJ5zfyi7m9Wy9jxTs0li83IAoNnO3od01GnS9Hqlng6pvxCjHf6xEnMyr augAVWdm8PjLCzmGgLHygy3NIRgFB7JySVZRBQN0s3ZKjzbUAEdFIJqIzM5lHjreRvGG snI7tdFTUKcqaa8IwauSlZkbGJE8QEkzS8ZNg5oOiKBIMrKDtwadtIdeZ6JwNYKeJIn3 tKv1ox5CdWMtkIaJu0sJl+tRU4qXmxLrhXLswctpqbwRgon6CnOE9jLR+4q5IXCY6JhA KYLQ== 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=LKaVdiULHZHeM3qmwqXGbS3W/6JSevNYH66TL2VqMJs=; b=CeW4oKIS7cH2A31Q63MZBsi4uv7Hpd2MUe5+BfpDQ8RUH++PQydPTMfyrhp4FgJol4 VMDXvK/qZfvZqH9roUhleJJzHrCPWD4tTW3NMxx5xKWKhIExHgyQkV1gChTMJcpytrNj qKt9QZjs++nn8GOcTyP0BbxEEUu0KbRQgEEvVHgXt8ZTpNyraXhUGXNBzOIsBzmIQuHy gdivpzjCtNZXtvtv+a7IkBhNViGBIFgJFwpt1ycwvgFzrTFRFUaCaN5jzW0lIJUdLBsY Fl2nJeKrm42nkkB82GW1QwJcDtH32umg0ADt49khVVb8/uayyhR4h37AvsBJhvQoQ1tI NaLQ== X-Gm-Message-State: APjAAAUaFHADK7JrpzeL9yDixcmG8oS1UYgpbgqXJ1M6rRWVBou0jGBS 6HgRD/UsszTDHgZ16ZKn9xddoQ== X-Received: by 2002:a2e:970e:: with SMTP id r14mr6839936lji.204.1567126244471; Thu, 29 Aug 2019 17:50:44 -0700 (PDT) Received: from localhost.localdomain (168-200-94-178.pool.ukrtel.net. [178.94.200.168]) by smtp.gmail.com with ESMTPSA id f19sm628149lfk.43.2019.08.29.17.50.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2019 17:50:43 -0700 (PDT) From: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> To: linux@armlinux.org.uk, 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-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, clang-built-linux@googlegroups.com, Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> Subject: [PATCH RFC bpf-next 02/10] samples: bpf: Makefile: remove target for native build Date: Fri, 30 Aug 2019 03:50:29 +0300 Message-Id: <20190830005037.24004-3-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190830005037.24004-1-ivan.khoronzhuk@linaro.org> References: <20190830005037.24004-1-ivan.khoronzhuk@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
improve/fix cross-compilation for bpf samples
|
expand
|
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 61b7394b811e..a2953357927e 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -197,8 +197,6 @@ BTF_PAHOLE ?= pahole ifdef CROSS_COMPILE HOSTCC = $(CROSS_COMPILE)gcc CLANG_ARCH_ARGS = --target=$(notdir $(CROSS_COMPILE:%-=%)) -else -CLANG_ARCH_ARGS = -target $(ARCH) endif # Don't evaluate probes and warnings if we need to run make recursively
No need to set --target for native build, at least for arm, the default target will be used anyway. In case of arm, for at least clang 5 - 10 it causes error like: clang: warning: unknown platform, assuming -mfloat-abi=soft LLVM ERROR: Unsupported calling convention make[2]: *** [/home/root/snapshot/samples/bpf/Makefile:299: /home/root/snapshot/samples/bpf/sockex1_kern.o] Error 1 To make the platform to be known, only set to real triple helps: --target=arm-linux-gnueabihf or just drop the target key to use default one. Decision to just drop it and thus default target will be used, looks better. Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> --- samples/bpf/Makefile | 2 -- 1 file changed, 2 deletions(-) -- 2.17.1