Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Fix naming mismatch between directfb and kernel on "fusion" version numbers
@ 2009-07-26  5:16 Ulf Samuelsson
  2009-07-26  7:30 ` Peter Korsgaard
  0 siblings, 1 reply; 7+ messages in thread
From: Ulf Samuelsson @ 2009-07-26  5:16 UTC (permalink / raw)
  To: buildroot

directfb expects FUSION_API_MAJOR_PROVIDED and FUSION_API_MINOR_REQUIRED
At least some kernel versions provides FUSION_API_MAJOR and FUSION_API_MINOR
Since the expected names are not defined, directfb will break with the
error message:

"../../../lib/fusion/types.h:42:2: error: #error Major version of Fusion
Kernel Module too low! Upgrade your kernel."

This patch will set XXX_PROVIDED from XXX.


diff -urN directfb-1.4.1-0rig//lib/fusion/types.h
directfb-1.4.1/lib/fusion/types.h
--- directfb-1.4.1-0rig//lib/fusion/types.h    2009-06-02
18:47:23.000000000 +0200
+++ directfb-1.4.1/lib/fusion/types.h    2009-07-26 07:07:40.000000000 +0200
@@ -38,6 +38,19 @@
 #define FUSION_API_MAJOR_REQUIRED 8
 #define FUSION_API_MINOR_REQUIRED 0
 
+#if    !defined(FUSION_API_MAJOR_PROVIDED)
+#if    defined(FUSION_API_MAJOR)
+#define    FUSION_API_MAJOR_PROVIDED    FUSION_API_MAJOR
+#endif
+#endif
+
+#if    !defined(FUSION_API_MINOR_PROVIDED)
+#if    defined(FUSION_API_MINOR)
+#define    FUSION_API_MINOR_PROVIDED    FUSION_API_MINOR
+#endif
+#endif
+
+
 #if FUSION_API_MAJOR_REQUIRED > FUSION_API_MAJOR_PROVIDED
 #error Major version of Fusion Kernel Module too low! Upgrade your kernel.
 #else


BR
Ulf Samuelsson

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

end of thread, other threads:[~2009-07-26 20:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-26  5:16 [Buildroot] [PATCH] Fix naming mismatch between directfb and kernel on "fusion" version numbers Ulf Samuelsson
2009-07-26  7:30 ` Peter Korsgaard
2009-07-26  9:43   ` Ulf Samuelsson
2009-07-26 13:20     ` Peter Korsgaard
2009-07-26 19:06       ` Ulf Samuelsson
2009-07-26 19:16         ` Peter Korsgaard
     [not found]           ` <4A6CBAEA.2010002@atmel.com>
2009-07-26 20:37             ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox