Message ID | 20190830005037.24004-2-ivan.khoronzhuk@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp3000227ily; Thu, 29 Aug 2019 17:50:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJzkg7+SFL9REEqRQbNE3xoGH82DG1g0ZukkbAQuj9pZwK5jzAbe4WAtw2n5OoDSb3lRLQ X-Received: by 2002:aa7:8edd:: with SMTP id b29mr15304974pfr.173.1567126247871; Thu, 29 Aug 2019 17:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567126247; cv=none; d=google.com; s=arc-20160816; b=HWTolwKLyRPyhrsV3IA7I5V9qzx5Ndw/xexWhYBo3B80uKuu9Y8j05iC55Zp3V1rAi Wkj40P9x6qOyY945Bn3YHpkfPQwztJkdkE4znDRiNuaI+8V7vIU1lbf/qT0EuVAvZN/O UhS6Q1xjWCB2h2f61nqVqMJpe5pHY15jGmtOtBgT/fhZwxPHslnzc4moBs1TOAHzDBDt YEFWGqrAp+F06AuS7nQz5V7YaT3DswiHeCH/ScMQ2HvTAaSUJlFlRoQeXu0w2cosH353 3iFuuub5Mi7FPy7Crj9tTkKVeYxw3tz+dJ8C9thmUnihglwI4jXrKwewPKscbqcPMj7f /Qbg== 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=Uyna4IYOJol121SLmRwAZvx/NaOoPDVjYK6GTYbGUpc=; b=YmF8E9NSKGmrfyOWJp6U3RYQY+o/6TrrT6lw2GDGxfPfPshx4DNASEFGogj0uRPyu3 7xwusCtax6cRePd9eY6OoChypIpfp0aXmo+lN1vogyoh0jBCFV3tYQXiFibICQoKmjgL vYxXxQ4akst2RQhyE9G3jgSYEvuQmpPmKVA+txXofkW/vRdEezpyZn5OFm9+9dWqff54 BTs7uABrPHHaNpJV8TaBBDWbAtcSchJDe66fzs1+P2tFw/lKzRqY5uk06Ml2FlNQ1NGt ita3IdoKR+iUx7TGJ5bDrZk+hAgNJfwgb87Dg6Gqd5C2dalMM5QDH00k+rFFj/6HGtdq 9H5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kCLWWa8C; 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 t9si3330408pgv.225.2019.08.29.17.50.47; Thu, 29 Aug 2019 17:50:47 -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=kCLWWa8C; 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 S1727066AbfH3Auq (ORCPT <rfc822;dan.rue@linaro.org> + 8 others); Thu, 29 Aug 2019 20:50:46 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:43629 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727139AbfH3Auo (ORCPT <rfc822;netdev@vger.kernel.org>); Thu, 29 Aug 2019 20:50:44 -0400 Received: by mail-lj1-f195.google.com with SMTP id h15so4785557ljg.10 for <netdev@vger.kernel.org>; Thu, 29 Aug 2019 17:50:43 -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=Uyna4IYOJol121SLmRwAZvx/NaOoPDVjYK6GTYbGUpc=; b=kCLWWa8CrxMwJCc3us4OMb8Z4KxeYvEnIDyQFEEyN+J2uzU3tej/3tlqELGg51s510 Hx6FevFLPM/rW9mn0TSPGLrFyZdU6GgtFt0G6VlDwBwg2z9T4kV5uiNUBxi6zOGGGkJi EM8Wepqm3ulk4jB04e2UspjIt0F9jNtMphdz7dcZNmhdaQOLOKo4Ib3a8U488jLM5PK4 f+21fUenLBmLcDN/uGf5mOGRC8y6460M/FviJOCMebLC2pF4tXTUBvvZhDmDPVSv28Mk BI73jiSk0NojKt3fQTjexjSwQHhZf+i/x5gkVDbVmTy1jSWDE1mgCJu/E1vKe4LXDflk cS6g== 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=Uyna4IYOJol121SLmRwAZvx/NaOoPDVjYK6GTYbGUpc=; b=SD6LhS6Td8TSBr/dV4EdJ1LzcsxdMUWIjrxjKejqYB+Wq809HmyundYDBSyfYJbzt4 2QO9PixYzhclctPJ2mdPlbioIDHjw8o7bNqFVcIhxNB1DR7tpEqqqOEL1FaRrBOqHULc 8ksUJjjOsp3U9OJhqT2BImpa7R4oJh4A78Es58aDYQUe3Hpiwla9awIx9/TcR11dsXdz dhPQN5lLrOMD2zOu5K3ododV2WXpd9TfwRGsEUq1oxF4/on1oQFf7Hi0pr8P0shnisEi UaF1oqxY5MjFSij4eVUt6uXJYUt2+8jC5/QQWuhl6/Uv8uieSOgmkA9nq2+azqHq20bn If1A== X-Gm-Message-State: APjAAAW8gTsRsEuh5N7WF/34BqSAUEfd4fJm3BcIESht0oRSal2xZOkt zSTwN/c6Z/sqCeFeK1ux4TWyHg== X-Received: by 2002:a2e:8455:: with SMTP id u21mr6903469ljh.20.1567126243059; Thu, 29 Aug 2019 17:50: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 f19sm628149lfk.43.2019.08.29.17.50.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2019 17:50:42 -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 01/10] samples: bpf: Makefile: use --target from cross-compile Date: Fri, 30 Aug 2019 03:50:28 +0300 Message-Id: <20190830005037.24004-2-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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
[RFC,bpf-next,01/10] samples: bpf: Makefile: use --target from cross-compile
|
expand
|
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 1d9be26b4edd..61b7394b811e 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -196,6 +196,8 @@ 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=$(notdir $(CROSS_COMPILE:%-=%)) +else CLANG_ARCH_ARGS = -target $(ARCH) endif
For cross compiling the target triple can be inherited from cross-compile prefix as it's done in CLANG_FLAGS from kernel makefile. So copy-paste this decision from kernel Makefile. Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> --- samples/bpf/Makefile | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1