Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3813256ybn; Fri, 27 Sep 2019 11:45:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+01yJPXHG5Z5TjIWTjF3GJdCetxq8rBThk31sZU1iBqAQHtJpP8IhVrs1iLiKabY4rPv2 X-Received: by 2002:a17:906:4541:: with SMTP id s1mr9195859ejq.210.1569609909816; Fri, 27 Sep 2019 11:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569609909; cv=none; d=google.com; s=arc-20160816; b=DtxATpXzRcLFPTx8wUW1FzON3n8GniUSgX4M1esnjclJLzEqcgetkOdFtHtJgpCQXH VyNgP067E2hS+IGC4+d4wkQnPWP8ce5EjWShg85tq+MqpolTmiun5CN05QowPw7uWZNt lUWbkU9LFoT6kkiWFQjvOhxq/dycwTYnv57etPmbpwNx0E2n/9nc4Qn+7sWB0NFWslbB CcKHQoenBE2UYH+lhc+uZXbct/cpOAJIqwuL8Mm/M9ffcUDzdhHRygs4lVRIf7vouvT7 gct4CCPA+09cPFqVJA0cZujcQb3FZMmszRYveR6v5WWPg4xRn9f439AU3fdHZu4OUhtQ KZ1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=2og6D8JNGUcFzo2+ZOKB4t8tH7Nwv5RRVJlFtszjd+8=; b=PMuN8rbP8Jr+x3BG1UMqinZSGi6ligLs+x4dqharb47kZFG5D7Jg0wNBhdl+ZEorpY tBzcOjF5kn6dERC7JTISzFLqYtK1mFWvlsESUujxma5YbjgU+vwVnKJxBRwcsWTHCawf kp7OqURN6bQSbPYbqhVcAX3BnH3nLOTO4PMJ66/TEIMbAaQhfFczgV9G9rYo4NKYph2U 7MCQoeOHJpltc/ngzG7jj0uVPh9VRpO04Qi/FOUDq65cPBgjM+92ZaSoqaJbp7noi4KZ E7k31EBTHxgyjBzJsT1PBIe23hFZmlX1yUwoMwrCXJ9unn0P9ag3doNFPSDdVhX8qIZQ uVBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=unbvXDxn; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id op4si3092465ejb.77.2019.09.27.11.44.44; Fri, 27 Sep 2019 11:45:09 -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=@gmail.com header.s=20161025 header.b=unbvXDxn; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728428AbfI0SoS (ORCPT + 99 others); Fri, 27 Sep 2019 14:44:18 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:45577 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728321AbfI0SoR (ORCPT ); Fri, 27 Sep 2019 14:44:17 -0400 Received: by mail-qt1-f196.google.com with SMTP id c21so8469646qtj.12; Fri, 27 Sep 2019 11:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2og6D8JNGUcFzo2+ZOKB4t8tH7Nwv5RRVJlFtszjd+8=; b=unbvXDxnpNpcf8CoeSiwRYEbaguyEnVe7BU2tnKz0HxgW0iup/mqrk+c66d6zG0Jr8 II95/A/X4I8kXM+g/a8ggxkX7nJMkYT9ij5nqrQEk33ll61o9WeX7MnPz4Kh9FAP1U6w d4cy5S1hMCu9Oml+aTdAivYdpB0tnqVlqkjntzfd5AuoRtB/T5J74fjIz8gQHNVw+Y8P /h0qSEubAKZtbVGcTy0Eqh0ya8m/WJdKRJYNzfxH2Ya6/iXwevjmn+4XqWXBkUF+El7u 0WnN6VOXJPuucvvX89TO9VbkZ/oaDGUVgBsmfQb2RLpW9tJEaaM0htpGrjmhR0I6pkZF 0rWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2og6D8JNGUcFzo2+ZOKB4t8tH7Nwv5RRVJlFtszjd+8=; b=VEi091ae405kHpUMK1amldLAYLRKLUpcTufMQQhAIp4+k+lGFDtWYRsLhIw2XkYLOy PD9x5Ga/P3wWuqMdkUNQVB+wU74NjuIuI5wkk4AXyf6nYpBg3bQ/FnmKYAdwEe7Sp8Bj y8QtaRTT0bQmpdoYZ0ztkoqoutHA78uffhfxolvq05z6/yDbcd8WLO4qLBneDxHaQ9PT ALaiZh6YuPmNeyDBsV1shp0xPPwUPTEZL460/22HvsKgipQ3NC1lheqLu79z1tDM0t1d Iwqbd091LVDRowhVjvU6VTwIw/hghA8SglbDGceDdD+0SoHDq8oalfsNXAgVQkg4nFKP jS7A== X-Gm-Message-State: APjAAAV4V5nwtDlrh6vRuwKuRkGZ0XES0b0shoKxzNRfKfKB9QVJefBj CipZuqVThavSIr6VoCZG0GglD/VJdp5EJINQ/y8= X-Received: by 2002:ac8:1099:: with SMTP id a25mr11275982qtj.308.1569609855302; Fri, 27 Sep 2019 11:44:15 -0700 (PDT) MIME-Version: 1.0 References: <20190927011344.4695-1-skhan@linuxfoundation.org> In-Reply-To: <20190927011344.4695-1-skhan@linuxfoundation.org> From: Song Liu Date: Fri, 27 Sep 2019 11:44:04 -0700 Message-ID: Subject: Re: [PATCH] tools: bpf: Use !building_out_of_srctree to determine srctree To: Shuah Khan Cc: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Networking , bpf , open list , linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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 6:14 PM 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 The fix looks reasonable. Thanks! However, I am still seeing some failure: make TARGETS=bpf kselftest [...] test_verifier.c /data/users/songliubraving/kernel/linux-git/tools/testing/selftests/bpf/test_stub.o /data/users/songliubraving/kernel/linux-git/tools/testing/selftests/bpf/libbpf.a -lcap -lelf -lrt -lpthread -o /data/users/songliubraving/kernel/linux-git/tools/testing/selftests/bpf/test_verifier make[3]: test_verifier.c: Command not found Is this just a problem with my setup? Thanks, Song