From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755174AbdERUDj (ORCPT ); Thu, 18 May 2017 16:03:39 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33759 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753200AbdERUDe (ORCPT ); Thu, 18 May 2017 16:03:34 -0400 Subject: Re: [PATCH v1] samples/bpf: Add a .gitignore for binaries To: Alexander Alemayhu Cc: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= , Alexei Starovoitov , Daniel Borkmann , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Wang Nan , netdev@vger.kernel.org References: <20170212212356.11675-1-mic@digikod.net> <8277c7cc-8f44-40ec-1f7e-53c404d84292@cumulusnetworks.com> <20170517081844.GA4447@gmail.com> From: David Ahern Message-ID: <1ce3f092-3552-173f-b26a-48ec81d49f55@gmail.com> Date: Thu, 18 May 2017 13:03:31 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170517081844.GA4447@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/17/17 1:18 AM, Alexander Alemayhu wrote: > I have looked into this but found it to be not easy and all attempts to > change the Makefile has resulted in obscure errors :/ > > Getting clang to output in a different directory was easy[0], but I guess > this is not the right approach either. Have you tried making the change? spent an hour so a few weeks back. It is not trivial, but someone needs to find to fix it now. perf is the example to use: you can build it from both top level kernel directory (e.g, make -C tools/perf O=/tmp/perf) and the perf directory (cd tools/perf; make O=/tmp/perf). Both are wanted for samples/bpf and it would be nice to keep the O= option as well. I don't have the time for the next few weeks. Perhaps mid-June I can take a look.