Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753285AbaGQDlT (ORCPT ); Wed, 16 Jul 2014 23:41:19 -0400 Received: from smtp.mei.co.jp ([133.183.100.20]:36298 "EHLO smtp.mei.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752477AbaGQDlR (ORCPT ); Wed, 16 Jul 2014 23:41:17 -0400 Date: Thu, 17 Jul 2014 12:40:46 +0900 From: Masahiro Yamada To: Sam Ravnborg Subject: Re: [PATCH 3/6] samples: use uapiprogs support for seccomp Cc: Michal Marek , linux-kbuild , lkml , Thierry Reding , Stephen Rothwell , David Herrmann , Jiri Kosina In-Reply-To: <20140716103120.GA4710@ravnborg.org> References: <20140716184351.AC2E.AA925319@jp.panasonic.com> <20140716103120.GA4710@ravnborg.org> X-BkSecure-Plugin: BkSecure.dll Ver 1, 2, 7, 0 Message-Id: <20140717124046.0EC9.AA925319@jp.panasonic.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.64.06 [ja] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Jul 2014 12:31:21 +0200 Sam Ravnborg wrote: > > How can I build hostprogs for the same host as the kernel? > > (I mean, how can I override $(HOSTCC) for cross-compiling ?) > > One way to do this: > > make ARCH=sparc CROSS_COMPILE=sparc-leon-linux-gnu- HOSTCC=sparc-leon-linux-gnu-gcc > > Notice that I override HOSTCC as part of the make comand line. > This allows me to override the "=" assignment in the top-level Makefile. > > But then my build breaks as fixdep do not run on my host. > > If you in general want to build a binary for the target then uapiprogs come in handy. > Only caveat here is that you will be using the exported kernel headers. > Thanks for explaining this. It is clearer to me now. At first I thought this patch was a clean-up, but it is indeed a big improvement. Thanks! Best Regards Masahiro Yamada -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/