lkml.org 
[lkml]   [2013]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH] Use target compiler for user binaries in samples/
On Sun, 31 Mar 2013, Sam Ravnborg wrote:

> The user-space binaries build in samples/ uses the installed
> headers for the kernel.
> Therefore it is wrong that they use the host compiler
> to build the samples.
>
> Following is an attempt to create some infrastructure
> for building user-space binaries that uses the uapi headers.
>
> As my sparc cross toolchain does not supporting building
> user-space I have not been able to test this as good as I hoped...
>
> But faking that my native gcc is a cross gcc seems to work.
>
> This adds two new variables to the top-level Makefile:
> UAPICC and UAPICFLAGS
>
> The architectures that supports both 32 and 64 bit set the
> appropriate flags in UAPICFLAGS.
>
> scripts/Makefile.uapiprogs cantains all the infrastructure.
>
> I updated the samples for hidraw and seccomp to use the new
> infrastructure.
>
> The file says:
> +# Sample syntax (see Documentation/kbuild/makefiles.txt for reference)
>
> But I did not bother to write this yet - awaiting feedback.

I generally like the idea.

It'd be nice to know whether this fixes the ARCH=sparc allyesconfig builds
Fengguang has been reporting. Fengguang ... ?

Thanks,

--
Jiri Kosina
SUSE Labs


\
 
 \ /
  Last update: 2013-04-04 11:01    [W:0.054 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site