All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kdbus/samples: skip on CROSS_COMPILE
@ 2015-07-30 16:13 David Herrmann
       [not found] ` <1438272805-19029-1-git-send-email-dh.herrmann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: David Herrmann @ 2015-07-30 16:13 UTC (permalink / raw)
  To: linux-kernel
  Cc: Paul Gortmaker, Greg Kroah-Hartman, Daniel Mack, Djalal Harouni,
	David Herrmann

Apparently we cannot rely on up-to-date kernel headers to be available
when cross-compiling, not even for HOSTCC. That's sad, but it's how it
is. Skip samples on cross-compiles as suggested by Paul, so allmodconfig
runs smoothly again.

Tested-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
---
 samples/kdbus/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/samples/kdbus/Makefile b/samples/kdbus/Makefile
index 137f842..dbd9de8 100644
--- a/samples/kdbus/Makefile
+++ b/samples/kdbus/Makefile
@@ -1,9 +1,13 @@
 # kbuild trick to avoid linker error. Can be omitted if a module is built.
 obj- := dummy.o
 
+ifndef CROSS_COMPILE
+
 hostprogs-$(CONFIG_SAMPLE_KDBUS) += kdbus-workers
 
 always := $(hostprogs-y)
 
 HOSTCFLAGS_kdbus-workers.o += -I$(objtree)/usr/include
 HOSTLOADLIBES_kdbus-workers := -lrt
+
+endif
-- 
2.5.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-07-31 14:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-30 16:13 [PATCH] kdbus/samples: skip on CROSS_COMPILE David Herrmann
     [not found] ` <1438272805-19029-1-git-send-email-dh.herrmann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-07-30 16:33   ` Greg Kroah-Hartman
2015-07-30 16:33     ` Greg Kroah-Hartman
     [not found]     ` <20150730163307.GA20048-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2015-07-30 17:00       ` David Herrmann
2015-07-30 17:00         ` David Herrmann
2015-07-30 17:00     ` Paul Gortmaker
2015-07-30 17:00       ` Paul Gortmaker
2015-07-31 14:28     ` Sudip Mukherjee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.