Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp22558ybl; Thu, 29 Aug 2019 17:54:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGel7z+ZN2lKXi0HucjyrU4UP7SoJWbtGQmsKvj5awn4Bcki4r4czuKuZ8gEuOHprfd2h0 X-Received: by 2002:a17:90a:9105:: with SMTP id k5mr1374569pjo.9.1567126471706; Thu, 29 Aug 2019 17:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567126471; cv=none; d=google.com; s=arc-20160816; b=PaBwsfL+mHCphH5t7PKfOC9Y1371fIcg/usTpeCtZuCWFsPk4C+mVn+aAjY3TtHY7H Sz3TySZHIt6vJRnAekg1fyPbXIizXD3Y0DxDB22zAlPqzrSVHCZSuhliJfXW56zs+NTs HDOdCzEMGReJQ9fDivRRycW1ZoPaHgtu0OAgaUcbMGRzqkOCLyvoNwOhK6VLkix1G0Gt /mK17zM9Lr3UiHAnzxxHTwzkIrF2qQWwXFnASvJptWZFlCX1WncAjBBlOJjUIW/OQUR7 +u0ByR7gxg3nRKnBzCPckcOvSS+OeOORXJHDZgtDOnIWo0QOmyT1OoPspZoE4dTecrKY aLAQ== 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p123si3256082pga.12.2019.08.29.17.54.16; Thu, 29 Aug 2019 17:54:31 -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 S1727139AbfH3Aut (ORCPT + 99 others); Thu, 29 Aug 2019 20:50:49 -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 ); Thu, 29 Aug 2019 20:50:46 -0400 Received: by mail-lj1-f196.google.com with SMTP id z17so4856682ljz.0 for ; 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 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 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- samples/bpf/Makefile | 2 -- 1 file changed, 2 deletions(-) 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 -- 2.17.1