From patchwork Thu Dec 17 05:23:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Nan X-Patchwork-Id: 58525 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp152384lbb; Wed, 16 Dec 2015 21:25:31 -0800 (PST) X-Received: by 10.98.71.217 with SMTP id p86mr11540955pfi.132.1450329931175; Wed, 16 Dec 2015 21:25:31 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 143si9940942pfa.219.2015.12.16.21.25.30; Wed, 16 Dec 2015 21:25:31 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934414AbbLQFZ1 (ORCPT + 29 others); Thu, 17 Dec 2015 00:25:27 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:11475 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934341AbbLQFXw (ORCPT ); Thu, 17 Dec 2015 00:23:52 -0500 Received: from 172.24.1.47 (EHLO szxeml428-hub.china.huawei.com) ([172.24.1.47]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id BSX91245; Thu, 17 Dec 2015 13:23:30 +0800 (CST) Received: from linux-4hy3.site (10.107.193.248) by szxeml428-hub.china.huawei.com (10.82.67.183) with Microsoft SMTP Server id 14.3.235.1; Thu, 17 Dec 2015 13:23:20 +0800 From: Wang Nan To: , , , , , , , , , , , CC: , , Wang Nan Subject: [PATCH 02/10] bpf tools: Define LD and RM in Makefile for 'make -R' Date: Thu, 17 Dec 2015 05:23:06 +0000 Message-ID: <1450329794-161948-3-git-send-email-wangnan0@huawei.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1450329794-161948-1-git-send-email-wangnan0@huawei.com> References: <1450329794-161948-1-git-send-email-wangnan0@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.107.193.248] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020206.567246D3.0077, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 6a576fa0524ba6ec702eb595b0eacb5b Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Building libbpf with 'make -R' causes error: $ make -R Auto-detecting system features: ... libelf: [ on ] ... bpf: [ on ] CC fixdep.o LD fixdep-in.o /bin/sh: -r: command not found make[2]: *** [fixdep-in.o] Error 127 make[1]: *** [fixdep-in.o] Error 2 make: *** [fixdep] Error 2 Makefile for libbpf requires $(LD) and $(RM), but in case of 'make -R' the builtin variables are gone. This patch define default RM and LD so it won't fail in 'make -R'. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa --- tools/lib/bpf/Makefile | 2 ++ 1 file changed, 2 insertions(+) -- 1.8.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index 0b6e013..7bec12f 100644 --- a/tools/lib/bpf/Makefile +++ b/tools/lib/bpf/Makefile @@ -5,6 +5,8 @@ BPF_PATCHLEVEL = 0 BPF_EXTRAVERSION = 1 MAKEFLAGS += --no-print-directory +RM ?= rm -f +LD ?= $(CROSS_COMPILE)ld ifeq ($(srctree),) srctree := $(patsubst %/,%,$(dir $(shell pwd)))