From: Ulf Samuelsson <ulf.samuelsson@atmel.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Fix naming mismatch between directfb and kernel on "fusion" version numbers
Date: Sun, 26 Jul 2009 07:16:24 +0200 [thread overview]
Message-ID: <4A6BE6A8.9080400@atmel.com> (raw)
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
next reply other threads:[~2009-07-26 5:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-26 5:16 Ulf Samuelsson [this message]
2009-07-26 7:30 ` [Buildroot] [PATCH] Fix naming mismatch between directfb and kernel on "fusion" version numbers 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A6BE6A8.9080400@atmel.com \
--to=ulf.samuelsson@atmel.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox