Message ID | 20190910103830.20794-4-ivan.khoronzhuk@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp5609633ilq; Tue, 10 Sep 2019 03:38:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+36tLSy8qCBnLH8OIaATOb5qH9ZliRS2it1BTJ/yx12qR0kgVw21ml8oGJQb/W7wPCqME X-Received: by 2002:a50:f418:: with SMTP id r24mr29423592edm.248.1568111925070; Tue, 10 Sep 2019 03:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568111925; cv=none; d=google.com; s=arc-20160816; b=LOaAyctyPC4C9J7wsi6FmDSiIcqPhIakqEXmGEnGyx0SSDVFz2Wm0puZ0VwjADGLDc ZwdmDSGK2RX2jVN+q6bDKtGUxfnClkLgtyC3TwW798l6TP4hrNZTzRKNMftU6O2L0fBL bWg3SkN+O8RJyXNtbLut7+T1ALbF5VV94D27ShR3Fnw78dxOGwGWNprf/a9XO8ZLz5w8 MP7uzh+yEHRcfLu5K0Oef03PoE4wt+zTgTWANvstc9J6uPXcXn78eP/wJ5Eg4OHcyMvC TcH1ZtxpP/BcYcTRoCTLRX2MokIOhFiKZMtFeu8/ad69As4XgPGRjuJQnnIDnW6w7pDJ EwJQ== 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=HSB3pC6OCIzwVYGBAJ0R7QI4CKajD+8ovp0KUKhem8g=; b=NH5QwL9uIwZNkmcF779vzfpHTInujoqNi3ezKQ7MwHedUumSGHuIAaj3zT0nkI7bOD WibhQx7qfQLhIsZ0yFGMIFk1z9lEkek9VVJGVO6MVf1FOl9Iv223qUx8rXnsaHvohMvA w6Va5nHN1lvuM8p0FNG34B/RGRdjzZa+Gf1mfJs27GJaqk1qLxn7dYq+73/8GV+W1B8e zM2YaH+uk+BiAWPftvHmrSK0g7jMW4TAdoksoKidRKKmvm9+gtb3T56CIOAY94aDG722 SbDbUDdrTbpQr/5yp4ozMjhywR0dsxa6LyqAB7972gMm5vyAwg+JrjpdG6bcNiSUp+gT YvIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BtxKUtJE; 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 f12si8234488ejt.234.2019.09.10.03.38.44; Tue, 10 Sep 2019 03:38:45 -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=BtxKUtJE; 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 S2406057AbfIJKio (ORCPT <rfc822;mike.holmes@linaro.org> + 27 others); Tue, 10 Sep 2019 06:38:44 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:45120 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393845AbfIJKin (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 10 Sep 2019 06:38:43 -0400 Received: by mail-lf1-f66.google.com with SMTP id r134so13001561lff.12 for <linux-kernel@vger.kernel.org>; Tue, 10 Sep 2019 03:38:41 -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=HSB3pC6OCIzwVYGBAJ0R7QI4CKajD+8ovp0KUKhem8g=; b=BtxKUtJE9gTBoy7cQq768A85FEoTmttXAUMIXlqEYSl+FRdXX2kB5jdIbIAbVAuLka 1fVCV27e42wBzxjb/Bhz1Gw0GCUdkfeC/sqN0we0OmZzldeKYdu/7oDDYhIOSqfPekKL DtzSpGrwCW9FbqNs4HCAnpo187xcVH9uoY9+8CKqcNB99tyVhAKXsK4mNdbA3YDLG/cf UnohngwVbieXHXNgn34avvAKimIBbSljiBS4vPo7O1JyK/LWiGdHLdDScFNNTr3o4A76 o3YPptxKoKDvEn27JvOnnL7ymbXYrMZgR+KttC8F6NC7vu3bJXIHgLQhgZChos8nRSKs tuyg== 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=HSB3pC6OCIzwVYGBAJ0R7QI4CKajD+8ovp0KUKhem8g=; b=bcuGuiG4cXUE1k29FM/elmBUTAMxb7xf/p2ju/tbVu/7xee/hKAj+hFJ4lMu1eJ/mf /5NI3QxuIwPj1bzMeBFZtNZ0j/lEeOB8upT4kUFSPCgaVfSoGpzL5+DtoUjTiUMAhKyx N1rZbU10PaUvmKpQ0sHSJx5+TIWlwL8iG2OO1kq1kBx1fcKBQCx4qH926jw/XKLKptWF 2sdwoDw27ycsTOYb6ZwR5l1PeM5kX0VrUINJmJko1I8drL+2LORzTAWM/AQMv75J+B6x l1oiYekRvEkcDmo2RZ9F20d4BHm3zqprgKaDhdt5QUMCG3l5rQ+dw/yv6GkDWPZS8nI6 EEng== X-Gm-Message-State: APjAAAXWtQr9RDKXKvbtGRiDWO4r5b98jKdgM4oiM1GLckGuLm591NWm 9SeaChBVoCAmDE2yvQsuaEZCPg== X-Received: by 2002:a19:4f07:: with SMTP id d7mr281498lfb.161.1568111921277; Tue, 10 Sep 2019 03:38:41 -0700 (PDT) Received: from localhost.localdomain (168-200-94-178.pool.ukrtel.net. [178.94.200.168]) by smtp.gmail.com with ESMTPSA id g5sm4005563lfh.2.2019.09.10.03.38.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2019 03:38:40 -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, Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> Subject: [PATCH bpf-next 03/11] samples: bpf: makefile: use --target from cross-compile Date: Tue, 10 Sep 2019 13:38:22 +0300 Message-Id: <20190910103830.20794-4-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190910103830.20794-1-ivan.khoronzhuk@linaro.org> References: <20190910103830.20794-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 |
[bpf-next,01/11] samples: bpf: makefile: fix HDR_PROBE "echo"
|
expand
|
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 43dee90dffa4..b59e77e2250e 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
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, 1 insertion(+), 1 deletion(-) -- 2.17.1