Thread (40 messages) flat view 40 messages, 9 authors, 2015-04-08

Re: [PATCH 13/14] kdbus: add walk-through user space example

From: Daniel Mack <daniel@zonque.org>
Date: 2015-03-24 18:51:52
Also in: linux-kbuild, lkml

On 03/24/2015 07:22 PM, Michal Marek wrote:
Dne 24.3.2015 v 18:37 Jiri Slaby napsal(a):
quoted
Oh, it's cut&paste, I see. This does not look correct though. The hack
inclusive. Host progs are intended to be run on the host where the
kernel is built. During the compilation or such (like x/menuconfig).
Quite misleading naming if you are used to the autotools one.
when cross compiling, we are a bit between a rock and a hard place with
the sample userspace programs:
- The target toolchain might not have libc support
- The host toolchain might be lacking recent kernel headers (therefore
  the need to do make headers_install)
- It's not clean whether the samples are meant to be ran on the build
  host or target.
Exactly. I just checked in a cross-compiled source tree, and none of the
compiled standalone executables from samples/ or Documentation/ are
actually built for the target platform. Only the samples which come as
kernel modules are.
There has been some work by Sam Ravnborg to introduce uapiprogs-y to for
sample userspace programs, but for now, please use hostprogs-y,
-Iusr/include and make each sample opt-in.
Alright then. Does the attached patch fix your problem, Jiri?


Thanks,
Daniel

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help