From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933206AbbLROXG (ORCPT ); Fri, 18 Dec 2015 09:23:06 -0500 Received: from mail.bmw-carit.de ([62.245.222.98]:49612 "EHLO mail.bmw-carit.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932821AbbLROXB (ORCPT ); Fri, 18 Dec 2015 09:23:01 -0500 X-CTCH-RefID: str=0001.0A0C0202.567416BD.01DD,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Subject: Re: [PATCH 00/10] bpf samples: Uses libbpf in tools/lib to do BPF operations To: pi3orama References: <1450329794-161948-1-git-send-email-wangnan0@huawei.com> <56725868.6080902@bmw-carit.de> <56725B67.2010309@huawei.com> <56725E59.6090507@bmw-carit.de> <56727259.80002@bmw-carit.de> <567289D6.9050209@huawei.com> <5672BC99.4070605@bmw-carit.de> <567377D0.6080302@huawei.com> <5673C8A6.1080806@bmw-carit.de> <5673E813.2080400@huawei.com> <5674025F.9030203@bmw-carit.de> <66E52D4A-BA1C-456A-8E6F-975E07C083EE@163.com> CC: "Wangnan (F)" , , , , , , , , , , , , From: Daniel Wagner X-Enigmail-Draft-Status: N1110 Message-ID: <567416BC.7040901@bmw-carit.de> Date: Fri, 18 Dec 2015 15:22:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <66E52D4A-BA1C-456A-8E6F-975E07C083EE@163.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/18/2015 02:50 PM, pi3orama wrote: >> Could it be that $(srcdir) somehow is not correct? I exchanged >> >> feature_dir := $(srctree)/tools/build/feature >> to >> feature_dir := /home/wagi/src/linux/tools/build/feature >> > > Can you remember the patch set I skipped? > > http://lkml.kernel.org/g/1450316632-152513-4-git-send-email-wangnan0@huawei.com > I'll give them a try next week. > I thought that patch set is independent with this one but I was wrong. > The reason > of your problem is the missing of srctree. Could you please add the > definition of > srctree and try again? Like this: > > +ifeq ($(srctree),) > +srctree := $(patsubst %/,%,$(dir $(shell pwd))) > +srctree := $(patsubst %/,%,$(dir $(srctree))) > +srctree := $(patsubst %/,%,$(dir $(srctree))) > +#$(info Determined 'srctree' to be $(srctree)) > +endif > > At the head of tools/lib/bpf/Makefile I tried that one but it didn't change unfortunately. I saw that code snipped is already in tools/lib/bpf/Makefile line 62. It exists since 1b76c13e4b36 ("bpf tools: Introduce 'bpf' library and add bpf feature check")