Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6686080ybn; Mon, 30 Sep 2019 02:01:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdpYUh8iTyGL+/ibFwQhrKqdBke5Ez1PujWxMr75XpE8frFn/MunIoEHgw84AqqdrJFo7t X-Received: by 2002:a50:ed82:: with SMTP id h2mr18415341edr.206.1569834117191; Mon, 30 Sep 2019 02:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569834117; cv=none; d=google.com; s=arc-20160816; b=r1fnZGgAcxNEvpbPposDg40Yftwh05M8GsRXXTT9BnHq4F9r0oFT0qGsZU41MtgvRI hd9B4HcKy36jUSOQVwGAGvff1NVetr2YTG0zj+IyS2d2JS62R+++8cdp329+JlBxMb5N dfQbfHcag1DnW+pjprlsahiaEzA8XSsGwkVL+maW07O9pfOoLh1Dp48s54p7bvvBBcmW b5gzN42/wwju4f4KQgISLNZZNtOyFELQmIdLfzEMRG43kTyi6rm/8qT7ja48R9mHpnbh 0me42CGLBy3tk9IEJemIFosHhnwu4uFBh+yuV2McBfrle7q4ieoNX7UWcJuxxs03mtvu x20Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=s2euLtnCOaqIVm3rYvxtAdmTbFK9ji7F22cTkVd/AJ4=; b=Hx6wr+Dlfv0N4vrFg42OBcvGSgKR9aqkC+mWb12J98+hBVdW5Fj7TQ0gycNoiPDn9F 9U7x4vTnH0p16B1uCR05qwKfLpjZTC45qYOCxGdvImLN2O4rBua/qIO/tc3vLClJuZwP Y4j4dbzXFVNUPtBDAZBN0+rh3GpTC6i/qu7SxyepsaMH/QJraVqq1FtqZbdrybVyUySR YTmCmKpUOQvhEjKkN7PDd8I378R9d3nwhVlLLxqnQiNEh5/u0BIpg7q1oe0GaM6gPHB4 yEFHg2oHyaJnWFQb9ZbxxBl3wbeVLN8HJgGgUhKbc3o5KhSmbcWa98Qw3gIK/Ykjo5mb PfDQ== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12si6571654eja.185.2019.09.30.02.01.32; Mon, 30 Sep 2019 02:01:57 -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; 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 S1730325AbfI3I6S (ORCPT + 99 others); Mon, 30 Sep 2019 04:58:18 -0400 Received: from www62.your-server.de ([213.133.104.62]:59750 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729968AbfI3I6S (ORCPT ); Mon, 30 Sep 2019 04:58:18 -0400 Received: from [2a02:120b:2c12:c120:71a0:62dd:894c:fd0e] (helo=localhost) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1iErVY-0000oM-0o; Mon, 30 Sep 2019 10:58:16 +0200 Date: Mon, 30 Sep 2019 10:58:15 +0200 From: Daniel Borkmann To: Shuah Khan Cc: ast@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH] tools: bpf: Use !building_out_of_srctree to determine srctree Message-ID: <20190930085815.GA7249@pc-66.home> References: <20190927011344.4695-1-skhan@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190927011344.4695-1-skhan@linuxfoundation.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.101.4/25587/Sun Sep 29 10:25:24 2019) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 26, 2019 at 07:13:44PM -0600, Shuah Khan wrote: > make TARGETS=bpf kselftest fails with: > > Makefile:127: tools/build/Makefile.include: No such file or directory > > When the bpf tool make is invoked from tools Makefile, srctree is > cleared and the current logic check for srctree equals to empty > string to determine srctree location from CURDIR. > > When the build in invoked from selftests/bpf Makefile, the srctree > is set to "." and the same logic used for srctree equals to empty is > needed to determine srctree. > > Check building_out_of_srctree undefined as the condition for both > cases to fix "make TARGETS=bpf kselftest" build failure. > > Signed-off-by: Shuah Khan Applied, thanks!