Message ID | 20190904212212.13052-7-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 r14csp454842ilq; Wed, 4 Sep 2019 14:23:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1rDh4ZXU6yt+sYtaySY80d2RpW15ZJZ3Dndg8ye2zGeTKkVZqQkEg74OoSBYJDDAU88UR X-Received: by 2002:a63:3148:: with SMTP id x69mr159825pgx.300.1567632192992; Wed, 04 Sep 2019 14:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567632192; cv=none; d=google.com; s=arc-20160816; b=jjLOwauWWnNfa+aij4ig5tfy0xt7P/rGxqqwK/x4/fQRuv82skXYFDp+emDvDBw7n8 d4klzPFIEzrm54q3GPE5Zxl1B9Of+iUXv6e7c2AYajHOQc6teTE8uiwlwHCTXCvsPCjG vL+K3LRnB49CdAV9ulyCTMlQOkXyISrTX/9SXyowGCDG8FGe5/PG5AiPRTqXTJmeuNxe 4iqJ0wgiDgujabyZEz/88ymBGU0xgebiWq7Vq9Wyigs2+dRSBn1lhW0f4zNu7rowcWit zyFEPtGn4EbZVPOmzOn1p3MtDpPnQE6jPH5K7cAkE4fckqmWT4RiFTLwu0631VbM997z bFPA== 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=iQdFKRCdsWomZgjBMZ1BG8YTrJG1Rf0I+zDwJUFyFFw=; b=waNXW3WfifQrURNHVL0Gfh1bUGA2AwMiX8NYYKjew4Zbhfrc7NJ20pg7M9G/n8fS+y g9Kjs4CEQzE22DNz/zVpzxXTq/xcR176kz2L6XQIFrryMh5JCQC3bZaP5juo6009tAp6 wbSppzjFxQseLMwT+Z5W7Dr75Zzk3T7kpUzLpdF9zHoTNnlupE+MyTcZ3Yr2w6lvR77Z bHacFvCKinCiyVb+eEUV/hueZdABQLnaUpCoTivtou/GB0ScFXl+k9fg5l3bYckGovpH c39zD6T/yXVDZ6WNXP4XvFFdbIqt9wuNfXmNwevu2gttul0/egxbt4idK0Fc/38ShTTn aUZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w9EqOn0Y; 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 g18si56749plo.373.2019.09.04.14.23.12; Wed, 04 Sep 2019 14:23:12 -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=w9EqOn0Y; 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 S1730664AbfIDVXM (ORCPT <rfc822;mike.holmes@linaro.org> + 28 others); Wed, 4 Sep 2019 17:23:12 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:42652 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730453AbfIDVXK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 4 Sep 2019 17:23:10 -0400 Received: by mail-lj1-f193.google.com with SMTP id y23so171460lje.9 for <linux-kernel@vger.kernel.org>; Wed, 04 Sep 2019 14:23:08 -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=iQdFKRCdsWomZgjBMZ1BG8YTrJG1Rf0I+zDwJUFyFFw=; b=w9EqOn0YY7I/TacD6X6Vjc8n258l7Gc09N11miWY40kBi9+VSoXN++YMfJIjBwnOgK U3UYsWfJKg5xSFSiqtIdn4vm09vAxP+kColVZvJOAOebO8/IuymQKm31SLCXRQOaTCD2 RQ504SX7sSFVdtdwg/+sjWtzgKM9iIoaVLhnL6YyxtwAEBniaR7JWdJ7xfs5miGI91St mWtVSdMkew7dInOa2/bLuyKOckX3QvgY72z4nrryE/Ox706S8eJcxRziKI+q9XvhULll rTMbm4Ywygv/OTteQSOBuv5RG7t75vFyKH3z9GaYJCB4IXyIJFSFqpi4UiXk/eIRbuga Vn+A== 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=iQdFKRCdsWomZgjBMZ1BG8YTrJG1Rf0I+zDwJUFyFFw=; b=OnB9qnsMn+qNMnyapxC8vZdukEK4zelgvFvtkxbW1Qy/jm/9+hhHa+zIrVk+I3Rxpl W3VUJXtg1BBk3lmDkRrqh5fKV+1tvkIiK3Ola+Vn4dTQdxxtazTbng8CaA/axT327Kjk K+QOwRnAOS7z6mbiJkaUuvy93iUkc+Sr6QFrioJYqDx4E1FuW7iATlRsvEIjqOaGx+xY nOkroiiRls6NRbkn9a1LmNySMO7zt9p5cur/CO/7EUfXYM/hqvGXaOvXebcJPEexqh28 Cbxc+OBMy6qYDgFkerIeGW6qn7g37Jzek4LGI2t0M6xlg3iw1zGjp0iNv6UuIIA2hBbR +Ixg== X-Gm-Message-State: APjAAAUVvFNDv/Lm0hZS3rbtpilc9l2BMzCT5ZygikjrhV8q9DAxSEM3 3eV7j2eDGyDKzHml70UNIG/LSA== X-Received: by 2002:a2e:5358:: with SMTP id t24mr15379944ljd.209.1567632188285; Wed, 04 Sep 2019 14:23:08 -0700 (PDT) Received: from localhost.localdomain (168-200-94-178.pool.ukrtel.net. [178.94.200.168]) by smtp.gmail.com with ESMTPSA id s8sm3540836ljd.94.2019.09.04.14.23.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 14:23:07 -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 6/8] samples: bpf: makefile: fix HDR_PROBE "echo" Date: Thu, 5 Sep 2019 00:22:10 +0300 Message-Id: <20190904212212.13052-7-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190904212212.13052-1-ivan.khoronzhuk@linaro.org> References: <20190904212212.13052-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 |
samples: bpf: improve/fix cross-compilation
|
expand
|
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 9232efa2b1b3..043f9cc14cdd 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -208,7 +208,7 @@ endif # Don't evaluate probes and warnings if we need to run make recursively ifneq ($(src),) -HDR_PROBE := $(shell echo "\#include <linux/types.h>\n struct list_head { int a; }; int main() { return 0; }" | \ +HDR_PROBE := $(shell printf "\#include <linux/types.h>\n struct list_head { int a; }; int main() { return 0; }" | \ $(HOSTCC) $(KBUILD_HOSTCFLAGS) -x c - -o /dev/null 2>/dev/null && \ echo okay)
echo should be replaced on echo -e to handle \n correctly, but instead, replace it on printf as some systems can't handle echo -e. Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> --- samples/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1