Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751870AbdITVYt (ORCPT ); Wed, 20 Sep 2017 17:24:49 -0400 Received: from www62.your-server.de ([213.133.104.62]:45406 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751387AbdITVYr (ORCPT ); Wed, 20 Sep 2017 17:24:47 -0400 Message-ID: <59C2DC9D.50208@iogearbox.net> Date: Wed, 20 Sep 2017 23:24:45 +0200 From: Daniel Borkmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Joel Fernandes , linux-kernel@vger.kernel.org CC: netdev@vger.kernel.org, alison@she-devel.com, juri.lelli@arm.com, fengc@google.com, davem@davemloft.net, ast@kernel.org, kernel-team@android.com Subject: Re: [PATCH v4 2/4] samples/bpf: Enable cross compiler support References: <20170920161159.25747-1-joelaf@google.com> <20170920161159.25747-2-joelaf@google.com> In-Reply-To: <20170920161159.25747-2-joelaf@google.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 480 Lines: 10 On 09/20/2017 06:11 PM, Joel Fernandes wrote: > When cross compiling, bpf samples use HOSTCC for compiling the non-BPF part of > the sample, however what we really want is to use the cross compiler to build > for the cross target since that is what will load and run the BPF sample. > Detect this and compile samples correctly. > > Acked-by: Alexei Starovoitov > Signed-off-by: Joel Fernandes Acked-by: Daniel Borkmann